
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void Curl_verboseconnect(connectdata *conn)

{
  char *pcVar1;
  
  if ((conn->data->set).verbose != false) {
    if ((conn->bits).socksproxy == false) {
      if ((conn->bits).httpproxy == false) {
        if ((conn->bits).conn_to_host == false) {
          pcVar1 = (conn->host).dispname;
        }
        else {
          pcVar1 = (conn->conn_to_host).dispname;
        }
      }
      else {
        pcVar1 = (conn->http_proxy).host.dispname;
      }
    }
    else {
      pcVar1 = (conn->socks_proxy).host.dispname;
    }
    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,
               conn->port,conn->connection_id);
  }
  return;
}



void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  int unaff_EBX;
  
  piVar1 = (int *)entry(param_2,0x2ff8c);
  if (*(char *)(*piVar1 + 0x93c) != '\0') {
    if (*(char *)((int)piVar1 + 0x24f) == '\0') {
      if (*(char *)((int)piVar1 + 0x24e) == '\0') {
        if (*(char *)((int)piVar1 + 0x24b) == '\0') {
          iVar2 = piVar1[0x26];
        }
        else {
          iVar2 = piVar1[0x2c];
        }
      }
      else {
        iVar2 = piVar1[0x38];
      }
    }
    else {
      iVar2 = piVar1[0x30];
    }
    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00019ed0
ADD EBX,0x86854
MOV EDX,dword ptr [EAX]
CMP byte ptr [EDX + 0x93c],0x0
JZ 0x0002ffcf
CMP byte ptr [EAX + 0x24f],0x0
MOV EDI,dword ptr [EAX + 0x40]
LEA ECX,[EAX + 0x54]
MOV ESI,dword ptr [EAX + 0xf4]
JZ 0x0002ffd8
MOV EAX,dword ptr [EAX + 0xc0]
SUB ESP,0x8
PUSH EDI
PUSH ESI
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xfffceccc]
PUSH EAX
PUSH EDX
CALL 0x00027c40
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
CMP byte ptr [EAX + 0x24e],0x0
JNZ 0x0002fff8
CMP byte ptr [EAX + 0x24b],0x0
JZ 0x00030000
MOV EAX,dword ptr [EAX + 0xb0]
JMP 0x0002ffb8
MOV EAX,dword ptr [EAX + 0xe0]
JMP 0x0002ffb8
MOV EAX,dword ptr [EAX + 0x98]
JMP 0x0002ffb8
(translation_unit "void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ff80(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)entry(param_2,0x2ff8c);" (assignment_expression "piVar1 = (int *)entry(param_2,0x2ff8c)" identifier = (cast_expression "(int *)entry(param_2,0x2ff8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x2ff8c)" identifier (argument_list "(param_2,0x2ff8c)" ( identifier , number_literal ))))) ;) (if_statement "if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" if (parenthesized_expression "(*(char *)(*piVar1 + 0x93c) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 0x93c) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0x93c)" * (cast_expression "(char *)(*piVar1 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x93c)" ( (binary_expression "*piVar1 + 0x93c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" { (if_statement "if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24f) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24f) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24f)" * (cast_expression "(char *)((int)piVar1 + 0x24f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24f)" ( (binary_expression "(int)piVar1 + 0x24f" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }" { (if_statement "if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24e) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24e) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24e)" * (cast_expression "(char *)((int)piVar1 + 0x24e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24e)" ( (binary_expression "(int)piVar1 + 0x24e" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }" { (if_statement "if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24b) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24b) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24b)" * (cast_expression "(char *)((int)piVar1 + 0x24b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24b)" ( (binary_expression "(int)piVar1 + 0x24b" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = piVar1[0x26];\n        }" { (expression_statement "iVar2 = piVar1[0x26];" (assignment_expression "iVar2 = piVar1[0x26]" identifier = (subscript_expression "piVar1[0x26]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          iVar2 = piVar1[0x2c];\n        }" else (compound_statement "{\n          iVar2 = piVar1[0x2c];\n        }" { (expression_statement "iVar2 = piVar1[0x2c];" (assignment_expression "iVar2 = piVar1[0x2c]" identifier = (subscript_expression "piVar1[0x2c]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n        iVar2 = piVar1[0x38];\n      }" else (compound_statement "{\n        iVar2 = piVar1[0x38];\n      }" { (expression_statement "iVar2 = piVar1[0x38];" (assignment_expression "iVar2 = piVar1[0x38]" identifier = (subscript_expression "piVar1[0x38]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n      iVar2 = piVar1[0x30];\n    }" else (compound_statement "{\n      iVar2 = piVar1[0x30];\n    }" { (expression_statement "iVar2 = piVar1[0x30];" (assignment_expression "iVar2 = piVar1[0x30]" identifier = (subscript_expression "piVar1[0x30]" identifier [ number_literal ])) ;) }))) (expression_statement "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);" (call_expression "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" identifier (argument_list "(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" ( (pointer_expression "*piVar1" * identifier) , (binary_expression "&UNK_00055520 + unaff_EBX" (pointer_expression "&UNK_00055520" & identifier) + identifier) , identifier , (binary_expression "piVar1 + 0x15" identifier + number_literal) , (subscript_expression "piVar1[0x3d]" identifier [ number_literal ]) , (subscript_expression "piVar1[0x10]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid Curl_verboseconnect(connectdata *conn)\n\n{\n  char *pcVar1;\n  \n  if ((conn->data->set).verbose != false) {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }\n    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);\n  }\n  return;\n}\n\n" comment comment (function_definition "void Curl_verboseconnect(connectdata *conn)\n\n{\n  char *pcVar1;\n  \n  if ((conn->data->set).verbose != false) {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }\n    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);\n  }\n  return;\n}" primitive_type (function_declarator "Curl_verboseconnect(connectdata *conn)" identifier (parameter_list "(connectdata *conn)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((conn->data->set).verbose != false) {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }\n    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if ((conn->data->set).verbose != false) {\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }\n    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);\n  }" if (parenthesized_expression "((conn->data->set).verbose != false)" ( (binary_expression "(conn->data->set).verbose != false" (field_expression "(conn->data->set).verbose" (parenthesized_expression "(conn->data->set)" ( (field_expression "conn->data->set" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }\n    Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);\n  }" { (if_statement "if ((conn->bits).socksproxy == false) {\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }\n    else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }" if (parenthesized_expression "((conn->bits).socksproxy == false)" ( (binary_expression "(conn->bits).socksproxy == false" (field_expression "(conn->bits).socksproxy" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n      if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }\n    }" { (if_statement "if ((conn->bits).httpproxy == false) {\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }\n      else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }" if (parenthesized_expression "((conn->bits).httpproxy == false)" ( (binary_expression "(conn->bits).httpproxy == false" (field_expression "(conn->bits).httpproxy" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n        if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }\n      }" { (if_statement "if ((conn->bits).conn_to_host == false) {\n          pcVar1 = (conn->host).dispname;\n        }\n        else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }" if (parenthesized_expression "((conn->bits).conn_to_host == false)" ( (binary_expression "(conn->bits).conn_to_host == false" (field_expression "(conn->bits).conn_to_host" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n          pcVar1 = (conn->host).dispname;\n        }" { (expression_statement "pcVar1 = (conn->host).dispname;" (assignment_expression "pcVar1 = (conn->host).dispname" identifier = (field_expression "(conn->host).dispname" (parenthesized_expression "(conn->host)" ( (field_expression "conn->host" identifier -> field_identifier) )) . field_identifier)) ;) }) (else_clause "else {\n          pcVar1 = (conn->conn_to_host).dispname;\n        }" else (compound_statement "{\n          pcVar1 = (conn->conn_to_host).dispname;\n        }" { (expression_statement "pcVar1 = (conn->conn_to_host).dispname;" (assignment_expression "pcVar1 = (conn->conn_to_host).dispname" identifier = (field_expression "(conn->conn_to_host).dispname" (parenthesized_expression "(conn->conn_to_host)" ( (field_expression "conn->conn_to_host" identifier -> field_identifier) )) . field_identifier)) ;) }))) }) (else_clause "else {\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }" else (compound_statement "{\n        pcVar1 = (conn->http_proxy).host.dispname;\n      }" { (expression_statement "pcVar1 = (conn->http_proxy).host.dispname;" (assignment_expression "pcVar1 = (conn->http_proxy).host.dispname" identifier = (field_expression "(conn->http_proxy).host.dispname" (field_expression "(conn->http_proxy).host" (parenthesized_expression "(conn->http_proxy)" ( (field_expression "conn->http_proxy" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) }) (else_clause "else {\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }" else (compound_statement "{\n      pcVar1 = (conn->socks_proxy).host.dispname;\n    }" { (expression_statement "pcVar1 = (conn->socks_proxy).host.dispname;" (assignment_expression "pcVar1 = (conn->socks_proxy).host.dispname" identifier = (field_expression "(conn->socks_proxy).host.dispname" (field_expression "(conn->socks_proxy).host" (parenthesized_expression "(conn->socks_proxy)" ( (field_expression "conn->socks_proxy" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) (expression_statement "Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id);" (call_expression "Curl_infof(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id)" identifier (argument_list "(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,\n               conn->port,conn->connection_id)" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""Connected to %s (%s) port %ld (#%ld)\n"" " string_content escape_sequence ") , identifier , (field_expression "conn->ip_addr_str" identifier -> field_identifier) , (field_expression "conn->port" identifier -> field_identifier) , (field_expression "conn->connection_id" identifier -> field_identifier) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ff80(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)entry(param_2,0x2ff8c);" (assignment_expression "piVar1 = (int *)entry(param_2,0x2ff8c)" identifier = (cast_expression "(int *)entry(param_2,0x2ff8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x2ff8c)" identifier (argument_list "(param_2,0x2ff8c)" ( identifier , number_literal ))))) ;) (if_statement "if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" if (parenthesized_expression "(*(char *)(*piVar1 + 0x93c) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 0x93c) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0x93c)" * (cast_expression "(char *)(*piVar1 + 0x93c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x93c)" ( (binary_expression "*piVar1 + 0x93c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" { (if_statement "if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24f) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24f) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24f)" * (cast_expression "(char *)((int)piVar1 + 0x24f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24f)" ( (binary_expression "(int)piVar1 + 0x24f" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }" { (if_statement "if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24e) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24e) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24e)" * (cast_expression "(char *)((int)piVar1 + 0x24e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24e)" ( (binary_expression "(int)piVar1 + 0x24e" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }" { (if_statement "if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }" if (parenthesized_expression "(*(char *)((int)piVar1 + 0x24b) == '\0')" ( (binary_expression "*(char *)((int)piVar1 + 0x24b) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24b)" * (cast_expression "(char *)((int)piVar1 + 0x24b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x24b)" ( (binary_expression "(int)piVar1 + 0x24b" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = piVar1[0x26];\n        }" { (expression_statement "iVar2 = piVar1[0x26];" (assignment_expression "iVar2 = piVar1[0x26]" identifier = (subscript_expression "piVar1[0x26]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          iVar2 = piVar1[0x2c];\n        }" else (compound_statement "{\n          iVar2 = piVar1[0x2c];\n        }" { (expression_statement "iVar2 = piVar1[0x2c];" (assignment_expression "iVar2 = piVar1[0x2c]" identifier = (subscript_expression "piVar1[0x2c]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n        iVar2 = piVar1[0x38];\n      }" else (compound_statement "{\n        iVar2 = piVar1[0x38];\n      }" { (expression_statement "iVar2 = piVar1[0x38];" (assignment_expression "iVar2 = piVar1[0x38]" identifier = (subscript_expression "piVar1[0x38]" identifier [ number_literal ])) ;) }))) }) (else_clause "else {\n      iVar2 = piVar1[0x30];\n    }" else (compound_statement "{\n      iVar2 = piVar1[0x30];\n    }" { (expression_statement "iVar2 = piVar1[0x30];" (assignment_expression "iVar2 = piVar1[0x30]" identifier = (subscript_expression "piVar1[0x30]" identifier [ number_literal ])) ;) }))) (expression_statement "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);" (call_expression "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" identifier (argument_list "(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" ( (pointer_expression "*piVar1" * identifier) , (binary_expression "&UNK_00055520 + unaff_EBX" (pointer_expression "&UNK_00055520" & identifier) + identifier) , identifier , (binary_expression "piVar1 + 0x15" identifier + number_literal) , (subscript_expression "piVar1[0x3d]" identifier [ number_literal ]) , (subscript_expression "piVar1[0x10]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002ff80(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002ff80(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0002ff80") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int unaff_EBX;\n  \n  piVar1 = (int *)entry(param_2,0x2ff8c);\n  if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (expression_statement "piVar1 = (int *)entry(param_2,0x2ff8c);" (assignment_expression "piVar1 = (int *)entry(param_2,0x2ff8c)" (identifier "piVar1") (= "=") (cast_expression "(int *)entry(param_2,0x2ff8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "entry(param_2,0x2ff8c)" (identifier "entry") (argument_list "(param_2,0x2ff8c)" (( "(") (identifier "param_2") (, ",") (number_literal "0x2ff8c") () ")"))))) (; ";")) (if_statement "if (*(char *)(*piVar1 + 0x93c) != '\0') {\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" (if "if") (parenthesized_expression "(*(char *)(*piVar1 + 0x93c) != '\0')" (( "(") (binary_expression "*(char *)(*piVar1 + 0x93c) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0x93c)" (* "*") (cast_expression "(char *)(*piVar1 + 0x93c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x93c)" (( "(") (binary_expression "*piVar1 + 0x93c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x93c")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }\n    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);\n  }" ({ "{") (if_statement "if (*(char *)((int)piVar1 + 0x24f) == '\0') {\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }\n    else {\n      iVar2 = piVar1[0x30];\n    }" (if "if") (parenthesized_expression "(*(char *)((int)piVar1 + 0x24f) == '\0')" (( "(") (binary_expression "*(char *)((int)piVar1 + 0x24f) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24f)" (* "*") (cast_expression "(char *)((int)piVar1 + 0x24f)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x24f)" (( "(") (binary_expression "(int)piVar1 + 0x24f" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x24f")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }\n    }" ({ "{") (if_statement "if (*(char *)((int)piVar1 + 0x24e) == '\0') {\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }\n      else {\n        iVar2 = piVar1[0x38];\n      }" (if "if") (parenthesized_expression "(*(char *)((int)piVar1 + 0x24e) == '\0')" (( "(") (binary_expression "*(char *)((int)piVar1 + 0x24e) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24e)" (* "*") (cast_expression "(char *)((int)piVar1 + 0x24e)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x24e)" (( "(") (binary_expression "(int)piVar1 + 0x24e" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x24e")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }\n      }" ({ "{") (if_statement "if (*(char *)((int)piVar1 + 0x24b) == '\0') {\n          iVar2 = piVar1[0x26];\n        }\n        else {\n          iVar2 = piVar1[0x2c];\n        }" (if "if") (parenthesized_expression "(*(char *)((int)piVar1 + 0x24b) == '\0')" (( "(") (binary_expression "*(char *)((int)piVar1 + 0x24b) == '\0'" (pointer_expression "*(char *)((int)piVar1 + 0x24b)" (* "*") (cast_expression "(char *)((int)piVar1 + 0x24b)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x24b)" (( "(") (binary_expression "(int)piVar1 + 0x24b" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x24b")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar2 = piVar1[0x26];\n        }" ({ "{") (expression_statement "iVar2 = piVar1[0x26];" (assignment_expression "iVar2 = piVar1[0x26]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[0x26]" (identifier "piVar1") ([ "[") (number_literal "0x26") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          iVar2 = piVar1[0x2c];\n        }" (else "else") (compound_statement "{\n          iVar2 = piVar1[0x2c];\n        }" ({ "{") (expression_statement "iVar2 = piVar1[0x2c];" (assignment_expression "iVar2 = piVar1[0x2c]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[0x2c]" (identifier "piVar1") ([ "[") (number_literal "0x2c") (] "]"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        iVar2 = piVar1[0x38];\n      }" (else "else") (compound_statement "{\n        iVar2 = piVar1[0x38];\n      }" ({ "{") (expression_statement "iVar2 = piVar1[0x38];" (assignment_expression "iVar2 = piVar1[0x38]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[0x38]" (identifier "piVar1") ([ "[") (number_literal "0x38") (] "]"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar2 = piVar1[0x30];\n    }" (else "else") (compound_statement "{\n      iVar2 = piVar1[0x30];\n    }" ({ "{") (expression_statement "iVar2 = piVar1[0x30];" (assignment_expression "iVar2 = piVar1[0x30]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[0x30]" (identifier "piVar1") ([ "[") (number_literal "0x30") (] "]"))) (; ";")) (} "}")))) (expression_statement "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);" (call_expression "FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" (identifier "FUN_00027c40") (argument_list "(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10])" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (binary_expression "&UNK_00055520 + unaff_EBX" (pointer_expression "&UNK_00055520" (& "&") (identifier "UNK_00055520")) (+ "+") (identifier "unaff_EBX")) (, ",") (identifier "iVar2") (, ",") (binary_expression "piVar1 + 0x15" (identifier "piVar1") (+ "+") (number_literal "0x15")) (, ",") (subscript_expression "piVar1[0x3d]" (identifier "piVar1") ([ "[") (number_literal "0x3d") (] "]")) (, ",") (subscript_expression "piVar1[0x10]" (identifier "piVar1") ([ "[") (number_literal "0x10") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *conn)

{
  char *pcVar1;
  
  if ((conn->data->set).verbose != false) {
    if ((conn->bits).socksproxy == false) {
      if ((conn->bits).httpproxy == false) {
        if ((conn->bits).conn_to_host == false) {
          pcVar1 = (conn->host).dispname;
        }
        else {
          pcVar1 = (conn->conn_to_host).dispname;
        }
      }
      else {
        pcVar1 = (conn->http_proxy).host.dispname;
      }
    }
    else {
      pcVar1 = (conn->socks_proxy).host.dispname;
    }
    var_1(conn->data,"Connected to %s (%s) port %ld (#%ld)\n",pcVar1,conn->ip_addr_str,
               conn->port,conn->connection_id);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement))))

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  int unaff_EBX;
  
  piVar1 = (int *)entry(param_2,0x2ff8c);
  if (*(char *)(*piVar1 + 0x93c) != '\0') {
    if (*(char *)((int)piVar1 + 0x24f) == '\0') {
      if (*(char *)((int)piVar1 + 0x24e) == '\0') {
        if (*(char *)((int)piVar1 + 0x24b) == '\0') {
          iVar2 = piVar1[0x26];
        }
        else {
          iVar2 = piVar1[0x2c];
        }
      }
      else {
        iVar2 = piVar1[0x38];
      }
    }
    else {
      iVar2 = piVar1[0x30];
    }
    FUN_00027c40(*piVar1,&UNK_00055520 + unaff_EBX,iVar2,piVar1 + 0x15,piVar1[0x3d],piVar1[0x10]);
  }
  return;
}

