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

void provide_xrm_string(char *string)

{
  byte *pbVar1;
  byte bVar2;
  char *pcVar3;
  undefined4 *e;
  void *pvVar4;
  ushort **ppuVar5;
  char *pcVar6;
  byte *s;
  size_t local_28;
  int local_20;
  char *pcVar7;
  
  pcVar3 = strchr(string,0x3a);
  if (pcVar3 == (char *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,
                  "pterm: expected a colon in resource string \"%s\"\n",string);
  }
  else {
    s = (byte *)(pcVar3 + 1);
    pcVar6 = pcVar3;
    if (string < pcVar3) {
      pcVar7 = pcVar3;
      if ((pcVar3[-1] & 0xfbU) == 0x2a) {
        local_20 = 0;
        local_28 = 1;
      }
      else {
        do {
          pcVar6 = pcVar7 + -1;
          if (string == pcVar6) break;
          pbVar1 = (byte *)(pcVar7 + -2);
          pcVar7 = pcVar6;
        } while ((*pbVar1 & 0xfb) != 0x2a);
        local_28 = (int)s - (int)pcVar6;
        local_20 = local_28 - 1;
      }
    }
    else {
      local_20 = 0;
      local_28 = 1;
    }
    e = (undefined4 *)safemalloc(1,8);
    pvVar4 = safemalloc(local_28,1);
    memcpy(pvVar4,pcVar6,local_28);
    *(undefined1 *)((int)pvVar4 + local_20) = 0;
    *e = pvVar4;
    bVar2 = pcVar3[1];
    if (bVar2 != 0) {
      ppuVar5 = __ctype_b_loc();
      do {
        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;
        s = s + 1;
        bVar2 = *s;
      } while (bVar2 != 0);
    }
    pcVar3 = dupstr((char *)s);
    e[1] = pcVar3;
    if (xrmtree == (tree234 *)0x0) {
      xrmtree = newtree234(keycmp);
    }
    pvVar4 = add234(xrmtree,e);
    if (pvVar4 != (void *)0x0) {
      del234(xrmtree,pvVar4);
      add234(xrmtree,e);
    }
  }
  return;
}



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

void FUN_00047b90(char *param_1)

