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

char * __regparm3 get_symbol_index_type(Filedata *filedata,uint type)

{
  ushort uVar1;
  char *__format;
  
  if (type == 0xfffffff1) {
    return "ABS";
  }
  if (type == 0xfffffff2) {
    return "COM";
  }
  if (type == 0) {
    return "UND";
  }
  uVar1 = (filedata->file_header).e_machine;
  if (type == 0xffffff00) {
    if (uVar1 == 0x32) {
      if ((filedata->file_header).e_ident[7] == '\x01') {
        return "ANSI_COM";
      }
    }
    else if (uVar1 == 0x8c) {
      return "SCOM";
    }
  }
  else {
    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {
      return "LARGE_COM";
    }
    if (type == 0xffffff03) {
      if (uVar1 == 8) {
        return "SCOM";
      }
    }
    else {
      if ((type == 0xffffff04) && (uVar1 == 8)) {
        return "SUND";
      }
      if (0x1f < type + 0x100) {
        if (type + 0xe0 < 0x20) {
          type = type & 0xffff;
          __format = "OS [0x%04x]";
        }
        else if (type < 0xffffff00) {
          if (type < (filedata->file_header).e_shnum) {
            __format = "%3d";
          }
          else {
            __format = (char *)dcgettext(0,"bad section index[%3d]",5);
          }
        }
        else {
          type = type & 0xffff;
          __format = "RSV[0x%04x]";
        }
        goto LAB_00023eed;
      }
    }
  }
  type = type & 0xffff;
  __format = "PRC[0x%04x]";
LAB_00023eed:
  sprintf(buff_18735,__format,type);
  return buff_18735;
}



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

char * __regparm3 FUN_00023e70(int param_1,uint param_2)

{
  short sVar1;
  char *__format;
  
  if (param_2 == 0xfffffff1) {
    return "ABS";
  }
  if (param_2 == 0xfffffff2) {
    return "COM";
  }
  if (param_2 == 0) {
    return "UND";
  }
  sVar1 = *(short *)(param_1 + 0x42);
  if (param_2 == 0xffffff00) {
    if (sVar1 == 0x32) {
      if (*(char *)(param_1 + 0x17) == '\x01') {
        return "ANSI_COM";
      }
    }
    else if (sVar1 == 0x8c) {
      return "SCOM";
    }
  }
  else {
    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {
      return "LARGE_COM";
    }
    if (param_2 == 0xffffff03) {
      if (sVar1 == 8) {
        return "SCOM";
      }
    }
    else {
      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {
        return "SUND";
      }
      if (0x1f < param_2 + 0x100) {
        if (param_2 + 0xe0 < 0x20) {
          param_2 = param_2 & 0xffff;
          __format = "OS [0x%04x]";
        }
        else if (param_2 < 0xffffff00) {
          if (param_2 < *(uint *)(param_1 + 0x54)) {
            __format = "%3d";
          }
          else {
            __format = (char *)dcgettext(0,"bad section index[%3d]",5);
          }
        }
        else {
          param_2 = param_2 & 0xffff;
          __format = "RSV[0x%04x]";
        }
        goto LAB_00023eed;
      }
    }
  }
  param_2 = param_2 & 0xffff;
  __format = "PRC[0x%04x]";
LAB_00023eed:
  sprintf(&DAT_000b5600,__format,param_2);
  return &DAT_000b5600;
}


PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x90189
SUB ESP,0x14
LEA ECX,[EBX + 0xfffb94a4]
CMP EDX,-0xf
JZ 0x00023eff
LEA ECX,[EBX + 0xfffc320b]
CMP EDX,-0xe
JZ 0x00023eff
LEA ECX,[EBX + 0xfffc31fd]
TEST EDX,EDX
JZ 0x00023eff
MOVZX ESI,word ptr [EAX + 0x42]
CMP EDX,0xffffff00
JZ 0x00023f10
LEA ECX,[ESI + 0xffffff4c]
CMP CX,0x1
JBE 0x00023ebe
CMP SI,0x3e
JNZ 0x00023ecc
LEA ECX,[EBX + 0xfffc31f2]
CMP EDX,0xffffff02
JZ 0x00023eff
CMP EDX,0xffffff03
JNZ 0x00023f30
LEA ECX,[EBX + 0xfffc320a]
CMP SI,0x8
JZ 0x00023eff
SUB ESP,0x4
MOVZX EDX,DX
LEA EAX,[EBX + 0xfffc320f]
PUSH EDX
LEA ESI,[EBX + 0x1600]
PUSH EAX
PUSH ESI
CALL 0x00013370
ADD ESP,0x10
MOV ECX,ESI
ADD ESP,0x14
MOV EAX,ECX
POP EBX
POP ESI
RET
CMP SI,0x32
JZ 0x00023fb8
LEA ECX,[EBX + 0xfffc320a]
CMP SI,0x8c
JNZ 0x00023ee0
JMP 0x00023eff
CMP EDX,0xffffff04
JNZ 0x00023f44
LEA ECX,[EBX + 0xfffc31fc]
CMP SI,0x8
JZ 0x00023eff
LEA ECX,[EDX + 0x100]
CMP ECX,0x1f
JBE 0x00023ee0
LEA ECX,[EDX + 0xe0]
CMP ECX,0x1f
JBE 0x00023fa0
CMP EDX,0xfffffeff
JA 0x00023fd0
CMP EDX,dword ptr [EAX + 0x54]
JC 0x00023f90
MOV dword ptr [ESP + 0xc],EDX
LEA EAX,[EBX + 0xfffc3233]
SUB ESP,0x4
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x10]
PUSH EDX
JMP 0x00023eed
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc324a]
PUSH EDX
JMP 0x00023eed
SUB ESP,0x4
MOVZX EDX,DX
LEA EAX,[EBX + 0xfffc321b]
PUSH EDX
JMP 0x00023eed
CMP byte ptr [EAX + 0x17],0x1
LEA ECX,[EBX + 0xfffc3201]
JNZ 0x00023ee0
JMP 0x00023eff
SUB ESP,0x4
MOVZX EDX,DX
LEA EAX,[EBX + 0xfffc3227]
PUSH EDX
JMP 0x00023eed
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_00023e70(int param_1,uint param_2)\n\n{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}\n\n" comment (function_definition "char * __regparm3 FUN_00023e70(int param_1,uint param_2)\n\n{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00023e70(int param_1,uint param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00023e70(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (if_statement "if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }" if (parenthesized_expression "(param_2 == 0xfffffff1)" ( (binary_expression "param_2 == 0xfffffff1" identifier == number_literal) )) (compound_statement "{\n    return "ABS";\n  }" { (return_statement "return "ABS";" return (string_literal ""ABS"" " string_content ") ;) })) (if_statement "if (param_2 == 0xfffffff2) {\n    return "COM";\n  }" if (parenthesized_expression "(param_2 == 0xfffffff2)" ( (binary_expression "param_2 == 0xfffffff2" identifier == number_literal) )) (compound_statement "{\n    return "COM";\n  }" { (return_statement "return "COM";" return (string_literal ""COM"" " string_content ") ;) })) (if_statement "if (param_2 == 0) {\n    return "UND";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return "UND";\n  }" { (return_statement "return "UND";" return (string_literal ""UND"" " string_content ") ;) })) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" identifier = (pointer_expression "*(short *)(param_1 + 0x42)" * (cast_expression "(short *)(param_1 + 0x42)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0xffffff00)" ( (binary_expression "param_2 == 0xffffff00" identifier == number_literal) )) (compound_statement "{\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }" { (if_statement "if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(sVar1 == 0x32)" ( (binary_expression "sVar1 == 0x32" identifier == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x17) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x17) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x17)" * (cast_expression "(char *)(param_1 + 0x17)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17)" ( (binary_expression "param_1 + 0x17" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        return "ANSI_COM";\n      }" { (return_statement "return "ANSI_COM";" return (string_literal ""ANSI_COM"" " string_content ") ;) })) }) (else_clause "else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" else (if_statement "if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(sVar1 == 0x8c)" ( (binary_expression "sVar1 == 0x8c" identifier == number_literal) )) (compound_statement "{\n      return "SCOM";\n    }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })))) }) (else_clause "else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" else (compound_statement "{\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" { (if_statement "if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }" if (parenthesized_expression "((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02))" ( (binary_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)" (parenthesized_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e))" ( (binary_expression "((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)" (parenthesized_expression "((ushort)(sVar1 - 0xb4U) < 2)" ( (binary_expression "(ushort)(sVar1 - 0xb4U) < 2" (call_expression "(ushort)(sVar1 - 0xb4U)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(sVar1 - 0xb4U)" ( (binary_expression "sVar1 - 0xb4U" identifier - number_literal) ))) < number_literal) )) || (parenthesized_expression "(sVar1 == 0x3e)" ( (binary_expression "sVar1 == 0x3e" identifier == number_literal) ))) )) && (parenthesized_expression "(param_2 == 0xffffff02)" ( (binary_expression "param_2 == 0xffffff02" identifier == number_literal) ))) )) (compound_statement "{\n      return "LARGE_COM";\n    }" { (return_statement "return "LARGE_COM";" return (string_literal ""LARGE_COM"" " string_content ") ;) })) (if_statement "if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" if (parenthesized_expression "(param_2 == 0xffffff03)" ( (binary_expression "param_2 == 0xffffff03" identifier == number_literal) )) (compound_statement "{\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }" { (if_statement "if (sVar1 == 8) {\n        return "SCOM";\n      }" if (parenthesized_expression "(sVar1 == 8)" ( (binary_expression "sVar1 == 8" identifier == number_literal) )) (compound_statement "{\n        return "SCOM";\n      }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })) }) (else_clause "else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" else (compound_statement "{\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" { (if_statement "if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }" if (parenthesized_expression "((param_2 == 0xffffff04) && (sVar1 == 8))" ( (binary_expression "(param_2 == 0xffffff04) && (sVar1 == 8)" (parenthesized_expression "(param_2 == 0xffffff04)" ( (binary_expression "param_2 == 0xffffff04" identifier == number_literal) )) && (parenthesized_expression "(sVar1 == 8)" ( (binary_expression "sVar1 == 8" identifier == number_literal) ))) )) (compound_statement "{\n        return "SUND";\n      }" { (return_statement "return "SUND";" return (string_literal ""SUND"" " string_content ") ;) })) (if_statement "if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" if (parenthesized_expression "(0x1f < param_2 + 0x100)" ( (binary_expression "0x1f < param_2 + 0x100" number_literal < (binary_expression "param_2 + 0x100" identifier + number_literal)) )) (compound_statement "{\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" { (if_statement "if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(param_2 + 0xe0 < 0x20)" ( (binary_expression "param_2 + 0xe0 < 0x20" (binary_expression "param_2 + 0xe0" identifier + number_literal) < number_literal) )) (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }" { (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "OS [0x%04x]";" (assignment_expression "__format = "OS [0x%04x]"" identifier = (string_literal ""OS [0x%04x]"" " string_content ")) ;) }) (else_clause "else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (if_statement "if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(param_2 < 0xffffff00)" ( (binary_expression "param_2 < 0xffffff00" identifier < number_literal) )) (compound_statement "{\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }" { (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" if (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) (compound_statement "{\n            __format = "%3d";\n          }" { (expression_statement "__format = "%3d";" (assignment_expression "__format = "%3d"" identifier = (string_literal ""%3d"" " string_content ")) ;) }) (else_clause "else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" else (compound_statement "{\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" { (expression_statement "__format = (char *)dcgettext(0,"bad section index[%3d]",5);" (assignment_expression "__format = (char *)dcgettext(0,"bad section index[%3d]",5)" identifier = (cast_expression "(char *)dcgettext(0,"bad section index[%3d]",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"bad section index[%3d]",5)" identifier (argument_list "(0,"bad section index[%3d]",5)" ( number_literal , (string_literal ""bad section index[%3d]"" " string_content ") , number_literal ))))) ;) }))) }) (else_clause "else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" { (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "RSV[0x%04x]";" (assignment_expression "__format = "RSV[0x%04x]"" identifier = (string_literal ""RSV[0x%04x]"" " string_content ")) ;) }))))) (goto_statement "goto LAB_00023eed;" goto statement_identifier ;) })) }))) }))) (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "PRC[0x%04x]";" (assignment_expression "__format = "PRC[0x%04x]"" identifier = (string_literal ""PRC[0x%04x]"" " string_content ")) ;) (labeled_statement "LAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);" statement_identifier : (expression_statement "sprintf(&DAT_000b5600,__format,param_2);" (call_expression "sprintf(&DAT_000b5600,__format,param_2)" identifier (argument_list "(&DAT_000b5600,__format,param_2)" ( (pointer_expression "&DAT_000b5600" & identifier) , identifier , identifier ))) ;)) (return_statement "return &DAT_000b5600;" return (pointer_expression "&DAT_000b5600" & identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 get_symbol_index_type(Filedata *filedata,uint type)\n\n{\n  ushort uVar1;\n  char *__format;\n  \n  if (type == 0xfffffff1) {\n    return "ABS";\n  }\n  if (type == 0xfffffff2) {\n    return "COM";\n  }\n  if (type == 0) {\n    return "UND";\n  }\n  uVar1 = (filedata->file_header).e_machine;\n  if (type == 0xffffff00) {\n    if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  type = type & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(buff_18735,__format,type);\n  return buff_18735;\n}\n\n" comment (function_definition "char * __regparm3 get_symbol_index_type(Filedata *filedata,uint type)\n\n{\n  ushort uVar1;\n  char *__format;\n  \n  if (type == 0xfffffff1) {\n    return "ABS";\n  }\n  if (type == 0xfffffff2) {\n    return "COM";\n  }\n  if (type == 0) {\n    return "UND";\n  }\n  uVar1 = (filedata->file_header).e_machine;\n  if (type == 0xffffff00) {\n    if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  type = type & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(buff_18735,__format,type);\n  return buff_18735;\n}" primitive_type (pointer_declarator "* __regparm3 get_symbol_index_type(Filedata *filedata,uint type)" * (ERROR "__regparm3" identifier) (function_declarator "get_symbol_index_type(Filedata *filedata,uint type)" identifier (parameter_list "(Filedata *filedata,uint type)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "uint type" type_identifier identifier) )))) (compound_statement "{\n  ushort uVar1;\n  char *__format;\n  \n  if (type == 0xfffffff1) {\n    return "ABS";\n  }\n  if (type == 0xfffffff2) {\n    return "COM";\n  }\n  if (type == 0) {\n    return "UND";\n  }\n  uVar1 = (filedata->file_header).e_machine;\n  if (type == 0xffffff00) {\n    if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  type = type & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(buff_18735,__format,type);\n  return buff_18735;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (if_statement "if (type == 0xfffffff1) {\n    return "ABS";\n  }" if (parenthesized_expression "(type == 0xfffffff1)" ( (binary_expression "type == 0xfffffff1" identifier == number_literal) )) (compound_statement "{\n    return "ABS";\n  }" { (return_statement "return "ABS";" return (string_literal ""ABS"" " string_content ") ;) })) (if_statement "if (type == 0xfffffff2) {\n    return "COM";\n  }" if (parenthesized_expression "(type == 0xfffffff2)" ( (binary_expression "type == 0xfffffff2" identifier == number_literal) )) (compound_statement "{\n    return "COM";\n  }" { (return_statement "return "COM";" return (string_literal ""COM"" " string_content ") ;) })) (if_statement "if (type == 0) {\n    return "UND";\n  }" if (parenthesized_expression "(type == 0)" ( (binary_expression "type == 0" identifier == number_literal) )) (compound_statement "{\n    return "UND";\n  }" { (return_statement "return "UND";" return (string_literal ""UND"" " string_content ") ;) })) (expression_statement "uVar1 = (filedata->file_header).e_machine;" (assignment_expression "uVar1 = (filedata->file_header).e_machine" identifier = (field_expression "(filedata->file_header).e_machine" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (type == 0xffffff00) {\n    if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" if (parenthesized_expression "(type == 0xffffff00)" ( (binary_expression "type == 0xffffff00" identifier == number_literal) )) (compound_statement "{\n    if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }" { (if_statement "if (uVar1 == 0x32) {\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(uVar1 == 0x32)" ( (binary_expression "uVar1 == 0x32" identifier == number_literal) )) (compound_statement "{\n      if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }\n    }" { (if_statement "if ((filedata->file_header).e_ident[7] == '\x01') {\n        return "ANSI_COM";\n      }" if (parenthesized_expression "((filedata->file_header).e_ident[7] == '\x01')" ( (binary_expression "(filedata->file_header).e_ident[7] == '\x01'" (subscript_expression "(filedata->file_header).e_ident[7]" (field_expression "(filedata->file_header).e_ident" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        return "ANSI_COM";\n      }" { (return_statement "return "ANSI_COM";" return (string_literal ""ANSI_COM"" " string_content ") ;) })) }) (else_clause "else if (uVar1 == 0x8c) {\n      return "SCOM";\n    }" else (if_statement "if (uVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(uVar1 == 0x8c)" ( (binary_expression "uVar1 == 0x8c" identifier == number_literal) )) (compound_statement "{\n      return "SCOM";\n    }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })))) }) (else_clause "else {\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" else (compound_statement "{\n    if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" { (if_statement "if ((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)) {\n      return "LARGE_COM";\n    }" if (parenthesized_expression "((((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02))" ( (binary_expression "(((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)) && (type == 0xffffff02)" (parenthesized_expression "(((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e))" ( (binary_expression "((ushort)(uVar1 - 0xb4) < 2) || (uVar1 == 0x3e)" (parenthesized_expression "((ushort)(uVar1 - 0xb4) < 2)" ( (binary_expression "(ushort)(uVar1 - 0xb4) < 2" (call_expression "(ushort)(uVar1 - 0xb4)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar1 - 0xb4)" ( (binary_expression "uVar1 - 0xb4" identifier - number_literal) ))) < number_literal) )) || (parenthesized_expression "(uVar1 == 0x3e)" ( (binary_expression "uVar1 == 0x3e" identifier == number_literal) ))) )) && (parenthesized_expression "(type == 0xffffff02)" ( (binary_expression "type == 0xffffff02" identifier == number_literal) ))) )) (compound_statement "{\n      return "LARGE_COM";\n    }" { (return_statement "return "LARGE_COM";" return (string_literal ""LARGE_COM"" " string_content ") ;) })) (if_statement "if (type == 0xffffff03) {\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" if (parenthesized_expression "(type == 0xffffff03)" ( (binary_expression "type == 0xffffff03" identifier == number_literal) )) (compound_statement "{\n      if (uVar1 == 8) {\n        return "SCOM";\n      }\n    }" { (if_statement "if (uVar1 == 8) {\n        return "SCOM";\n      }" if (parenthesized_expression "(uVar1 == 8)" ( (binary_expression "uVar1 == 8" identifier == number_literal) )) (compound_statement "{\n        return "SCOM";\n      }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })) }) (else_clause "else {\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" else (compound_statement "{\n      if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" { (if_statement "if ((type == 0xffffff04) && (uVar1 == 8)) {\n        return "SUND";\n      }" if (parenthesized_expression "((type == 0xffffff04) && (uVar1 == 8))" ( (binary_expression "(type == 0xffffff04) && (uVar1 == 8)" (parenthesized_expression "(type == 0xffffff04)" ( (binary_expression "type == 0xffffff04" identifier == number_literal) )) && (parenthesized_expression "(uVar1 == 8)" ( (binary_expression "uVar1 == 8" identifier == number_literal) ))) )) (compound_statement "{\n        return "SUND";\n      }" { (return_statement "return "SUND";" return (string_literal ""SUND"" " string_content ") ;) })) (if_statement "if (0x1f < type + 0x100) {\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" if (parenthesized_expression "(0x1f < type + 0x100)" ( (binary_expression "0x1f < type + 0x100" number_literal < (binary_expression "type + 0x100" identifier + number_literal)) )) (compound_statement "{\n        if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" { (if_statement "if (type + 0xe0 < 0x20) {\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(type + 0xe0 < 0x20)" ( (binary_expression "type + 0xe0 < 0x20" (binary_expression "type + 0xe0" identifier + number_literal) < number_literal) )) (compound_statement "{\n          type = type & 0xffff;\n          __format = "OS [0x%04x]";\n        }" { (expression_statement "type = type & 0xffff;" (assignment_expression "type = type & 0xffff" identifier = (binary_expression "type & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "OS [0x%04x]";" (assignment_expression "__format = "OS [0x%04x]"" identifier = (string_literal ""OS [0x%04x]"" " string_content ")) ;) }) (else_clause "else if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (if_statement "if (type < 0xffffff00) {\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(type < 0xffffff00)" ( (binary_expression "type < 0xffffff00" identifier < number_literal) )) (compound_statement "{\n          if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }" { (if_statement "if (type < (filedata->file_header).e_shnum) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" if (parenthesized_expression "(type < (filedata->file_header).e_shnum)" ( (binary_expression "type < (filedata->file_header).e_shnum" identifier < (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n            __format = "%3d";\n          }" { (expression_statement "__format = "%3d";" (assignment_expression "__format = "%3d"" identifier = (string_literal ""%3d"" " string_content ")) ;) }) (else_clause "else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" else (compound_statement "{\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" { (expression_statement "__format = (char *)dcgettext(0,"bad section index[%3d]",5);" (assignment_expression "__format = (char *)dcgettext(0,"bad section index[%3d]",5)" identifier = (cast_expression "(char *)dcgettext(0,"bad section index[%3d]",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"bad section index[%3d]",5)" identifier (argument_list "(0,"bad section index[%3d]",5)" ( number_literal , (string_literal ""bad section index[%3d]"" " string_content ") , number_literal ))))) ;) }))) }) (else_clause "else {\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (compound_statement "{\n          type = type & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" { (expression_statement "type = type & 0xffff;" (assignment_expression "type = type & 0xffff" identifier = (binary_expression "type & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "RSV[0x%04x]";" (assignment_expression "__format = "RSV[0x%04x]"" identifier = (string_literal ""RSV[0x%04x]"" " string_content ")) ;) }))))) (goto_statement "goto LAB_00023eed;" goto statement_identifier ;) })) }))) }))) (expression_statement "type = type & 0xffff;" (assignment_expression "type = type & 0xffff" identifier = (binary_expression "type & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "PRC[0x%04x]";" (assignment_expression "__format = "PRC[0x%04x]"" identifier = (string_literal ""PRC[0x%04x]"" " string_content ")) ;) (labeled_statement "LAB_00023eed:\n  sprintf(buff_18735,__format,type);" statement_identifier : (expression_statement "sprintf(buff_18735,__format,type);" (call_expression "sprintf(buff_18735,__format,type)" identifier (argument_list "(buff_18735,__format,type)" ( identifier , identifier , identifier ))) ;)) (return_statement "return buff_18735;" return identifier ;) })))
(translation_unit "char * __regparm3 FUN_00023e70(int param_1,uint param_2)\n\n{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}\n\n" (function_definition "char * __regparm3 FUN_00023e70(int param_1,uint param_2)\n\n{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00023e70(int param_1,uint param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00023e70(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (if_statement "if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }" if (parenthesized_expression "(param_2 == 0xfffffff1)" ( (binary_expression "param_2 == 0xfffffff1" identifier == number_literal) )) (compound_statement "{\n    return "ABS";\n  }" { (return_statement "return "ABS";" return (string_literal ""ABS"" " string_content ") ;) })) (if_statement "if (param_2 == 0xfffffff2) {\n    return "COM";\n  }" if (parenthesized_expression "(param_2 == 0xfffffff2)" ( (binary_expression "param_2 == 0xfffffff2" identifier == number_literal) )) (compound_statement "{\n    return "COM";\n  }" { (return_statement "return "COM";" return (string_literal ""COM"" " string_content ") ;) })) (if_statement "if (param_2 == 0) {\n    return "UND";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return "UND";\n  }" { (return_statement "return "UND";" return (string_literal ""UND"" " string_content ") ;) })) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" identifier = (pointer_expression "*(short *)(param_1 + 0x42)" * (cast_expression "(short *)(param_1 + 0x42)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0xffffff00)" ( (binary_expression "param_2 == 0xffffff00" identifier == number_literal) )) (compound_statement "{\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }" { (if_statement "if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(sVar1 == 0x32)" ( (binary_expression "sVar1 == 0x32" identifier == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x17) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x17) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x17)" * (cast_expression "(char *)(param_1 + 0x17)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x17)" ( (binary_expression "param_1 + 0x17" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        return "ANSI_COM";\n      }" { (return_statement "return "ANSI_COM";" return (string_literal ""ANSI_COM"" " string_content ") ;) })) }) (else_clause "else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" else (if_statement "if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" if (parenthesized_expression "(sVar1 == 0x8c)" ( (binary_expression "sVar1 == 0x8c" identifier == number_literal) )) (compound_statement "{\n      return "SCOM";\n    }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })))) }) (else_clause "else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" else (compound_statement "{\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" { (if_statement "if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }" if (parenthesized_expression "((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02))" ( (binary_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)" (parenthesized_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e))" ( (binary_expression "((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)" (parenthesized_expression "((ushort)(sVar1 - 0xb4U) < 2)" ( (binary_expression "(ushort)(sVar1 - 0xb4U) < 2" (call_expression "(ushort)(sVar1 - 0xb4U)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(sVar1 - 0xb4U)" ( (binary_expression "sVar1 - 0xb4U" identifier - number_literal) ))) < number_literal) )) || (parenthesized_expression "(sVar1 == 0x3e)" ( (binary_expression "sVar1 == 0x3e" identifier == number_literal) ))) )) && (parenthesized_expression "(param_2 == 0xffffff02)" ( (binary_expression "param_2 == 0xffffff02" identifier == number_literal) ))) )) (compound_statement "{\n      return "LARGE_COM";\n    }" { (return_statement "return "LARGE_COM";" return (string_literal ""LARGE_COM"" " string_content ") ;) })) (if_statement "if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" if (parenthesized_expression "(param_2 == 0xffffff03)" ( (binary_expression "param_2 == 0xffffff03" identifier == number_literal) )) (compound_statement "{\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }" { (if_statement "if (sVar1 == 8) {\n        return "SCOM";\n      }" if (parenthesized_expression "(sVar1 == 8)" ( (binary_expression "sVar1 == 8" identifier == number_literal) )) (compound_statement "{\n        return "SCOM";\n      }" { (return_statement "return "SCOM";" return (string_literal ""SCOM"" " string_content ") ;) })) }) (else_clause "else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" else (compound_statement "{\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" { (if_statement "if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }" if (parenthesized_expression "((param_2 == 0xffffff04) && (sVar1 == 8))" ( (binary_expression "(param_2 == 0xffffff04) && (sVar1 == 8)" (parenthesized_expression "(param_2 == 0xffffff04)" ( (binary_expression "param_2 == 0xffffff04" identifier == number_literal) )) && (parenthesized_expression "(sVar1 == 8)" ( (binary_expression "sVar1 == 8" identifier == number_literal) ))) )) (compound_statement "{\n        return "SUND";\n      }" { (return_statement "return "SUND";" return (string_literal ""SUND"" " string_content ") ;) })) (if_statement "if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" if (parenthesized_expression "(0x1f < param_2 + 0x100)" ( (binary_expression "0x1f < param_2 + 0x100" number_literal < (binary_expression "param_2 + 0x100" identifier + number_literal)) )) (compound_statement "{\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" { (if_statement "if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(param_2 + 0xe0 < 0x20)" ( (binary_expression "param_2 + 0xe0 < 0x20" (binary_expression "param_2 + 0xe0" identifier + number_literal) < number_literal) )) (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }" { (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "OS [0x%04x]";" (assignment_expression "__format = "OS [0x%04x]"" identifier = (string_literal ""OS [0x%04x]"" " string_content ")) ;) }) (else_clause "else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (if_statement "if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" if (parenthesized_expression "(param_2 < 0xffffff00)" ( (binary_expression "param_2 < 0xffffff00" identifier < number_literal) )) (compound_statement "{\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }" { (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" if (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) (compound_statement "{\n            __format = "%3d";\n          }" { (expression_statement "__format = "%3d";" (assignment_expression "__format = "%3d"" identifier = (string_literal ""%3d"" " string_content ")) ;) }) (else_clause "else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" else (compound_statement "{\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" { (expression_statement "__format = (char *)dcgettext(0,"bad section index[%3d]",5);" (assignment_expression "__format = (char *)dcgettext(0,"bad section index[%3d]",5)" identifier = (cast_expression "(char *)dcgettext(0,"bad section index[%3d]",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"bad section index[%3d]",5)" identifier (argument_list "(0,"bad section index[%3d]",5)" ( number_literal , (string_literal ""bad section index[%3d]"" " string_content ") , number_literal ))))) ;) }))) }) (else_clause "else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" else (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" { (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "RSV[0x%04x]";" (assignment_expression "__format = "RSV[0x%04x]"" identifier = (string_literal ""RSV[0x%04x]"" " string_content ")) ;) }))))) (goto_statement "goto LAB_00023eed;" goto statement_identifier ;) })) }))) }))) (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" identifier = (binary_expression "param_2 & 0xffff" identifier & number_literal)) ;) (expression_statement "__format = "PRC[0x%04x]";" (assignment_expression "__format = "PRC[0x%04x]"" identifier = (string_literal ""PRC[0x%04x]"" " string_content ")) ;) (labeled_statement "LAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);" statement_identifier : (expression_statement "sprintf(&DAT_000b5600,__format,param_2);" (call_expression "sprintf(&DAT_000b5600,__format,param_2)" identifier (argument_list "(&DAT_000b5600,__format,param_2)" ( (pointer_expression "&DAT_000b5600" & identifier) , identifier , identifier ))) ;)) (return_statement "return &DAT_000b5600;" return (pointer_expression "&DAT_000b5600" & identifier) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return (string_literal " string_content ") ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))))) (goto_statement goto statement_identifier ;) })) }))) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;)) (return_statement return (pointer_expression & IDENT) ;) })))
(function_definition "char * __regparm3 FUN_00023e70(int param_1,uint param_2)\n\n{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_00023e70(int param_1,uint param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023e70(int param_1,uint param_2)" (identifier "FUN_00023e70") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  short sVar1;\n  char *__format;\n  \n  if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }\n  if (param_2 == 0xfffffff2) {\n    return "COM";\n  }\n  if (param_2 == 0) {\n    return "UND";\n  }\n  sVar1 = *(short *)(param_1 + 0x42);\n  if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }\n  param_2 = param_2 & 0xffff;\n  __format = "PRC[0x%04x]";\nLAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);\n  return &DAT_000b5600;\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (if_statement "if (param_2 == 0xfffffff1) {\n    return "ABS";\n  }" (if "if") (parenthesized_expression "(param_2 == 0xfffffff1)" (( "(") (binary_expression "param_2 == 0xfffffff1" (identifier "param_2") (== "==") (number_literal "0xfffffff1")) () ")")) (compound_statement "{\n    return "ABS";\n  }" ({ "{") (return_statement "return "ABS";" (return "return") (string_literal ""ABS"" (" """) (string_content "ABS") (" """)) (; ";")) (} "}"))) (if_statement "if (param_2 == 0xfffffff2) {\n    return "COM";\n  }" (if "if") (parenthesized_expression "(param_2 == 0xfffffff2)" (( "(") (binary_expression "param_2 == 0xfffffff2" (identifier "param_2") (== "==") (number_literal "0xfffffff2")) () ")")) (compound_statement "{\n    return "COM";\n  }" ({ "{") (return_statement "return "COM";" (return "return") (string_literal ""COM"" (" """) (string_content "COM") (" """)) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    return "UND";\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return "UND";\n  }" ({ "{") (return_statement "return "UND";" (return "return") (string_literal ""UND"" (" """) (string_content "UND") (" """)) (; ";")) (} "}"))) (expression_statement "sVar1 = *(short *)(param_1 + 0x42);" (assignment_expression "sVar1 = *(short *)(param_1 + 0x42)" (identifier "sVar1") (= "=") (pointer_expression "*(short *)(param_1 + 0x42)" (* "*") (cast_expression "(short *)(param_1 + 0x42)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0xffffff00) {\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }\n  else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0xffffff00)" (( "(") (binary_expression "param_2 == 0xffffff00" (identifier "param_2") (== "==") (number_literal "0xffffff00")) () ")")) (compound_statement "{\n    if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }\n  }" ({ "{") (if_statement "if (sVar1 == 0x32) {\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }\n    else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" (if "if") (parenthesized_expression "(sVar1 == 0x32)" (( "(") (binary_expression "sVar1 == 0x32" (identifier "sVar1") (== "==") (number_literal "0x32")) () ")")) (compound_statement "{\n      if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x17) == '\x01') {\n        return "ANSI_COM";\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x17) == '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 0x17) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x17)" (* "*") (cast_expression "(char *)(param_1 + 0x17)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x17)" (( "(") (binary_expression "param_1 + 0x17" (identifier "param_1") (+ "+") (number_literal "0x17")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n        return "ANSI_COM";\n      }" ({ "{") (return_statement "return "ANSI_COM";" (return "return") (string_literal ""ANSI_COM"" (" """) (string_content "ANSI_COM") (" """)) (; ";")) (} "}"))) (} "}")) (else_clause "else if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" (else "else") (if_statement "if (sVar1 == 0x8c) {\n      return "SCOM";\n    }" (if "if") (parenthesized_expression "(sVar1 == 0x8c)" (( "(") (binary_expression "sVar1 == 0x8c" (identifier "sVar1") (== "==") (number_literal "0x8c")) () ")")) (compound_statement "{\n      return "SCOM";\n    }" ({ "{") (return_statement "return "SCOM";" (return "return") (string_literal ""SCOM"" (" """) (string_content "SCOM") (" """)) (; ";")) (} "}"))))) (} "}")) (else_clause "else {\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }\n    if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }\n  }" ({ "{") (if_statement "if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {\n      return "LARGE_COM";\n    }" (if "if") (parenthesized_expression "((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02))" (( "(") (binary_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)" (parenthesized_expression "(((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e))" (( "(") (binary_expression "((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)" (parenthesized_expression "((ushort)(sVar1 - 0xb4U) < 2)" (( "(") (binary_expression "(ushort)(sVar1 - 0xb4U) < 2" (call_expression "(ushort)(sVar1 - 0xb4U)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(sVar1 - 0xb4U)" (( "(") (binary_expression "sVar1 - 0xb4U" (identifier "sVar1") (- "-") (number_literal "0xb4U")) () ")"))) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(sVar1 == 0x3e)" (( "(") (binary_expression "sVar1 == 0x3e" (identifier "sVar1") (== "==") (number_literal "0x3e")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 0xffffff02)" (( "(") (binary_expression "param_2 == 0xffffff02" (identifier "param_2") (== "==") (number_literal "0xffffff02")) () ")"))) () ")")) (compound_statement "{\n      return "LARGE_COM";\n    }" ({ "{") (return_statement "return "LARGE_COM";" (return "return") (string_literal ""LARGE_COM"" (" """) (string_content "LARGE_COM") (" """)) (; ";")) (} "}"))) (if_statement "if (param_2 == 0xffffff03) {\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }\n    else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 == 0xffffff03)" (( "(") (binary_expression "param_2 == 0xffffff03" (identifier "param_2") (== "==") (number_literal "0xffffff03")) () ")")) (compound_statement "{\n      if (sVar1 == 8) {\n        return "SCOM";\n      }\n    }" ({ "{") (if_statement "if (sVar1 == 8) {\n        return "SCOM";\n      }" (if "if") (parenthesized_expression "(sVar1 == 8)" (( "(") (binary_expression "sVar1 == 8" (identifier "sVar1") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n        return "SCOM";\n      }" ({ "{") (return_statement "return "SCOM";" (return "return") (string_literal ""SCOM"" (" """) (string_content "SCOM") (" """)) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" (else "else") (compound_statement "{\n      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }\n      if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }\n    }" ({ "{") (if_statement "if ((param_2 == 0xffffff04) && (sVar1 == 8)) {\n        return "SUND";\n      }" (if "if") (parenthesized_expression "((param_2 == 0xffffff04) && (sVar1 == 8))" (( "(") (binary_expression "(param_2 == 0xffffff04) && (sVar1 == 8)" (parenthesized_expression "(param_2 == 0xffffff04)" (( "(") (binary_expression "param_2 == 0xffffff04" (identifier "param_2") (== "==") (number_literal "0xffffff04")) () ")")) (&& "&&") (parenthesized_expression "(sVar1 == 8)" (( "(") (binary_expression "sVar1 == 8" (identifier "sVar1") (== "==") (number_literal "8")) () ")"))) () ")")) (compound_statement "{\n        return "SUND";\n      }" ({ "{") (return_statement "return "SUND";" (return "return") (string_literal ""SUND"" (" """) (string_content "SUND") (" """)) (; ";")) (} "}"))) (if_statement "if (0x1f < param_2 + 0x100) {\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" (if "if") (parenthesized_expression "(0x1f < param_2 + 0x100)" (( "(") (binary_expression "0x1f < param_2 + 0x100" (number_literal "0x1f") (< "<") (binary_expression "param_2 + 0x100" (identifier "param_2") (+ "+") (number_literal "0x100"))) () ")")) (compound_statement "{\n        if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }\n        goto LAB_00023eed;\n      }" ({ "{") (if_statement "if (param_2 + 0xe0 < 0x20) {\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }\n        else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" (if "if") (parenthesized_expression "(param_2 + 0xe0 < 0x20)" (( "(") (binary_expression "param_2 + 0xe0 < 0x20" (binary_expression "param_2 + 0xe0" (identifier "param_2") (+ "+") (number_literal "0xe0")) (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "OS [0x%04x]";\n        }" ({ "{") (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" (identifier "param_2") (= "=") (binary_expression "param_2 & 0xffff" (identifier "param_2") (& "&") (number_literal "0xffff"))) (; ";")) (expression_statement "__format = "OS [0x%04x]";" (assignment_expression "__format = "OS [0x%04x]"" (identifier "__format") (= "=") (string_literal ""OS [0x%04x]"" (" """) (string_content "OS [0x%04x]") (" """))) (; ";")) (} "}")) (else_clause "else if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" (else "else") (if_statement "if (param_2 < 0xffffff00) {\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }\n        else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" (if "if") (parenthesized_expression "(param_2 < 0xffffff00)" (( "(") (binary_expression "param_2 < 0xffffff00" (identifier "param_2") (< "<") (number_literal "0xffffff00")) () ")")) (compound_statement "{\n          if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }\n        }" ({ "{") (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n            __format = "%3d";\n          }\n          else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" (if "if") (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" (( "(") (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" (identifier "param_2") (< "<") (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (compound_statement "{\n            __format = "%3d";\n          }" ({ "{") (expression_statement "__format = "%3d";" (assignment_expression "__format = "%3d"" (identifier "__format") (= "=") (string_literal ""%3d"" (" """) (string_content "%3d") (" """))) (; ";")) (} "}")) (else_clause "else {\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" (else "else") (compound_statement "{\n            __format = (char *)dcgettext(0,"bad section index[%3d]",5);\n          }" ({ "{") (expression_statement "__format = (char *)dcgettext(0,"bad section index[%3d]",5);" (assignment_expression "__format = (char *)dcgettext(0,"bad section index[%3d]",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"bad section index[%3d]",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"bad section index[%3d]",5)" (identifier "dcgettext") (argument_list "(0,"bad section index[%3d]",5)" (( "(") (number_literal "0") (, ",") (string_literal ""bad section index[%3d]"" (" """) (string_content "bad section index[%3d]") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" (else "else") (compound_statement "{\n          param_2 = param_2 & 0xffff;\n          __format = "RSV[0x%04x]";\n        }" ({ "{") (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" (identifier "param_2") (= "=") (binary_expression "param_2 & 0xffff" (identifier "param_2") (& "&") (number_literal "0xffff"))) (; ";")) (expression_statement "__format = "RSV[0x%04x]";" (assignment_expression "__format = "RSV[0x%04x]"" (identifier "__format") (= "=") (string_literal ""RSV[0x%04x]"" (" """) (string_content "RSV[0x%04x]") (" """))) (; ";")) (} "}")))))) (goto_statement "goto LAB_00023eed;" (goto "goto") (statement_identifier "LAB_00023eed") (; ";")) (} "}"))) (} "}")))) (} "}")))) (expression_statement "param_2 = param_2 & 0xffff;" (assignment_expression "param_2 = param_2 & 0xffff" (identifier "param_2") (= "=") (binary_expression "param_2 & 0xffff" (identifier "param_2") (& "&") (number_literal "0xffff"))) (; ";")) (expression_statement "__format = "PRC[0x%04x]";" (assignment_expression "__format = "PRC[0x%04x]"" (identifier "__format") (= "=") (string_literal ""PRC[0x%04x]"" (" """) (string_content "PRC[0x%04x]") (" """))) (; ";")) (labeled_statement "LAB_00023eed:\n  sprintf(&DAT_000b5600,__format,param_2);" (statement_identifier "LAB_00023eed") (: ":") (expression_statement "sprintf(&DAT_000b5600,__format,param_2);" (call_expression "sprintf(&DAT_000b5600,__format,param_2)" (identifier "sprintf") (argument_list "(&DAT_000b5600,__format,param_2)" (( "(") (pointer_expression "&DAT_000b5600" (& "&") (identifier "DAT_000b5600")) (, ",") (identifier "__format") (, ",") (identifier "param_2") () ")"))) (; ";"))) (return_statement "return &DAT_000b5600;" (return "return") (pointer_expression "&DAT_000b5600" (& "&") (identifier "DAT_000b5600")) (; ";")) (} "}")))

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

