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

bfd_boolean __regparm3
load_debug_section_with_follow(dwarf_section_display_enum sec_enum,void *data)

{
  bfd_boolean bVar1;
  bfd_boolean bVar2;
  
  bVar1 = load_debug_section(sec_enum,data);
  if (bVar1 == 0) {
    bVar1 = 0;
    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {
      bVar2 = load_debug_section(sec_enum,separate_debug_file);
      if (bVar2 != 0) {
        bVar1 = 1;
        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;
      }
    }
  }
  else {
    bVar1 = 1;
    if (separate_debug_file == data) {
      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;
      return 1;
    }
  }
  return bVar1;
}



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

undefined4 __regparm3 FUN_0004e130(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_000450c0(param_1,param_2);
  if (iVar1 == 0) {
    uVar2 = 0;
    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {
      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);
      if (iVar1 != 0) {
        uVar2 = 1;
        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;
      }
    }
  }
  else {
    uVar2 = 1;
    if (DAT_000b9d3c == param_2) {
      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;
      return 1;
    }
  }
  return uVar2;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x65ec3
SUB ESP,0x14
PUSH EDX
PUSH EAX
CALL 0x000450c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004e1a0
MOV ESI,EAX
LEA EAX,[EBX + 0x5d98]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0004e192
MOV EAX,dword ptr [EBX + 0x5d3c]
TEST EAX,EAX
JZ 0x0004e192
SUB ESP,0x8
PUSH EAX
PUSH EDI
CALL 0x000450c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004e192
MOV EAX,dword ptr [EBX + 0x5d38]
SHL EDI,0x6
MOV ESI,0x1
MOV dword ptr [EBX + EDI*0x1 + 0x84c],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0x1
CMP dword ptr [EBX + 0x5d3c],EBP
JNZ 0x0004e192
MOV EAX,dword ptr [EBX + 0x5d38]
SHL EDI,0x6
MOV dword ptr [EBX + EDI*0x1 + 0x84c],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0004e130(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0004e130(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0004e130(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_000450c0(param_1,param_2);" (assignment_expression "iVar1 = FUN_000450c0(param_1,param_2)" identifier = (call_expression "FUN_000450c0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" if (parenthesized_expression "((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0))" ( (binary_expression "(DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)" (parenthesized_expression "(DAT_000b9d98 != 0)" ( (binary_expression "DAT_000b9d98 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_000b9d3c != 0)" ( (binary_expression "DAT_000b9d3c != 0" identifier != number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" { (expression_statement "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);" (assignment_expression "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c)" identifier = (call_expression "FUN_000450c0(param_1,DAT_000b9d3c)" identifier (argument_list "(param_1,DAT_000b9d3c)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" * (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" ( (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "param_1 * 0x40" identifier * number_literal)) )))) = identifier) ;) })) })) }) (else_clause "else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" else (compound_statement "{\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" if (parenthesized_expression "(DAT_000b9d3c == param_2)" ( (binary_expression "DAT_000b9d3c == param_2" identifier == identifier) )) (compound_statement "{\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" * (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" ( (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "param_1 * 0x40" identifier * number_literal)) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nload_debug_section_with_follow(dwarf_section_display_enum sec_enum,void *data)\n\n{\n  bfd_boolean bVar1;\n  bfd_boolean bVar2;\n  \n  bVar1 = load_debug_section(sec_enum,data);\n  if (bVar1 == 0) {\n    bVar1 = 0;\n    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }\n  }\n  else {\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }\n  return bVar1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nload_debug_section_with_follow(dwarf_section_display_enum sec_enum,void *data)\n\n{\n  bfd_boolean bVar1;\n  bfd_boolean bVar2;\n  \n  bVar1 = load_debug_section(sec_enum,data);\n  if (bVar1 == 0) {\n    bVar1 = 0;\n    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }\n  }\n  else {\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }\n  return bVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "load_debug_section_with_follow(dwarf_section_display_enum sec_enum,void *data)" identifier (parameter_list "(dwarf_section_display_enum sec_enum,void *data)" ( (parameter_declaration "dwarf_section_display_enum sec_enum" type_identifier identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  bfd_boolean bVar2;\n  \n  bVar1 = load_debug_section(sec_enum,data);\n  if (bVar1 == 0) {\n    bVar1 = 0;\n    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }\n  }\n  else {\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }\n  return bVar1;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (expression_statement "bVar1 = load_debug_section(sec_enum,data);" (assignment_expression "bVar1 = load_debug_section(sec_enum,data)" identifier = (call_expression "load_debug_section(sec_enum,data)" identifier (argument_list "(sec_enum,data)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n    bVar1 = 0;\n    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }\n  }\n  else {\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar1 = 0;\n    if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }\n  }" { (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (if_statement "if ((do_follow_links != 0) && (separate_debug_file != (void *)0x0)) {\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }" if (parenthesized_expression "((do_follow_links != 0) && (separate_debug_file != (void *)0x0))" ( (binary_expression "(do_follow_links != 0) && (separate_debug_file != (void *)0x0)" (parenthesized_expression "(do_follow_links != 0)" ( (binary_expression "do_follow_links != 0" identifier != number_literal) )) && (parenthesized_expression "(separate_debug_file != (void *)0x0)" ( (binary_expression "separate_debug_file != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      bVar2 = load_debug_section(sec_enum,separate_debug_file);\n      if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }\n    }" { (expression_statement "bVar2 = load_debug_section(sec_enum,separate_debug_file);" (assignment_expression "bVar2 = load_debug_section(sec_enum,separate_debug_file)" identifier = (call_expression "load_debug_section(sec_enum,separate_debug_file)" identifier (argument_list "(sec_enum,separate_debug_file)" ( identifier , identifier )))) ;) (if_statement "if (bVar2 != 0) {\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar1 = 1;\n        *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      }" { (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) (expression_statement "*(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;" (assignment_expression "*(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename" (pointer_expression "*(char **)(&DAT_000b484c + sec_enum * 0x40)" * (cast_expression "(char **)(&DAT_000b484c + sec_enum * 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000b484c + sec_enum * 0x40)" ( (binary_expression "&DAT_000b484c + sec_enum * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "sec_enum * 0x40" identifier * number_literal)) )))) = identifier) ;) })) })) }) (else_clause "else {\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }" else (compound_statement "{\n    bVar1 = 1;\n    if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }\n  }" { (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) (if_statement "if (separate_debug_file == data) {\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }" if (parenthesized_expression "(separate_debug_file == data)" ( (binary_expression "separate_debug_file == data" identifier == identifier) )) (compound_statement "{\n      *(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;\n      return 1;\n    }" { (expression_statement "*(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename;" (assignment_expression "*(char **)(&DAT_000b484c + sec_enum * 0x40) = separate_debug_filename" (pointer_expression "*(char **)(&DAT_000b484c + sec_enum * 0x40)" * (cast_expression "(char **)(&DAT_000b484c + sec_enum * 0x40)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000b484c + sec_enum * 0x40)" ( (binary_expression "&DAT_000b484c + sec_enum * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "sec_enum * 0x40" identifier * number_literal)) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_0004e130(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0004e130(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0004e130(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_000450c0(param_1,param_2);" (assignment_expression "iVar1 = FUN_000450c0(param_1,param_2)" identifier = (call_expression "FUN_000450c0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" if (parenthesized_expression "((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0))" ( (binary_expression "(DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)" (parenthesized_expression "(DAT_000b9d98 != 0)" ( (binary_expression "DAT_000b9d98 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_000b9d3c != 0)" ( (binary_expression "DAT_000b9d3c != 0" identifier != number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" { (expression_statement "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);" (assignment_expression "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c)" identifier = (call_expression "FUN_000450c0(param_1,DAT_000b9d3c)" identifier (argument_list "(param_1,DAT_000b9d3c)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" * (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" ( (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "param_1 * 0x40" identifier * number_literal)) )))) = identifier) ;) })) })) }) (else_clause "else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" else (compound_statement "{\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" if (parenthesized_expression "(DAT_000b9d3c == param_2)" ( (binary_expression "DAT_000b9d3c == param_2" identifier == identifier) )) (compound_statement "{\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" * (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" ( (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" & identifier) + (binary_expression "param_1 * 0x40" identifier * number_literal)) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (return_statement return LIT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_0004e130(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004e130(int param_1,int param_2)" (identifier "FUN_0004e130") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_000450c0(param_1,param_2);\n  if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = FUN_000450c0(param_1,param_2);" (assignment_expression "iVar1 = FUN_000450c0(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000450c0(param_1,param_2)" (identifier "FUN_000450c0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }\n  else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" (if "if") (parenthesized_expression "((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0))" (( "(") (binary_expression "(DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)" (parenthesized_expression "(DAT_000b9d98 != 0)" (( "(") (binary_expression "DAT_000b9d98 != 0" (identifier "DAT_000b9d98") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_000b9d3c != 0)" (( "(") (binary_expression "DAT_000b9d3c != 0" (identifier "DAT_000b9d3c") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);\n      if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);" (assignment_expression "iVar1 = FUN_000450c0(param_1,DAT_000b9d3c)" (identifier "iVar1") (= "=") (call_expression "FUN_000450c0(param_1,DAT_000b9d3c)" (identifier "FUN_000450c0") (argument_list "(param_1,DAT_000b9d3c)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_000b9d3c") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 1;\n        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" (* "*") (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" (( "(") (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" (& "&") (identifier "DAT_000b484c")) (+ "+") (binary_expression "param_1 * 0x40" (identifier "param_1") (* "*") (number_literal "0x40"))) () ")")))) (= "=") (identifier "DAT_000b9d38")) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = 1;\n    if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (DAT_000b9d3c == param_2) {\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" (if "if") (parenthesized_expression "(DAT_000b9d3c == param_2)" (( "(") (binary_expression "DAT_000b9d3c == param_2" (identifier "DAT_000b9d3c") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;" (assignment_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38" (pointer_expression "*(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" (* "*") (cast_expression "(undefined4 *)(&DAT_000b484c + param_1 * 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000b484c + param_1 * 0x40)" (( "(") (binary_expression "&DAT_000b484c + param_1 * 0x40" (pointer_expression "&DAT_000b484c" (& "&") (identifier "DAT_000b484c")) (+ "+") (binary_expression "param_1 * 0x40" (identifier "param_1") (* "*") (number_literal "0x40"))) () ")")))) (= "=") (identifier "DAT_000b9d38")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 var_6,void *var_7)

{
  type_1 var_2;
  type_1 var_5;
  
  var_2 = var_1(var_6,var_7);
  if (var_2 == 0) {
    var_2 = 0;
    if ((var_3 != 0) && (var_4 != (void *)0x0)) {
      var_5 = var_1(var_6,var_4);
      if (var_5 != 0) {
        var_2 = 1;
        *(char **)(&DAT_000b484c + var_6 * 0x40) = separate_debug_filename;
      }
    }
  }
  else {
    var_2 = 1;
    if (var_4 == var_7) {
      *(char **)(&DAT_000b484c + var_6 * 0x40) = separate_debug_filename;
      return 1;
    }
  }
  return var_2;
}


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

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

undefined4 __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_000450c0(param_1,param_2);
  if (iVar1 == 0) {
    uVar2 = 0;
    if ((DAT_000b9d98 != 0) && (DAT_000b9d3c != 0)) {
      iVar1 = FUN_000450c0(param_1,DAT_000b9d3c);
      if (iVar1 != 0) {
        uVar2 = 1;
        *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;
      }
    }
  }
  else {
    uVar2 = 1;
    if (DAT_000b9d3c == param_2) {
      *(undefined4 *)(&DAT_000b484c + param_1 * 0x40) = DAT_000b9d38;
      return 1;
    }
  }
  return uVar2;
}

