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

void __regparm3 set_print_width(bfd *file)

{
  char *pcVar1;
  int iVar2;
  byte *__haystack;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  byte bVar6;
  
  bVar6 = 0;
  print_width = bfd_get_arch_size(file);
  if (print_width != -1) {
    return;
  }
  __haystack = (byte *)file->xvec->name;
  pcVar1 = strstr((char *)__haystack,"64");
  bVar4 = false;
  bVar5 = pcVar1 == (char *)0x0;
  if (bVar5) {
    iVar2 = 4;
    pbVar3 = &DAT_000181ce;
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar4 = *__haystack < *pbVar3;
      bVar5 = *__haystack == *pbVar3;
      __haystack = __haystack + (uint)bVar6 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;
    } while (bVar5);
    if ((!bVar4 && !bVar5) != bVar4) {
      print_width = 0x20;
      return;
    }
  }
  print_width = 0x40;
  return;
}



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

void __regparm3 FUN_00014e90(int param_1)

{
  char *pcVar1;
  int iVar2;
  byte *__haystack;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  byte bVar6;
  
  bVar6 = 0;
  DAT_0001d3dc = bfd_get_arch_size(param_1);
  if (DAT_0001d3dc != -1) {
    return;
  }
  __haystack = (byte *)**(undefined4 **)(param_1 + 4);
  pcVar1 = strstr((char *)__haystack,"64");
  bVar4 = false;
  bVar5 = pcVar1 == (char *)0x0;
  if (bVar5) {
    iVar2 = 4;
    pbVar3 = &DAT_000181ce;
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar4 = *__haystack < *pbVar3;
      bVar5 = *__haystack == *pbVar3;
      __haystack = __haystack + (uint)bVar6 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;
    } while (bVar5);
    if ((!bVar4 && !bVar5) != bVar4) {
      DAT_0001d3dc = 0x20;
      return;
    }
  }
  DAT_0001d3dc = 0x40;
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00012a60
ADD EBX,0x8166
SUB ESP,0xc
PUSH EAX
CALL 0x00012240
ADD ESP,0x10
MOV dword ptr [EBX + 0x3dc],EAX
CMP EAX,-0x1
JZ 0x00014ec0
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x8
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffffb25f]
PUSH EAX
PUSH ESI
CALL 0x00012050
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00014ef0
MOV dword ptr [EBX + 0x3dc],0x40
POP EBX
POP ESI
POP EDI
RET
MOV ECX,0x4
LEA EDI,[EBX + 0xffffb1ce]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00014edc
MOV dword ptr [EBX + 0x3dc],0x20
JMP 0x00014eb7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00014e90(int param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00014e90(int param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014e90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *__haystack;" type_identifier (pointer_declarator "*__haystack" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "DAT_0001d3dc = bfd_get_arch_size(param_1);" (assignment_expression "DAT_0001d3dc = bfd_get_arch_size(param_1)" identifier = (call_expression "bfd_get_arch_size(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (DAT_0001d3dc != -1) {\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc != -1)" ( (binary_expression "DAT_0001d3dc != -1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__haystack = (byte *)**(undefined4 **)(param_1 + 4);" (assignment_expression "__haystack = (byte *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(byte *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (expression_statement "pcVar1 = strstr((char *)__haystack,"64");" (assignment_expression "pcVar1 = strstr((char *)__haystack,"64")" identifier = (call_expression "strstr((char *)__haystack,"64")" identifier (argument_list "((char *)__haystack,"64")" ( (cast_expression "(char *)__haystack" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""64"" " string_content ") )))) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = pcVar1 == (char *)0x0;" (assignment_expression "bVar5 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" { (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (expression_statement "pbVar3 = &DAT_000181ce;" (assignment_expression "pbVar3 = &DAT_000181ce" identifier = (pointer_expression "&DAT_000181ce" & identifier)) ;) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *__haystack < *pbVar3;" (assignment_expression "bVar4 = *__haystack < *pbVar3" identifier = (binary_expression "*__haystack < *pbVar3" (pointer_expression "*__haystack" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *__haystack == *pbVar3;" (assignment_expression "bVar5 = *__haystack == *pbVar3" identifier = (binary_expression "*__haystack == *pbVar3" (pointer_expression "*__haystack" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "__haystack = __haystack + (uint)bVar6 * -2 + 1;" (assignment_expression "__haystack = __haystack + (uint)bVar6 * -2 + 1" identifier = (binary_expression "__haystack + (uint)bVar6 * -2 + 1" (binary_expression "__haystack + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar6 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }" if (parenthesized_expression "((!bVar4 && !bVar5) != bVar4)" ( (binary_expression "(!bVar4 && !bVar5) != bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier) )) (compound_statement "{\n      DAT_0001d3dc = 0x20;\n      return;\n    }" { (expression_statement "DAT_0001d3dc = 0x20;" (assignment_expression "DAT_0001d3dc = 0x20" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "DAT_0001d3dc = 0x40;" (assignment_expression "DAT_0001d3dc = 0x40" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 set_print_width(bfd *file)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  print_width = bfd_get_arch_size(file);\n  if (print_width != -1) {\n    return;\n  }\n  __haystack = (byte *)file->xvec->name;\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }\n  }\n  print_width = 0x40;\n  return;\n}\n\n" comment (function_definition "void __regparm3 set_print_width(bfd *file)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  print_width = bfd_get_arch_size(file);\n  if (print_width != -1) {\n    return;\n  }\n  __haystack = (byte *)file->xvec->name;\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }\n  }\n  print_width = 0x40;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "set_print_width(bfd *file)" identifier (parameter_list "(bfd *file)" ( (parameter_declaration "bfd *file" type_identifier (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  print_width = bfd_get_arch_size(file);\n  if (print_width != -1) {\n    return;\n  }\n  __haystack = (byte *)file->xvec->name;\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }\n  }\n  print_width = 0x40;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *__haystack;" type_identifier (pointer_declarator "*__haystack" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "print_width = bfd_get_arch_size(file);" (assignment_expression "print_width = bfd_get_arch_size(file)" identifier = (call_expression "bfd_get_arch_size(file)" identifier (argument_list "(file)" ( identifier )))) ;) (if_statement "if (print_width != -1) {\n    return;\n  }" if (parenthesized_expression "(print_width != -1)" ( (binary_expression "print_width != -1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__haystack = (byte *)file->xvec->name;" (assignment_expression "__haystack = (byte *)file->xvec->name" identifier = (cast_expression "(byte *)file->xvec->name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "file->xvec->name" (field_expression "file->xvec" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "pcVar1 = strstr((char *)__haystack,"64");" (assignment_expression "pcVar1 = strstr((char *)__haystack,"64")" identifier = (call_expression "strstr((char *)__haystack,"64")" identifier (argument_list "((char *)__haystack,"64")" ( (cast_expression "(char *)__haystack" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""64"" " string_content ") )))) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = pcVar1 == (char *)0x0;" (assignment_expression "bVar5 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }\n  }" { (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (expression_statement "pbVar3 = &DAT_000181ce;" (assignment_expression "pbVar3 = &DAT_000181ce" identifier = (pointer_expression "&DAT_000181ce" & identifier)) ;) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *__haystack < *pbVar3;" (assignment_expression "bVar4 = *__haystack < *pbVar3" identifier = (binary_expression "*__haystack < *pbVar3" (pointer_expression "*__haystack" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *__haystack == *pbVar3;" (assignment_expression "bVar5 = *__haystack == *pbVar3" identifier = (binary_expression "*__haystack == *pbVar3" (pointer_expression "*__haystack" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "__haystack = __haystack + (uint)bVar6 * -2 + 1;" (assignment_expression "__haystack = __haystack + (uint)bVar6 * -2 + 1" identifier = (binary_expression "__haystack + (uint)bVar6 * -2 + 1" (binary_expression "__haystack + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar6 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) != bVar4) {\n      print_width = 0x20;\n      return;\n    }" if (parenthesized_expression "((!bVar4 && !bVar5) != bVar4)" ( (binary_expression "(!bVar4 && !bVar5) != bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier) )) (compound_statement "{\n      print_width = 0x20;\n      return;\n    }" { (expression_statement "print_width = 0x20;" (assignment_expression "print_width = 0x20" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "print_width = 0x40;" (assignment_expression "print_width = 0x40" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00014e90(int param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00014e90(int param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014e90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *__haystack;" type_identifier (pointer_declarator "*__haystack" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "DAT_0001d3dc = bfd_get_arch_size(param_1);" (assignment_expression "DAT_0001d3dc = bfd_get_arch_size(param_1)" identifier = (call_expression "bfd_get_arch_size(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (DAT_0001d3dc != -1) {\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc != -1)" ( (binary_expression "DAT_0001d3dc != -1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__haystack = (byte *)**(undefined4 **)(param_1 + 4);" (assignment_expression "__haystack = (byte *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(byte *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (expression_statement "pcVar1 = strstr((char *)__haystack,"64");" (assignment_expression "pcVar1 = strstr((char *)__haystack,"64")" identifier = (call_expression "strstr((char *)__haystack,"64")" identifier (argument_list "((char *)__haystack,"64")" ( (cast_expression "(char *)__haystack" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""64"" " string_content ") )))) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar5 = pcVar1 == (char *)0x0;" (assignment_expression "bVar5 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" { (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (expression_statement "pbVar3 = &DAT_000181ce;" (assignment_expression "pbVar3 = &DAT_000181ce" identifier = (pointer_expression "&DAT_000181ce" & identifier)) ;) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);" do (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *__haystack < *pbVar3;" (assignment_expression "bVar4 = *__haystack < *pbVar3" identifier = (binary_expression "*__haystack < *pbVar3" (pointer_expression "*__haystack" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *__haystack == *pbVar3;" (assignment_expression "bVar5 = *__haystack == *pbVar3" identifier = (binary_expression "*__haystack == *pbVar3" (pointer_expression "*__haystack" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "__haystack = __haystack + (uint)bVar6 * -2 + 1;" (assignment_expression "__haystack = __haystack + (uint)bVar6 * -2 + 1" identifier = (binary_expression "__haystack + (uint)bVar6 * -2 + 1" (binary_expression "__haystack + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar6 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }" if (parenthesized_expression "((!bVar4 && !bVar5) != bVar4)" ( (binary_expression "(!bVar4 && !bVar5) != bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" ( (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier) )) (compound_statement "{\n      DAT_0001d3dc = 0x20;\n      return;\n    }" { (expression_statement "DAT_0001d3dc = 0x20;" (assignment_expression "DAT_0001d3dc = 0x20" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "DAT_0001d3dc = 0x40;" (assignment_expression "DAT_0001d3dc = 0x40" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00014e90(int param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014e90(int param_1)" (identifier "FUN_00014e90") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  byte *__haystack;\n  byte *pbVar3;\n  bool bVar4;\n  bool bVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  DAT_0001d3dc = bfd_get_arch_size(param_1);\n  if (DAT_0001d3dc != -1) {\n    return;\n  }\n  __haystack = (byte *)**(undefined4 **)(param_1 + 4);\n  pcVar1 = strstr((char *)__haystack,"64");\n  bVar4 = false;\n  bVar5 = pcVar1 == (char *)0x0;\n  if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }\n  DAT_0001d3dc = 0x40;\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *__haystack;" (type_identifier "byte") (pointer_declarator "*__haystack" (* "*") (identifier "__haystack")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0001d3dc = bfd_get_arch_size(param_1);" (assignment_expression "DAT_0001d3dc = bfd_get_arch_size(param_1)" (identifier "DAT_0001d3dc") (= "=") (call_expression "bfd_get_arch_size(param_1)" (identifier "bfd_get_arch_size") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (DAT_0001d3dc != -1) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0001d3dc != -1)" (( "(") (binary_expression "DAT_0001d3dc != -1" (identifier "DAT_0001d3dc") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__haystack = (byte *)**(undefined4 **)(param_1 + 4);" (assignment_expression "__haystack = (byte *)**(undefined4 **)(param_1 + 4)" (identifier "__haystack") (= "=") (cast_expression "(byte *)**(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 4)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))))) (; ";")) (expression_statement "pcVar1 = strstr((char *)__haystack,"64");" (assignment_expression "pcVar1 = strstr((char *)__haystack,"64")" (identifier "pcVar1") (= "=") (call_expression "strstr((char *)__haystack,"64")" (identifier "strstr") (argument_list "((char *)__haystack,"64")" (( "(") (cast_expression "(char *)__haystack" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__haystack")) (, ",") (string_literal ""64"" (" """) (string_content "64") (" """)) () ")")))) (; ";")) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "bVar5 = pcVar1 == (char *)0x0;" (assignment_expression "bVar5 = pcVar1 == (char *)0x0" (identifier "bVar5") (= "=") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (bVar5) {\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    iVar2 = 4;\n    pbVar3 = &DAT_000181ce;\n    do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);\n    if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";")) (expression_statement "pbVar3 = &DAT_000181ce;" (assignment_expression "pbVar3 = &DAT_000181ce" (identifier "pbVar3") (= "=") (pointer_expression "&DAT_000181ce" (& "&") (identifier "DAT_000181ce"))) (; ";")) (do_statement "do {\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    } while (bVar5);" (do "do") (compound_statement "{\n      if (iVar2 == 0) break;\n      iVar2 = iVar2 + -1;\n      bVar4 = *__haystack < *pbVar3;\n      bVar5 = *__haystack == *pbVar3;\n      __haystack = __haystack + (uint)bVar6 * -2 + 1;\n      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar4 = *__haystack < *pbVar3;" (assignment_expression "bVar4 = *__haystack < *pbVar3" (identifier "bVar4") (= "=") (binary_expression "*__haystack < *pbVar3" (pointer_expression "*__haystack" (* "*") (identifier "__haystack")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar5 = *__haystack == *pbVar3;" (assignment_expression "bVar5 = *__haystack == *pbVar3" (identifier "bVar5") (= "=") (binary_expression "*__haystack == *pbVar3" (pointer_expression "*__haystack" (* "*") (identifier "__haystack")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "__haystack = __haystack + (uint)bVar6 * -2 + 1;" (assignment_expression "__haystack = __haystack + (uint)bVar6 * -2 + 1" (identifier "__haystack") (= "=") (binary_expression "__haystack + (uint)bVar6 * -2 + 1" (binary_expression "__haystack + (uint)bVar6 * -2" (identifier "__haystack") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar6 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar6 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (; ";")) (if_statement "if ((!bVar4 && !bVar5) != bVar4) {\n      DAT_0001d3dc = 0x20;\n      return;\n    }" (if "if") (parenthesized_expression "((!bVar4 && !bVar5) != bVar4)" (( "(") (binary_expression "(!bVar4 && !bVar5) != bVar4" (parenthesized_expression "(!bVar4 && !bVar5)" (( "(") (binary_expression "!bVar4 && !bVar5" (unary_expression "!bVar4" (! "!") (identifier "bVar4")) (&& "&&") (unary_expression "!bVar5" (! "!") (identifier "bVar5"))) () ")")) (!= "!=") (identifier "bVar4")) () ")")) (compound_statement "{\n      DAT_0001d3dc = 0x20;\n      return;\n    }" ({ "{") (expression_statement "DAT_0001d3dc = 0x20;" (assignment_expression "DAT_0001d3dc = 0x20" (identifier "DAT_0001d3dc") (= "=") (number_literal "0x20")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_0001d3dc = 0x40;" (assignment_expression "DAT_0001d3dc = 0x40" (identifier "DAT_0001d3dc") (= "=") (number_literal "0x40")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *file)

{
  char *var_4;
  int var_5;
  type_2 *var_6;
  type_2 *var_7;
  bool var_8;
  bool bVar5;
  type_2 bVar6;
  
  bVar6 = 0;
  var_2 = var_1(file);
  if (var_2 != -1) {
    return;
  }
  var_6 = (type_2 *)file->xvec->name;
  var_4 = var_3((char *)var_6,"64");
  var_8 = false;
  bVar5 = var_4 == (char *)0x0;
  if (bVar5) {
    var_5 = 4;
    var_7 = &DAT_000181ce;
    do {
      if (var_5 == 0) break;
      var_5 = var_5 + -1;
      var_8 = *var_6 < *var_7;
      bVar5 = *var_6 == *var_7;
      var_6 = var_6 + (type_3)bVar6 * -2 + 1;
      var_7 = var_7 + (type_3)bVar6 * -2 + 1;
    } while (bVar5);
    if ((!var_8 && !bVar5) != var_8) {
      var_2 = 0x20;
      return;
    }
  }
  var_2 = 0x40;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  char *pcVar1;
  int iVar2;
  byte *__haystack;
  byte *pbVar3;
  bool bVar4;
  bool bVar5;
  byte bVar6;
  
  bVar6 = 0;
  DAT_0001d3dc = bfd_get_arch_size(param_1);
  if (DAT_0001d3dc != -1) {
    return;
  }
  __haystack = (byte *)**(undefined4 **)(param_1 + 4);
  pcVar1 = strstr((char *)__haystack,"64");
  bVar4 = false;
  bVar5 = pcVar1 == (char *)0x0;
  if (bVar5) {
    iVar2 = 4;
    pbVar3 = &DAT_000181ce;
    do {
      if (iVar2 == 0) break;
      iVar2 = iVar2 + -1;
      bVar4 = *__haystack < *pbVar3;
      bVar5 = *__haystack == *pbVar3;
      __haystack = __haystack + (uint)bVar6 * -2 + 1;
      pbVar3 = pbVar3 + (uint)bVar6 * -2 + 1;
    } while (bVar5);
    if ((!bVar4 && !bVar5) != bVar4) {
      DAT_0001d3dc = 0x20;
      return;
    }
  }
  DAT_0001d3dc = 0x40;
  return;
}

