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

void add_to_macrobuffer(int code)

{
  macro_length = macro_length + 1;
  macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4);
  macro_buffer[macro_length - 1] = code;
  return;
}



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

void FUN_0003e440(undefined4 param_1)

{
  DAT_0007b8b8 = DAT_0007b8b8 + 1;
  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);
  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;
  return;
}


PUSH EBX
CALL 0x00015680
ADD EBX,0x3c78a
SUB ESP,0x10
MOV EAX,dword ptr [EBX + 0xce8]
ADD EAX,0x1
MOV dword ptr [EBX + 0xce8],EAX
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [EBX + 0xcec]
CALL 0x0003dad0
MOV EDX,dword ptr [EBX + 0xce8]
MOV ECX,dword ptr [ESP + 0x20]
MOV dword ptr [EBX + 0xcec],EAX
MOV dword ptr [EAX + EDX*0x4 + -0x4],ECX
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0003e440(undefined4 param_1)\n\n{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}\n\n" comment (function_definition "void FUN_0003e440(undefined4 param_1)\n\n{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0003e440(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" { (expression_statement "DAT_0007b8b8 = DAT_0007b8b8 + 1;" (assignment_expression "DAT_0007b8b8 = DAT_0007b8b8 + 1" identifier = (binary_expression "DAT_0007b8b8 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);" (assignment_expression "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" identifier = (call_expression "FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" identifier (argument_list "(DAT_0007b8bc,DAT_0007b8b8 * 4)" ( identifier , (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal) )))) ;) (expression_statement "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;" (assignment_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1" (pointer_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" * (cast_expression "(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" ( (binary_expression "DAT_0007b8bc + -4 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -4" identifier + number_literal) + (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal)) )))) = 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 add_to_macrobuffer(int code)\n\n{\n  macro_length = macro_length + 1;\n  macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4);\n  macro_buffer[macro_length - 1] = code;\n  return;\n}\n\n" comment comment (function_definition "void add_to_macrobuffer(int code)\n\n{\n  macro_length = macro_length + 1;\n  macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4);\n  macro_buffer[macro_length - 1] = code;\n  return;\n}" primitive_type (function_declarator "add_to_macrobuffer(int code)" identifier (parameter_list "(int code)" ( (parameter_declaration "int code" primitive_type identifier) ))) (compound_statement "{\n  macro_length = macro_length + 1;\n  macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4);\n  macro_buffer[macro_length - 1] = code;\n  return;\n}" { (expression_statement "macro_length = macro_length + 1;" (assignment_expression "macro_length = macro_length + 1" identifier = (binary_expression "macro_length + 1" identifier + number_literal)) ;) (expression_statement "macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4);" (assignment_expression "macro_buffer = (int *)nrealloc(macro_buffer,macro_length * 4)" identifier = (cast_expression "(int *)nrealloc(macro_buffer,macro_length * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nrealloc(macro_buffer,macro_length * 4)" identifier (argument_list "(macro_buffer,macro_length * 4)" ( identifier , (binary_expression "macro_length * 4" identifier * number_literal) ))))) ;) (expression_statement "macro_buffer[macro_length - 1] = code;" (assignment_expression "macro_buffer[macro_length - 1] = code" (subscript_expression "macro_buffer[macro_length - 1]" identifier [ (binary_expression "macro_length - 1" identifier - number_literal) ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003e440(undefined4 param_1)\n\n{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}\n\n" (function_definition "void FUN_0003e440(undefined4 param_1)\n\n{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0003e440(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" { (expression_statement "DAT_0007b8b8 = DAT_0007b8b8 + 1;" (assignment_expression "DAT_0007b8b8 = DAT_0007b8b8 + 1" identifier = (binary_expression "DAT_0007b8b8 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);" (assignment_expression "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" identifier = (call_expression "FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" identifier (argument_list "(DAT_0007b8bc,DAT_0007b8b8 * 4)" ( identifier , (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal) )))) ;) (expression_statement "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;" (assignment_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1" (pointer_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" * (cast_expression "(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" ( (binary_expression "DAT_0007b8bc + -4 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -4" identifier + number_literal) + (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal)) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0003e440(undefined4 param_1)\n\n{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003e440(undefined4 param_1)" (identifier "FUN_0003e440") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  DAT_0007b8b8 = DAT_0007b8b8 + 1;\n  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);\n  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;\n  return;\n}" ({ "{") (expression_statement "DAT_0007b8b8 = DAT_0007b8b8 + 1;" (assignment_expression "DAT_0007b8b8 = DAT_0007b8b8 + 1" (identifier "DAT_0007b8b8") (= "=") (binary_expression "DAT_0007b8b8 + 1" (identifier "DAT_0007b8b8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);" (assignment_expression "DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" (identifier "DAT_0007b8bc") (= "=") (call_expression "FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4)" (identifier "FUN_0003dad0") (argument_list "(DAT_0007b8bc,DAT_0007b8b8 * 4)" (( "(") (identifier "DAT_0007b8bc") (, ",") (binary_expression "DAT_0007b8b8 * 4" (identifier "DAT_0007b8b8") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;" (assignment_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1" (pointer_expression "*(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" (* "*") (cast_expression "(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4)" (( "(") (binary_expression "DAT_0007b8bc + -4 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -4" (identifier "DAT_0007b8bc") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "DAT_0007b8b8 * 4" (identifier "DAT_0007b8b8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_1")) (; ";")) (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(int code)

{
  var_1 = var_1 + 1;
  macro_buffer = (int *)var_2(macro_buffer,var_1 * 4);
  macro_buffer[var_1 - 1] = code;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  DAT_0007b8b8 = DAT_0007b8b8 + 1;
  DAT_0007b8bc = FUN_0003dad0(DAT_0007b8bc,DAT_0007b8b8 * 4);
  *(undefined4 *)(DAT_0007b8bc + -4 + DAT_0007b8b8 * 4) = param_1;
  return;
}

