
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * printable_section_name(Filedata * filedata, Elf_Internal_Shdr *
   sec, Filedata * filedata) */

char * __regparm3
printable_section_name(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)

{
  byte bVar1;
  byte bVar2;
  byte *pbVar3;
  uint uVar4;
  byte *local_28;
  
  if (filedata_1 == (Filedata *)0x0) {
    local_28 = (byte *)dcgettext(0,"<none>",5);
  }
  else if (filedata->file_name == (char *)0x0) {
    local_28 = (byte *)dcgettext(0,"<no-strings>",5);
  }
  else {
    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);
    if ((char *)sec->sh_name <= filedata_1->file_name) {
      local_28 = (byte *)dcgettext(0,"<corrupt>",5);
    }
  }
  pbVar3 = &sec_name_buf_15707;
  uVar4 = 0x80;
  do {
    bVar1 = *local_28;
    if (bVar1 == 0) break;
    if ((_sch_istable[bVar1] & 2) == 0) {
      if ((_sch_istable[bVar1] & 0x10) == 0) {
        if (uVar4 < 4) break;
        *pbVar3 = 0x3c;
        uVar4 = uVar4 - 4;
        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];
        pbVar3[3] = 0x3e;
        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];
        pbVar3[2] = bVar2;
        pbVar3[1] = bVar1;
        pbVar3 = pbVar3 + 4;
      }
      else {
        uVar4 = uVar4 - 1;
        *pbVar3 = bVar1;
        pbVar3 = pbVar3 + 1;
      }
    }
    else {
      if (uVar4 == 1) break;
      *pbVar3 = 0x5e;
      uVar4 = uVar4 - 2;
      pbVar3[1] = bVar1 + 0x40;
      pbVar3 = pbVar3 + 2;
    }
    local_28 = local_28 + 1;
  } while (uVar4 != 0);
  *pbVar3 = 0;
  return &sec_name_buf_15707;
}



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

undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)

{
  byte bVar1;
  byte bVar2;
  byte *pbVar3;
  uint uVar4;
  byte *local_28;
  
  if (param_3 == (uint *)0x0) {
    local_28 = (byte *)dcgettext(0,"<none>",5);
  }
  else if (*param_1 == 0) {
    local_28 = (byte *)dcgettext(0,"<no-strings>",5);
  }
  else {
    local_28 = (byte *)(*param_1 + *param_3);
    if (*param_2 <= *param_3) {
      local_28 = (byte *)dcgettext(0,"<corrupt>",5);
    }
  }
  pbVar3 = &DAT_000b5cc0;
  uVar4 = 0x80;
  do {
    bVar1 = *local_28;
    if (bVar1 == 0) break;
    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {
      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {
        if (uVar4 < 4) break;
        *pbVar3 = 0x3c;
        uVar4 = uVar4 - 4;
        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];
        pbVar3[3] = 0x3e;
        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];
        pbVar3[2] = bVar2;
        pbVar3[1] = bVar1;
        pbVar3 = pbVar3 + 4;
      }
      else {
        uVar4 = uVar4 - 1;
        *pbVar3 = bVar1;
        pbVar3 = pbVar3 + 1;
      }
    }
    else {
      if (uVar4 == 1) break;
      *pbVar3 = 0x5e;
      uVar4 = uVar4 - 2;
      pbVar3[1] = bVar1 + 0x40;
      pbVar3 = pbVar3 + 2;
    }
    local_28 = local_28 + 1;
  } while (uVar4 != 0);
  *pbVar3 = 0;
  return &DAT_000b5cc0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x91e67
