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

debug_type_conflict
debug_make_object_type
          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,
          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,
          bfd_boolean ownvptr)

{
  debug_type_s *pdVar1;
  debug_class_type *pdVar2;
  
  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp);
  if (pdVar1 != (debug_type_s *)0x0) {
    pdVar2 = (debug_class_type *)xmalloc(0x18);
    pdVar2->mark = 0;
    pdVar2->fields = fields;
    pdVar2->id = 0;
    pdVar2->baseclasses = baseclasses;
    pdVar2->methods = methods;
    if (ownvptr != 0) {
      vptrbase = pdVar1;
    }
    pdVar2->vptrbase = vptrbase;
    (pdVar1->u).kclass = pdVar2;
  }
  return pdVar1;
}



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

int FUN_0001edc0(void)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 in_stack_00000010;
  undefined4 in_stack_00000014;
  undefined4 in_stack_00000018;
  int in_stack_0000001c;
  int in_stack_00000020;
  
  iVar1 = FUN_0001ca80();
  if (iVar1 != 0) {
    puVar2 = (undefined4 *)xmalloc(0x18);
    puVar2[1] = 0;
    *puVar2 = in_stack_00000010;
    puVar2[2] = 0;
    puVar2[3] = in_stack_00000014;
    puVar2[4] = in_stack_00000018;
    if (in_stack_00000020 != 0) {
      in_stack_0000001c = iVar1;
    }
    puVar2[5] = in_stack_0000001c;
    *(undefined4 **)(iVar1 + 0xc) = puVar2;
  }
  return iVar1;
}


