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

debug_type_conflict
debug_make_struct_type(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields)

{
  debug_type_s *pdVar1;
  debug_class_type *pdVar2;
  uint in_ECX;
  
  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX);
  if (pdVar1 != (debug_type_s *)0x0) {
    pdVar2 = (debug_class_type *)xmalloc(0x18);
    pdVar2->mark = 0;
    pdVar2->id = 0;
    pdVar2->baseclasses = (debug_baseclass *)0x0;
    pdVar2->methods = (debug_method *)0x0;
    pdVar2->vptrbase = (debug_type_conflict)0x0;
    pdVar2->fields = fields;
    (pdVar1->u).kclass = pdVar2;
  }
  return pdVar1;
}



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

int FUN_0001f870(void)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 in_stack_00000014;
  
  iVar1 = FUN_0001d440(0x1f879);
  if (iVar1 != 0) {
    puVar2 = (undefined4 *)xmalloc(0x18);
    puVar2[1] = 0;
    puVar2[2] = 0;
    puVar2[3] = 0;
    puVar2[4] = 0;
    puVar2[5] = 0;
    *puVar2 = in_stack_00000014;
    *(undefined4 **)(iVar1 + 0xc) = puVar2;
  }
  return iVar1;
}


PUSH ESI
XOR EAX,EAX
PUSH EBX
CALL 0x000166c0
ADD EBX,0x20787
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
MOV EDX,dword ptr [ESP + 0x18]
SETZ AL
ADD EAX,0x7
CALL 0x0001d440
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001f8d6
SUB ESP,0xc
PUSH 0x18
CALL 0x000132e0
MOV EDX,dword ptr [ESP + 0x30]
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX],EDX
MOV dword ptr [ESI + 0xc],EAX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001f870(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0001f870(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001f870(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0001d440(0x1f879);" (assignment_expression "iVar1 = FUN_0001d440(0x1f879)" identifier = (call_expression "FUN_0001d440(0x1f879)" identifier (argument_list "(0x1f879)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = in_stack_00000014;" (assignment_expression "*puVar2 = in_stack_00000014" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0xc)" * (cast_expression "(undefined4 **)(iVar1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ndebug_type_conflict\ndebug_make_struct_type(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  uint in_ECX;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = (debug_baseclass *)0x0;\n    pdVar2->methods = (debug_method *)0x0;\n    pdVar2->vptrbase = (debug_type_conflict)0x0;\n    pdVar2->fields = fields;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}\n\n" comment comment (function_definition "debug_type_conflict\ndebug_make_struct_type(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  uint in_ECX;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = (debug_baseclass *)0x0;\n    pdVar2->methods = (debug_method *)0x0;\n    pdVar2->vptrbase = (debug_type_conflict)0x0;\n    pdVar2->fields = fields;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}" type_identifier (function_declarator "debug_make_struct_type(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields)" identifier (parameter_list "(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "bfd_boolean structp" type_identifier identifier) , (parameter_declaration "bfd_vma size" type_identifier identifier) , (parameter_declaration "debug_field *fields" type_identifier (pointer_declarator "*fields" * identifier)) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  uint in_ECX;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = (debug_baseclass *)0x0;\n    pdVar2->methods = (debug_method *)0x0;\n    pdVar2->vptrbase = (debug_type_conflict)0x0;\n    pdVar2->fields = fields;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_class_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "uint in_ECX;" type_identifier identifier ;) (expression_statement "pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX)" identifier = (call_expression "debug_make_type((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX)" identifier (argument_list "((debug_handle *)((structp == 0) + 7),(debug_type_kind)size,in_ECX)" ( (cast_expression "(debug_handle *)((structp == 0) + 7)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((structp == 0) + 7)" ( (binary_expression "(structp == 0) + 7" (parenthesized_expression "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )) + number_literal) ))) , (cast_expression "(debug_type_kind)size" ( (type_descriptor "debug_type_kind" type_identifier) ) identifier) , identifier )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = (debug_baseclass *)0x0;\n    pdVar2->methods = (debug_method *)0x0;\n    pdVar2->vptrbase = (debug_type_conflict)0x0;\n    pdVar2->fields = fields;\n    (pdVar1->u).kclass = pdVar2;\n  }" if (parenthesized_expression "(pdVar1 != (debug_type_s *)0x0)" ( (binary_expression "pdVar1 != (debug_type_s *)0x0" identifier != (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = (debug_baseclass *)0x0;\n    pdVar2->methods = (debug_method *)0x0;\n    pdVar2->vptrbase = (debug_type_conflict)0x0;\n    pdVar2->fields = fields;\n    (pdVar1->u).kclass = pdVar2;\n  }" { (expression_statement "pdVar2 = (debug_class_type *)xmalloc(0x18);" (assignment_expression "pdVar2 = (debug_class_type *)xmalloc(0x18)" identifier = (cast_expression "(debug_class_type *)xmalloc(0x18)" ( (type_descriptor "debug_class_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "pdVar2->mark = 0;" (assignment_expression "pdVar2->mark = 0" (field_expression "pdVar2->mark" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar2->id = 0;" (assignment_expression "pdVar2->id = 0" (field_expression "pdVar2->id" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar2->baseclasses = (debug_baseclass *)0x0;" (assignment_expression "pdVar2->baseclasses = (debug_baseclass *)0x0" (field_expression "pdVar2->baseclasses" identifier -> field_identifier) = (cast_expression "(debug_baseclass *)0x0" ( (type_descriptor "debug_baseclass *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar2->methods = (debug_method *)0x0;" (assignment_expression "pdVar2->methods = (debug_method *)0x0" (field_expression "pdVar2->methods" identifier -> field_identifier) = (cast_expression "(debug_method *)0x0" ( (type_descriptor "debug_method *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar2->vptrbase = (debug_type_conflict)0x0;" (assignment_expression "pdVar2->vptrbase = (debug_type_conflict)0x0" (field_expression "pdVar2->vptrbase" identifier -> field_identifier) = (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) ;) (expression_statement "pdVar2->fields = fields;" (assignment_expression "pdVar2->fields = fields" (field_expression "pdVar2->fields" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).kclass = pdVar2;" (assignment_expression "(pdVar1->u).kclass = pdVar2" (field_expression "(pdVar1->u).kclass" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (return_statement "return pdVar1;" return identifier ;) })))
(translation_unit "int FUN_0001f870(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001f870(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001f870(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0001d440(0x1f879);" (assignment_expression "iVar1 = FUN_0001d440(0x1f879)" identifier = (call_expression "FUN_0001d440(0x1f879)" identifier (argument_list "(0x1f879)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = in_stack_00000014;" (assignment_expression "*puVar2 = in_stack_00000014" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0xc)" * (cast_expression "(undefined4 **)(iVar1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001f870(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001f870(void)" (identifier "FUN_0001f870") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000014;\n  \n  iVar1 = FUN_0001d440(0x1f879);\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 in_stack_00000014;" (type_identifier "undefined4") (identifier "in_stack_00000014") (; ";")) (expression_statement "iVar1 = FUN_0001d440(0x1f879);" (assignment_expression "iVar1 = FUN_0001d440(0x1f879)" (identifier "iVar1") (= "=") (call_expression "FUN_0001d440(0x1f879)" (identifier "FUN_0001d440") (argument_list "(0x1f879)" (( "(") (number_literal "0x1f879") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n    puVar2[3] = 0;\n    puVar2[4] = 0;\n    puVar2[5] = 0;\n    *puVar2 = in_stack_00000014;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = in_stack_00000014;" (assignment_expression "*puVar2 = in_stack_00000014" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "*(undefined4 **)(iVar1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1
function_1(void *handle,type_2 var_2,type_3 size,type_4 *fields)

{
  type_5 *var_3;
  type_6 *pdVar2;
  type_7 in_ECX;
  
  var_3 = var_1((type_8 *)((var_2 == 0) + 7),(type_9)size,in_ECX);
  if (var_3 != (type_5 *)0x0) {
    pdVar2 = (type_6 *)var_4(0x18);
    pdVar2->mark = 0;
    pdVar2->id = 0;
    pdVar2->baseclasses = (type_10 *)0x0;
    pdVar2->methods = (type_11 *)0x0;
    pdVar2->vptrbase = (type_1)0x0;
    pdVar2->fields = fields;
    (var_3->u).kclass = pdVar2;
  }
  return var_3;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (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: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement (identifier)))))

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

int MASKED(void)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 in_stack_00000014;
  
  iVar1 = FUN_0001d440(0x1f879);
  if (iVar1 != 0) {
    puVar2 = (undefined4 *)xmalloc(0x18);
    puVar2[1] = 0;
    puVar2[2] = 0;
    puVar2[3] = 0;
    puVar2[4] = 0;
    puVar2[5] = 0;
    *puVar2 = in_stack_00000014;
    *(undefined4 **)(iVar1 + 0xc) = puVar2;
  }
  return iVar1;
}

