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

void _GLOBAL__sub_I_eh_alloc_cc(void)

{
  uint uVar1;
  undefined4 *puVar2;
  
  uVar1 = 0;
  do {
    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;
    uVar1 = uVar1 + 4;
  } while (uVar1 < 0x18);
  DAT_00396300 = 0x4a00;
  puVar2 = (undefined4 *)malloc(0x4a00);
  DAT_003962fc = puVar2;
  if (puVar2 == (undefined4 *)0x0) {
    DAT_00396300 = 0;
    DAT_003962f8 = (undefined4 *)0x0;
  }
  else {
    DAT_003962f8 = puVar2;
    *puVar2 = 0x4a00;
    puVar2[1] = 0;
  }
  return;
}



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

void _INIT_8(void)

{
  uint uVar1;
  undefined4 *puVar2;
  
  uVar1 = 0;
  do {
    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;
    uVar1 = uVar1 + 4;
  } while (uVar1 < 0x18);
  DAT_00396300 = 0x4a00;
  puVar2 = (undefined4 *)malloc(0x4a00);
  DAT_003962fc = puVar2;
  if (puVar2 == (undefined4 *)0x0) {
    DAT_00396300 = 0;
    DAT_003962f8 = (undefined4 *)0x0;
  }
  else {
    DAT_003962f8 = puVar2;
    *puVar2 = 0x4a00;
    puVar2[1] = 0;
  }
  return;
}