char * __regparm3 function_1(type_1 *filedata,type_2 var_1)

{
  type_3 var_2;
  char *__format;
  
  if (var_1 == 0xfffffff1) {
    return "ABS";
  }
  if (var_1 == 0xfffffff2) {
    return "COM";
  }
  if (var_1 == 0) {
    return "UND";
  }
  var_2 = (filedata->file_header).e_machine;
  if (var_1 == 0xffffff00) {
    if (var_2 == 0x32) {
      if ((filedata->file_header).e_ident[7] == '\x01') {
        return "ANSI_COM";
      }
    }
    else if (var_2 == 0x8c) {
      return "SCOM";
    }
  }
  else {
    if ((((type_3)(var_2 - 0xb4) < 2) || (var_2 == 0x3e)) && (var_1 == 0xffffff02)) {
      return "LARGE_COM";
    }
    if (var_1 == 0xffffff03) {
      if (var_2 == 8) {
        return "SCOM";
      }
    }
    else {
      if ((var_1 == 0xffffff04) && (var_2 == 8)) {
        return "SUND";
      }
      if (0x1f < var_1 + 0x100) {
        if (var_1 + 0xe0 < 0x20) {
          var_1 = var_1 & 0xffff;
          __format = "OS [0x%04x]";
        }
        else if (var_1 < 0xffffff00) {
          if (var_1 < (filedata->file_header).e_shnum) {
            __format = "%3d";
          }
          else {
            __format = (char *)var_3(0,"bad section index[%3d]",5);
          }
        }
        else {
          var_1 = var_1 & 0xffff;
          __format = "RSV[0x%04x]";
        }
        goto LAB_00023eed;
      }
    }
  }
  var_1 = var_1 & 0xffff;
  __format = "PRC[0x%04x]";
LAB_00023eed:
  var_4(buff_18735,__format,var_1);
  return buff_18735;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (string_literal (string_content))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (string_literal (string_content))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (string_literal (string_content)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (string_literal (string_content)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement (string_literal (string_content))))) (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 (return_statement (string_literal (string_content)))))) alternative: (else_clause (compound_statement (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 (return_statement (string_literal (string_content))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))))) (goto_statement label: (statement_identifier)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier))))) (return_statement (pointer_expression argument: (identifier))))))

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

