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

bfd_boolean tg_tag_type(void *p,char *name,uint id,debug_type_kind kind)

{
  uint uVar1;
  bfd_boolean bVar2;
  char *type;
  char idbuf [20];
  
  builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4);
  switch(kind) {
  case DEBUG_KIND_STRUCT:
    type = "struct ";
    break;
  case DEBUG_KIND_UNION:
    type = "union ";
    break;
  case DEBUG_KIND_CLASS:
    type = "class ";
    break;
  case DEBUG_KIND_UNION_CLASS:
    type = "union class ";
    break;
  case DEBUG_KIND_ENUM:
    type = "enum ";
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  uVar1 = push_type((pr_handle *)((int)p + 8),type);
  if (uVar1 != 0) {
    if (name == (char *)0x0) {
      name = idbuf;
      sprintf(name,"%%anon%u",id);
    }
    bVar2 = append_type((pr_handle *)((int)p + 8),name);
    uVar1 = (uint)(bVar2 != 0);
  }
  return uVar1;
}



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

uint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  uint uVar1;
  int iVar2;
  char acStack_20 [16];
  undefined4 uStack_10;
  
  uStack_10 = 0x386c8;
  switch(param_4) {
  case 7:
    break;
  case 8:
    break;
  case 9:
    break;
  case 10:
    break;
  case 0xb:
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  uVar1 = FUN_00037f80();
  if (uVar1 != 0) {
    if (param_2 == 0) {
      sprintf(acStack_20,"%%anon%u",param_3);
    }
    iVar2 = FUN_00036580();
    uVar1 = (uint)(iVar2 != 0);
  }
  return uVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000143d0
ADD EBX,0x39938
SUB ESP,0x20
MOV EAX,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [ESP + 0x34]
SUB EAX,0x7
CMP EAX,0x4
JA 0x00013895
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffe47e4]
ADD ECX,EBX
JMP ECX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "uint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char acStack_20 [16];" primitive_type (array_declarator "acStack_20 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x386c8;" (assignment_expression "uStack_10 = 0x386c8" identifier = number_literal) ;) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" switch (parenthesized_expression "(param_4)" ( identifier )) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { (case_statement "case 7:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 8:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 9:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 10:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 0xb:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    abort();" default : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar1 = FUN_00037f80();" (assignment_expression "uVar1 = FUN_00037f80()" identifier = (call_expression "FUN_00037f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" { (if_statement "if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" { (expression_statement "sprintf(acStack_20,"%%anon%u",param_3);" (call_expression "sprintf(acStack_20,"%%anon%u",param_3)" identifier (argument_list "(acStack_20,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" identifier = (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean tg_tag_type(void *p,char *name,uint id,debug_type_kind kind)\n\n{\n  uint uVar1;\n  bfd_boolean bVar2;\n  char *type;\n  char idbuf [20];\n  \n  builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4);\n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = push_type((pr_handle *)((int)p + 8),type);\n  if (uVar1 != 0) {\n    if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }\n    bVar2 = append_type((pr_handle *)((int)p + 8),name);\n    uVar1 = (uint)(bVar2 != 0);\n  }\n  return uVar1;\n}\n\n" comment comment (function_definition "bfd_boolean tg_tag_type(void *p,char *name,uint id,debug_type_kind kind)\n\n{\n  uint uVar1;\n  bfd_boolean bVar2;\n  char *type;\n  char idbuf [20];\n  \n  builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4);\n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = push_type((pr_handle *)((int)p + 8),type);\n  if (uVar1 != 0) {\n    if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }\n    bVar2 = append_type((pr_handle *)((int)p + 8),name);\n    uVar1 = (uint)(bVar2 != 0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "tg_tag_type(void *p,char *name,uint id,debug_type_kind kind)" identifier (parameter_list "(void *p,char *name,uint id,debug_type_kind kind)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "debug_type_kind kind" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  bfd_boolean bVar2;\n  char *type;\n  char idbuf [20];\n  \n  builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4);\n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  uVar1 = push_type((pr_handle *)((int)p + 8),type);\n  if (uVar1 != 0) {\n    if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }\n    bVar2 = append_type((pr_handle *)((int)p + 8),name);\n    uVar1 = (uint)(bVar2 != 0);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "char *type;" primitive_type (pointer_declarator "*type" * identifier) ;) (declaration "char idbuf [20];" primitive_type (array_declarator "idbuf [20]" identifier [ number_literal ]) ;) (expression_statement "builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4);" (call_expression "builtin_strncpy(idbuf + 0x10,"Ȇ\x03",4)" identifier (argument_list "(idbuf + 0x10,"Ȇ\x03",4)" ( (binary_expression "idbuf + 0x10" identifier + number_literal) , (string_literal ""Ȇ\x03"" " string_content escape_sequence ") , number_literal ))) ;) (switch_statement "switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" switch (parenthesized_expression "(kind)" ( identifier )) (compound_statement "{\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { (case_statement "case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;" case identifier : (expression_statement "type = "struct ";" (assignment_expression "type = "struct "" identifier = (string_literal ""struct "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_UNION:\n    type = "union ";\n    break;" case identifier : (expression_statement "type = "union ";" (assignment_expression "type = "union "" identifier = (string_literal ""union "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;" case identifier : (expression_statement "type = "class ";" (assignment_expression "type = "class "" identifier = (string_literal ""class "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;" case identifier : (expression_statement "type = "union class ";" (assignment_expression "type = "union class "" identifier = (string_literal ""union class "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;" case identifier : (expression_statement "type = "enum ";" (assignment_expression "type = "enum "" identifier = (string_literal ""enum "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    abort();" default : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar1 = push_type((pr_handle *)((int)p + 8),type);" (assignment_expression "uVar1 = push_type((pr_handle *)((int)p + 8),type)" identifier = (call_expression "push_type((pr_handle *)((int)p + 8),type)" identifier (argument_list "((pr_handle *)((int)p + 8),type)" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier )))) ;) (if_statement "if (uVar1 != 0) {\n    if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }\n    bVar2 = append_type((pr_handle *)((int)p + 8),name);\n    uVar1 = (uint)(bVar2 != 0);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }\n    bVar2 = append_type((pr_handle *)((int)p + 8),name);\n    uVar1 = (uint)(bVar2 != 0);\n  }" { (if_statement "if (name == (char *)0x0) {\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      name = idbuf;\n      sprintf(name,"%%anon%u",id);\n    }" { (expression_statement "name = idbuf;" (assignment_expression "name = idbuf" identifier = identifier) ;) (expression_statement "sprintf(name,"%%anon%u",id);" (call_expression "sprintf(name,"%%anon%u",id)" identifier (argument_list "(name,"%%anon%u",id)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar2 = append_type((pr_handle *)((int)p + 8),name);" (assignment_expression "bVar2 = append_type((pr_handle *)((int)p + 8),name)" identifier = (call_expression "append_type((pr_handle *)((int)p + 8),name)" identifier (argument_list "((pr_handle *)((int)p + 8),name)" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier )))) ;) (expression_statement "uVar1 = (uint)(bVar2 != 0);" (assignment_expression "uVar1 = (uint)(bVar2 != 0)" identifier = (call_expression "(uint)(bVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char acStack_20 [16];" primitive_type (array_declarator "acStack_20 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x386c8;" (assignment_expression "uStack_10 = 0x386c8" identifier = number_literal) ;) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" switch (parenthesized_expression "(param_4)" ( identifier )) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" { (case_statement "case 7:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 8:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 9:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 10:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 0xb:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "default:\n                    \n    abort();" default : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar1 = FUN_00037f80();" (assignment_expression "uVar1 = FUN_00037f80()" identifier = (call_expression "FUN_00037f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" { (if_statement "if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" { (expression_statement "sprintf(acStack_20,"%%anon%u",param_3);" (call_expression "sprintf(acStack_20,"%%anon%u",param_3)" identifier (argument_list "(acStack_20,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" identifier = (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement default : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_000386c0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000386c0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char acStack_20 [16];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x386c8;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  uVar1 = FUN_00037f80();\n  if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char acStack_20 [16];" (primitive_type "char") (array_declarator "acStack_20 [16]" (identifier "acStack_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x386c8;" (assignment_expression "uStack_10 = 0x386c8" (identifier "uStack_10") (= "=") (number_literal "0x386c8")) (; ";")) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" (switch "switch") (parenthesized_expression "(param_4)" (( "(") (identifier "param_4") () ")")) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" ({ "{") (case_statement "case 7:\n    break;" (case "case") (number_literal "7") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n    break;" (case "case") (number_literal "8") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 9:\n    break;" (case "case") (number_literal "9") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n    break;" (case "case") (number_literal "10") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xb:\n    break;" (case "case") (number_literal "0xb") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n                    \n    abort();" (default "default") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "uVar1 = FUN_00037f80();" (assignment_expression "uVar1 = FUN_00037f80()" (identifier "uVar1") (= "=") (call_expression "FUN_00037f80()" (identifier "FUN_00037f80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }\n    iVar2 = FUN_00036580();\n    uVar1 = (uint)(iVar2 != 0);\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      sprintf(acStack_20,"%%anon%u",param_3);\n    }" ({ "{") (expression_statement "sprintf(acStack_20,"%%anon%u",param_3);" (call_expression "sprintf(acStack_20,"%%anon%u",param_3)" (identifier "sprintf") (argument_list "(acStack_20,"%%anon%u",param_3)" (( "(") (identifier "acStack_20") (, ",") (string_literal ""%%anon%u"" (" """) (string_content "%%anon%u") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" (identifier "iVar2") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = (uint)(iVar2 != 0);" (assignment_expression "uVar1 = (uint)(iVar2 != 0)" (identifier "uVar1") (= "=") (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

type_1 function_1(void *p,char *var_6,type_2 id,type_3 kind)

{
  type_2 var_5;
  type_1 var_9;
  char *type;
  char var_2 [20];
  
  var_1(var_2 + 0x10,"Ȇ\x03",4);
  switch(kind) {
  case DEBUG_KIND_STRUCT:
    type = "struct ";
    break;
  case DEBUG_KIND_UNION:
    type = "union ";
    break;
  case DEBUG_KIND_CLASS:
    type = "class ";
    break;
  case DEBUG_KIND_UNION_CLASS:
    type = "union class ";
    break;
  case DEBUG_KIND_ENUM:
    type = "enum ";
    break;
  default:
                    /* WARNING: Subroutine does not return */
    var_3();
  }
  var_5 = var_4((type_4 *)((int)p + 8),type);
  if (var_5 != 0) {
    if (var_6 == (char *)0x0) {
      var_6 = var_2;
      var_7(var_6,"%%anon%u",id);
    }
    var_9 = var_8((type_4 *)((int)p + 8),var_6);
    var_5 = (type_2)(var_9 != 0);
  }
  return var_5;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

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

uint MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  uint uVar1;
  int iVar2;
  char acStack_20 [16];
  undefined4 uStack_10;
  
  uStack_10 = 0x386c8;
  switch(param_4) {
  case 7:
    break;
  case 8:
    break;
  case 9:
    break;
  case 10:
    break;
  case 0xb:
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  uVar1 = FUN_00037f80();
  if (uVar1 != 0) {
    if (param_2 == 0) {
      sprintf(acStack_20,"%%anon%u",param_3);
    }
    iVar2 = FUN_00036580();
    uVar1 = (uint)(iVar2 != 0);
  }
  return uVar1;
}