{
  byte *pbVar1;
  byte bVar2;
  char *pcVar3;
  undefined4 *puVar4;
  void *__dest;
  ushort **ppuVar5;
  undefined4 uVar6;
  int iVar7;
  char *pcVar8;
  byte *pbVar10;
  size_t local_28;
  int local_20;
  char *pcVar9;
  
  pcVar3 = strchr(param_1,0x3a);
  if (pcVar3 == (char *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,
                  "pterm: expected a colon in resource string \"%s\"\n",param_1);
  }
  else {
    pbVar10 = (byte *)(pcVar3 + 1);
    pcVar8 = pcVar3;
    if (param_1 < pcVar3) {
      pcVar9 = pcVar3;
      if ((pcVar3[-1] & 0xfbU) == 0x2a) {
        local_20 = 0;
        local_28 = 1;
      }
      else {
        do {
          pcVar8 = pcVar9 + -1;
          if (param_1 == pcVar8) break;
          pbVar1 = (byte *)(pcVar9 + -2);
          pcVar9 = pcVar8;
        } while ((*pbVar1 & 0xfb) != 0x2a);
        local_28 = (int)pbVar10 - (int)pcVar8;
        local_20 = local_28 - 1;
      }
    }
    else {
      local_20 = 0;
      local_28 = 1;
    }
    puVar4 = (undefined4 *)FUN_00019880(1,8);
    __dest = (void *)FUN_00019880(local_28,1);
    memcpy(__dest,pcVar8,local_28);
    *(undefined1 *)((int)__dest + local_20) = 0;
    *puVar4 = __dest;
    bVar2 = pcVar3[1];
    if (bVar2 != 0) {
      ppuVar5 = __ctype_b_loc();
      do {
        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;
        pbVar10 = pbVar10 + 1;
        bVar2 = *pbVar10;
      } while (bVar2 != 0);
    }
    uVar6 = FUN_00019990(pbVar10);
    puVar4[1] = uVar6;
    if (DAT_0006f2d4 == 0) {
      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);
    }
    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);
    if (iVar7 != 0) {
      FUN_0003f2c0(DAT_0006f2d4,iVar7);
      FUN_0003efa0(DAT_0006f2d4,puVar4);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000152d0
ADD EBX,0x2714f
SUB ESP,0x24
MOV EBP,dword ptr [ESP + 0x38]
PUSH 0x3a
PUSH EBP
CALL 0x00014550
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00047cf0
MOV EDX,EAX
LEA EDI,[EAX + 0x1]
CMP EBP,EAX
JNC 0x00047d21
MOVZX EAX,byte ptr [EAX + -0x1]
MOV ESI,EDX
AND EAX,0xfffffffb
CMP AL,0x2a
JZ 0x00047d0c
LEA ESI,[ESI]
NOP
SUB ESI,0x1
CMP EBP,ESI
JZ 0x00047bf2
MOVZX EAX,byte ptr [ESI + -0x1]
AND EAX,0xfffffffb
CMP AL,0x2a
JNZ 0x00047be0
MOV EAX,EDI
SUB EAX,ESI
MOV dword ptr [ESP + 0x4],EAX
SUB EAX,0x1
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x8
PUSH 0x8
PUSH 0x1
CALL 0x00019880
POP ECX
MOV EBP,EAX
POP EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x10]
CALL 0x00019880
ADD ESP,0xc
PUSH dword ptr [ESP + 0x8]
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x14],EAX
CALL 0x000142c0
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV byte ptr [ECX + EAX*0x1],0x0
MOV dword ptr [EBP],ECX
MOVZX EDX,byte ptr [EDX + 0x1]
TEST DL,DL
MOV byte ptr [ESP + 0x4],DL
JZ 0x00047c79
CALL 0x00014640
MOVZX EDX,byte ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX]
JMP 0x00047c72
ADD EDI,0x1
MOVZX EDX,byte ptr [EDI]
TEST DL,DL
JZ 0x00047c79
TEST byte ptr [EAX + EDX*0x2 + 0x1],0x20
JNZ 0x00047c68
SUB ESP,0xc
PUSH EDI
CALL 0x00019990
ADD ESP,0x10
MOV dword ptr [EBP + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x5ec]
TEST EAX,EAX
JZ 0x00047cd0
SUB ESP,0x8
PUSH EBP
PUSH EAX
CALL 0x0003efa0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00047cc3
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [EBX + 0x5ec]
CALL 0x0003f2c0
POP EAX
POP EDX
PUSH EBP
PUSH dword ptr [EBX + 0x5ec]
CALL 0x0003efa0
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd8c88]
PUSH EAX
CALL 0x0003ef20
ADD ESP,0x10
MOV dword ptr [EBX + 0x5ec],EAX
JMP 0x00047c92
LEA EAX,[EBX + 0xfffe58c8]
PUSH EBP
PUSH EAX
MOV EAX,dword ptr [EBX + 0x2f8]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x000148f0
ADD ESP,0x10
JMP 0x00047cc3
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x4],0x1
JMP 0x00047c01
MOV ESI,EAX
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x4],0x1
JMP 0x00047c01
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00047b90(char *param_1)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00047b90(char *param_1)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00047b90(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "pcVar3 = strchr(param_1,0x3a);" (assignment_expression "pcVar3 = strchr(param_1,0x3a)" identifier = (call_expression "strchr(param_1,0x3a)" identifier (argument_list "(param_1,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0006efe0" * (cast_expression "(undefined4 *)PTR_stderr_0006efe0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""pterm: expected a colon in resource string \"%s\"\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" else (compound_statement "{\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" { (expression_statement "pbVar10 = (byte *)(pcVar3 + 1);" (assignment_expression "pbVar10 = (byte *)(pcVar3 + 1)" identifier = (cast_expression "(byte *)(pcVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (if_statement "if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }" if (parenthesized_expression "(param_1 < pcVar3)" ( (binary_expression "param_1 < pcVar3" identifier < identifier) )) (compound_statement "{\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }" { (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (if_statement "if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" if (parenthesized_expression "((pcVar3[-1] & 0xfbU) == 0x2a)" ( (binary_expression "(pcVar3[-1] & 0xfbU) == 0x2a" (parenthesized_expression "(pcVar3[-1] & 0xfbU)" ( (binary_expression "pcVar3[-1] & 0xfbU" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        local_20 = 0;\n        local_28 = 1;\n      }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" else (compound_statement "{\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" { (do_statement "do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);" do (compound_statement "{\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        }" { (expression_statement "pcVar8 = pcVar9 + -1;" (assignment_expression "pcVar8 = pcVar9 + -1" identifier = (binary_expression "pcVar9 + -1" identifier + number_literal)) ;) (if_statement "if (param_1 == pcVar8) break;" if (parenthesized_expression "(param_1 == pcVar8)" ( (binary_expression "param_1 == pcVar8" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (byte *)(pcVar9 + -2);" (assignment_expression "pbVar1 = (byte *)(pcVar9 + -2)" identifier = (cast_expression "(byte *)(pcVar9 + -2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + -2)" ( (binary_expression "pcVar9 + -2" identifier + number_literal) )))) ;) (expression_statement "pcVar9 = pcVar8;" (assignment_expression "pcVar9 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "((*pbVar1 & 0xfb) != 0x2a)" ( (binary_expression "(*pbVar1 & 0xfb) != 0x2a" (parenthesized_expression "(*pbVar1 & 0xfb)" ( (binary_expression "*pbVar1 & 0xfb" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) ;) (expression_statement "local_28 = (int)pbVar10 - (int)pcVar8;" (assignment_expression "local_28 = (int)pbVar10 - (int)pcVar8" identifier = (binary_expression "(int)pbVar10 - (int)pcVar8" (cast_expression "(int)pbVar10" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20 = local_28 - 1;" (assignment_expression "local_20 = local_28 - 1" identifier = (binary_expression "local_28 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n      local_20 = 0;\n      local_28 = 1;\n    }" else (compound_statement "{\n      local_20 = 0;\n      local_28 = 1;\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }))) (expression_statement "puVar4 = (undefined4 *)FUN_00019880(1,8);" (assignment_expression "puVar4 = (undefined4 *)FUN_00019880(1,8)" identifier = (cast_expression "(undefined4 *)FUN_00019880(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019880(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "__dest = (void *)FUN_00019880(local_28,1);" (assignment_expression "__dest = (void *)FUN_00019880(local_28,1)" identifier = (cast_expression "(void *)FUN_00019880(local_28,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019880(local_28,1)" identifier (argument_list "(local_28,1)" ( identifier , number_literal ))))) ;) (expression_statement "memcpy(__dest,pcVar8,local_28);" (call_expression "memcpy(__dest,pcVar8,local_28)" identifier (argument_list "(__dest,pcVar8,local_28)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)__dest + local_20) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20)" * (cast_expression "(undefined1 *)((int)__dest + local_20)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_20)" ( (binary_expression "(int)__dest + local_20" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar4 = __dest;" (assignment_expression "*puVar4 = __dest" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "bVar2 = pcVar3[1];" (assignment_expression "bVar2 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (do_statement "do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);" do (compound_statement "{\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      }" { (if_statement "if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2 + 1" (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar10 = pbVar10 + 1;" (assignment_expression "pbVar10 = pbVar10 + 1" identifier = (binary_expression "pbVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar10;" (assignment_expression "bVar2 = *pbVar10" identifier = (pointer_expression "*pbVar10" * identifier)) ;) }) while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) ;) })) (expression_statement "uVar6 = FUN_00019990(pbVar10);" (assignment_expression "uVar6 = FUN_00019990(pbVar10)" identifier = (call_expression "FUN_00019990(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" if (parenthesized_expression "(DAT_0006f2d4 == 0)" ( (binary_expression "DAT_0006f2d4 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" { (expression_statement "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);" (assignment_expression "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970)" identifier = (call_expression "FUN_0003ef20(FUN_00047970)" identifier (argument_list "(FUN_00047970)" ( identifier )))) ;) })) (expression_statement "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);" (assignment_expression "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier = (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier (argument_list "(DAT_0006f2d4,puVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" { (expression_statement "FUN_0003f2c0(DAT_0006f2d4,iVar7);" (call_expression "FUN_0003f2c0(DAT_0006f2d4,iVar7)" identifier (argument_list "(DAT_0006f2d4,iVar7)" ( identifier , identifier ))) ;) (expression_statement "FUN_0003efa0(DAT_0006f2d4,puVar4);" (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier (argument_list "(DAT_0006f2d4,puVar4)" ( identifier , identifier ))) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid provide_xrm_string(char *string)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *e;\n  void *pvVar4;\n  ushort **ppuVar5;\n  char *pcVar6;\n  byte *s;\n  size_t local_28;\n  int local_20;\n  char *pcVar7;\n  \n  pcVar3 = strchr(string,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);\n  }\n  else {\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void provide_xrm_string(char *string)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *e;\n  void *pvVar4;\n  ushort **ppuVar5;\n  char *pcVar6;\n  byte *s;\n  size_t local_28;\n  int local_20;\n  char *pcVar7;\n  \n  pcVar3 = strchr(string,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);\n  }\n  else {\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "provide_xrm_string(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *e;\n  void *pvVar4;\n  ushort **ppuVar5;\n  char *pcVar6;\n  byte *s;\n  size_t local_28;\n  int local_20;\n  char *pcVar7;\n  \n  pcVar3 = strchr(string,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);\n  }\n  else {\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "pcVar3 = strchr(string,0x3a);" (assignment_expression "pcVar3 = strchr(string,0x3a)" identifier = (call_expression "strchr(string,0x3a)" identifier (argument_list "(string,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);\n  }\n  else {\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",string)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0006efe0" * (cast_expression "(undefined4 *)PTR_stderr_0006efe0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""pterm: expected a colon in resource string \"%s\"\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }" else (compound_statement "{\n    s = (byte *)(pcVar3 + 1);\n    pcVar6 = pcVar3;\n    if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    e = (undefined4 *)safemalloc(1,8);\n    pvVar4 = safemalloc(local_28,1);\n    memcpy(pvVar4,pcVar6,local_28);\n    *(undefined1 *)((int)pvVar4 + local_20) = 0;\n    *e = pvVar4;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }\n    pcVar3 = dupstr((char *)s);\n    e[1] = pcVar3;\n    if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }\n    pvVar4 = add234(xrmtree,e);\n    if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }\n  }" { (expression_statement "s = (byte *)(pcVar3 + 1);" (assignment_expression "s = (byte *)(pcVar3 + 1)" identifier = (cast_expression "(byte *)(pcVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar6 = pcVar3;" (assignment_expression "pcVar6 = pcVar3" identifier = identifier) ;) (if_statement "if (string < pcVar3) {\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }" if (parenthesized_expression "(string < pcVar3)" ( (binary_expression "string < pcVar3" identifier < identifier) )) (compound_statement "{\n      pcVar7 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }\n    }" { (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (if_statement "if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }" if (parenthesized_expression "((pcVar3[-1] & 0xfbU) == 0x2a)" ( (binary_expression "(pcVar3[-1] & 0xfbU) == 0x2a" (parenthesized_expression "(pcVar3[-1] & 0xfbU)" ( (binary_expression "pcVar3[-1] & 0xfbU" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        local_20 = 0;\n        local_28 = 1;\n      }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }" else (compound_statement "{\n        do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)s - (int)pcVar6;\n        local_20 = local_28 - 1;\n      }" { (do_statement "do {\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        } while ((*pbVar1 & 0xfb) != 0x2a);" do (compound_statement "{\n          pcVar6 = pcVar7 + -1;\n          if (string == pcVar6) break;\n          pbVar1 = (byte *)(pcVar7 + -2);\n          pcVar7 = pcVar6;\n        }" { (expression_statement "pcVar6 = pcVar7 + -1;" (assignment_expression "pcVar6 = pcVar7 + -1" identifier = (binary_expression "pcVar7 + -1" identifier + number_literal)) ;) (if_statement "if (string == pcVar6) break;" if (parenthesized_expression "(string == pcVar6)" ( (binary_expression "string == pcVar6" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (byte *)(pcVar7 + -2);" (assignment_expression "pbVar1 = (byte *)(pcVar7 + -2)" identifier = (cast_expression "(byte *)(pcVar7 + -2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + -2)" ( (binary_expression "pcVar7 + -2" identifier + number_literal) )))) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) }) while (parenthesized_expression "((*pbVar1 & 0xfb) != 0x2a)" ( (binary_expression "(*pbVar1 & 0xfb) != 0x2a" (parenthesized_expression "(*pbVar1 & 0xfb)" ( (binary_expression "*pbVar1 & 0xfb" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) ;) (expression_statement "local_28 = (int)s - (int)pcVar6;" (assignment_expression "local_28 = (int)s - (int)pcVar6" identifier = (binary_expression "(int)s - (int)pcVar6" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20 = local_28 - 1;" (assignment_expression "local_20 = local_28 - 1" identifier = (binary_expression "local_28 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n      local_20 = 0;\n      local_28 = 1;\n    }" else (compound_statement "{\n      local_20 = 0;\n      local_28 = 1;\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }))) (expression_statement "e = (undefined4 *)safemalloc(1,8);" (assignment_expression "e = (undefined4 *)safemalloc(1,8)" identifier = (cast_expression "(undefined4 *)safemalloc(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "pvVar4 = safemalloc(local_28,1);" (assignment_expression "pvVar4 = safemalloc(local_28,1)" identifier = (call_expression "safemalloc(local_28,1)" identifier (argument_list "(local_28,1)" ( identifier , number_literal )))) ;) (expression_statement "memcpy(pvVar4,pcVar6,local_28);" (call_expression "memcpy(pvVar4,pcVar6,local_28)" identifier (argument_list "(pvVar4,pcVar6,local_28)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)pvVar4 + local_20) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar4 + local_20) = 0" (pointer_expression "*(undefined1 *)((int)pvVar4 + local_20)" * (cast_expression "(undefined1 *)((int)pvVar4 + local_20)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + local_20)" ( (binary_expression "(int)pvVar4 + local_20" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*e = pvVar4;" (assignment_expression "*e = pvVar4" (pointer_expression "*e" * identifier) = identifier) ;) (expression_statement "bVar2 = pcVar3[1];" (assignment_expression "bVar2 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (do_statement "do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      } while (bVar2 != 0);" do (compound_statement "{\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        s = s + 1;\n        bVar2 = *s;\n      }" { (if_statement "if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2 + 1" (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *s;" (assignment_expression "bVar2 = *s" identifier = (pointer_expression "*s" * identifier)) ;) }) while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) ;) })) (expression_statement "pcVar3 = dupstr((char *)s);" (assignment_expression "pcVar3 = dupstr((char *)s)" identifier = (call_expression "dupstr((char *)s)" identifier (argument_list "((char *)s)" ( (cast_expression "(char *)s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "e[1] = pcVar3;" (assignment_expression "e[1] = pcVar3" (subscript_expression "e[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (xrmtree == (tree234 *)0x0) {\n      xrmtree = newtree234(keycmp);\n    }" if (parenthesized_expression "(xrmtree == (tree234 *)0x0)" ( (binary_expression "xrmtree == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      xrmtree = newtree234(keycmp);\n    }" { (expression_statement "xrmtree = newtree234(keycmp);" (assignment_expression "xrmtree = newtree234(keycmp)" identifier = (call_expression "newtree234(keycmp)" identifier (argument_list "(keycmp)" ( identifier )))) ;) })) (expression_statement "pvVar4 = add234(xrmtree,e);" (assignment_expression "pvVar4 = add234(xrmtree,e)" identifier = (call_expression "add234(xrmtree,e)" identifier (argument_list "(xrmtree,e)" ( identifier , identifier )))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      del234(xrmtree,pvVar4);\n      add234(xrmtree,e);\n    }" { (expression_statement "del234(xrmtree,pvVar4);" (call_expression "del234(xrmtree,pvVar4)" identifier (argument_list "(xrmtree,pvVar4)" ( identifier , identifier ))) ;) (expression_statement "add234(xrmtree,e);" (call_expression "add234(xrmtree,e)" identifier (argument_list "(xrmtree,e)" ( identifier , identifier ))) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00047b90(char *param_1)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00047b90(char *param_1)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00047b90(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "pcVar3 = strchr(param_1,0x3a);" (assignment_expression "pcVar3 = strchr(param_1,0x3a)" identifier = (call_expression "strchr(param_1,0x3a)" identifier (argument_list "(param_1,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0006efe0" * (cast_expression "(undefined4 *)PTR_stderr_0006efe0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""pterm: expected a colon in resource string \"%s\"\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" else (compound_statement "{\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" { (expression_statement "pbVar10 = (byte *)(pcVar3 + 1);" (assignment_expression "pbVar10 = (byte *)(pcVar3 + 1)" identifier = (cast_expression "(byte *)(pcVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (if_statement "if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }" if (parenthesized_expression "(param_1 < pcVar3)" ( (binary_expression "param_1 < pcVar3" identifier < identifier) )) (compound_statement "{\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }" { (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (if_statement "if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" if (parenthesized_expression "((pcVar3[-1] & 0xfbU) == 0x2a)" ( (binary_expression "(pcVar3[-1] & 0xfbU) == 0x2a" (parenthesized_expression "(pcVar3[-1] & 0xfbU)" ( (binary_expression "pcVar3[-1] & 0xfbU" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        local_20 = 0;\n        local_28 = 1;\n      }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" else (compound_statement "{\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" { (do_statement "do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);" do (compound_statement "{\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        }" { (expression_statement "pcVar8 = pcVar9 + -1;" (assignment_expression "pcVar8 = pcVar9 + -1" identifier = (binary_expression "pcVar9 + -1" identifier + number_literal)) ;) (if_statement "if (param_1 == pcVar8) break;" if (parenthesized_expression "(param_1 == pcVar8)" ( (binary_expression "param_1 == pcVar8" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (byte *)(pcVar9 + -2);" (assignment_expression "pbVar1 = (byte *)(pcVar9 + -2)" identifier = (cast_expression "(byte *)(pcVar9 + -2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + -2)" ( (binary_expression "pcVar9 + -2" identifier + number_literal) )))) ;) (expression_statement "pcVar9 = pcVar8;" (assignment_expression "pcVar9 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "((*pbVar1 & 0xfb) != 0x2a)" ( (binary_expression "(*pbVar1 & 0xfb) != 0x2a" (parenthesized_expression "(*pbVar1 & 0xfb)" ( (binary_expression "*pbVar1 & 0xfb" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) ;) (expression_statement "local_28 = (int)pbVar10 - (int)pcVar8;" (assignment_expression "local_28 = (int)pbVar10 - (int)pcVar8" identifier = (binary_expression "(int)pbVar10 - (int)pcVar8" (cast_expression "(int)pbVar10" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_20 = local_28 - 1;" (assignment_expression "local_20 = local_28 - 1" identifier = (binary_expression "local_28 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n      local_20 = 0;\n      local_28 = 1;\n    }" else (compound_statement "{\n      local_20 = 0;\n      local_28 = 1;\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) }))) (expression_statement "puVar4 = (undefined4 *)FUN_00019880(1,8);" (assignment_expression "puVar4 = (undefined4 *)FUN_00019880(1,8)" identifier = (cast_expression "(undefined4 *)FUN_00019880(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019880(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "__dest = (void *)FUN_00019880(local_28,1);" (assignment_expression "__dest = (void *)FUN_00019880(local_28,1)" identifier = (cast_expression "(void *)FUN_00019880(local_28,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019880(local_28,1)" identifier (argument_list "(local_28,1)" ( identifier , number_literal ))))) ;) (expression_statement "memcpy(__dest,pcVar8,local_28);" (call_expression "memcpy(__dest,pcVar8,local_28)" identifier (argument_list "(__dest,pcVar8,local_28)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)__dest + local_20) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20)" * (cast_expression "(undefined1 *)((int)__dest + local_20)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_20)" ( (binary_expression "(int)__dest + local_20" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar4 = __dest;" (assignment_expression "*puVar4 = __dest" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "bVar2 = pcVar3[1];" (assignment_expression "bVar2 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (do_statement "do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);" do (compound_statement "{\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      }" { (if_statement "if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2 + 1" (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar10 = pbVar10 + 1;" (assignment_expression "pbVar10 = pbVar10 + 1" identifier = (binary_expression "pbVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar10;" (assignment_expression "bVar2 = *pbVar10" identifier = (pointer_expression "*pbVar10" * identifier)) ;) }) while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) ;) })) (expression_statement "uVar6 = FUN_00019990(pbVar10);" (assignment_expression "uVar6 = FUN_00019990(pbVar10)" identifier = (call_expression "FUN_00019990(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" if (parenthesized_expression "(DAT_0006f2d4 == 0)" ( (binary_expression "DAT_0006f2d4 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" { (expression_statement "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);" (assignment_expression "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970)" identifier = (call_expression "FUN_0003ef20(FUN_00047970)" identifier (argument_list "(FUN_00047970)" ( identifier )))) ;) })) (expression_statement "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);" (assignment_expression "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier = (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier (argument_list "(DAT_0006f2d4,puVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" { (expression_statement "FUN_0003f2c0(DAT_0006f2d4,iVar7);" (call_expression "FUN_0003f2c0(DAT_0006f2d4,iVar7)" identifier (argument_list "(DAT_0006f2d4,iVar7)" ( identifier , identifier ))) ;) (expression_statement "FUN_0003efa0(DAT_0006f2d4,puVar4);" (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" identifier (argument_list "(DAT_0006f2d4,puVar4)" ( identifier , identifier ))) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (string_literal " string_content escape_sequence string_content escape_sequence escape_sequence ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (do_statement do (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 (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) }))) (return_statement return ;) })))
(function_definition "void FUN_00047b90(char *param_1)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00047b90(char *param_1)" (identifier "FUN_00047b90") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  void *__dest;\n  ushort **ppuVar5;\n  undefined4 uVar6;\n  int iVar7;\n  char *pcVar8;\n  byte *pbVar10;\n  size_t local_28;\n  int local_20;\n  char *pcVar9;\n  \n  pcVar3 = strchr(param_1,0x3a);\n  if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "ushort **ppuVar5;" (type_identifier "ushort") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "byte *pbVar10;" (type_identifier "byte") (pointer_declarator "*pbVar10" (* "*") (identifier "pbVar10")) (; ";")) (declaration "size_t local_28;" (primitive_type "size_t") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (expression_statement "pcVar3 = strchr(param_1,0x3a);" (assignment_expression "pcVar3 = strchr(param_1,0x3a)" (identifier "pcVar3") (= "=") (call_expression "strchr(param_1,0x3a)" (identifier "strchr") (argument_list "(param_1,0x3a)" (( "(") (identifier "param_1") (, ",") (number_literal "0x3a") () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }\n  else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);\n  }" ({ "{") (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_0006efe0,1,\n                  "pterm: expected a colon in resource string \"%s\"\n",param_1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0006efe0" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0006efe0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0006efe0"))) (, ",") (number_literal "1") (, ",") (string_literal ""pterm: expected a colon in resource string \"%s\"\n"" (" """) (string_content "pterm: expected a colon in resource string ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" (else "else") (compound_statement "{\n    pbVar10 = (byte *)(pcVar3 + 1);\n    pcVar8 = pcVar3;\n    if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }\n    puVar4 = (undefined4 *)FUN_00019880(1,8);\n    __dest = (void *)FUN_00019880(local_28,1);\n    memcpy(__dest,pcVar8,local_28);\n    *(undefined1 *)((int)__dest + local_20) = 0;\n    *puVar4 = __dest;\n    bVar2 = pcVar3[1];\n    if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }\n    uVar6 = FUN_00019990(pbVar10);\n    puVar4[1] = uVar6;\n    if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }\n    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);\n    if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }\n  }" ({ "{") (expression_statement "pbVar10 = (byte *)(pcVar3 + 1);" (assignment_expression "pbVar10 = (byte *)(pcVar3 + 1)" (identifier "pbVar10") (= "=") (cast_expression "(byte *)(pcVar3 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" (identifier "pcVar8") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (param_1 < pcVar3) {\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }\n    else {\n      local_20 = 0;\n      local_28 = 1;\n    }" (if "if") (parenthesized_expression "(param_1 < pcVar3)" (( "(") (binary_expression "param_1 < pcVar3" (identifier "param_1") (< "<") (identifier "pcVar3")) () ")")) (compound_statement "{\n      pcVar9 = pcVar3;\n      if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }\n    }" ({ "{") (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" (identifier "pcVar9") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if ((pcVar3[-1] & 0xfbU) == 0x2a) {\n        local_20 = 0;\n        local_28 = 1;\n      }\n      else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" (if "if") (parenthesized_expression "((pcVar3[-1] & 0xfbU) == 0x2a)" (( "(") (binary_expression "(pcVar3[-1] & 0xfbU) == 0x2a" (parenthesized_expression "(pcVar3[-1] & 0xfbU)" (( "(") (binary_expression "pcVar3[-1] & 0xfbU" (subscript_expression "pcVar3[-1]" (identifier "pcVar3") ([ "[") (number_literal "-1") (] "]")) (& "&") (number_literal "0xfbU")) () ")")) (== "==") (number_literal "0x2a")) () ")")) (compound_statement "{\n        local_20 = 0;\n        local_28 = 1;\n      }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" (else "else") (compound_statement "{\n        do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);\n        local_28 = (int)pbVar10 - (int)pcVar8;\n        local_20 = local_28 - 1;\n      }" ({ "{") (do_statement "do {\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        } while ((*pbVar1 & 0xfb) != 0x2a);" (do "do") (compound_statement "{\n          pcVar8 = pcVar9 + -1;\n          if (param_1 == pcVar8) break;\n          pbVar1 = (byte *)(pcVar9 + -2);\n          pcVar9 = pcVar8;\n        }" ({ "{") (expression_statement "pcVar8 = pcVar9 + -1;" (assignment_expression "pcVar8 = pcVar9 + -1" (identifier "pcVar8") (= "=") (binary_expression "pcVar9 + -1" (identifier "pcVar9") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (param_1 == pcVar8) break;" (if "if") (parenthesized_expression "(param_1 == pcVar8)" (( "(") (binary_expression "param_1 == pcVar8" (identifier "param_1") (== "==") (identifier "pcVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar1 = (byte *)(pcVar9 + -2);" (assignment_expression "pbVar1 = (byte *)(pcVar9 + -2)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(pcVar9 + -2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar9 + -2)" (( "(") (binary_expression "pcVar9 + -2" (identifier "pcVar9") (+ "+") (number_literal "-2")) () ")")))) (; ";")) (expression_statement "pcVar9 = pcVar8;" (assignment_expression "pcVar9 = pcVar8" (identifier "pcVar9") (= "=") (identifier "pcVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*pbVar1 & 0xfb) != 0x2a)" (( "(") (binary_expression "(*pbVar1 & 0xfb) != 0x2a" (parenthesized_expression "(*pbVar1 & 0xfb)" (( "(") (binary_expression "*pbVar1 & 0xfb" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (& "&") (number_literal "0xfb")) () ")")) (!= "!=") (number_literal "0x2a")) () ")")) (; ";")) (expression_statement "local_28 = (int)pbVar10 - (int)pcVar8;" (assignment_expression "local_28 = (int)pbVar10 - (int)pcVar8" (identifier "local_28") (= "=") (binary_expression "(int)pbVar10 - (int)pcVar8" (cast_expression "(int)pbVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar10")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")))) (; ";")) (expression_statement "local_20 = local_28 - 1;" (assignment_expression "local_20 = local_28 - 1" (identifier "local_20") (= "=") (binary_expression "local_28 - 1" (identifier "local_28") (- "-") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      local_20 = 0;\n      local_28 = 1;\n    }" (else "else") (compound_statement "{\n      local_20 = 0;\n      local_28 = 1;\n    }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "puVar4 = (undefined4 *)FUN_00019880(1,8);" (assignment_expression "puVar4 = (undefined4 *)FUN_00019880(1,8)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_00019880(1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019880(1,8)" (identifier "FUN_00019880") (argument_list "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "__dest = (void *)FUN_00019880(local_28,1);" (assignment_expression "__dest = (void *)FUN_00019880(local_28,1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00019880(local_28,1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019880(local_28,1)" (identifier "FUN_00019880") (argument_list "(local_28,1)" (( "(") (identifier "local_28") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "memcpy(__dest,pcVar8,local_28);" (call_expression "memcpy(__dest,pcVar8,local_28)" (identifier "memcpy") (argument_list "(__dest,pcVar8,local_28)" (( "(") (identifier "__dest") (, ",") (identifier "pcVar8") (, ",") (identifier "local_28") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)__dest + local_20) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_20) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_20)" (* "*") (cast_expression "(undefined1 *)((int)__dest + local_20)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + local_20)" (( "(") (binary_expression "(int)__dest + local_20" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "local_20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = __dest;" (assignment_expression "*puVar4 = __dest" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "bVar2 = pcVar3[1];" (assignment_expression "bVar2 = pcVar3[1]" (identifier "bVar2") (= "=") (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (bVar2 != 0) {\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" (if "if") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);\n    }" ({ "{") (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" (identifier "ppuVar5") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (do_statement "do {\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      } while (bVar2 != 0);" (do "do") (compound_statement "{\n        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;\n        pbVar10 = pbVar10 + 1;\n        bVar2 = *pbVar10;\n      }" ({ "{") (if_statement "if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;" (if "if") (parenthesized_expression "((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20)" (( "(") (binary_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar5 + (uint)bVar2 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2 + 1" (binary_expression "(int)*ppuVar5 + (uint)bVar2 * 2" (cast_expression "(int)*ppuVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar5" (* "*") (identifier "ppuVar5"))) (+ "+") (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar10 = pbVar10 + 1;" (assignment_expression "pbVar10 = pbVar10 + 1" (identifier "pbVar10") (= "=") (binary_expression "pbVar10 + 1" (identifier "pbVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar10;" (assignment_expression "bVar2 = *pbVar10" (identifier "bVar2") (= "=") (pointer_expression "*pbVar10" (* "*") (identifier "pbVar10"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar6 = FUN_00019990(pbVar10);" (assignment_expression "uVar6 = FUN_00019990(pbVar10)" (identifier "uVar6") (= "=") (call_expression "FUN_00019990(pbVar10)" (identifier "FUN_00019990") (argument_list "(pbVar10)" (( "(") (identifier "pbVar10") () ")")))) (; ";")) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (DAT_0006f2d4 == 0) {\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" (if "if") (parenthesized_expression "(DAT_0006f2d4 == 0)" (( "(") (binary_expression "DAT_0006f2d4 == 0" (identifier "DAT_0006f2d4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);\n    }" ({ "{") (expression_statement "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);" (assignment_expression "DAT_0006f2d4 = FUN_0003ef20(FUN_00047970)" (identifier "DAT_0006f2d4") (= "=") (call_expression "FUN_0003ef20(FUN_00047970)" (identifier "FUN_0003ef20") (argument_list "(FUN_00047970)" (( "(") (identifier "FUN_00047970") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);" (assignment_expression "iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4)" (identifier "iVar7") (= "=") (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" (identifier "FUN_0003efa0") (argument_list "(DAT_0006f2d4,puVar4)" (( "(") (identifier "DAT_0006f2d4") (, ",") (identifier "puVar4") () ")")))) (; ";")) (if_statement "if (iVar7 != 0) {\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0003f2c0(DAT_0006f2d4,iVar7);\n      FUN_0003efa0(DAT_0006f2d4,puVar4);\n    }" ({ "{") (expression_statement "FUN_0003f2c0(DAT_0006f2d4,iVar7);" (call_expression "FUN_0003f2c0(DAT_0006f2d4,iVar7)" (identifier "FUN_0003f2c0") (argument_list "(DAT_0006f2d4,iVar7)" (( "(") (identifier "DAT_0006f2d4") (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "FUN_0003efa0(DAT_0006f2d4,puVar4);" (call_expression "FUN_0003efa0(DAT_0006f2d4,puVar4)" (identifier "FUN_0003efa0") (argument_list "(DAT_0006f2d4,puVar4)" (( "(") (identifier "DAT_0006f2d4") (, ",") (identifier "puVar4") () ")"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_4)

{
  type_1 *pbVar1;
  type_1 var_11;
  char *var_2;
  type_2 *e;
  void *var_18;
  type_3 **ppuVar5;
  char *var_6;
  type_1 *var_13;
  size_t var_7;
  int var_10;
  char *var_5;
  
  var_2 = var_1(var_4,0x3a);
  if (var_2 == (char *)0x0) {
    var_3(*(type_2 *)PTR_stderr_0006efe0,1,
                  "pterm: expected a colon in resource string \"%s\"\n",var_4);
  }
  else {
    var_13 = (type_1 *)(var_2 + 1);
    var_6 = var_2;
    if (var_4 < var_2) {
      var_5 = var_2;
      if ((var_2[-1] & 0xfbU) == 0x2a) {
        var_10 = 0;
        var_7 = 1;
      }
      else {
        do {
          var_6 = var_5 + -1;
          if (var_4 == var_6) break;
          pbVar1 = (type_1 *)(var_5 + -2);
          var_5 = var_6;
        } while ((*pbVar1 & 0xfb) != 0x2a);
        var_7 = (int)var_13 - (int)var_6;
        var_10 = var_7 - 1;
      }
    }
    else {
      var_10 = 0;
      var_7 = 1;
    }
    e = (type_2 *)var_8(1,8);
    var_18 = var_8(var_7,1);
    var_9(var_18,var_6,var_7);
    *(type_4 *)((int)var_18 + var_10) = 0;
    *e = var_18;
    var_11 = var_2[1];
    if (var_11 != 0) {
      ppuVar5 = var_12();
      do {
        if ((*(type_1 *)((int)*ppuVar5 + (type_5)var_11 * 2 + 1) & 0x20) == 0) break;
        var_13 = var_13 + 1;
        var_11 = *var_13;
      } while (var_11 != 0);
    }
    var_2 = var_14((char *)var_13);
    e[1] = var_2;
    if (var_15 == (type_6 *)0x0) {
      var_15 = var_16(keycmp);
    }
    var_18 = var_17(var_15,e);
    if (var_18 != (void *)0x0) {
      var_19(var_15,var_18);
      var_17(var_15,e);
    }
  }
  return;
}


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

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

void MASKED(char *param_1)

{
  byte *pbVar1;
  byte bVar2;
  char *pcVar3;
  undefined4 *puVar4;
  void *__dest;
  ushort **ppuVar5;
  undefined4 uVar6;
  int iVar7;
  char *pcVar8;
  byte *pbVar10;
  size_t local_28;
  int local_20;
  char *pcVar9;
  
  pcVar3 = strchr(param_1,0x3a);
  if (pcVar3 == (char *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0006efe0,1,
                  "pterm: expected a colon in resource string \"%s\"\n",param_1);
  }
  else {
    pbVar10 = (byte *)(pcVar3 + 1);
    pcVar8 = pcVar3;
    if (param_1 < pcVar3) {
      pcVar9 = pcVar3;
      if ((pcVar3[-1] & 0xfbU) == 0x2a) {
        local_20 = 0;
        local_28 = 1;
      }
      else {
        do {
          pcVar8 = pcVar9 + -1;
          if (param_1 == pcVar8) break;
          pbVar1 = (byte *)(pcVar9 + -2);
          pcVar9 = pcVar8;
        } while ((*pbVar1 & 0xfb) != 0x2a);
        local_28 = (int)pbVar10 - (int)pcVar8;
        local_20 = local_28 - 1;
      }
    }
    else {
      local_20 = 0;
      local_28 = 1;
    }
    puVar4 = (undefined4 *)FUN_00019880(1,8);
    __dest = (void *)FUN_00019880(local_28,1);
    memcpy(__dest,pcVar8,local_28);
    *(undefined1 *)((int)__dest + local_20) = 0;
    *puVar4 = __dest;
    bVar2 = pcVar3[1];
    if (bVar2 != 0) {
      ppuVar5 = __ctype_b_loc();
      do {
        if ((*(byte *)((int)*ppuVar5 + (uint)bVar2 * 2 + 1) & 0x20) == 0) break;
        pbVar10 = pbVar10 + 1;
        bVar2 = *pbVar10;
      } while (bVar2 != 0);
    }
    uVar6 = FUN_00019990(pbVar10);
    puVar4[1] = uVar6;
    if (DAT_0006f2d4 == 0) {
      DAT_0006f2d4 = FUN_0003ef20(FUN_00047970);
    }
    iVar7 = FUN_0003efa0(DAT_0006f2d4,puVar4);
    if (iVar7 != 0) {
      FUN_0003f2c0(DAT_0006f2d4,iVar7);
      FUN_0003efa0(DAT_0006f2d4,puVar4);
    }
  }
  return;
}

