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

void __regparm3 free_macro(macro_entry *macro)

{
  formal_struct *pfVar1;
  formal_entry *formal;
  
  formal = macro->formals;
  while (formal != (formal_entry *)0x0) {
    pfVar1 = formal->next;
    del_formal(formal);
    formal = pfVar1;
  }
  hash_die(macro->formal_hash);
  sb_kill(&macro->sub);
  free(macro);
  return;
}



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

void __regparm3 FUN_00028c30(void *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)((int)param_1 + 0x10);
  while (puVar1 != (undefined4 *)0x0) {
    puVar1 = (undefined4 *)*puVar1;
    FUN_00028bf0();
  }
  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));
  FUN_000357d0(param_1);
  free(param_1);
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [EAX + 0x10]
CALL 0x00016000
ADD EBX,0x573c3
TEST EAX,EAX
JZ 0x00028c5d
LEA ESI,[ESI]
NOP
MOV ESI,dword ptr [EAX]
CALL 0x00028bf0
MOV EAX,ESI
TEST ESI,ESI
JNZ 0x00028c50
SUB ESP,0xc
PUSH dword ptr [EDI + 0x14]
CALL 0x00025230
MOV dword ptr [ESP],EDI
CALL 0x000357d0
MOV dword ptr [ESP],EDI
CALL 0x00014780
ADD ESP,0x10
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 __regparm3 FUN_00028c30(void *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00028c30(void *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00028c30(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)((int)param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)((int)param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x10)" * (cast_expression "(undefined4 **)((int)param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x10)" ( (binary_expression "(int)param_1 + 0x10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" while (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" { (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "FUN_00028bf0();" (call_expression "FUN_00028bf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));" (call_expression "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)((int)param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "FUN_000357d0(param_1);" (call_expression "FUN_000357d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 free_macro(macro_entry *macro)\n\n{\n  formal_struct *pfVar1;\n  formal_entry *formal;\n  \n  formal = macro->formals;\n  while (formal != (formal_entry *)0x0) {\n    pfVar1 = formal->next;\n    del_formal(formal);\n    formal = pfVar1;\n  }\n  hash_die(macro->formal_hash);\n  sb_kill(&macro->sub);\n  free(macro);\n  return;\n}\n\n" comment (function_definition "void __regparm3 free_macro(macro_entry *macro)\n\n{\n  formal_struct *pfVar1;\n  formal_entry *formal;\n  \n  formal = macro->formals;\n  while (formal != (formal_entry *)0x0) {\n    pfVar1 = formal->next;\n    del_formal(formal);\n    formal = pfVar1;\n  }\n  hash_die(macro->formal_hash);\n  sb_kill(&macro->sub);\n  free(macro);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "free_macro(macro_entry *macro)" identifier (parameter_list "(macro_entry *macro)" ( (parameter_declaration "macro_entry *macro" type_identifier (pointer_declarator "*macro" * identifier)) ))) (compound_statement "{\n  formal_struct *pfVar1;\n  formal_entry *formal;\n  \n  formal = macro->formals;\n  while (formal != (formal_entry *)0x0) {\n    pfVar1 = formal->next;\n    del_formal(formal);\n    formal = pfVar1;\n  }\n  hash_die(macro->formal_hash);\n  sb_kill(&macro->sub);\n  free(macro);\n  return;\n}" { (declaration "formal_struct *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "formal_entry *formal;" type_identifier (pointer_declarator "*formal" * identifier) ;) (expression_statement "formal = macro->formals;" (assignment_expression "formal = macro->formals" identifier = (field_expression "macro->formals" identifier -> field_identifier)) ;) (while_statement "while (formal != (formal_entry *)0x0) {\n    pfVar1 = formal->next;\n    del_formal(formal);\n    formal = pfVar1;\n  }" while (parenthesized_expression "(formal != (formal_entry *)0x0)" ( (binary_expression "formal != (formal_entry *)0x0" identifier != (cast_expression "(formal_entry *)0x0" ( (type_descriptor "formal_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pfVar1 = formal->next;\n    del_formal(formal);\n    formal = pfVar1;\n  }" { (expression_statement "pfVar1 = formal->next;" (assignment_expression "pfVar1 = formal->next" identifier = (field_expression "formal->next" identifier -> field_identifier)) ;) (expression_statement "del_formal(formal);" (call_expression "del_formal(formal)" identifier (argument_list "(formal)" ( identifier ))) ;) (expression_statement "formal = pfVar1;" (assignment_expression "formal = pfVar1" identifier = identifier) ;) })) (expression_statement "hash_die(macro->formal_hash);" (call_expression "hash_die(macro->formal_hash)" identifier (argument_list "(macro->formal_hash)" ( (field_expression "macro->formal_hash" identifier -> field_identifier) ))) ;) (expression_statement "sb_kill(&macro->sub);" (call_expression "sb_kill(&macro->sub)" identifier (argument_list "(&macro->sub)" ( (pointer_expression "&macro->sub" & (field_expression "macro->sub" identifier -> field_identifier)) ))) ;) (expression_statement "free(macro);" (call_expression "free(macro)" identifier (argument_list "(macro)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00028c30(void *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00028c30(void *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00028c30(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)((int)param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)((int)param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x10)" * (cast_expression "(undefined4 **)((int)param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x10)" ( (binary_expression "(int)param_1 + 0x10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" while (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" { (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "FUN_00028bf0();" (call_expression "FUN_00028bf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));" (call_expression "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)((int)param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" * (cast_expression "(undefined4 *)((int)param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x14)" ( (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "FUN_000357d0(param_1);" (call_expression "FUN_000357d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00028c30(void *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00028c30(void *param_1)" (identifier "FUN_00028c30") (parameter_list "(void *param_1)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)((int)param_1 + 0x10);\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }\n  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));\n  FUN_000357d0(param_1);\n  free(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)((int)param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)((int)param_1 + 0x10)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)((int)param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)((int)param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0x10)" (( "(") (binary_expression "(int)param_1 + 0x10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" (while "while") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)*puVar1;\n    FUN_00028bf0();\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "FUN_00028bf0();" (call_expression "FUN_00028bf0()" (identifier "FUN_00028bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));" (call_expression "FUN_00025230(*(undefined4 *)((int)param_1 + 0x14))" (identifier "FUN_00025230") (argument_list "(*(undefined4 *)((int)param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)((int)param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x14)" (( "(") (binary_expression "(int)param_1 + 0x14" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_000357d0(param_1);" (call_expression "FUN_000357d0(param_1)" (identifier "FUN_000357d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (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 *macro)

{
  type_2 *pfVar1;
  type_3 *var_1;
  
  var_1 = macro->formals;
  while (var_1 != (type_3 *)0x0) {
    pfVar1 = var_1->next;
    var_2(var_1);
    var_1 = pfVar1;
  }
  var_3(macro->formal_hash);
  var_4(&macro->sub);
  var_5(macro);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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(void *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)((int)param_1 + 0x10);
  while (puVar1 != (undefined4 *)0x0) {
    puVar1 = (undefined4 *)*puVar1;
    FUN_00028bf0();
  }
  FUN_00025230(*(undefined4 *)((int)param_1 + 0x14));
  FUN_000357d0(param_1);
  free(param_1);
  return;
}

