
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

Curl_addrinfo * Curl_ip2addr(int af,void *inaddr,char *hostname,int port)

{
  hostent *he;
  char *pcVar1;
  Curl_addrinfo *pCVar2;
  int iVar3;
  
  he = (hostent *)(*Curl_cmalloc)(0x2c);
  if (he == (hostent *)0x0) {
    pCVar2 = (Curl_addrinfo *)0x0;
  }
  else {
    pcVar1 = (*Curl_cstrdup)(hostname);
    if (pcVar1 == (char *)0x0) {
      pCVar2 = (Curl_addrinfo *)0x0;
      (*Curl_cfree)(he);
    }
    else {
      if (af == 2) {
                    /* WARNING: Load size is inaccurate */
        he[1].h_name = *inaddr;
        iVar3 = 4;
      }
      else {
        if (af != 10) {
          (*Curl_cfree)(pcVar1);
          (*Curl_cfree)(he);
          return (Curl_addrinfo *)0x0;
        }
                    /* WARNING: Load size is inaccurate */
        he[1].h_name = *inaddr;
        he[1].h_aliases = *(char ***)((int)inaddr + 4);
        he[1].h_addrtype = *(int *)((int)inaddr + 8);
        he[1].h_length = *(int *)((int)inaddr + 0xc);
        iVar3 = 0x10;
      }
      he->h_length = iVar3;
      he->h_addr_list = (char **)&he[1].h_addr_list;
      he->h_name = pcVar1;
      he->h_addrtype = (int)(short)af;
      he->h_aliases = (char **)0x0;
      he[1].h_addr_list = &he[1].h_name;
      he[2].h_name = (char *)0x0;
      pCVar2 = Curl_he2ai(he,port);
      (*Curl_cfree)(pcVar1);
      (*Curl_cfree)(he);
    }
  }
  return pCVar2;
}