SUB ESP,0x1c
TEST ECX,ECX
JZ 0x000222a0
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000222c0
MOV ECX,dword ptr [ECX]
ADD EAX,ECX
CMP ECX,dword ptr [EDX]
JNC 0x00022280
LEA EDI,[EBX + 0xfffe55c0]
LEA ECX,[EBX + 0x1cc0]
MOV ESI,0x80
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x8],EDI
JMP 0x000221f8
CMP ESI,0x1
JZ 0x00022230
ADD EDX,0x40
MOV byte ptr [ECX],0x5e
SUB ESI,0x2
ADD ECX,0x2
MOV byte ptr [ECX + -0x1],DL
TEST ESI,ESI
JZ 0x00022230
ADD dword ptr [ESP + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x4]
MOVZX EDX,byte ptr [EAX + -0x1]
TEST DL,DL
JZ 0x00022230
MOV EAX,dword ptr [ESP + 0x8]
MOVZX EDI,DL
MOVSX EBP,DL
MOVZX EDI,word ptr [EAX + EDI*0x2]
TEST EDI,0x2
JNZ 0x000221e0
AND EDI,0x10
JZ 0x00022240
SUB ESI,0x1
MOV byte ptr [ECX],DL
ADD ECX,0x1
TEST ESI,ESI
JNZ 0x000221f8
MOV byte ptr [ECX],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP ESI,0x3
JBE 0x00022230
SAR EBP,0x4
AND EDX,0xf
MOV byte ptr [ECX],0x3c
SUB ESI,0x4
AND EBP,0xf
MOVZX EDX,byte ptr [EBX + EDX*0x1 + 0xfffda480]
MOV byte ptr [ECX + 0x3],0x3e
ADD ECX,0x4
MOVZX EAX,byte ptr [EBX + EBP*0x1 + 0xfffda480]
MOV byte ptr [ECX + -0x2],DL
MOV byte ptr [ECX + -0x3],AL
JMP 0x000221f4
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc2aee]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x000221c0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc315d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x000221c0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc3164]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x000221c0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &DAT_000b5cc0;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &DAT_000b5cc0;\n}\n\n" comment (ERROR "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" (binary_expression "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00022190(int *param_1,uint *param_2,uint *param_3)" identifier (argument_list "(int *param_1,uint *param_2,uint *param_3)" ( (binary_expression "int *param_1" identifier * identifier) , (binary_expression "uint *param_2" identifier * identifier) , (binary_expression "uint *param_3" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &DAT_000b5cc0;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &DAT_000b5cc0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (if_statement "if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(param_3 == (uint *)0x0)" ( (binary_expression "param_3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<none>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<none>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (if_statement "if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<no-strings>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (compound_statement "{\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" { (expression_statement "local_28 = (byte *)(*param_1 + *param_3);" (assignment_expression "local_28 = (byte *)(*param_1 + *param_3)" identifier = (cast_expression "(byte *)(*param_1 + *param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + *param_3)" ( (binary_expression "*param_1 + *param_3" (pointer_expression "*param_1" * identifier) + (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" if (parenthesized_expression "(*param_2 <= *param_3)" ( (binary_expression "*param_2 <= *param_3" (pointer_expression "*param_2" * identifier) <= (pointer_expression "*param_3" * identifier)) )) (compound_statement "{\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<corrupt>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) })) }))))) (expression_statement "pbVar3 = &DAT_000b5cc0;" (assignment_expression "pbVar3 = &DAT_000b5cc0" identifier = (pointer_expression "&DAT_000b5cc0" & identifier)) ;) (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);" do (compound_statement "{\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  }" { (expression_statement "bVar1 = *local_28;" (assignment_expression "bVar1 = *local_28" identifier = (pointer_expression "*local_28" * identifier)) ;) (if_statement "if (bVar1 == 0) break;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" if (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0)" ( (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2)" ( (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" ( (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" & identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }" { (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" if (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0)" ( (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10)" ( (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" ( (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" & identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }" { (if_statement "if (uVar4 < 4) break;" if (parenthesized_expression "(uVar4 < 4)" ( (binary_expression "uVar4 < 4" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x3c;" (assignment_expression "*pbVar3 = 0x3c" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 4;" (assignment_expression "uVar4 = uVar4 - 4" identifier = (binary_expression "uVar4 - 4" identifier - number_literal)) ;) (expression_statement "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];" (assignment_expression "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pbVar3[3] = 0x3e;" (assignment_expression "pbVar3[3] = 0x3e" (subscript_expression "pbVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];" (assignment_expression "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "(int)(char)bVar1 >> 4 & 0xf" (binary_expression "(int)(char)bVar1 >> 4" (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) >> number_literal) & number_literal) ])) ;) (expression_statement "pbVar3[2] = bVar2;" (assignment_expression "pbVar3[2] = bVar2" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3[1] = bVar1;" (assignment_expression "pbVar3[1] = bVar1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" else (compound_statement "{\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" else (compound_statement "{\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" { (if_statement "if (uVar4 == 1) break;" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x5e;" (assignment_expression "*pbVar3 = 0x5e" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 2;" (assignment_expression "uVar4 = uVar4 - 2" identifier = (binary_expression "uVar4 - 2" identifier - number_literal)) ;) (expression_statement "pbVar3[1] = bVar1 + 0x40;" (assignment_expression "pbVar3[1] = bVar1 + 0x40" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = (binary_expression "bVar1 + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 2;" (assignment_expression "pbVar3 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) }))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (return_statement "return &DAT_000b5cc0;" return (pointer_expression "&DAT_000b5cc0" & identifier) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: char * printable_section_name(Filedata * filedata, Elf_Internal_Shdr *\n   sec, Filedata * filedata) */\n\nchar * __regparm3\nprintable_section_name(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (filedata_1 == (Filedata *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &sec_name_buf_15707;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &sec_name_buf_15707;\n}\n\n" comment comment (function_definition "char * __regparm3\nprintable_section_name(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (filedata_1 == (Filedata *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &sec_name_buf_15707;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &sec_name_buf_15707;\n}" primitive_type (pointer_declarator "* __regparm3\nprintable_section_name(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)" * (ERROR "__regparm3" identifier) (function_declarator "printable_section_name(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)" identifier (parameter_list "(Filedata *filedata,Elf_Internal_Shdr *sec,Filedata *filedata_1)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "Elf_Internal_Shdr *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "Filedata *filedata_1" type_identifier (pointer_declarator "*filedata_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (filedata_1 == (Filedata *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &sec_name_buf_15707;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &sec_name_buf_15707;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (if_statement "if (filedata_1 == (Filedata *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(filedata_1 == (Filedata *)0x0)" ( (binary_expression "filedata_1 == (Filedata *)0x0" identifier == (cast_expression "(Filedata *)0x0" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<none>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<none>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (if_statement "if (filedata->file_name == (char *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(filedata->file_name == (char *)0x0)" ( (binary_expression "filedata->file_name == (char *)0x0" (field_expression "filedata->file_name" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<no-strings>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (compound_statement "{\n    local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);\n    if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" { (expression_statement "local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name);" (assignment_expression "local_28 = (byte *)(filedata->file_name + (int)filedata_1->file_name)" identifier = (cast_expression "(byte *)(filedata->file_name + (int)filedata_1->file_name)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(filedata->file_name + (int)filedata_1->file_name)" ( (binary_expression "filedata->file_name + (int)filedata_1->file_name" (field_expression "filedata->file_name" identifier -> field_identifier) + (cast_expression "(int)filedata_1->file_name" ( (type_descriptor "int" primitive_type) ) (field_expression "filedata_1->file_name" identifier -> field_identifier))) )))) ;) (if_statement "if ((char *)sec->sh_name <= filedata_1->file_name) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" if (parenthesized_expression "((char *)sec->sh_name <= filedata_1->file_name)" ( (binary_expression "(char *)sec->sh_name <= filedata_1->file_name" (cast_expression "(char *)sec->sh_name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "sec->sh_name" identifier -> field_identifier)) <= (field_expression "filedata_1->file_name" identifier -> field_identifier)) )) (compound_statement "{\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<corrupt>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) })) }))))) (expression_statement "pbVar3 = &sec_name_buf_15707;" (assignment_expression "pbVar3 = &sec_name_buf_15707" identifier = (pointer_expression "&sec_name_buf_15707" & identifier)) ;) (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);" do (compound_statement "{\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  }" { (expression_statement "bVar1 = *local_28;" (assignment_expression "bVar1 = *local_28" identifier = (pointer_expression "*local_28" * identifier)) ;) (if_statement "if (bVar1 == 0) break;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((_sch_istable[bVar1] & 2) == 0) {\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" if (parenthesized_expression "((_sch_istable[bVar1] & 2) == 0)" ( (binary_expression "(_sch_istable[bVar1] & 2) == 0" (parenthesized_expression "(_sch_istable[bVar1] & 2)" ( (binary_expression "_sch_istable[bVar1] & 2" (subscript_expression "_sch_istable[bVar1]" identifier [ identifier ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }" { (if_statement "if ((_sch_istable[bVar1] & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" if (parenthesized_expression "((_sch_istable[bVar1] & 0x10) == 0)" ( (binary_expression "(_sch_istable[bVar1] & 0x10) == 0" (parenthesized_expression "(_sch_istable[bVar1] & 0x10)" ( (binary_expression "_sch_istable[bVar1] & 0x10" (subscript_expression "_sch_istable[bVar1]" identifier [ identifier ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }" { (if_statement "if (uVar4 < 4) break;" if (parenthesized_expression "(uVar4 < 4)" ( (binary_expression "uVar4 < 4" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x3c;" (assignment_expression "*pbVar3 = 0x3c" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 4;" (assignment_expression "uVar4 = uVar4 - 4" identifier = (binary_expression "uVar4 - 4" identifier - number_literal)) ;) (expression_statement "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];" (assignment_expression "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pbVar3[3] = 0x3e;" (assignment_expression "pbVar3[3] = 0x3e" (subscript_expression "pbVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];" (assignment_expression "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "(int)(char)bVar1 >> 4 & 0xf" (binary_expression "(int)(char)bVar1 >> 4" (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) >> number_literal) & number_literal) ])) ;) (expression_statement "pbVar3[2] = bVar2;" (assignment_expression "pbVar3[2] = bVar2" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3[1] = bVar1;" (assignment_expression "pbVar3[1] = bVar1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" else (compound_statement "{\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" else (compound_statement "{\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" { (if_statement "if (uVar4 == 1) break;" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x5e;" (assignment_expression "*pbVar3 = 0x5e" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 2;" (assignment_expression "uVar4 = uVar4 - 2" identifier = (binary_expression "uVar4 - 2" identifier - number_literal)) ;) (expression_statement "pbVar3[1] = bVar1 + 0x40;" (assignment_expression "pbVar3[1] = bVar1 + 0x40" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = (binary_expression "bVar1 + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 2;" (assignment_expression "pbVar3 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) }))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (return_statement "return &sec_name_buf_15707;" return (pointer_expression "&sec_name_buf_15707" & identifier) ;) })))
(translation_unit "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &DAT_000b5cc0;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &DAT_000b5cc0;\n}\n\n" (ERROR "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" (binary_expression "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00022190(int *param_1,uint *param_2,uint *param_3)" identifier (argument_list "(int *param_1,uint *param_2,uint *param_3)" ( (binary_expression "int *param_1" identifier * identifier) , (binary_expression "uint *param_2" identifier * identifier) , (binary_expression "uint *param_3" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &DAT_000b5cc0;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &DAT_000b5cc0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (if_statement "if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(param_3 == (uint *)0x0)" ( (binary_expression "param_3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<none>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<none>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<none>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<none>",5)" identifier (argument_list "(0,"<none>",5)" ( number_literal , (string_literal ""<none>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (if_statement "if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<no-strings>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<no-strings>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<no-strings>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no-strings>",5)" identifier (argument_list "(0,"<no-strings>",5)" ( number_literal , (string_literal ""<no-strings>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" else (compound_statement "{\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" { (expression_statement "local_28 = (byte *)(*param_1 + *param_3);" (assignment_expression "local_28 = (byte *)(*param_1 + *param_3)" identifier = (cast_expression "(byte *)(*param_1 + *param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + *param_3)" ( (binary_expression "*param_1 + *param_3" (pointer_expression "*param_1" * identifier) + (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" if (parenthesized_expression "(*param_2 <= *param_3)" ( (binary_expression "*param_2 <= *param_3" (pointer_expression "*param_2" * identifier) <= (pointer_expression "*param_3" * identifier)) )) (compound_statement "{\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" { (expression_statement "local_28 = (byte *)dcgettext(0,"<corrupt>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(byte *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) })) }))))) (expression_statement "pbVar3 = &DAT_000b5cc0;" (assignment_expression "pbVar3 = &DAT_000b5cc0" identifier = (pointer_expression "&DAT_000b5cc0" & identifier)) ;) (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" identifier = number_literal) ;) (do_statement "do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);" do (compound_statement "{\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  }" { (expression_statement "bVar1 = *local_28;" (assignment_expression "bVar1 = *local_28" identifier = (pointer_expression "*local_28" * identifier)) ;) (if_statement "if (bVar1 == 0) break;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" if (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0)" ( (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2)" ( (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" ( (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" & identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }" { (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" if (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0)" ( (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10)" ( (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" ( (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" & identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }" { (if_statement "if (uVar4 < 4) break;" if (parenthesized_expression "(uVar4 < 4)" ( (binary_expression "uVar4 < 4" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x3c;" (assignment_expression "*pbVar3 = 0x3c" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 4;" (assignment_expression "uVar4 = uVar4 - 4" identifier = (binary_expression "uVar4 - 4" identifier - number_literal)) ;) (expression_statement "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];" (assignment_expression "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "bVar1 & 0xf" identifier & number_literal) ])) ;) (expression_statement "pbVar3[3] = 0x3e;" (assignment_expression "pbVar3[3] = 0x3e" (subscript_expression "pbVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];" (assignment_expression "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" identifier = (subscript_expression ""0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" (string_literal ""0123456789ABCDEF"" " string_content ") [ (binary_expression "(int)(char)bVar1 >> 4 & 0xf" (binary_expression "(int)(char)bVar1 >> 4" (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) >> number_literal) & number_literal) ])) ;) (expression_statement "pbVar3[2] = bVar2;" (assignment_expression "pbVar3[2] = bVar2" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3[1] = bVar1;" (assignment_expression "pbVar3[1] = bVar1" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" else (compound_statement "{\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }))) }) (else_clause "else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" else (compound_statement "{\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" { (if_statement "if (uVar4 == 1) break;" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = 0x5e;" (assignment_expression "*pbVar3 = 0x5e" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (expression_statement "uVar4 = uVar4 - 2;" (assignment_expression "uVar4 = uVar4 - 2" identifier = (binary_expression "uVar4 - 2" identifier - number_literal)) ;) (expression_statement "pbVar3[1] = bVar1 + 0x40;" (assignment_expression "pbVar3[1] = bVar1 + 0x40" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) = (binary_expression "bVar1 + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 2;" (assignment_expression "pbVar3 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) }))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;) (return_statement "return &DAT_000b5cc0;" return (pointer_expression "&DAT_000b5cc0" & identifier) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) (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 ))))) ;) })) }))))) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (string_literal " string_content ") [ (binary_expression IDENT & LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) & LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return (pointer_expression & IDENT) ;) }))
(ERROR "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" (binary_expression "undefined1 * __regparm3 FUN_00022190(int *param_1,uint *param_2,uint *param_3)" (identifier "undefined1") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_00022190(int *param_1,uint *param_2,uint *param_3)" (identifier "FUN_00022190") (argument_list "(int *param_1,uint *param_2,uint *param_3)" (( "(") (binary_expression "int *param_1" (identifier "int") (* "*") (identifier "param_1")) (, ",") (binary_expression "uint *param_2" (identifier "uint") (* "*") (identifier "param_2")) (, ",") (binary_expression "uint *param_3" (identifier "uint") (* "*") (identifier "param_3")) () ")"))))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte *pbVar3;\n  uint uVar4;\n  byte *local_28;\n  \n  if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }\n  pbVar3 = &DAT_000b5cc0;\n  uVar4 = 0x80;\n  do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);\n  *pbVar3 = 0;\n  return &DAT_000b5cc0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "byte *local_28;" (type_identifier "byte") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (if_statement "if (param_3 == (uint *)0x0) {\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }\n  else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == (uint *)0x0)" (( "(") (binary_expression "param_3 == (uint *)0x0" (identifier "param_3") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<none>",5);\n  }" ({ "{") (expression_statement "local_28 = (byte *)dcgettext(0,"<none>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<none>",5)" (identifier "local_28") (= "=") (cast_expression "(byte *)dcgettext(0,"<none>",5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<none>",5)" (identifier "dcgettext") (argument_list "(0,"<none>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<none>"" (" """) (string_content "<none>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}")) (else_clause "else if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" (else "else") (if_statement "if (*param_1 == 0) {\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }\n  else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_28 = (byte *)dcgettext(0,"<no-strings>",5);\n  }" ({ "{") (expression_statement "local_28 = (byte *)dcgettext(0,"<no-strings>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<no-strings>",5)" (identifier "local_28") (= "=") (cast_expression "(byte *)dcgettext(0,"<no-strings>",5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<no-strings>",5)" (identifier "dcgettext") (argument_list "(0,"<no-strings>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<no-strings>"" (" """) (string_content "<no-strings>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" (else "else") (compound_statement "{\n    local_28 = (byte *)(*param_1 + *param_3);\n    if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }\n  }" ({ "{") (expression_statement "local_28 = (byte *)(*param_1 + *param_3);" (assignment_expression "local_28 = (byte *)(*param_1 + *param_3)" (identifier "local_28") (= "=") (cast_expression "(byte *)(*param_1 + *param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + *param_3)" (( "(") (binary_expression "*param_1 + *param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")))) (; ";")) (if_statement "if (*param_2 <= *param_3) {\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" (if "if") (parenthesized_expression "(*param_2 <= *param_3)" (( "(") (binary_expression "*param_2 <= *param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (<= "<=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")) (compound_statement "{\n      local_28 = (byte *)dcgettext(0,"<corrupt>",5);\n    }" ({ "{") (expression_statement "local_28 = (byte *)dcgettext(0,"<corrupt>",5);" (assignment_expression "local_28 = (byte *)dcgettext(0,"<corrupt>",5)" (identifier "local_28") (= "=") (cast_expression "(byte *)dcgettext(0,"<corrupt>",5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<corrupt>",5)" (identifier "dcgettext") (argument_list "(0,"<corrupt>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<corrupt>"" (" """) (string_content "<corrupt>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}"))) (} "}")))))) (expression_statement "pbVar3 = &DAT_000b5cc0;" (assignment_expression "pbVar3 = &DAT_000b5cc0" (identifier "pbVar3") (= "=") (pointer_expression "&DAT_000b5cc0" (& "&") (identifier "DAT_000b5cc0"))) (; ";")) (expression_statement "uVar4 = 0x80;" (assignment_expression "uVar4 = 0x80" (identifier "uVar4") (= "=") (number_literal "0x80")) (; ";")) (do_statement "do {\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  } while (uVar4 != 0);" (do "do") (compound_statement "{\n    bVar1 = *local_28;\n    if (bVar1 == 0) break;\n    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }\n    local_28 = local_28 + 1;\n  }" ({ "{") (expression_statement "bVar1 = *local_28;" (assignment_expression "bVar1 = *local_28" (identifier "bVar1") (= "=") (pointer_expression "*local_28" (* "*") (identifier "local_28"))) (; ";")) (if_statement "if (bVar1 == 0) break;" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }\n    else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" (if "if") (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0)" (( "(") (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2)" (( "(") (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" (* "*") (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" (( "(") (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" (& "&") (identifier "DAT_000995c0")) (+ "+") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }\n    }" ({ "{") (if_statement "if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }\n      else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" (if "if") (parenthesized_expression "((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0)" (( "(") (binary_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10)" (( "(") (binary_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10" (pointer_expression "*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" (* "*") (cast_expression "(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000995c0 + (uint)bVar1 * 2)" (( "(") (binary_expression "&DAT_000995c0 + (uint)bVar1 * 2" (pointer_expression "&DAT_000995c0" (& "&") (identifier "DAT_000995c0")) (+ "+") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar4 < 4) break;\n        *pbVar3 = 0x3c;\n        uVar4 = uVar4 - 4;\n        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];\n        pbVar3[3] = 0x3e;\n        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];\n        pbVar3[2] = bVar2;\n        pbVar3[1] = bVar1;\n        pbVar3 = pbVar3 + 4;\n      }" ({ "{") (if_statement "if (uVar4 < 4) break;" (if "if") (parenthesized_expression "(uVar4 < 4)" (( "(") (binary_expression "uVar4 < 4" (identifier "uVar4") (< "<") (number_literal "4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*pbVar3 = 0x3c;" (assignment_expression "*pbVar3 = 0x3c" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (number_literal "0x3c")) (; ";")) (expression_statement "uVar4 = uVar4 - 4;" (assignment_expression "uVar4 = uVar4 - 4" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 4" (identifier "uVar4") (- "-") (number_literal "4"))) (; ";")) (expression_statement "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];" (assignment_expression "bVar2 = "0123456789ABCDEF"[bVar1 & 0xf]" (identifier "bVar2") (= "=") (subscript_expression ""0123456789ABCDEF"[bVar1 & 0xf]" (string_literal ""0123456789ABCDEF"" (" """) (string_content "0123456789ABCDEF") (" """)) ([ "[") (binary_expression "bVar1 & 0xf" (identifier "bVar1") (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "pbVar3[3] = 0x3e;" (assignment_expression "pbVar3[3] = 0x3e" (subscript_expression "pbVar3[3]" (identifier "pbVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0x3e")) (; ";")) (expression_statement "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];" (assignment_expression "bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" (identifier "bVar1") (= "=") (subscript_expression ""0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf]" (string_literal ""0123456789ABCDEF"" (" """) (string_content "0123456789ABCDEF") (" """)) ([ "[") (binary_expression "(int)(char)bVar1 >> 4 & 0xf" (binary_expression "(int)(char)bVar1 >> 4" (cast_expression "(int)(char)bVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1"))) (>> ">>") (number_literal "4")) (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "pbVar3[2] = bVar2;" (assignment_expression "pbVar3[2] = bVar2" (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "bVar2")) (; ";")) (expression_statement "pbVar3[1] = bVar1;" (assignment_expression "pbVar3[1] = bVar1" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "bVar1")) (; ";")) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" (else "else") (compound_statement "{\n        uVar4 = uVar4 - 1;\n        *pbVar3 = bVar1;\n        pbVar3 = pbVar3 + 1;\n      }" ({ "{") (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar1")) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" (else "else") (compound_statement "{\n      if (uVar4 == 1) break;\n      *pbVar3 = 0x5e;\n      uVar4 = uVar4 - 2;\n      pbVar3[1] = bVar1 + 0x40;\n      pbVar3 = pbVar3 + 2;\n    }" ({ "{") (if_statement "if (uVar4 == 1) break;" (if "if") (parenthesized_expression "(uVar4 == 1)" (( "(") (binary_expression "uVar4 == 1" (identifier "uVar4") (== "==") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*pbVar3 = 0x5e;" (assignment_expression "*pbVar3 = 0x5e" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (number_literal "0x5e")) (; ";")) (expression_statement "uVar4 = uVar4 - 2;" (assignment_expression "uVar4 = uVar4 - 2" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 2" (identifier "uVar4") (- "-") (number_literal "2"))) (; ";")) (expression_statement "pbVar3[1] = bVar1 + 0x40;" (assignment_expression "pbVar3[1] = bVar1 + 0x40" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "bVar1 + 0x40" (identifier "bVar1") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 2;" (assignment_expression "pbVar3 = pbVar3 + 2" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 2" (identifier "pbVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (number_literal "0")) (; ";")) (return_statement "return &DAT_000b5cc0;" (return "return") (pointer_expression "&DAT_000b5cc0" (& "&") (identifier "DAT_000b5cc0")) (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * printable_section_name(Filedata * filedata, Elf_Internal_Shdr *
   sec, Filedata * filedata) */

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

{
  type_3 var_3;
  type_3 bVar2;
  type_3 *var_5;
  type_4 var_4;
  type_3 *var_6;
  
  if (var_1 == (type_1 *)0x0) {
    var_6 = (type_3 *)var_2(0,"<none>",5);
  }
  else if (filedata->file_name == (char *)0x0) {
    var_6 = (type_3 *)var_2(0,"<no-strings>",5);
  }
  else {
    var_6 = (type_3 *)(filedata->file_name + (int)var_1->file_name);
    if ((char *)sec->sh_name <= var_1->file_name) {
      var_6 = (type_3 *)var_2(0,"<corrupt>",5);
    }
  }
  var_5 = &sec_name_buf_15707;
  var_4 = 0x80;
  do {
    var_3 = *var_6;
    if (var_3 == 0) break;
    if ((_sch_istable[var_3] & 2) == 0) {
      if ((_sch_istable[var_3] & 0x10) == 0) {
        if (var_4 < 4) break;
        *var_5 = 0x3c;
        var_4 = var_4 - 4;
        bVar2 = "0123456789ABCDEF"[var_3 & 0xf];
        var_5[3] = 0x3e;
        var_3 = "0123456789ABCDEF"[(int)(char)var_3 >> 4 & 0xf];
        var_5[2] = bVar2;
        var_5[1] = var_3;
        var_5 = var_5 + 4;
      }
      else {
        var_4 = var_4 - 1;
        *var_5 = var_3;
        var_5 = var_5 + 1;
      }
    }
    else {
      if (var_4 == 1) break;
      *var_5 = 0x5e;
      var_4 = var_4 - 2;
      var_5[1] = var_3 + 0x40;
      var_5 = var_5 + 2;
    }
    var_6 = var_6 + 1;
  } while (var_4 != 0);
  *var_5 = 0;
  return &sec_name_buf_15707;
}


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

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

undefined1 * __regparm3 MASKED(int *param_1,uint *param_2,uint *param_3)

{
  byte bVar1;
  byte bVar2;
  byte *pbVar3;
  uint uVar4;
  byte *local_28;
  
  if (param_3 == (uint *)0x0) {
    local_28 = (byte *)dcgettext(0,"<none>",5);
  }
  else if (*param_1 == 0) {
    local_28 = (byte *)dcgettext(0,"<no-strings>",5);
  }
  else {
    local_28 = (byte *)(*param_1 + *param_3);
    if (*param_2 <= *param_3) {
      local_28 = (byte *)dcgettext(0,"<corrupt>",5);
    }
  }
  pbVar3 = &DAT_000b5cc0;
  uVar4 = 0x80;
  do {
    bVar1 = *local_28;
    if (bVar1 == 0) break;
    if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 2) == 0) {
      if ((*(ushort *)(&DAT_000995c0 + (uint)bVar1 * 2) & 0x10) == 0) {
        if (uVar4 < 4) break;
        *pbVar3 = 0x3c;
        uVar4 = uVar4 - 4;
        bVar2 = "0123456789ABCDEF"[bVar1 & 0xf];
        pbVar3[3] = 0x3e;
        bVar1 = "0123456789ABCDEF"[(int)(char)bVar1 >> 4 & 0xf];
        pbVar3[2] = bVar2;
        pbVar3[1] = bVar1;
        pbVar3 = pbVar3 + 4;
      }
      else {
        uVar4 = uVar4 - 1;
        *pbVar3 = bVar1;
        pbVar3 = pbVar3 + 1;
      }
    }
    else {
      if (uVar4 == 1) break;
      *pbVar3 = 0x5e;
      uVar4 = uVar4 - 2;
      pbVar3[1] = bVar1 + 0x40;
      pbVar3 = pbVar3 + 2;
    }
    local_28 = local_28 + 1;
  } while (uVar4 != 0);
  *pbVar3 = 0;
  return &DAT_000b5cc0;
}