PUSH EBX
XOR EDX,EDX
XOR EAX,EAX
CALL 0x00035840
ADD EBX,0x359b46
SUB ESP,0x8
MOV dword ptr [EBX + EAX*0x1 + 0x72e0],EDX
ADD EAX,0x4
CMP EAX,0x18
JC 0x000354c3
MOV dword ptr [EBX + 0x7300],0x4a00
SUB ESP,0xc
PUSH 0x4a00
CALL 0x000297a0
ADD ESP,0x10
MOV dword ptr [EBX + 0x72fc],EAX
TEST EAX,EAX
JZ 0x0003550e
MOV dword ptr [EBX + 0x72f8],EAX
MOV dword ptr [EAX],0x4a00
MOV dword ptr [EAX + 0x4],0x0
ADD ESP,0x8
POP EBX
RET
MOV dword ptr [EBX + 0x7300],0x0
MOV dword ptr [EBX + 0x72f8],0x0
JMP 0x00035509
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _INIT_8(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void _INIT_8(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "_INIT_8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);" do (compound_statement "{\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  }" { (expression_statement "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;" (assignment_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0" (pointer_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1)" * (cast_expression "(undefined4 *)((int)&DAT_003962e0 + uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_003962e0 + uVar1)" ( (binary_expression "(int)&DAT_003962e0 + uVar1" (cast_expression "(int)&DAT_003962e0" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_003962e0" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = uVar1 + 4;" (assignment_expression "uVar1 = uVar1 + 4" identifier = (binary_expression "uVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 < 0x18)" ( (binary_expression "uVar1 < 0x18" identifier < number_literal) )) ;) (expression_statement "DAT_00396300 = 0x4a00;" (assignment_expression "DAT_00396300 = 0x4a00" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)malloc(0x4a00);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x4a00)" identifier = (cast_expression "(undefined4 *)malloc(0x4a00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x4a00)" identifier (argument_list "(0x4a00)" ( number_literal ))))) ;) (expression_statement "DAT_003962fc = puVar2;" (assignment_expression "DAT_003962fc = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }" { (expression_statement "DAT_00396300 = 0;" (assignment_expression "DAT_00396300 = 0" identifier = number_literal) ;) (expression_statement "DAT_003962f8 = (undefined4 *)0x0;" (assignment_expression "DAT_003962f8 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" else (compound_statement "{\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" { (expression_statement "DAT_003962f8 = puVar2;" (assignment_expression "DAT_003962f8 = puVar2" identifier = identifier) ;) (expression_statement "*puVar2 = 0x4a00;" (assignment_expression "*puVar2 = 0x4a00" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _GLOBAL__sub_I_eh_alloc_cc(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void _GLOBAL__sub_I_eh_alloc_cc(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "_GLOBAL__sub_I_eh_alloc_cc(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);" do (compound_statement "{\n    *(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  }" { (expression_statement "*(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0;" (assignment_expression "*(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1) = 0" (pointer_expression "*(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1)" * (cast_expression "(undefined4 *)((int)&(anonymous_namespace)::emergency_pool + uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(anonymous_namespace)::emergency_pool + uVar1)" ( (binary_expression "(int)&(anonymous_namespace)::emergency_pool + uVar1" (cast_expression "(int)&(anonymous_namespace)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(anonymous_namespace)" & (parenthesized_expression "(anonymous_namespace)" ( identifier )))) (ERROR "::emergency_pool" : : identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = uVar1 + 4;" (assignment_expression "uVar1 = uVar1 + 4" identifier = (binary_expression "uVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 < 0x18)" ( (binary_expression "uVar1 < 0x18" identifier < number_literal) )) ;) (expression_statement "DAT_00396300 = 0x4a00;" (assignment_expression "DAT_00396300 = 0x4a00" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)malloc(0x4a00);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x4a00)" identifier = (cast_expression "(undefined4 *)malloc(0x4a00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x4a00)" identifier (argument_list "(0x4a00)" ( number_literal ))))) ;) (expression_statement "DAT_003962fc = puVar2;" (assignment_expression "DAT_003962fc = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }" { (expression_statement "DAT_00396300 = 0;" (assignment_expression "DAT_00396300 = 0" identifier = number_literal) ;) (expression_statement "DAT_003962f8 = (undefined4 *)0x0;" (assignment_expression "DAT_003962f8 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" else (compound_statement "{\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" { (expression_statement "DAT_003962f8 = puVar2;" (assignment_expression "DAT_003962f8 = puVar2" identifier = identifier) ;) (expression_statement "*puVar2 = 0x4a00;" (assignment_expression "*puVar2 = 0x4a00" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void _INIT_8(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}\n\n" (function_definition "void _INIT_8(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "_INIT_8(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);" do (compound_statement "{\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  }" { (expression_statement "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;" (assignment_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0" (pointer_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1)" * (cast_expression "(undefined4 *)((int)&DAT_003962e0 + uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_003962e0 + uVar1)" ( (binary_expression "(int)&DAT_003962e0 + uVar1" (cast_expression "(int)&DAT_003962e0" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_003962e0" & identifier)) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = uVar1 + 4;" (assignment_expression "uVar1 = uVar1 + 4" identifier = (binary_expression "uVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 < 0x18)" ( (binary_expression "uVar1 < 0x18" identifier < number_literal) )) ;) (expression_statement "DAT_00396300 = 0x4a00;" (assignment_expression "DAT_00396300 = 0x4a00" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)malloc(0x4a00);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x4a00)" identifier = (cast_expression "(undefined4 *)malloc(0x4a00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x4a00)" identifier (argument_list "(0x4a00)" ( number_literal ))))) ;) (expression_statement "DAT_003962fc = puVar2;" (assignment_expression "DAT_003962fc = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }" { (expression_statement "DAT_00396300 = 0;" (assignment_expression "DAT_00396300 = 0" identifier = number_literal) ;) (expression_statement "DAT_003962f8 = (undefined4 *)0x0;" (assignment_expression "DAT_003962f8 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" else (compound_statement "{\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" { (expression_statement "DAT_003962f8 = puVar2;" (assignment_expression "DAT_003962f8 = puVar2" identifier = identifier) ;) (expression_statement "*puVar2 = 0x4a00;" (assignment_expression "*puVar2 = 0x4a00" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression 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 IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (return_statement return ;) })))
(function_definition "void _INIT_8(void)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "_INIT_8(void)" (identifier "_INIT_8") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  \n  uVar1 = 0;\n  do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);\n  DAT_00396300 = 0x4a00;\n  puVar2 = (undefined4 *)malloc(0x4a00);\n  DAT_003962fc = puVar2;\n  if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  } while (uVar1 < 0x18);" (do "do") (compound_statement "{\n    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;\n    uVar1 = uVar1 + 4;\n  }" ({ "{") (expression_statement "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;" (assignment_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0" (pointer_expression "*(undefined4 *)((int)&DAT_003962e0 + uVar1)" (* "*") (cast_expression "(undefined4 *)((int)&DAT_003962e0 + uVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_003962e0 + uVar1)" (( "(") (binary_expression "(int)&DAT_003962e0 + uVar1" (cast_expression "(int)&DAT_003962e0" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_003962e0" (& "&") (identifier "DAT_003962e0"))) (+ "+") (identifier "uVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = uVar1 + 4;" (assignment_expression "uVar1 = uVar1 + 4" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 4" (identifier "uVar1") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 < 0x18)" (( "(") (binary_expression "uVar1 < 0x18" (identifier "uVar1") (< "<") (number_literal "0x18")) () ")")) (; ";")) (expression_statement "DAT_00396300 = 0x4a00;" (assignment_expression "DAT_00396300 = 0x4a00" (identifier "DAT_00396300") (= "=") (number_literal "0x4a00")) (; ";")) (expression_statement "puVar2 = (undefined4 *)malloc(0x4a00);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x4a00)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)malloc(0x4a00)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x4a00)" (identifier "malloc") (argument_list "(0x4a00)" (( "(") (number_literal "0x4a00") () ")"))))) (; ";")) (expression_statement "DAT_003962fc = puVar2;" (assignment_expression "DAT_003962fc = puVar2" (identifier "DAT_003962fc") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }\n  else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_00396300 = 0;\n    DAT_003962f8 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "DAT_00396300 = 0;" (assignment_expression "DAT_00396300 = 0" (identifier "DAT_00396300") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_003962f8 = (undefined4 *)0x0;" (assignment_expression "DAT_003962f8 = (undefined4 *)0x0" (identifier "DAT_003962f8") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" (else "else") (compound_statement "{\n    DAT_003962f8 = puVar2;\n    *puVar2 = 0x4a00;\n    puVar2[1] = 0;\n  }" ({ "{") (expression_statement "DAT_003962f8 = puVar2;" (assignment_expression "DAT_003962f8 = puVar2" (identifier "DAT_003962f8") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*puVar2 = 0x4a00;" (assignment_expression "*puVar2 = 0x4a00" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x4a00")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
  type_1 var_1;
  type_2 *var_3;
  
  var_1 = 0;
  do {
    *(type_2 *)((int)&(anonymous_namespace)::emergency_pool + var_1) = 0;
    var_1 = var_1 + 4;
  } while (var_1 < 0x18);
  DAT_00396300 = 0x4a00;
  var_3 = (type_2 *)var_2(0x4a00);
  DAT_003962fc = var_3;
  if (var_3 == (type_2 *)0x0) {
    DAT_00396300 = 0;
    DAT_003962f8 = (type_2 *)0x0;
  }
  else {
    DAT_003962f8 = var_3;
    *var_3 = 0x4a00;
    var_3[1] = 0;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (return_statement))))

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

void MASKED(void)

{
  uint uVar1;
  undefined4 *puVar2;
  
  uVar1 = 0;
  do {
    *(undefined4 *)((int)&DAT_003962e0 + uVar1) = 0;
    uVar1 = uVar1 + 4;
  } while (uVar1 < 0x18);
  DAT_00396300 = 0x4a00;
  puVar2 = (undefined4 *)malloc(0x4a00);
  DAT_003962fc = puVar2;
  if (puVar2 == (undefined4 *)0x0) {
    DAT_00396300 = 0;
    DAT_003962f8 = (undefined4 *)0x0;
  }
  else {
    DAT_003962f8 = puVar2;
    *puVar2 = 0x4a00;
    puVar2[1] = 0;
  }
  return;
}

