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

void ldlang_add_require_defined(char *name)

{
  require_defined_symbol *prVar1;
  char *pcVar2;
  
  ldlang_add_undef(name,1);
  prVar1 = (require_defined_symbol *)stat_alloc(8);
  prVar1->next = require_defined_symbol_list;
  pcVar2 = strdup(name);
  require_defined_symbol_list = prVar1;
  prVar1->name = pcVar2;
  return;
}



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

void FUN_000246a0(char *param_1)

{
  undefined4 *puVar1;
  char *pcVar2;
  
  FUN_00024630(param_1,1);
  puVar1 = (undefined4 *)FUN_000211a0(8);
  puVar1[1] = DAT_0009491c;
  pcVar2 = strdup(param_1);
  DAT_0009491c = puVar1;
  *puVar1 = pcVar2;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00015a10
ADD EBX,0x6f954
SUB ESP,0x8
PUSH 0x1
PUSH EDI
CALL 0x00024630
MOV dword ptr [ESP],0x8
CALL 0x000211a0
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0x91c]
MOV dword ptr [ESI + 0x4],EAX
MOV dword ptr [ESP],EDI
CALL 0x000141e0
ADD ESP,0x10
MOV dword ptr [EBX + 0x91c],ESI
MOV dword ptr [ESI],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000246a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}\n\n" comment (function_definition "void FUN_000246a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" primitive_type (function_declarator "FUN_000246a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "FUN_00024630(param_1,1);" (call_expression "FUN_00024630(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;) (expression_statement "puVar1 = (undefined4 *)FUN_000211a0(8);" (assignment_expression "puVar1 = (undefined4 *)FUN_000211a0(8)" identifier = (cast_expression "(undefined4 *)FUN_000211a0(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000211a0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = DAT_0009491c;" (assignment_expression "puVar1[1] = DAT_0009491c" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" identifier = (call_expression "strdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "DAT_0009491c = puVar1;" (assignment_expression "DAT_0009491c = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * 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\nvoid ldlang_add_require_defined(char *name)\n\n{\n  require_defined_symbol *prVar1;\n  char *pcVar2;\n  \n  ldlang_add_undef(name,1);\n  prVar1 = (require_defined_symbol *)stat_alloc(8);\n  prVar1->next = require_defined_symbol_list;\n  pcVar2 = strdup(name);\n  require_defined_symbol_list = prVar1;\n  prVar1->name = pcVar2;\n  return;\n}\n\n" comment comment (function_definition "void ldlang_add_require_defined(char *name)\n\n{\n  require_defined_symbol *prVar1;\n  char *pcVar2;\n  \n  ldlang_add_undef(name,1);\n  prVar1 = (require_defined_symbol *)stat_alloc(8);\n  prVar1->next = require_defined_symbol_list;\n  pcVar2 = strdup(name);\n  require_defined_symbol_list = prVar1;\n  prVar1->name = pcVar2;\n  return;\n}" primitive_type (function_declarator "ldlang_add_require_defined(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  require_defined_symbol *prVar1;\n  char *pcVar2;\n  \n  ldlang_add_undef(name,1);\n  prVar1 = (require_defined_symbol *)stat_alloc(8);\n  prVar1->next = require_defined_symbol_list;\n  pcVar2 = strdup(name);\n  require_defined_symbol_list = prVar1;\n  prVar1->name = pcVar2;\n  return;\n}" { (declaration "require_defined_symbol *prVar1;" type_identifier (pointer_declarator "*prVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "ldlang_add_undef(name,1);" (call_expression "ldlang_add_undef(name,1)" identifier (argument_list "(name,1)" ( identifier , number_literal ))) ;) (expression_statement "prVar1 = (require_defined_symbol *)stat_alloc(8);" (assignment_expression "prVar1 = (require_defined_symbol *)stat_alloc(8)" identifier = (cast_expression "(require_defined_symbol *)stat_alloc(8)" ( (type_descriptor "require_defined_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "stat_alloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "prVar1->next = require_defined_symbol_list;" (assignment_expression "prVar1->next = require_defined_symbol_list" (field_expression "prVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar2 = strdup(name);" (assignment_expression "pcVar2 = strdup(name)" identifier = (call_expression "strdup(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "require_defined_symbol_list = prVar1;" (assignment_expression "require_defined_symbol_list = prVar1" identifier = identifier) ;) (expression_statement "prVar1->name = pcVar2;" (assignment_expression "prVar1->name = pcVar2" (field_expression "prVar1->name" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000246a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}\n\n" (function_definition "void FUN_000246a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" primitive_type (function_declarator "FUN_000246a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "FUN_00024630(param_1,1);" (call_expression "FUN_00024630(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;) (expression_statement "puVar1 = (undefined4 *)FUN_000211a0(8);" (assignment_expression "puVar1 = (undefined4 *)FUN_000211a0(8)" identifier = (cast_expression "(undefined4 *)FUN_000211a0(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000211a0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = DAT_0009491c;" (assignment_expression "puVar1[1] = DAT_0009491c" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" identifier = (call_expression "strdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "DAT_0009491c = puVar1;" (assignment_expression "DAT_0009491c = puVar1" identifier = identifier) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_000246a0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000246a0(char *param_1)" (identifier "FUN_000246a0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  \n  FUN_00024630(param_1,1);\n  puVar1 = (undefined4 *)FUN_000211a0(8);\n  puVar1[1] = DAT_0009491c;\n  pcVar2 = strdup(param_1);\n  DAT_0009491c = puVar1;\n  *puVar1 = pcVar2;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "FUN_00024630(param_1,1);" (call_expression "FUN_00024630(param_1,1)" (identifier "FUN_00024630") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_000211a0(8);" (assignment_expression "puVar1 = (undefined4 *)FUN_000211a0(8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_000211a0(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000211a0(8)" (identifier "FUN_000211a0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar1[1] = DAT_0009491c;" (assignment_expression "puVar1[1] = DAT_0009491c" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_0009491c")) (; ";")) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" (identifier "pcVar2") (= "=") (call_expression "strdup(param_1)" (identifier "strdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "DAT_0009491c = puVar1;" (assignment_expression "DAT_0009491c = puVar1" (identifier "DAT_0009491c") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "pcVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *name)

{
  type_1 *prVar1;
  char *pcVar2;
  
  var_1(name,1);
  prVar1 = (type_1 *)var_2(8);
  prVar1->next = require_defined_symbol_list;
  pcVar2 = var_3(name);
  require_defined_symbol_list = prVar1;
  prVar1->name = pcVar2;
  return;
}


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

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

void MASKED(char *param_1)

{
  undefined4 *puVar1;
  char *pcVar2;
  
  FUN_00024630(param_1,1);
  puVar1 = (undefined4 *)FUN_000211a0(8);
  puVar1[1] = DAT_0009491c;
  pcVar2 = strdup(param_1);
  DAT_0009491c = puVar1;
  *puVar1 = pcVar2;
  return;
}