PUSH EDI
XOR EAX,EAX
PUSH ESI
PUSH EBX
MOV ECX,dword ptr [ESP + 0x14]
CALL 0x000165d0
ADD EBX,0x20232
MOV EDX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x28]
TEST ECX,ECX
SETZ AL
ADD EAX,0x9
CALL 0x0001ca80
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001ee2d
SUB ESP,0xc
PUSH 0x18
CALL 0x000132e0
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],EDX
MOV EDX,dword ptr [ESP + 0x34]
ADD ESP,0x10
MOV dword ptr [EAX + 0x10],EDX
MOV EDX,dword ptr [ESP + 0x2c]
TEST EDX,EDX
CMOVNZ EDI,ESI
MOV dword ptr [EAX + 0x14],EDI
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001edc0(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0001edc0(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001edc0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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_00000010;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000018;" type_identifier identifier ;) (declaration "int in_stack_0000001c;" primitive_type identifier ;) (declaration "int in_stack_00000020;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" identifier = (call_expression "FUN_0001ca80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;" (assignment_expression "*puVar2 = in_stack_00000010" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = in_stack_00000014;" (assignment_expression "puVar2[3] = in_stack_00000014" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = in_stack_00000018;" (assignment_expression "puVar2[4] = in_stack_00000018" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }" if (parenthesized_expression "(in_stack_00000020 != 0)" ( (binary_expression "in_stack_00000020 != 0" identifier != number_literal) )) (compound_statement "{\n      in_stack_0000001c = iVar1;\n    }" { (expression_statement "in_stack_0000001c = iVar1;" (assignment_expression "in_stack_0000001c = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2[5] = in_stack_0000001c;" (assignment_expression "puVar2[5] = in_stack_0000001c" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = 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_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->fields = fields;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}\n\n" comment comment (function_definition "debug_type_conflict\ndebug_make_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->fields = fields;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}" type_identifier (function_declarator "debug_make_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)" identifier (parameter_list "(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)" ( (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)) , (parameter_declaration "debug_baseclass *baseclasses" type_identifier (pointer_declarator "*baseclasses" * identifier)) , (parameter_declaration "debug_method *methods" type_identifier (pointer_declarator "*methods" * identifier)) , (parameter_declaration "debug_type_conflict vptrbase" type_identifier identifier) , (parameter_declaration "bfd_boolean ownvptr" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  \n  pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->fields = fields;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->vptrbase = vptrbase;\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) ;) (expression_statement "pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)((structp == 0) + 9),size,structp)" identifier = (call_expression "debug_make_type((debug_handle *)((structp == 0) + 9),size,structp)" identifier (argument_list "((debug_handle *)((structp == 0) + 9),size,structp)" ( (cast_expression "(debug_handle *)((structp == 0) + 9)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((structp == 0) + 9)" ( (binary_expression "(structp == 0) + 9" (parenthesized_expression "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )) + number_literal) ))) , identifier , identifier )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x18);\n    pdVar2->mark = 0;\n    pdVar2->fields = fields;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->vptrbase = vptrbase;\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->fields = fields;\n    pdVar2->id = 0;\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->vptrbase = vptrbase;\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->fields = fields;" (assignment_expression "pdVar2->fields = fields" (field_expression "pdVar2->fields" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->id = 0;" (assignment_expression "pdVar2->id = 0" (field_expression "pdVar2->id" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar2->baseclasses = baseclasses;" (assignment_expression "pdVar2->baseclasses = baseclasses" (field_expression "pdVar2->baseclasses" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->methods = methods;" (assignment_expression "pdVar2->methods = methods" (field_expression "pdVar2->methods" identifier -> field_identifier) = identifier) ;) (if_statement "if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }" if (parenthesized_expression "(ownvptr != 0)" ( (binary_expression "ownvptr != 0" identifier != number_literal) )) (compound_statement "{\n      vptrbase = pdVar1;\n    }" { (expression_statement "vptrbase = pdVar1;" (assignment_expression "vptrbase = pdVar1" identifier = identifier) ;) })) (expression_statement "pdVar2->vptrbase = vptrbase;" (assignment_expression "pdVar2->vptrbase = vptrbase" (field_expression "pdVar2->vptrbase" 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_0001edc0(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001edc0(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001edc0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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_00000010;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000018;" type_identifier identifier ;) (declaration "int in_stack_0000001c;" primitive_type identifier ;) (declaration "int in_stack_00000020;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" identifier = (call_expression "FUN_0001ca80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;" (assignment_expression "*puVar2 = in_stack_00000010" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = in_stack_00000014;" (assignment_expression "puVar2[3] = in_stack_00000014" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = in_stack_00000018;" (assignment_expression "puVar2[4] = in_stack_00000018" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }" if (parenthesized_expression "(in_stack_00000020 != 0)" ( (binary_expression "in_stack_00000020 != 0" identifier != number_literal) )) (compound_statement "{\n      in_stack_0000001c = iVar1;\n    }" { (expression_statement "in_stack_0000001c = iVar1;" (assignment_expression "in_stack_0000001c = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2[5] = in_stack_0000001c;" (assignment_expression "puVar2[5] = in_stack_0000001c" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = 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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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_0001edc0(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\n    *(undefined4 **)(iVar1 + 0xc) = puVar2;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001edc0(void)" (identifier "FUN_0001edc0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 in_stack_00000010;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  int in_stack_0000001c;\n  int in_stack_00000020;\n  \n  iVar1 = FUN_0001ca80();\n  if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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_00000010;" (type_identifier "undefined4") (identifier "in_stack_00000010") (; ";")) (declaration "undefined4 in_stack_00000014;" (type_identifier "undefined4") (identifier "in_stack_00000014") (; ";")) (declaration "undefined4 in_stack_00000018;" (type_identifier "undefined4") (identifier "in_stack_00000018") (; ";")) (declaration "int in_stack_0000001c;" (primitive_type "int") (identifier "in_stack_0000001c") (; ";")) (declaration "int in_stack_00000020;" (primitive_type "int") (identifier "in_stack_00000020") (; ";")) (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" (identifier "iVar1") (= "=") (call_expression "FUN_0001ca80()" (identifier "FUN_0001ca80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    puVar2 = (undefined4 *)xmalloc(0x18);\n    puVar2[1] = 0;\n    *puVar2 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;\n    puVar2[2] = 0;\n    puVar2[3] = in_stack_00000014;\n    puVar2[4] = in_stack_00000018;\n    if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }\n    puVar2[5] = in_stack_0000001c;\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 = in_stack_00000010;" (assignment_expression "*puVar2 = in_stack_00000010" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "in_stack_00000010")) (; ";")) (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] = in_stack_00000014;" (assignment_expression "puVar2[3] = in_stack_00000014" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "puVar2[4] = in_stack_00000018;" (assignment_expression "puVar2[4] = in_stack_00000018" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "in_stack_00000018")) (; ";")) (if_statement "if (in_stack_00000020 != 0) {\n      in_stack_0000001c = iVar1;\n    }" (if "if") (parenthesized_expression "(in_stack_00000020 != 0)" (( "(") (binary_expression "in_stack_00000020 != 0" (identifier "in_stack_00000020") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      in_stack_0000001c = iVar1;\n    }" ({ "{") (expression_statement "in_stack_0000001c = iVar1;" (assignment_expression "in_stack_0000001c = iVar1" (identifier "in_stack_0000001c") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "puVar2[5] = in_stack_0000001c;" (assignment_expression "puVar2[5] = in_stack_0000001c" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "in_stack_0000001c")) (; ";")) (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 *baseclasses,type_6 *methods,type_1 vptrbase,
          type_2 var_5)

{
  type_7 *var_3;
  type_8 *pdVar2;
  
  var_3 = var_1((type_9 *)((var_2 == 0) + 9),size,var_2);
  if (var_3 != (type_7 *)0x0) {
    pdVar2 = (type_8 *)var_4(0x18);
    pdVar2->mark = 0;
    pdVar2->fields = fields;
    pdVar2->id = 0;
    pdVar2->baseclasses = baseclasses;
    pdVar2->methods = methods;
    if (var_5 != 0) {
      vptrbase = var_3;
    }
    pdVar2->vptrbase = vptrbase;
    (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)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (pointer_expression argument: (identifier)) right: (identifier))) (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: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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_00000010;
  undefined4 in_stack_00000014;
  undefined4 in_stack_00000018;
  int in_stack_0000001c;
  int in_stack_00000020;
  
  iVar1 = FUN_0001ca80();
  if (iVar1 != 0) {
    puVar2 = (undefined4 *)xmalloc(0x18);
    puVar2[1] = 0;
    *puVar2 = in_stack_00000010;
    puVar2[2] = 0;
    puVar2[3] = in_stack_00000014;
    puVar2[4] = in_stack_00000018;
    if (in_stack_00000020 != 0) {
      in_stack_0000001c = iVar1;
    }
    puVar2[5] = in_stack_0000001c;
    *(undefined4 **)(iVar1 + 0xc) = puVar2;
  }
  return iVar1;
}

