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

void __regparm3
def_import(char *internal_name,char *module,char *dllext,char *name,int ordinal,char *its_name)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  int is_dup;
  undefined4 uStack_14;
  
  uStack_14 = 0x5919d;
  is_dup = 0;
  if (dllext == (char *)0x0) {
    dllext = "dll";
  }
  sVar1 = strlen(module);
  sVar2 = strlen(dllext);
  __s = (char *)xmalloc(sVar1 + 2 + sVar2);
  sprintf(__s,"%s.%s",module,dllext);
  def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup);
  free(__s);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3
FUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  undefined4 local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x5919d;
  local_20[0] = 0;
  if (param_3 == (char *)0x0) {
    param_3 = "dll";
  }
  sVar1 = strlen(param_2);
  sVar2 = strlen(param_3);
  __s = (char *)xmalloc(sVar1 + 2 + sVar2);
  sprintf(__s,"%s.%s",param_2,param_3);
  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);
  free(__s);
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00017b80
ADD EBX,0x174e63
SUB ESP,0x38
TEST ECX,ECX
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x28],0x0
PUSH EDX
LEA EAX,[EBX + 0xfffc5073]
CMOVZ ESI,EAX
CALL 0x00016760
MOV EDI,EAX
MOV dword ptr [ESP],ESI
CALL 0x00016760
LEA EAX,[EDI + EAX*0x1 + 0x2]
MOV dword ptr [ESP],EAX
CALL 0x00016dc8
PUSH ESI
MOV EDI,EAX
LEA EAX,[EBX + 0xfffde1fc]
PUSH EBP
PUSH EAX
PUSH EDI
CALL 0x00016af0
ADD ESP,0x1c
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x54]
PUSH EDI
PUSH dword ptr [ESP + 0x58]
PUSH dword ptr [EBX + 0x211c]
CALL 0x00059050
ADD ESP,0x14
PUSH EDI
CALL 0x00016db0
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}\n\n" comment (function_definition "void __regparm3\nFUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *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) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5919d;" (assignment_expression "uStack_14 = 0x5919d" identifier = number_literal) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = "dll";\n  }" { (expression_statement "param_3 = "dll";" (assignment_expression "param_3 = "dll"" identifier = (string_literal ""dll"" " string_content ")) ;) })) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 2 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 2 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 2 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s.%s",param_2,param_3);" (call_expression "sprintf(__s,"%s.%s",param_2,param_3)" identifier (argument_list "(__s,"%s.%s",param_2,param_3)" ( identifier , (string_literal ""%s.%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);" (call_expression "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" identifier (argument_list "(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\ndef_import(char *internal_name,char *module,char *dllext,char *name,int ordinal,char *its_name)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int is_dup;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  is_dup = 0;\n  if (dllext == (char *)0x0) {\n    dllext = "dll";\n  }\n  sVar1 = strlen(module);\n  sVar2 = strlen(dllext);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",module,dllext);\n  def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup);\n  free(__s);\n  return;\n}\n\n" comment (function_definition "void __regparm3\ndef_import(char *internal_name,char *module,char *dllext,char *name,int ordinal,char *its_name)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int is_dup;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  is_dup = 0;\n  if (dllext == (char *)0x0) {\n    dllext = "dll";\n  }\n  sVar1 = strlen(module);\n  sVar2 = strlen(dllext);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",module,dllext);\n  def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup);\n  free(__s);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "def_import(char *internal_name,char *module,char *dllext,char *name,int ordinal,char *its_name)" identifier (parameter_list "(char *internal_name,char *module,char *dllext,char *name,int ordinal,char *its_name)" ( (parameter_declaration "char *internal_name" primitive_type (pointer_declarator "*internal_name" * identifier)) , (parameter_declaration "char *module" primitive_type (pointer_declarator "*module" * identifier)) , (parameter_declaration "char *dllext" primitive_type (pointer_declarator "*dllext" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int ordinal" primitive_type identifier) , (parameter_declaration "char *its_name" primitive_type (pointer_declarator "*its_name" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int is_dup;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  is_dup = 0;\n  if (dllext == (char *)0x0) {\n    dllext = "dll";\n  }\n  sVar1 = strlen(module);\n  sVar2 = strlen(dllext);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",module,dllext);\n  def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup);\n  free(__s);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int is_dup;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5919d;" (assignment_expression "uStack_14 = 0x5919d" identifier = number_literal) ;) (expression_statement "is_dup = 0;" (assignment_expression "is_dup = 0" identifier = number_literal) ;) (if_statement "if (dllext == (char *)0x0) {\n    dllext = "dll";\n  }" if (parenthesized_expression "(dllext == (char *)0x0)" ( (binary_expression "dllext == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    dllext = "dll";\n  }" { (expression_statement "dllext = "dll";" (assignment_expression "dllext = "dll"" identifier = (string_literal ""dll"" " string_content ")) ;) })) (expression_statement "sVar1 = strlen(module);" (assignment_expression "sVar1 = strlen(module)" identifier = (call_expression "strlen(module)" identifier (argument_list "(module)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(dllext);" (assignment_expression "sVar2 = strlen(dllext)" identifier = (call_expression "strlen(dllext)" identifier (argument_list "(dllext)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 2 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 2 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 2 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s.%s",module,dllext);" (call_expression "sprintf(__s,"%s.%s",module,dllext)" identifier (argument_list "(__s,"%s.%s",module,dllext)" ( identifier , (string_literal ""%s.%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup);" (call_expression "def_file_add_import(def,name,__s,ordinal,internal_name,its_name,&is_dup)" identifier (argument_list "(def,name,__s,ordinal,internal_name,its_name,&is_dup)" ( identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&is_dup" & identifier) ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *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) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5919d;" (assignment_expression "uStack_14 = 0x5919d" identifier = number_literal) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = "dll";\n  }" { (expression_statement "param_3 = "dll";" (assignment_expression "param_3 = "dll"" identifier = (string_literal ""dll"" " string_content ")) ;) })) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 2 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 2 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 2 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s.%s",param_2,param_3);" (call_expression "sprintf(__s,"%s.%s",param_2,param_3)" identifier (argument_list "(__s,"%s.%s",param_2,param_3)" ( identifier , (string_literal ""%s.%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);" (call_expression "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" identifier (argument_list "(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00059190(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_00059190") (parameter_list "(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (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")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5919d;\n  local_20[0] = 0;\n  if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }\n  sVar1 = strlen(param_2);\n  sVar2 = strlen(param_3);\n  __s = (char *)xmalloc(sVar1 + 2 + sVar2);\n  sprintf(__s,"%s.%s",param_2,param_3);\n  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);\n  free(__s);\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 local_20 [3];" (type_identifier "undefined4") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5919d;" (assignment_expression "uStack_14 = 0x5919d" (identifier "uStack_14") (= "=") (number_literal "0x5919d")) (; ";")) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == (char *)0x0) {\n    param_3 = "dll";\n  }" (if "if") (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_3 = "dll";\n  }" ({ "{") (expression_statement "param_3 = "dll";" (assignment_expression "param_3 = "dll"" (identifier "param_3") (= "=") (string_literal ""dll"" (" """) (string_content "dll") (" """))) (; ";")) (} "}"))) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" (identifier "sVar2") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "__s = (char *)xmalloc(sVar1 + 2 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 2 + sVar2)" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 2 + sVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 2 + sVar2)" (identifier "xmalloc") (argument_list "(sVar1 + 2 + sVar2)" (( "(") (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" (identifier "sVar1") (+ "+") (number_literal "2")) (+ "+") (identifier "sVar2")) () ")"))))) (; ";")) (expression_statement "sprintf(__s,"%s.%s",param_2,param_3);" (call_expression "sprintf(__s,"%s.%s",param_2,param_3)" (identifier "sprintf") (argument_list "(__s,"%s.%s",param_2,param_3)" (( "(") (identifier "__s") (, ",") (string_literal ""%s.%s"" (" """) (string_content "%s.%s") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);" (call_expression "FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" (identifier "FUN_00059050") (argument_list "(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20)" (( "(") (identifier "DAT_001d011c") (, ",") (identifier "param_4") (, ",") (identifier "__s") (, ",") (identifier "param_5") (, ",") (identifier "param_1") (, ",") (identifier "param_6") (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3
function_1(char *internal_name,char *module,char *var_1,char *name,int ordinal,char *its_name)

{
  size_t var_4;
  size_t var_5;
  char *__s;
  int is_dup;
  type_1 uStack_14;
  
  uStack_14 = 0x5919d;
  is_dup = 0;
  if (var_1 == (char *)0x0) {
    var_1 = "dll";
  }
  var_4 = var_2(module);
  var_5 = var_2(var_1);
  __s = (char *)var_3(var_4 + 2 + var_5);
  var_6(__s,"%s.%s",module,var_1);
  var_7(def,name,__s,ordinal,internal_name,its_name,&is_dup);
  var_8(__s);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3
MASKED(undefined4 param_1,char *param_2,char *param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  undefined4 local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x5919d;
  local_20[0] = 0;
  if (param_3 == (char *)0x0) {
    param_3 = "dll";
  }
  sVar1 = strlen(param_2);
  sVar2 = strlen(param_3);
  __s = (char *)xmalloc(sVar1 + 2 + sVar2);
  sprintf(__s,"%s.%s",param_2,param_3);
  FUN_00059050(DAT_001d011c,param_4,__s,param_5,param_1,param_6,local_20);
  free(__s);
  return;
}

