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

void __regparm3
output_section_callback_tree_to_list
          (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)

{
  if (tree->left != (lang_section_bst_type *)0x0) {
    output_section_callback_tree_to_list(ptr,tree->left,output);
  }
  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,
                   (lang_output_section_statement_type *)output);
  if (tree->right != (lang_section_bst_type *)0x0) {
    output_section_callback_tree_to_list(ptr,tree->right,output);
  }
  free(tree);
  return;
}



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

void __regparm3 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)

{
  if (param_2[1] != 0) {
    FUN_000240c0();
  }
  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);
  if (param_2[2] != 0) {
    FUN_000240c0();
  }
  free(param_2);
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00015a20
ADD EBX,0x67f31
SUB ESP,0xc
MOV EDX,dword ptr [EDX + 0x4]
TEST EDX,EDX
JZ 0x000240e4
CALL 0x000240c0
LEA EAX,[EDI + 0x18]
PUSH EBP
PUSH 0x0
PUSH dword ptr [ESI]
PUSH EAX
CALL 0x00023b40
MOV EDX,dword ptr [ESI + 0x8]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x00024105
MOV ECX,EBP
MOV EAX,EDI
CALL 0x000240c0
SUB ESP,0xc
PUSH ESI
CALL 0x00014c50
ADD ESP,0x1c
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 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" { (if_statement "if (param_2[1] != 0) {\n    FUN_000240c0();\n  }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000240c0();\n  }" { (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);" (call_expression "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3)" identifier (argument_list "(param_1 + 0x18,*param_2,0,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , (pointer_expression "*param_2" * identifier) , number_literal , identifier ))) ;) (if_statement "if (param_2[2] != 0) {\n    FUN_000240c0();\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000240c0();\n  }" { (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "free(param_2);" (call_expression "free(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\noutput_section_callback_tree_to_list\n          (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)\n\n{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  free(tree);\n  return;\n}\n\n" comment (function_definition "void __regparm3\noutput_section_callback_tree_to_list\n          (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)\n\n{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  free(tree);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "output_section_callback_tree_to_list\n          (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)" identifier (parameter_list "(lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)" ( (parameter_declaration "lang_wild_statement_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "lang_section_bst_type *tree" type_identifier (pointer_declarator "*tree" * identifier)) , (parameter_declaration "void *output" primitive_type (pointer_declarator "*output" * identifier)) ))) (compound_statement "{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  free(tree);\n  return;\n}" { (if_statement "if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }" if (parenthesized_expression "(tree->left != (lang_section_bst_type *)0x0)" ( (binary_expression "tree->left != (lang_section_bst_type *)0x0" (field_expression "tree->left" identifier -> field_identifier) != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }" { (expression_statement "output_section_callback_tree_to_list(ptr,tree->left,output);" (call_expression "output_section_callback_tree_to_list(ptr,tree->left,output)" identifier (argument_list "(ptr,tree->left,output)" ( identifier , (field_expression "tree->left" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);" (call_expression "lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output)" identifier (argument_list "(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output)" ( (pointer_expression "&ptr->children" & (field_expression "ptr->children" identifier -> field_identifier)) , (field_expression "tree->section" identifier -> field_identifier) , (cast_expression "(flag_info *)0x0" ( (type_descriptor "flag_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(lang_output_section_statement_type *)output" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }" if (parenthesized_expression "(tree->right != (lang_section_bst_type *)0x0)" ( (binary_expression "tree->right != (lang_section_bst_type *)0x0" (field_expression "tree->right" identifier -> field_identifier) != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }" { (expression_statement "output_section_callback_tree_to_list(ptr,tree->right,output);" (call_expression "output_section_callback_tree_to_list(ptr,tree->right,output)" identifier (argument_list "(ptr,tree->right,output)" ( identifier , (field_expression "tree->right" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "free(tree);" (call_expression "free(tree)" identifier (argument_list "(tree)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" { (if_statement "if (param_2[1] != 0) {\n    FUN_000240c0();\n  }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000240c0();\n  }" { (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);" (call_expression "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3)" identifier (argument_list "(param_1 + 0x18,*param_2,0,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , (pointer_expression "*param_2" * identifier) , number_literal , identifier ))) ;) (if_statement "if (param_2[2] != 0) {\n    FUN_000240c0();\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000240c0();\n  }" { (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "free(param_2);" (call_expression "free(param_2)" identifier (argument_list "(param_2)" ( 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 IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * IDENT) , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000240c0(int param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_000240c0") (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_000240c0();\n  }\n  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_000240c0();\n  }\n  free(param_2);\n  return;\n}" ({ "{") (if_statement "if (param_2[1] != 0) {\n    FUN_000240c0();\n  }" (if "if") (parenthesized_expression "(param_2[1] != 0)" (( "(") (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000240c0();\n  }" ({ "{") (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" (identifier "FUN_000240c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);" (call_expression "FUN_00023b40(param_1 + 0x18,*param_2,0,param_3)" (identifier "FUN_00023b40") (argument_list "(param_1 + 0x18,*param_2,0,param_3)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (param_2[2] != 0) {\n    FUN_000240c0();\n  }" (if "if") (parenthesized_expression "(param_2[2] != 0)" (( "(") (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000240c0();\n  }" ({ "{") (expression_statement "FUN_000240c0();" (call_expression "FUN_000240c0()" (identifier "FUN_000240c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "free(param_2);" (call_expression "free(param_2)" (identifier "free") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3
function_1
          (type_1 *ptr,type_2 *tree,void *output)

{
  if (tree->left != (type_2 *)0x0) {
    function_1(ptr,tree->left,output);
  }
  var_1(&ptr->children,tree->section,(type_3 *)0x0,
                   (type_4 *)output);
  if (tree->right != (type_2 *)0x0) {
    function_1(ptr,tree->right,output);
  }
  var_2(tree);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)) (number_literal) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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(int param_1,undefined4 *param_2,undefined4 param_3)

{
  if (param_2[1] != 0) {
    MASKED();
  }
  FUN_00023b40(param_1 + 0x18,*param_2,0,param_3);
  if (param_2[2] != 0) {
    MASKED();
  }
  free(param_2);
  return;
}