undefined4 __regparm2
FUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,
            undefined4 param_5)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EBX;
  int unaff_retaddr;
  
  entry(param_2,0x56969);
  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);
  if (piVar1 == (int *)0x0) {
    uVar3 = 0;
  }
  else {
    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);
    if (iVar2 == 0) {
      uVar3 = 0;
      (**(code **)(unaff_EBX + 0x60703))(piVar1);
    }
    else {
      if (unaff_retaddr == 2) {
        piVar1[5] = *param_3;
        iVar4 = 4;
      }
      else {
        if (unaff_retaddr != 10) {
          (**(code **)(unaff_EBX + 0x60703))(iVar2);
          (**(code **)(unaff_EBX + 0x60703))(piVar1);
          return 0;
        }
        piVar1[5] = *param_3;
        piVar1[6] = param_3[1];
        piVar1[7] = param_3[2];
        piVar1[8] = param_3[3];
        iVar4 = 0x10;
      }
      piVar1[3] = iVar4;
      piVar1[4] = (int)(piVar1 + 9);
      *piVar1 = iVar2;
      piVar1[2] = (int)(short)unaff_retaddr;
      piVar1[1] = 0;
      piVar1[9] = (int)(piVar1 + 5);
      piVar1[10] = 0;
      uVar3 = FUN_00056790(piVar1,param_5);
      (**(code **)(unaff_EBX + 0x60703))(iVar2);
      (**(code **)(unaff_EBX + 0x60703))(piVar1);
    }
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x5fe77
SUB ESP,0x28
MOV EDI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x40]
PUSH 0x2c
LEA EAX,[EBX + 0x890]
CALL dword ptr [EAX]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00056a78
SUB ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0x884]
PUSH dword ptr [ESP + 0x44]
CALL dword ptr [EAX]
MOV EDX,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00056a80
CMP EDI,0x2
JZ 0x00056a60
CMP EDI,0xa
JNZ 0x00056a38
MOV ECX,dword ptr [EBP]
LEA EAX,[ESI + 0x14]
MOV dword ptr [ESI + 0x14],ECX
MOV ECX,dword ptr [EBP + 0x4]
MOV dword ptr [EAX + 0x4],ECX
MOV ECX,dword ptr [EBP + 0x8]
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [EBP + 0xc]
MOV dword ptr [EAX + 0xc],ECX
MOV ECX,0x10
MOV dword ptr [ESP + 0xc],EDX
MOVSX EDI,DI
SUB ESP,0x8
MOV dword ptr [ESI + 0xc],ECX
LEA ECX,[ESI + 0x24]
MOV dword ptr [ESI + 0x10],ECX
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x8],EDI
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x24],EAX
MOV dword ptr [ESI + 0x28],0x0
PUSH dword ptr [ESP + 0x44]
PUSH ESI
CALL 0x00056790
MOV EDX,dword ptr [ESP + 0x1c]
LEA EBX,[EBX + 0x88c]
MOV EDI,EAX
MOV dword ptr [ESP],EDX
CALL dword ptr [EBX]
MOV dword ptr [ESP],ESI
CALL dword ptr [EBX]
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EBX,[EBX + 0x88c]
XOR EDI,EDI
PUSH EAX
CALL dword ptr [EBX]
MOV dword ptr [ESP],ESI
CALL dword ptr [EBX]
ADD ESP,0x10
MOV EAX,EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EBP]
LEA EAX,[ESI + 0x14]
MOV dword ptr [ESI + 0x14],ECX
MOV ECX,0x4
JMP 0x000569db
XOR EDI,EDI
JMP 0x00056a27
SUB ESP,0xc
LEA EAX,[EBX + 0x88c]
XOR EDI,EDI
PUSH ESI
CALL dword ptr [EAX]
ADD ESP,0x10
JMP 0x00056a27
(translation_unit "undefined4 __regparm2\nFUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x56969);" (call_expression "entry(param_2,0x56969)" identifier (argument_list "(param_2,0x56969)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);" (assignment_expression "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" identifier = (cast_expression "(int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x60707))(0x2c)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60707))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60707)" * (pointer_expression "*(code **)(unaff_EBX + 0x60707)" * (cast_expression "(code **)(unaff_EBX + 0x60707)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60707)" ( (binary_expression "unaff_EBX + 0x60707" identifier + number_literal) ))))) )) (argument_list "(0x2c)" ( number_literal ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x606fb))(param_4)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x606fb))" ( (pointer_expression "**(code **)(unaff_EBX + 0x606fb)" * (pointer_expression "*(code **)(unaff_EBX + 0x606fb)" * (cast_expression "(code **)(unaff_EBX + 0x606fb)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x606fb)" ( (binary_expression "unaff_EBX + 0x606fb" identifier + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }) (else_clause "else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" else (compound_statement "{\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" { (if_statement "if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" if (parenthesized_expression "(unaff_retaddr == 2)" ( (binary_expression "unaff_retaddr == 2" identifier == number_literal) )) (compound_statement "{\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }" { (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) }) (else_clause "else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" else (compound_statement "{\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" { (if_statement "if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" if (parenthesized_expression "(unaff_retaddr != 10)" ( (binary_expression "unaff_retaddr != 10" identifier != number_literal) )) (compound_statement "{\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" { (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "piVar1[6] = param_3[1];" (assignment_expression "piVar1[6] = param_3[1]" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1[7] = param_3[2];" (assignment_expression "piVar1[7] = param_3[2]" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar1[8] = param_3[3];" (assignment_expression "piVar1[8] = param_3[3]" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) }))) (expression_statement "piVar1[3] = iVar4;" (assignment_expression "piVar1[3] = iVar4" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = (int)(piVar1 + 9);" (assignment_expression "piVar1[4] = (int)(piVar1 + 9)" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 9)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 9)" ( (binary_expression "piVar1 + 9" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[2] = (int)(short)unaff_retaddr;" (assignment_expression "piVar1[2] = (int)(short)unaff_retaddr" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(short)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)unaff_retaddr" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[9] = (int)(piVar1 + 5);" (assignment_expression "piVar1[9] = (int)(piVar1 + 5)" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) ;) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = FUN_00056790(piVar1,param_5);" (assignment_expression "uVar3 = FUN_00056790(piVar1,param_5)" identifier = (call_expression "FUN_00056790(piVar1,param_5)" identifier (argument_list "(piVar1,param_5)" ( identifier , identifier )))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nCurl_addrinfo * Curl_ip2addr(int af,void *inaddr,char *hostname,int port)\n\n{\n  hostent *he;\n  char *pcVar1;\n  Curl_addrinfo *pCVar2;\n  int iVar3;\n  \n  he = (hostent *)(*Curl_cmalloc)(0x2c);\n  if (he == (hostent *)0x0) {\n    pCVar2 = (Curl_addrinfo *)0x0;\n  }\n  else {\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }\n  return pCVar2;\n}\n\n" comment comment (function_definition "Curl_addrinfo * Curl_ip2addr(int af,void *inaddr,char *hostname,int port)\n\n{\n  hostent *he;\n  char *pcVar1;\n  Curl_addrinfo *pCVar2;\n  int iVar3;\n  \n  he = (hostent *)(*Curl_cmalloc)(0x2c);\n  if (he == (hostent *)0x0) {\n    pCVar2 = (Curl_addrinfo *)0x0;\n  }\n  else {\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }\n  return pCVar2;\n}" type_identifier (pointer_declarator "* Curl_ip2addr(int af,void *inaddr,char *hostname,int port)" * (function_declarator "Curl_ip2addr(int af,void *inaddr,char *hostname,int port)" identifier (parameter_list "(int af,void *inaddr,char *hostname,int port)" ( (parameter_declaration "int af" primitive_type identifier) , (parameter_declaration "void *inaddr" primitive_type (pointer_declarator "*inaddr" * identifier)) , (parameter_declaration "char *hostname" primitive_type (pointer_declarator "*hostname" * identifier)) , (parameter_declaration "int port" primitive_type identifier) )))) (compound_statement "{\n  hostent *he;\n  char *pcVar1;\n  Curl_addrinfo *pCVar2;\n  int iVar3;\n  \n  he = (hostent *)(*Curl_cmalloc)(0x2c);\n  if (he == (hostent *)0x0) {\n    pCVar2 = (Curl_addrinfo *)0x0;\n  }\n  else {\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }\n  return pCVar2;\n}" { (declaration "hostent *he;" type_identifier (pointer_declarator "*he" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "Curl_addrinfo *pCVar2;" type_identifier (pointer_declarator "*pCVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "he = (hostent *)(*Curl_cmalloc)(0x2c);" (assignment_expression "he = (hostent *)(*Curl_cmalloc)(0x2c)" identifier = (cast_expression "(hostent *)(*Curl_cmalloc)(0x2c)" ( (type_descriptor "hostent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*Curl_cmalloc)(0x2c)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(0x2c)" ( number_literal ))))) ;) (if_statement "if (he == (hostent *)0x0) {\n    pCVar2 = (Curl_addrinfo *)0x0;\n  }\n  else {\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }" if (parenthesized_expression "(he == (hostent *)0x0)" ( (binary_expression "he == (hostent *)0x0" identifier == (cast_expression "(hostent *)0x0" ( (type_descriptor "hostent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pCVar2 = (Curl_addrinfo *)0x0;\n  }" { (expression_statement "pCVar2 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar2 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }" else (compound_statement "{\n    pcVar1 = (*Curl_cstrdup)(hostname);\n    if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }\n  }" { (expression_statement "pcVar1 = (*Curl_cstrdup)(hostname);" (assignment_expression "pcVar1 = (*Curl_cstrdup)(hostname)" identifier = (call_expression "(*Curl_cstrdup)(hostname)" (parenthesized_expression "(*Curl_cstrdup)" ( (pointer_expression "*Curl_cstrdup" * identifier) )) (argument_list "(hostname)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }\n    else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pCVar2 = (Curl_addrinfo *)0x0;\n      (*Curl_cfree)(he);\n    }" { (expression_statement "pCVar2 = (Curl_addrinfo *)0x0;" (assignment_expression "pCVar2 = (Curl_addrinfo *)0x0" identifier = (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*Curl_cfree)(he);" (call_expression "(*Curl_cfree)(he)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(he)" ( identifier ))) ;) }) (else_clause "else {\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }" else (compound_statement "{\n      if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }\n      he->h_length = iVar3;\n      he->h_addr_list = (char **)&he[1].h_addr_list;\n      he->h_name = pcVar1;\n      he->h_addrtype = (int)(short)af;\n      he->h_aliases = (char **)0x0;\n      he[1].h_addr_list = &he[1].h_name;\n      he[2].h_name = (char *)0x0;\n      pCVar2 = Curl_he2ai(he,port);\n      (*Curl_cfree)(pcVar1);\n      (*Curl_cfree)(he);\n    }" { (if_statement "if (af == 2) {\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }\n      else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }" if (parenthesized_expression "(af == 2)" ( (binary_expression "af == 2" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        iVar3 = 4;\n      }" { comment (expression_statement "he[1].h_name = *inaddr;" (assignment_expression "he[1].h_name = *inaddr" (field_expression "he[1].h_name" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*inaddr" * identifier)) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) }) (else_clause "else {\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }" else (compound_statement "{\n        if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }\n                    /* WARNING: Load size is inaccurate */\n        he[1].h_name = *inaddr;\n        he[1].h_aliases = *(char ***)((int)inaddr + 4);\n        he[1].h_addrtype = *(int *)((int)inaddr + 8);\n        he[1].h_length = *(int *)((int)inaddr + 0xc);\n        iVar3 = 0x10;\n      }" { (if_statement "if (af != 10) {\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }" if (parenthesized_expression "(af != 10)" ( (binary_expression "af != 10" identifier != number_literal) )) (compound_statement "{\n          (*Curl_cfree)(pcVar1);\n          (*Curl_cfree)(he);\n          return (Curl_addrinfo *)0x0;\n        }" { (expression_statement "(*Curl_cfree)(pcVar1);" (call_expression "(*Curl_cfree)(pcVar1)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "(*Curl_cfree)(he);" (call_expression "(*Curl_cfree)(he)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(he)" ( identifier ))) ;) (return_statement "return (Curl_addrinfo *)0x0;" return (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) comment (expression_statement "he[1].h_name = *inaddr;" (assignment_expression "he[1].h_name = *inaddr" (field_expression "he[1].h_name" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*inaddr" * identifier)) ;) (expression_statement "he[1].h_aliases = *(char ***)((int)inaddr + 4);" (assignment_expression "he[1].h_aliases = *(char ***)((int)inaddr + 4)" (field_expression "he[1].h_aliases" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*(char ***)((int)inaddr + 4)" * (cast_expression "(char ***)((int)inaddr + 4)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "((int)inaddr + 4)" ( (binary_expression "(int)inaddr + 4" (cast_expression "(int)inaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "he[1].h_addrtype = *(int *)((int)inaddr + 8);" (assignment_expression "he[1].h_addrtype = *(int *)((int)inaddr + 8)" (field_expression "he[1].h_addrtype" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*(int *)((int)inaddr + 8)" * (cast_expression "(int *)((int)inaddr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)inaddr + 8)" ( (binary_expression "(int)inaddr + 8" (cast_expression "(int)inaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "he[1].h_length = *(int *)((int)inaddr + 0xc);" (assignment_expression "he[1].h_length = *(int *)((int)inaddr + 0xc)" (field_expression "he[1].h_length" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*(int *)((int)inaddr + 0xc)" * (cast_expression "(int *)((int)inaddr + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)inaddr + 0xc)" ( (binary_expression "(int)inaddr + 0xc" (cast_expression "(int)inaddr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = 0x10;" (assignment_expression "iVar3 = 0x10" identifier = number_literal) ;) }))) (expression_statement "he->h_length = iVar3;" (assignment_expression "he->h_length = iVar3" (field_expression "he->h_length" identifier -> field_identifier) = identifier) ;) (expression_statement "he->h_addr_list = (char **)&he[1].h_addr_list;" (assignment_expression "he->h_addr_list = (char **)&he[1].h_addr_list" (field_expression "he->h_addr_list" identifier -> field_identifier) = (cast_expression "(char **)&he[1].h_addr_list" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&he[1].h_addr_list" & (field_expression "he[1].h_addr_list" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier)))) ;) (expression_statement "he->h_name = pcVar1;" (assignment_expression "he->h_name = pcVar1" (field_expression "he->h_name" identifier -> field_identifier) = identifier) ;) (expression_statement "he->h_addrtype = (int)(short)af;" (assignment_expression "he->h_addrtype = (int)(short)af" (field_expression "he->h_addrtype" identifier -> field_identifier) = (cast_expression "(int)(short)af" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)af" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "he->h_aliases = (char **)0x0;" (assignment_expression "he->h_aliases = (char **)0x0" (field_expression "he->h_aliases" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "he[1].h_addr_list = &he[1].h_name;" (assignment_expression "he[1].h_addr_list = &he[1].h_name" (field_expression "he[1].h_addr_list" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&he[1].h_name" & (field_expression "he[1].h_name" (subscript_expression "he[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "he[2].h_name = (char *)0x0;" (assignment_expression "he[2].h_name = (char *)0x0" (field_expression "he[2].h_name" (subscript_expression "he[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCVar2 = Curl_he2ai(he,port);" (assignment_expression "pCVar2 = Curl_he2ai(he,port)" identifier = (call_expression "Curl_he2ai(he,port)" identifier (argument_list "(he,port)" ( identifier , identifier )))) ;) (expression_statement "(*Curl_cfree)(pcVar1);" (call_expression "(*Curl_cfree)(pcVar1)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "(*Curl_cfree)(he);" (call_expression "(*Curl_cfree)(he)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(he)" ( identifier ))) ;) }))) }))) (return_statement "return pCVar2;" return identifier ;) })))
(translation_unit "undefined4 __regparm2\nFUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x56969);" (call_expression "entry(param_2,0x56969)" identifier (argument_list "(param_2,0x56969)" ( identifier , number_literal ))) ;) (expression_statement "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);" (assignment_expression "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" identifier = (cast_expression "(int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x60707))(0x2c)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60707))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60707)" * (pointer_expression "*(code **)(unaff_EBX + 0x60707)" * (cast_expression "(code **)(unaff_EBX + 0x60707)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60707)" ( (binary_expression "unaff_EBX + 0x60707" identifier + number_literal) ))))) )) (argument_list "(0x2c)" ( number_literal ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x606fb))(param_4)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x606fb))" ( (pointer_expression "**(code **)(unaff_EBX + 0x606fb)" * (pointer_expression "*(code **)(unaff_EBX + 0x606fb)" * (cast_expression "(code **)(unaff_EBX + 0x606fb)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x606fb)" ( (binary_expression "unaff_EBX + 0x606fb" identifier + number_literal) ))))) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }) (else_clause "else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" else (compound_statement "{\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" { (if_statement "if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" if (parenthesized_expression "(unaff_retaddr == 2)" ( (binary_expression "unaff_retaddr == 2" identifier == number_literal) )) (compound_statement "{\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }" { (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) }) (else_clause "else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" else (compound_statement "{\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" { (if_statement "if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" if (parenthesized_expression "(unaff_retaddr != 10)" ( (binary_expression "unaff_retaddr != 10" identifier != number_literal) )) (compound_statement "{\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" { (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "piVar1[6] = param_3[1];" (assignment_expression "piVar1[6] = param_3[1]" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1[7] = param_3[2];" (assignment_expression "piVar1[7] = param_3[2]" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar1[8] = param_3[3];" (assignment_expression "piVar1[8] = param_3[3]" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) }))) (expression_statement "piVar1[3] = iVar4;" (assignment_expression "piVar1[3] = iVar4" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = (int)(piVar1 + 9);" (assignment_expression "piVar1[4] = (int)(piVar1 + 9)" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 9)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 9)" ( (binary_expression "piVar1 + 9" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[2] = (int)(short)unaff_retaddr;" (assignment_expression "piVar1[2] = (int)(short)unaff_retaddr" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(short)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)unaff_retaddr" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[9] = (int)(piVar1 + 5);" (assignment_expression "piVar1[9] = (int)(piVar1 + 5)" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = (cast_expression "(int)(piVar1 + 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) ;) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = FUN_00056790(piVar1,param_5);" (assignment_expression "uVar3 = FUN_00056790(piVar1,param_5)" identifier = (call_expression "FUN_00056790(piVar1,param_5)" identifier (argument_list "(piVar1,param_5)" ( identifier , identifier )))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" ( (pointer_expression "**(code **)(unaff_EBX + 0x60703)" * (pointer_expression "*(code **)(unaff_EBX + 0x60703)" * (cast_expression "(code **)(unaff_EBX + 0x60703)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x60703)" ( (binary_expression "unaff_EBX + 0x60703" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm2\nFUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00056960(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" (identifier "FUN_00056960") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,\n            undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  entry(param_2,0x56969);\n  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);\n  if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x56969);" (call_expression "entry(param_2,0x56969)" (identifier "entry") (argument_list "(param_2,0x56969)" (( "(") (identifier "param_2") (, ",") (number_literal "0x56969") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);" (assignment_expression "piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" (identifier "piVar1") (= "=") (cast_expression "(int *)(**(code **)(unaff_EBX + 0x60707))(0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(unaff_EBX + 0x60707))(0x2c)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60707))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60707)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60707)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60707)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60707)" (( "(") (binary_expression "unaff_EBX + 0x60707" (identifier "unaff_EBX") (+ "+") (number_literal "0x60707")) () ")"))))) () ")")) (argument_list "(0x2c)" (( "(") (number_literal "0x2c") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar3 = 0;\n  }\n  else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(unaff_EBX + 0x606fb))(param_4)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x606fb))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x606fb)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x606fb)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x606fb)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x606fb)" (( "(") (binary_expression "unaff_EBX + 0x606fb" (identifier "unaff_EBX") (+ "+") (number_literal "0x606fb")) () ")"))))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }\n    else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60703)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60703)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60703)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60703)" (( "(") (binary_expression "unaff_EBX + 0x60703" (identifier "unaff_EBX") (+ "+") (number_literal "0x60703")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" (else "else") (compound_statement "{\n      if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }\n      piVar1[3] = iVar4;\n      piVar1[4] = (int)(piVar1 + 9);\n      *piVar1 = iVar2;\n      piVar1[2] = (int)(short)unaff_retaddr;\n      piVar1[1] = 0;\n      piVar1[9] = (int)(piVar1 + 5);\n      piVar1[10] = 0;\n      uVar3 = FUN_00056790(piVar1,param_5);\n      (**(code **)(unaff_EBX + 0x60703))(iVar2);\n      (**(code **)(unaff_EBX + 0x60703))(piVar1);\n    }" ({ "{") (if_statement "if (unaff_retaddr == 2) {\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }\n      else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" (if "if") (parenthesized_expression "(unaff_retaddr == 2)" (( "(") (binary_expression "unaff_retaddr == 2" (identifier "unaff_retaddr") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        piVar1[5] = *param_3;\n        iVar4 = 4;\n      }" ({ "{") (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" (identifier "iVar4") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" (else "else") (compound_statement "{\n        if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }\n        piVar1[5] = *param_3;\n        piVar1[6] = param_3[1];\n        piVar1[7] = param_3[2];\n        piVar1[8] = param_3[3];\n        iVar4 = 0x10;\n      }" ({ "{") (if_statement "if (unaff_retaddr != 10) {\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" (if "if") (parenthesized_expression "(unaff_retaddr != 10)" (( "(") (binary_expression "unaff_retaddr != 10" (identifier "unaff_retaddr") (!= "!=") (number_literal "10")) () ")")) (compound_statement "{\n          (**(code **)(unaff_EBX + 0x60703))(iVar2);\n          (**(code **)(unaff_EBX + 0x60703))(piVar1);\n          return 0;\n        }" ({ "{") (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60703)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60703)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60703)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60703)" (( "(") (binary_expression "unaff_EBX + 0x60703" (identifier "unaff_EBX") (+ "+") (number_literal "0x60703")) () ")"))))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60703)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60703)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60703)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60703)" (( "(") (binary_expression "unaff_EBX + 0x60703" (identifier "unaff_EBX") (+ "+") (number_literal "0x60703")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar1[5] = *param_3;" (assignment_expression "piVar1[5] = *param_3" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "piVar1[6] = param_3[1];" (assignment_expression "piVar1[6] = param_3[1]" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar1[7] = param_3[2];" (assignment_expression "piVar1[7] = param_3[2]" (subscript_expression "piVar1[7]" (identifier "piVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar1[8] = param_3[3];" (assignment_expression "piVar1[8] = param_3[3]" (subscript_expression "piVar1[8]" (identifier "piVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" (identifier "iVar4") (= "=") (number_literal "0x10")) (; ";")) (} "}")))) (expression_statement "piVar1[3] = iVar4;" (assignment_expression "piVar1[3] = iVar4" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar1[4] = (int)(piVar1 + 9);" (assignment_expression "piVar1[4] = (int)(piVar1 + 9)" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)(piVar1 + 9)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 9)" (( "(") (binary_expression "piVar1 + 9" (identifier "piVar1") (+ "+") (number_literal "9")) () ")")))) (; ";")) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar1[2] = (int)(short)unaff_retaddr;" (assignment_expression "piVar1[2] = (int)(short)unaff_retaddr" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(short)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(short)unaff_retaddr" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "unaff_retaddr")))) (; ";")) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[9] = (int)(piVar1 + 5);" (assignment_expression "piVar1[9] = (int)(piVar1 + 5)" (subscript_expression "piVar1[9]" (identifier "piVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(int)(piVar1 + 5)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "piVar1[10] = 0;" (assignment_expression "piVar1[10] = 0" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = FUN_00056790(piVar1,param_5);" (assignment_expression "uVar3 = FUN_00056790(piVar1,param_5)" (identifier "uVar3") (= "=") (call_expression "FUN_00056790(piVar1,param_5)" (identifier "FUN_00056790") (argument_list "(piVar1,param_5)" (( "(") (identifier "piVar1") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(iVar2);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(iVar2)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60703)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60703)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60703)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60703)" (( "(") (binary_expression "unaff_EBX + 0x60703" (identifier "unaff_EBX") (+ "+") (number_literal "0x60703")) () ")"))))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(**(code **)(unaff_EBX + 0x60703))(piVar1);" (call_expression "(**(code **)(unaff_EBX + 0x60703))(piVar1)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x60703))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x60703)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x60703)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x60703)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x60703)" (( "(") (binary_expression "unaff_EBX + 0x60703" (identifier "unaff_EBX") (+ "+") (number_literal "0x60703")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(int var_3,void *inaddr,char *hostname,int port)

{
  type_2 *var_1;
  char *var_2;
  type_1 *pCVar2;
  int iVar3;
  
  var_1 = (type_2 *)(*Curl_cmalloc)(0x2c);
  if (var_1 == (type_2 *)0x0) {
    pCVar2 = (type_1 *)0x0;
  }
  else {
    var_2 = (*Curl_cstrdup)(hostname);
    if (var_2 == (char *)0x0) {
      pCVar2 = (type_1 *)0x0;
      (*Curl_cfree)(var_1);
    }
    else {
      if (var_3 == 2) {
                    /* WARNING: Load size is inaccurate */
        var_1[1].h_name = *inaddr;
        iVar3 = 4;
      }
      else {
        if (var_3 != 10) {
          (*Curl_cfree)(var_2);
          (*Curl_cfree)(var_1);
          return (type_1 *)0x0;
        }
                    /* WARNING: Load size is inaccurate */
        var_1[1].h_name = *inaddr;
        var_1[1].h_aliases = *(char ***)((int)inaddr + 4);
        var_1[1].h_addrtype = *(int *)((int)inaddr + 8);
        var_1[1].h_length = *(int *)((int)inaddr + 0xc);
        iVar3 = 0x10;
      }
      var_1->h_length = iVar3;
      var_1->h_addr_list = (char **)&var_1[1].h_addr_list;
      var_1->h_name = var_2;
      var_1->h_addrtype = (int)(short)var_3;
      var_1->h_aliases = (char **)0x0;
      var_1[1].h_addr_list = &var_1[1].h_name;
      var_1[2].h_name = (char *)0x0;
      pCVar2 = var_4(var_1,port);
      (*Curl_cfree)(var_2);
      (*Curl_cfree)(var_1);
    }
  }
  return pCVar2;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))))))))) (return_statement (identifier)))))

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 param_4,
            undefined4 param_5)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EBX;
  int unaff_retaddr;
  
  entry(param_2,0x56969);
  piVar1 = (int *)(**(code **)(unaff_EBX + 0x60707))(0x2c);
  if (piVar1 == (int *)0x0) {
    uVar3 = 0;
  }
  else {
    iVar2 = (**(code **)(unaff_EBX + 0x606fb))(param_4);
    if (iVar2 == 0) {
      uVar3 = 0;
      (**(code **)(unaff_EBX + 0x60703))(piVar1);
    }
    else {
      if (unaff_retaddr == 2) {
        piVar1[5] = *param_3;
        iVar4 = 4;
      }
      else {
        if (unaff_retaddr != 10) {
          (**(code **)(unaff_EBX + 0x60703))(iVar2);
          (**(code **)(unaff_EBX + 0x60703))(piVar1);
          return 0;
        }
        piVar1[5] = *param_3;
        piVar1[6] = param_3[1];
        piVar1[7] = param_3[2];
        piVar1[8] = param_3[3];
        iVar4 = 0x10;
      }
      piVar1[3] = iVar4;
      piVar1[4] = (int)(piVar1 + 9);
      *piVar1 = iVar2;
      piVar1[2] = (int)(short)unaff_retaddr;
      piVar1[1] = 0;
      piVar1[9] = (int)(piVar1 + 5);
      piVar1[10] = 0;
      uVar3 = FUN_00056790(piVar1,param_5);
      (**(code **)(unaff_EBX + 0x60703))(iVar2);
      (**(code **)(unaff_EBX + 0x60703))(piVar1);
    }
  }
  return uVar3;
}

