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

int ftp_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)

{
  int iVar1;
  
  iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks);
  return iVar1;
}



void __regparm2
FUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int unaff_retaddr;
  
  entry(param_2,0x27d56);
  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);
  return;
}


PUSH EBX
CALL 0x00019ed0
ADD EBX,0x88a8a
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x1c]
ADD EAX,0x4a4
PUSH EAX
CALL 0x00058950
ADD ESP,0x18
POP EBX
RET
(translation_unit "void __regparm2\nFUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x27d56);" (call_expression "entry(param_2,0x27d56)" identifier (argument_list "(param_2,0x27d56)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);" (call_expression "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4)" identifier (argument_list "(unaff_retaddr + 0x4a4,param_3,param_4)" ( (binary_expression "unaff_retaddr + 0x4a4" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ftp_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  int iVar1;\n  \n  iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks);\n  return iVar1;\n}\n\n" comment comment comment (function_definition "int ftp_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  int iVar1;\n  \n  iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks);\n  return iVar1;\n}" primitive_type (function_declarator "ftp_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)" identifier (parameter_list "(connectdata *conn,curl_socket_t *socks,int numsocks)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "curl_socket_t *socks" type_identifier (pointer_declarator "*socks" * identifier)) , (parameter_declaration "int numsocks" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks);" (assignment_expression "iVar1 = Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks)" identifier = (call_expression "Curl_pp_getsock(&(conn->proto).ftpc.pp,socks,numsocks)" identifier (argument_list "(&(conn->proto).ftpc.pp,socks,numsocks)" ( (pointer_expression "&(conn->proto).ftpc.pp" & (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void __regparm2\nFUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x27d56);" (call_expression "entry(param_2,0x27d56)" identifier (argument_list "(param_2,0x27d56)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);" (call_expression "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4)" identifier (argument_list "(unaff_retaddr + 0x4a4,param_3,param_4)" ( (binary_expression "unaff_retaddr + 0x4a4" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\nFUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00027d50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00027d50") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x27d56);\n  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);\n  return;\n}" ({ "{") (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x27d56);" (call_expression "entry(param_2,0x27d56)" (identifier "entry") (argument_list "(param_2,0x27d56)" (( "(") (identifier "param_2") (, ",") (number_literal "0x27d56") () ")"))) (; ";")) (expression_statement "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);" (call_expression "FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4)" (identifier "FUN_00058950") (argument_list "(unaff_retaddr + 0x4a4,param_3,param_4)" (( "(") (binary_expression "unaff_retaddr + 0x4a4" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4a4")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(type_1 *conn,type_2 *socks,int numsocks)

{
  int iVar1;
  
  iVar1 = var_1(&(conn->proto).ftpc.pp,socks,numsocks);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (return_statement))))

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int unaff_retaddr;
  
  entry(param_2,0x27d56);
  FUN_00058950(unaff_retaddr + 0x4a4,param_3,param_4);
  return;
}