char * __regparm3 MASKED(int param_1,uint param_2)

{
  short sVar1;
  char *__format;
  
  if (param_2 == 0xfffffff1) {
    return "ABS";
  }
  if (param_2 == 0xfffffff2) {
    return "COM";
  }
  if (param_2 == 0) {
    return "UND";
  }
  sVar1 = *(short *)(param_1 + 0x42);
  if (param_2 == 0xffffff00) {
    if (sVar1 == 0x32) {
      if (*(char *)(param_1 + 0x17) == '\x01') {
        return "ANSI_COM";
      }
    }
    else if (sVar1 == 0x8c) {
      return "SCOM";
    }
  }
  else {
    if ((((ushort)(sVar1 - 0xb4U) < 2) || (sVar1 == 0x3e)) && (param_2 == 0xffffff02)) {
      return "LARGE_COM";
    }
    if (param_2 == 0xffffff03) {
      if (sVar1 == 8) {
        return "SCOM";
      }
    }
    else {
      if ((param_2 == 0xffffff04) && (sVar1 == 8)) {
        return "SUND";
      }
      if (0x1f < param_2 + 0x100) {
        if (param_2 + 0xe0 < 0x20) {
          param_2 = param_2 & 0xffff;
          __format = "OS [0x%04x]";
        }
        else if (param_2 < 0xffffff00) {
          if (param_2 < *(uint *)(param_1 + 0x54)) {
            __format = "%3d";
          }
          else {
            __format = (char *)dcgettext(0,"bad section index[%3d]",5);
          }
        }
        else {
          param_2 = param_2 & 0xffff;
          __format = "RSV[0x%04x]";
        }
        goto LAB_00023eed;
      }
    }
  }
  param_2 = param_2 & 0xffff;
  __format = "PRC[0x%04x]";
LAB_00023eed:
  sprintf(&DAT_000b5600,__format,param_2);
  return &DAT_000b5600;
}

