
void get_sesslist(sesslist *list,int allocate)

{
  int iVar1;
  char cVar2;
  byte bVar3;
  long lVar4;
  void *handle;
  char *pcVar5;
  byte *pbVar6;
  char **ppcVar7;
  byte *pbVar8;
  long lVar9;
  byte *pbVar10;
  int iVar11;
  int iVar12;
  long in_FS_OFFSET;
  bool bVar13;
  bool bVar14;
  byte bVar15;
  char otherbuf [2048];
  
  bVar15 = 0;
  lVar4 = *(long *)(in_FS_OFFSET + 0x28);
  if (allocate == 0) {
    safefree(list->buffer);
    safefree(list->sessions);
    list->buffer = (char *)0x0;
    list->sessions = (char **)0x0;
  }
  else {
    list->buffer = (char *)0x0;
    handle = enum_settings_start();
    iVar11 = 0;
    if (handle != (void *)0x0) {
      iVar12 = 0;
      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {
        lVar9 = -1;
        pcVar5 = otherbuf;
        do {
          if (lVar9 == 0) break;
          lVar9 = lVar9 + -1;
          cVar2 = *pcVar5;
          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;
        } while (cVar2 != '\0');
        iVar1 = ~(uint)lVar9 + iVar11;
        if (iVar12 < iVar1) {
          iVar12 = iVar1 + 0x800;
          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);
          list->buffer = pcVar5;
        }
        strcpy(list->buffer + iVar11,otherbuf);
        lVar9 = -1;
        pcVar5 = list->buffer + iVar11;
        do {
          if (lVar9 == 0) break;
          lVar9 = lVar9 + -1;
          cVar2 = *pcVar5;
          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;
        } while (cVar2 != '\0');
        iVar11 = iVar11 + ~(uint)lVar9;
      }
      enum_settings_finish(handle);
    }
    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);
    list->buffer = pcVar5;
    pcVar5[iVar11] = '\0';
    pbVar8 = (byte *)list->buffer;
    list->nsessions = 1;
    bVar3 = *pbVar8;
    while (bVar14 = bVar3 == 0, !bVar14) {
      bVar13 = false;
      lVar9 = 0x11;
      pbVar6 = pbVar8;
      pbVar10 = (byte *)"Default Settings";
      do {
        if (lVar9 == 0) break;
        lVar9 = lVar9 + -1;
        bVar13 = *pbVar6 < *pbVar10;
        bVar14 = *pbVar6 == *pbVar10;
        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;
        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;
      } while (bVar14);
      if ((!bVar13 && !bVar14) != bVar13) {
        list->nsessions = list->nsessions + 1;
      }
      bVar3 = *pbVar8;
      pbVar6 = pbVar8;
      while (bVar3 != 0) {
        pbVar6 = pbVar6 + 1;
        bVar3 = *pbVar6;
      }
      pbVar8 = pbVar6 + 1;
      bVar3 = pbVar6[1];
    }
    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);
    list->sessions = ppcVar7;
    *ppcVar7 = "Default Settings";
    pbVar8 = (byte *)list->buffer;
    bVar14 = *pbVar8 == 0;
    if (bVar14) {
      iVar11 = 1;
    }
    else {
      iVar11 = 1;
      do {
        bVar13 = false;
        lVar9 = 0x11;
        pbVar6 = pbVar8;
        pbVar10 = (byte *)"Default Settings";
        do {
          if (lVar9 == 0) break;
          lVar9 = lVar9 + -1;
          bVar13 = *pbVar6 < *pbVar10;
          bVar14 = *pbVar6 == *pbVar10;
          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;
          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;
        } while (bVar14);
        if ((!bVar13 && !bVar14) != bVar13) {
          list->sessions[iVar11] = (char *)pbVar8;
          iVar11 = iVar11 + 1;
        }
        bVar3 = *pbVar8;
        pbVar6 = pbVar8;
        while (bVar3 != 0) {
          pbVar6 = pbVar6 + 1;
          bVar3 = *pbVar6;
        }
        pbVar8 = pbVar6 + 1;
        bVar14 = pbVar6[1] == 0;
      } while (!bVar14);
    }
    qsort(list->sessions,(long)iVar11,8,sessioncmp);
  }
  if (lVar4 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



void FUN_0012b0fd(int *param_1,int param_2)

{
  char cVar1;
  byte bVar2;
  int iVar3;
  long lVar4;
  long lVar5;
  undefined8 uVar6;
  byte *pbVar7;
  undefined8 *puVar8;
  byte *pbVar9;
  char *pcVar10;
  byte *pbVar11;
  int iVar12;
  int iVar13;
  long in_FS_OFFSET;
  bool bVar14;
  bool bVar15;
  byte bVar16;
  char acStack_848 [2056];
  long local_40;
  
  bVar16 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 0) {
    FUN_00122b5a(*(undefined8 *)(param_1 + 4));
    FUN_00122b5a(*(undefined8 *)(param_1 + 2));
    param_1[4] = 0;
    param_1[5] = 0;
    param_1[2] = 0;
    param_1[3] = 0;
  }
  else {
    param_1[4] = 0;
    param_1[5] = 0;
    lVar4 = FUN_001553db();
    iVar12 = 0;
    if (lVar4 != 0) {
      iVar13 = 0;
      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {
        lVar5 = -1;
        pcVar10 = acStack_848;
        do {
          if (lVar5 == 0) break;
          lVar5 = lVar5 + -1;
          cVar1 = *pcVar10;
          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;
        } while (cVar1 != '\0');
        iVar3 = ~(uint)lVar5 + iVar12;
        if (iVar13 < iVar3) {
          iVar13 = iVar3 + 0x800;
          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);
          *(undefined8 *)(param_1 + 4) = uVar6;
        }
        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);
        lVar5 = -1;
        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));
        do {
          if (lVar5 == 0) break;
          lVar5 = lVar5 + -1;
          cVar1 = *pcVar10;
          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;
        } while (cVar1 != '\0');
        iVar12 = iVar12 + ~(uint)lVar5;
      }
      FUN_0015563f(lVar4);
    }
    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);
    *(long *)(param_1 + 4) = lVar4;
    *(undefined1 *)(lVar4 + iVar12) = 0;
    pbVar9 = *(byte **)(param_1 + 4);
    *param_1 = 1;
    bVar2 = *pbVar9;
    while (bVar15 = bVar2 == 0, !bVar15) {
      bVar14 = false;
      lVar4 = 0x11;
      pbVar7 = pbVar9;
      pbVar11 = (byte *)"Default Settings";
      do {
        if (lVar4 == 0) break;
        lVar4 = lVar4 + -1;
        bVar14 = *pbVar7 < *pbVar11;
        bVar15 = *pbVar7 == *pbVar11;
        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;
        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;
      } while (bVar15);
      if ((!bVar14 && !bVar15) != bVar14) {
        *param_1 = *param_1 + 1;
      }
      bVar2 = *pbVar9;
      pbVar7 = pbVar9;
      while (bVar2 != 0) {
        pbVar7 = pbVar7 + 1;
        bVar2 = *pbVar7;
      }
      pbVar9 = pbVar7 + 1;
      bVar2 = pbVar7[1];
    }
    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);
    *(undefined8 **)(param_1 + 2) = puVar8;
    *puVar8 = "Default Settings";
    pbVar9 = *(byte **)(param_1 + 4);
    bVar15 = *pbVar9 == 0;
    if (bVar15) {
      iVar12 = 1;
    }
    else {
      iVar12 = 1;
      do {
        bVar14 = false;
        lVar4 = 0x11;
        pbVar7 = pbVar9;
        pbVar11 = (byte *)"Default Settings";
        do {
          if (lVar4 == 0) break;
          lVar4 = lVar4 + -1;
          bVar14 = *pbVar7 < *pbVar11;
          bVar15 = *pbVar7 == *pbVar11;
          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;
          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;
        } while (bVar15);
        if ((!bVar14 && !bVar15) != bVar14) {
          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;
          iVar12 = iVar12 + 1;
        }
        bVar2 = *pbVar9;
        pbVar7 = pbVar9;
        while (bVar2 != 0) {
          pbVar7 = pbVar7 + 1;
          bVar2 = *pbVar7;
        }
        pbVar9 = pbVar7 + 1;
        bVar15 = pbVar7[1] == 0;
      } while (!bVar15);
    }
    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x818
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x808],RAX
XOR EAX,EAX
TEST ESI,ESI
JZ 0x0012b2b2
MOV qword ptr [RDI + 0x10],0x0
CALL 0x001553db
MOV R14,RAX
MOV R12D,0x0
TEST RAX,RAX
JZ 0x0012b301
MOV R15D,0x0
MOV R13,RSP
JMP 0x0012b184
MOVSXD RBP,R12D
MOV RDI,RBP
ADD RDI,qword ptr [RBX + 0x10]
MOV RSI,R13
CALL 0x00110f80
MOV RDI,RBP
ADD RDI,qword ptr [RBX + 0x10]
MOV RCX,-0x1
MOV EAX,0x0
SCASB.REPNE RDI
NOT RCX
LEA R12D,[R12 + RCX*0x1]
MOV EDX,0x800
MOV RSI,R13
MOV RDI,R14
CALL 0x00155410
TEST RAX,RAX
JZ 0x0012b2f9
MOV RCX,-0x1
MOV RDI,R13
MOV EAX,0x0
SCASB.REPNE RDI
NOT ECX
LEA EAX,[RCX + R12*0x1]
CMP EAX,R15D
JLE 0x0012b156
LEA R15D,[RAX + 0x800]
MOVSXD RSI,R15D
MOV RDI,qword ptr [RBX + 0x10]
MOV EDX,0x1
CALL 0x001226ba
MOV qword ptr [RBX + 0x10],RAX
JMP 0x0012b156
CMP byte ptr [RAX],0x0
JZ 0x0012b211
ADD RAX,0x1
CMP byte ptr [RAX],0x0
JNZ 0x0012b1df
MOV RDX,RAX
LEA RAX,[RDX + 0x1]
CMP byte ptr [RDX + 0x1],0x0
JZ 0x0012b216
MOV ECX,0x11
MOV RSI,RAX
MOV RDI,R8
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x0012b1da
ADD dword ptr [RBX],0x1
JMP 0x0012b1da
MOV RDX,RAX
JMP 0x0012b1eb
MOV EAX,dword ptr [RBX]
LEA EDI,[RAX + 0x1]
MOVSXD RDI,EDI
MOV ESI,0x8
CALL 0x001222ee
MOV qword ptr [RBX + 0x8],RAX
LEA RSI,[0x1772dd]
MOV qword ptr [RAX],RSI
MOV RAX,qword ptr [RBX + 0x10]
CMP byte ptr [RAX],0x0
JZ 0x0012b292
MOV R8D,0x1
MOV R9,RSI
JMP 0x0012b265
CMP byte ptr [RAX],0x0
JZ 0x0012b28d
ADD RAX,0x1
CMP byte ptr [RAX],0x0
JNZ 0x0012b24f
MOV RDX,RAX
LEA RAX,[RDX + 0x1]
CMP byte ptr [RDX + 0x1],0x0
JZ 0x0012b298
MOV ECX,0x11
MOV RSI,RAX
MOV RDI,R9
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x0012b24a
MOVSXD RCX,R8D
MOV RDX,qword ptr [RBX + 0x8]
MOV qword ptr [RDX + RCX*0x8],RAX
LEA R8D,[R8 + 0x1]
JMP 0x0012b24a
MOV RDX,RAX
JMP 0x0012b25b
MOV R8D,0x1
MOVSXD RSI,R8D
MOV RDI,qword ptr [RBX + 0x8]
LEA RCX,[0x1273a3]
MOV EDX,0x8
CALL 0x00111ec0
JMP 0x0012b2d4
MOV RDI,qword ptr [RDI + 0x10]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00122b5a
MOV qword ptr [RBX + 0x10],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [RSP + 0x808]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0012b342
ADD RSP,0x818
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RDI,R14
CALL 0x0015563f
LEA ESI,[R12 + 0x1]
MOVSXD RSI,ESI
MOV RDI,qword ptr [RBX + 0x10]
MOV EDX,0x1
CALL 0x001226ba
MOV qword ptr [RBX + 0x10],RAX
MOVSXD R12,R12D
MOV byte ptr [RAX + R12*0x1],0x0
MOV RAX,qword ptr [RBX + 0x10]
MOV dword ptr [RBX],0x1
CMP byte ptr [RAX],0x0
JZ 0x0012b216
LEA R8,[0x1772dd]
JMP 0x0012b1f5
CALL 0x001111e0
(translation_unit "void FUN_0012b0fd(int *param_1,int param_2)\n\n{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0012b0fd(int *param_1,int param_2)\n\n{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0012b0fd(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "byte bVar16;" type_identifier identifier ;) (declaration "char acStack_848 [2056];" primitive_type (array_declarator "acStack_848 [2056]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }" { (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 4));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 4))" identifier (argument_list "(*(undefined8 *)(param_1 + 4))" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 2));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 2))" identifier (argument_list "(*(undefined8 *)(param_1 + 2))" ( (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" else (compound_statement "{\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" { (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar4 = FUN_001553db();" (assignment_expression "lVar4 = FUN_001553db()" identifier = (call_expression "FUN_001553db()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (if_statement "if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (while_statement "while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" while (parenthesized_expression "(lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0)" ( (comma_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0" (assignment_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800)" identifier = (call_expression "FUN_00155410(lVar4,acStack_848,0x800)" identifier (argument_list "(lVar4,acStack_848,0x800)" ( identifier , identifier , number_literal )))) , (binary_expression "lVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" { (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = acStack_848;" (assignment_expression "pcVar10 = acStack_848" identifier = identifier) ;) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = ~(uint)lVar5 + iVar12;" (assignment_expression "iVar3 = ~(uint)lVar5 + iVar12" identifier = (binary_expression "~(uint)lVar5 + iVar12" (unary_expression "~(uint)lVar5" ~ (cast_expression "(uint)lVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) + identifier)) ;) (if_statement "if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" if (parenthesized_expression "(iVar13 < iVar3)" ( (binary_expression "iVar13 < iVar3" identifier < identifier) )) (compound_statement "{\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" { (expression_statement "iVar13 = iVar3 + 0x800;" (assignment_expression "iVar13 = iVar3 + 0x800" identifier = (binary_expression "iVar3 + 0x800" identifier + number_literal)) ;) (expression_statement "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);" (assignment_expression "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" identifier = (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" identifier (argument_list "(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (cast_expression "(long)iVar13" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 4) = uVar6;" (assignment_expression "*(undefined8 *)(param_1 + 4) = uVar6" (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);" (call_expression "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" identifier (argument_list "((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" ( (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" ( (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) , identifier ))) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));" (assignment_expression "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4))" identifier = (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" ( (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )))) ;) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar12 = iVar12 + ~(uint)lVar5;" (assignment_expression "iVar12 = iVar12 + ~(uint)lVar5" identifier = (binary_expression "iVar12 + ~(uint)lVar5" identifier + (unary_expression "~(uint)lVar5" ~ (cast_expression "(uint)lVar5" ( (type_descriptor "uint" type_identifier) ) identifier)))) ;) })) (expression_statement "FUN_0015563f(lVar4);" (call_expression "FUN_0015563f(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (expression_statement "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);" (assignment_expression "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" identifier = (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" identifier (argument_list "(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (cast_expression "(long)(iVar12 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar12 + 1)" ( (binary_expression "iVar12 + 1" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "*(long *)(param_1 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar4 + iVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar4 + iVar12) = 0" (pointer_expression "*(undefined1 *)(lVar4 + iVar12)" * (cast_expression "(undefined1 *)(lVar4 + iVar12)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + iVar12)" ( (binary_expression "lVar4 + iVar12" identifier + identifier) )))) = number_literal) ;) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" identifier = (pointer_expression "*(byte **)(param_1 + 4)" * (cast_expression "(byte **)(param_1 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (while_statement "while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" while (parenthesized_expression "(bVar15 = bVar2 == 0, !bVar15)" ( (comma_expression "bVar15 = bVar2 == 0, !bVar15" (assignment_expression "bVar15 = bVar2 == 0" identifier = (binary_expression "bVar2 == 0" identifier == number_literal)) , (unary_expression "!bVar15" ! identifier)) )) (compound_statement "{\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);" do (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" identifier = (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" identifier = (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }" if (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" ( (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" ( (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" ! identifier) && (unary_expression "!bVar15" ! identifier)) )) != identifier) )) (compound_statement "{\n        *param_1 = *param_1 + 1;\n      }" { (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) })) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" { (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) })) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar7[1];" (assignment_expression "bVar2 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;) })) (expression_statement "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);" (assignment_expression "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" identifier = (cast_expression "(undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001222ee((long)(*param_1 + 1),8)" identifier (argument_list "((long)(*param_1 + 1),8)" ( (cast_expression "(long)(*param_1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(*param_1 + 1)" ( (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) ))) , number_literal ))))) ;) (expression_statement "*(undefined8 **)(param_1 + 2) = puVar8;" (assignment_expression "*(undefined8 **)(param_1 + 2) = puVar8" (pointer_expression "*(undefined8 **)(param_1 + 2)" * (cast_expression "(undefined8 **)(param_1 + 2)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar8 = "Default Settings";" (assignment_expression "*puVar8 = "Default Settings"" (pointer_expression "*puVar8" * identifier) = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" identifier = (pointer_expression "*(byte **)(param_1 + 4)" * (cast_expression "(byte **)(param_1 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar15 = *pbVar9 == 0;" (assignment_expression "bVar15 = *pbVar9 == 0" identifier = (binary_expression "*pbVar9 == 0" (pointer_expression "*pbVar9" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      iVar12 = 1;\n    }" { (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" { (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" identifier = (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" identifier = (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" if (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" ( (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" ( (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" ! identifier) && (unary_expression "!bVar15" ! identifier)) )) != identifier) )) (compound_statement "{\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" { (expression_statement "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;" (assignment_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9" (pointer_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" * (cast_expression "(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 2) + (long)iVar12 * 8)" ( (binary_expression "*(long *)(param_1 + 2) + (long)iVar12 * 8" (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) + (binary_expression "(long)iVar12 * 8" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = identifier) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) })) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" { (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) })) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar15 = pbVar7[1] == 0;" (assignment_expression "bVar15 = pbVar7[1] == 0" identifier = (binary_expression "pbVar7[1] == 0" (subscript_expression "pbVar7[1]" identifier [ number_literal ]) == number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);" (call_expression "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" identifier (argument_list "(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" ( (pointer_expression "*(void **)(param_1 + 2)" * (cast_expression "(void **)(param_1 + 2)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) , (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal , identifier ))) ;) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void get_sesslist(sesslist *list,int allocate)\n\n{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  long lVar4;\n  void *handle;\n  char *pcVar5;\n  byte *pbVar6;\n  char **ppcVar7;\n  byte *pbVar8;\n  long lVar9;\n  byte *pbVar10;\n  int iVar11;\n  int iVar12;\n  long in_FS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  byte bVar15;\n  char otherbuf [2048];\n  \n  bVar15 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  if (allocate == 0) {\n    safefree(list->buffer);\n    safefree(list->sessions);\n    list->buffer = (char *)0x0;\n    list->sessions = (char **)0x0;\n  }\n  else {\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }\n  if (lVar4 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void get_sesslist(sesslist *list,int allocate)\n\n{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  long lVar4;\n  void *handle;\n  char *pcVar5;\n  byte *pbVar6;\n  char **ppcVar7;\n  byte *pbVar8;\n  long lVar9;\n  byte *pbVar10;\n  int iVar11;\n  int iVar12;\n  long in_FS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  byte bVar15;\n  char otherbuf [2048];\n  \n  bVar15 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  if (allocate == 0) {\n    safefree(list->buffer);\n    safefree(list->sessions);\n    list->buffer = (char *)0x0;\n    list->sessions = (char **)0x0;\n  }\n  else {\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }\n  if (lVar4 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "get_sesslist(sesslist *list,int allocate)" identifier (parameter_list "(sesslist *list,int allocate)" ( (parameter_declaration "sesslist *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "int allocate" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  long lVar4;\n  void *handle;\n  char *pcVar5;\n  byte *pbVar6;\n  char **ppcVar7;\n  byte *pbVar8;\n  long lVar9;\n  byte *pbVar10;\n  int iVar11;\n  int iVar12;\n  long in_FS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  byte bVar15;\n  char otherbuf [2048];\n  \n  bVar15 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  if (allocate == 0) {\n    safefree(list->buffer);\n    safefree(list->sessions);\n    list->buffer = (char *)0x0;\n    list->sessions = (char **)0x0;\n  }\n  else {\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }\n  if (lVar4 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "void *handle;" primitive_type (pointer_declarator "*handle" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "byte bVar15;" type_identifier identifier ;) (declaration "char otherbuf [2048];" primitive_type (array_declarator "otherbuf [2048]" identifier [ number_literal ]) ;) (expression_statement "bVar15 = 0;" (assignment_expression "bVar15 = 0" identifier = number_literal) ;) (expression_statement "lVar4 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar4 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (allocate == 0) {\n    safefree(list->buffer);\n    safefree(list->sessions);\n    list->buffer = (char *)0x0;\n    list->sessions = (char **)0x0;\n  }\n  else {\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }" if (parenthesized_expression "(allocate == 0)" ( (binary_expression "allocate == 0" identifier == number_literal) )) (compound_statement "{\n    safefree(list->buffer);\n    safefree(list->sessions);\n    list->buffer = (char *)0x0;\n    list->sessions = (char **)0x0;\n  }" { (expression_statement "safefree(list->buffer);" (call_expression "safefree(list->buffer)" identifier (argument_list "(list->buffer)" ( (field_expression "list->buffer" identifier -> field_identifier) ))) ;) (expression_statement "safefree(list->sessions);" (call_expression "safefree(list->sessions)" identifier (argument_list "(list->sessions)" ( (field_expression "list->sessions" identifier -> field_identifier) ))) ;) (expression_statement "list->buffer = (char *)0x0;" (assignment_expression "list->buffer = (char *)0x0" (field_expression "list->buffer" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "list->sessions = (char **)0x0;" (assignment_expression "list->sessions = (char **)0x0" (field_expression "list->sessions" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }" else (compound_statement "{\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    iVar11 = 0;\n    if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }\n    pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);\n    list->buffer = pcVar5;\n    pcVar5[iVar11] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar3 = *pbVar8;\n    while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }\n    ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);\n    list->sessions = ppcVar7;\n    *ppcVar7 = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar14 = *pbVar8 == 0;\n    if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }\n    qsort(list->sessions,(long)iVar11,8,sessioncmp);\n  }" { (expression_statement "list->buffer = (char *)0x0;" (assignment_expression "list->buffer = (char *)0x0" (field_expression "list->buffer" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "handle = enum_settings_start();" (assignment_expression "handle = enum_settings_start()" identifier = (call_expression "enum_settings_start()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (handle != (void *)0x0) {\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }" if (parenthesized_expression "(handle != (void *)0x0)" ( (binary_expression "handle != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar12 = 0;\n      while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }\n      enum_settings_finish(handle);\n    }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (while_statement "while (pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0) {\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }" while (parenthesized_expression "(pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0)" ( (comma_expression "pcVar5 = enum_settings_next(handle,otherbuf,0x800), pcVar5 != (char *)0x0" (assignment_expression "pcVar5 = enum_settings_next(handle,otherbuf,0x800)" identifier = (call_expression "enum_settings_next(handle,otherbuf,0x800)" identifier (argument_list "(handle,otherbuf,0x800)" ( identifier , identifier , number_literal )))) , (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        lVar9 = -1;\n        pcVar5 = otherbuf;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar1 = ~(uint)lVar9 + iVar11;\n        if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }\n        strcpy(list->buffer + iVar11,otherbuf);\n        lVar9 = -1;\n        pcVar5 = list->buffer + iVar11;\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');\n        iVar11 = iVar11 + ~(uint)lVar9;\n      }" { (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" identifier = number_literal) ;) (expression_statement "pcVar5 = otherbuf;" (assignment_expression "pcVar5 = otherbuf" identifier = identifier) ;) (do_statement "do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');" do (compound_statement "{\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pcVar5 + (ulong)bVar15 * -2 + 1" (binary_expression "pcVar5 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar1 = ~(uint)lVar9 + iVar11;" (assignment_expression "iVar1 = ~(uint)lVar9 + iVar11" identifier = (binary_expression "~(uint)lVar9 + iVar11" (unary_expression "~(uint)lVar9" ~ (cast_expression "(uint)lVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) + identifier)) ;) (if_statement "if (iVar12 < iVar1) {\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }" if (parenthesized_expression "(iVar12 < iVar1)" ( (binary_expression "iVar12 < iVar1" identifier < identifier) )) (compound_statement "{\n          iVar12 = iVar1 + 0x800;\n          pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);\n          list->buffer = pcVar5;\n        }" { (expression_statement "iVar12 = iVar1 + 0x800;" (assignment_expression "iVar12 = iVar1 + 0x800" identifier = (binary_expression "iVar1 + 0x800" identifier + number_literal)) ;) (expression_statement "pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1);" (assignment_expression "pcVar5 = (char *)saferealloc(list->buffer,(long)iVar12,1)" identifier = (cast_expression "(char *)saferealloc(list->buffer,(long)iVar12,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(list->buffer,(long)iVar12,1)" identifier (argument_list "(list->buffer,(long)iVar12,1)" ( (field_expression "list->buffer" identifier -> field_identifier) , (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "list->buffer = pcVar5;" (assignment_expression "list->buffer = pcVar5" (field_expression "list->buffer" identifier -> field_identifier) = identifier) ;) })) (expression_statement "strcpy(list->buffer + iVar11,otherbuf);" (call_expression "strcpy(list->buffer + iVar11,otherbuf)" identifier (argument_list "(list->buffer + iVar11,otherbuf)" ( (binary_expression "list->buffer + iVar11" (field_expression "list->buffer" identifier -> field_identifier) + identifier) , identifier ))) ;) (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" identifier = number_literal) ;) (expression_statement "pcVar5 = list->buffer + iVar11;" (assignment_expression "pcVar5 = list->buffer + iVar11" identifier = (binary_expression "list->buffer + iVar11" (field_expression "list->buffer" identifier -> field_identifier) + identifier)) ;) (do_statement "do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        } while (cVar2 != '\0');" do (compound_statement "{\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          cVar2 = *pcVar5;\n          pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;\n        }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar5;" (assignment_expression "cVar2 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pcVar5 = pcVar5 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pcVar5 + (ulong)bVar15 * -2 + 1" (binary_expression "pcVar5 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar11 = iVar11 + ~(uint)lVar9;" (assignment_expression "iVar11 = iVar11 + ~(uint)lVar9" identifier = (binary_expression "iVar11 + ~(uint)lVar9" identifier + (unary_expression "~(uint)lVar9" ~ (cast_expression "(uint)lVar9" ( (type_descriptor "uint" type_identifier) ) identifier)))) ;) })) (expression_statement "enum_settings_finish(handle);" (call_expression "enum_settings_finish(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) })) (expression_statement "pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1);" (assignment_expression "pcVar5 = (char *)saferealloc(list->buffer,(long)(iVar11 + 1),1)" identifier = (cast_expression "(char *)saferealloc(list->buffer,(long)(iVar11 + 1),1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(list->buffer,(long)(iVar11 + 1),1)" identifier (argument_list "(list->buffer,(long)(iVar11 + 1),1)" ( (field_expression "list->buffer" identifier -> field_identifier) , (cast_expression "(long)(iVar11 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar11 + 1)" ( (binary_expression "iVar11 + 1" identifier + number_literal) ))) , number_literal ))))) ;) (expression_statement "list->buffer = pcVar5;" (assignment_expression "list->buffer = pcVar5" (field_expression "list->buffer" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar5[iVar11] = '\0';" (assignment_expression "pcVar5[iVar11] = '\0'" (subscript_expression "pcVar5[iVar11]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pbVar8 = (byte *)list->buffer;" (assignment_expression "pbVar8 = (byte *)list->buffer" identifier = (cast_expression "(byte *)list->buffer" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "list->buffer" identifier -> field_identifier))) ;) (expression_statement "list->nsessions = 1;" (assignment_expression "list->nsessions = 1" (field_expression "list->nsessions" identifier -> field_identifier) = number_literal) ;) (expression_statement "bVar3 = *pbVar8;" (assignment_expression "bVar3 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (while_statement "while (bVar14 = bVar3 == 0, !bVar14) {\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }" while (parenthesized_expression "(bVar14 = bVar3 == 0, !bVar14)" ( (comma_expression "bVar14 = bVar3 == 0, !bVar14" (assignment_expression "bVar14 = bVar3 == 0" identifier = (binary_expression "bVar3 == 0" identifier == number_literal)) , (unary_expression "!bVar14" ! identifier)) )) (compound_statement "{\n      bVar13 = false;\n      lVar9 = 0x11;\n      pbVar6 = pbVar8;\n      pbVar10 = (byte *)"Default Settings";\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);\n      if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }\n      bVar3 = *pbVar8;\n      pbVar6 = pbVar8;\n      while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }\n      pbVar8 = pbVar6 + 1;\n      bVar3 = pbVar6[1];\n    }" { (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" identifier = false) ;) (expression_statement "lVar9 = 0x11;" (assignment_expression "lVar9 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)"Default Settings";" (assignment_expression "pbVar10 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      } while (bVar14);" do (compound_statement "{\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        bVar13 = *pbVar6 < *pbVar10;\n        bVar14 = *pbVar6 == *pbVar10;\n        pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n        pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n      }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar13 = *pbVar6 < *pbVar10;" (assignment_expression "bVar13 = *pbVar6 < *pbVar10" identifier = (binary_expression "*pbVar6 < *pbVar10" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar14 = *pbVar6 == *pbVar10;" (assignment_expression "bVar14 = *pbVar6 == *pbVar10" identifier = (binary_expression "*pbVar6 == *pbVar10" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar15 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pbVar10 + (ulong)bVar15 * -2 + 1" (binary_expression "pbVar10 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar14)" ( identifier )) ;) (if_statement "if ((!bVar13 && !bVar14) != bVar13) {\n        list->nsessions = list->nsessions + 1;\n      }" if (parenthesized_expression "((!bVar13 && !bVar14) != bVar13)" ( (binary_expression "(!bVar13 && !bVar14) != bVar13" (parenthesized_expression "(!bVar13 && !bVar14)" ( (binary_expression "!bVar13 && !bVar14" (unary_expression "!bVar13" ! identifier) && (unary_expression "!bVar14" ! identifier)) )) != identifier) )) (compound_statement "{\n        list->nsessions = list->nsessions + 1;\n      }" { (expression_statement "list->nsessions = list->nsessions + 1;" (assignment_expression "list->nsessions = list->nsessions + 1" (field_expression "list->nsessions" identifier -> field_identifier) = (binary_expression "list->nsessions + 1" (field_expression "list->nsessions" identifier -> field_identifier) + number_literal)) ;) })) (expression_statement "bVar3 = *pbVar8;" (assignment_expression "bVar3 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (while_statement "while (bVar3 != 0) {\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }" while (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        pbVar6 = pbVar6 + 1;\n        bVar3 = *pbVar6;\n      }" { (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *pbVar6;" (assignment_expression "bVar3 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) })) (expression_statement "pbVar8 = pbVar6 + 1;" (assignment_expression "pbVar8 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = pbVar6[1];" (assignment_expression "bVar3 = pbVar6[1]" identifier = (subscript_expression "pbVar6[1]" identifier [ number_literal ])) ;) })) (expression_statement "ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8);" (assignment_expression "ppcVar7 = (char **)safemalloc((long)(list->nsessions + 1),8)" identifier = (cast_expression "(char **)safemalloc((long)(list->nsessions + 1),8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "safemalloc((long)(list->nsessions + 1),8)" identifier (argument_list "((long)(list->nsessions + 1),8)" ( (cast_expression "(long)(list->nsessions + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(list->nsessions + 1)" ( (binary_expression "list->nsessions + 1" (field_expression "list->nsessions" identifier -> field_identifier) + number_literal) ))) , number_literal ))))) ;) (expression_statement "list->sessions = ppcVar7;" (assignment_expression "list->sessions = ppcVar7" (field_expression "list->sessions" identifier -> field_identifier) = identifier) ;) (expression_statement "*ppcVar7 = "Default Settings";" (assignment_expression "*ppcVar7 = "Default Settings"" (pointer_expression "*ppcVar7" * identifier) = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "pbVar8 = (byte *)list->buffer;" (assignment_expression "pbVar8 = (byte *)list->buffer" identifier = (cast_expression "(byte *)list->buffer" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "list->buffer" identifier -> field_identifier))) ;) (expression_statement "bVar14 = *pbVar8 == 0;" (assignment_expression "bVar14 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar14) {\n      iVar11 = 1;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }" if (parenthesized_expression "(bVar14)" ( identifier )) (compound_statement "{\n      iVar11 = 1;\n    }" { (expression_statement "iVar11 = 1;" (assignment_expression "iVar11 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }" else (compound_statement "{\n      iVar11 = 1;\n      do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);\n    }" { (expression_statement "iVar11 = 1;" (assignment_expression "iVar11 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      } while (!bVar14);" do (compound_statement "{\n        bVar13 = false;\n        lVar9 = 0x11;\n        pbVar6 = pbVar8;\n        pbVar10 = (byte *)"Default Settings";\n        do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);\n        if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }\n        bVar3 = *pbVar8;\n        pbVar6 = pbVar8;\n        while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }\n        pbVar8 = pbVar6 + 1;\n        bVar14 = pbVar6[1] == 0;\n      }" { (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" identifier = false) ;) (expression_statement "lVar9 = 0x11;" (assignment_expression "lVar9 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)"Default Settings";" (assignment_expression "pbVar10 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        } while (bVar14);" do (compound_statement "{\n          if (lVar9 == 0) break;\n          lVar9 = lVar9 + -1;\n          bVar13 = *pbVar6 < *pbVar10;\n          bVar14 = *pbVar6 == *pbVar10;\n          pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;\n          pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;\n        }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar13 = *pbVar6 < *pbVar10;" (assignment_expression "bVar13 = *pbVar6 < *pbVar10" identifier = (binary_expression "*pbVar6 < *pbVar10" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar14 = *pbVar6 == *pbVar10;" (assignment_expression "bVar14 = *pbVar6 == *pbVar10" identifier = (binary_expression "*pbVar6 == *pbVar10" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar15 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (ulong)bVar15 * -2 + 1" identifier = (binary_expression "pbVar10 + (ulong)bVar15 * -2 + 1" (binary_expression "pbVar10 + (ulong)bVar15 * -2" identifier + (binary_expression "(ulong)bVar15 * -2" (cast_expression "(ulong)bVar15" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar14)" ( identifier )) ;) (if_statement "if ((!bVar13 && !bVar14) != bVar13) {\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }" if (parenthesized_expression "((!bVar13 && !bVar14) != bVar13)" ( (binary_expression "(!bVar13 && !bVar14) != bVar13" (parenthesized_expression "(!bVar13 && !bVar14)" ( (binary_expression "!bVar13 && !bVar14" (unary_expression "!bVar13" ! identifier) && (unary_expression "!bVar14" ! identifier)) )) != identifier) )) (compound_statement "{\n          list->sessions[iVar11] = (char *)pbVar8;\n          iVar11 = iVar11 + 1;\n        }" { (expression_statement "list->sessions[iVar11] = (char *)pbVar8;" (assignment_expression "list->sessions[iVar11] = (char *)pbVar8" (subscript_expression "list->sessions[iVar11]" (field_expression "list->sessions" identifier -> field_identifier) [ identifier ]) = (cast_expression "(char *)pbVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) })) (expression_statement "bVar3 = *pbVar8;" (assignment_expression "bVar3 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (while_statement "while (bVar3 != 0) {\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }" while (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          pbVar6 = pbVar6 + 1;\n          bVar3 = *pbVar6;\n        }" { (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *pbVar6;" (assignment_expression "bVar3 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) })) (expression_statement "pbVar8 = pbVar6 + 1;" (assignment_expression "pbVar8 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar14 = pbVar6[1] == 0;" (assignment_expression "bVar14 = pbVar6[1] == 0" identifier = (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal)) ;) }) while (parenthesized_expression "(!bVar14)" ( (unary_expression "!bVar14" ! identifier) )) ;) }))) (expression_statement "qsort(list->sessions,(long)iVar11,8,sessioncmp);" (call_expression "qsort(list->sessions,(long)iVar11,8,sessioncmp)" identifier (argument_list "(list->sessions,(long)iVar11,8,sessioncmp)" ( (field_expression "list->sessions" identifier -> field_identifier) , (cast_expression "(long)iVar11" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal , identifier ))) ;) }))) (if_statement "if (lVar4 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar4 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar4 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012b0fd(int *param_1,int param_2)\n\n{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0012b0fd(int *param_1,int param_2)\n\n{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0012b0fd(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "byte bVar16;" type_identifier identifier ;) (declaration "char acStack_848 [2056];" primitive_type (array_declarator "acStack_848 [2056]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }" { (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 4));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 4))" identifier (argument_list "(*(undefined8 *)(param_1 + 4))" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 2));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 2))" identifier (argument_list "(*(undefined8 *)(param_1 + 2))" ( (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" else (compound_statement "{\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" { (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar4 = FUN_001553db();" (assignment_expression "lVar4 = FUN_001553db()" identifier = (call_expression "FUN_001553db()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (if_statement "if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (while_statement "while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" while (parenthesized_expression "(lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0)" ( (comma_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0" (assignment_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800)" identifier = (call_expression "FUN_00155410(lVar4,acStack_848,0x800)" identifier (argument_list "(lVar4,acStack_848,0x800)" ( identifier , identifier , number_literal )))) , (binary_expression "lVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" { (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = acStack_848;" (assignment_expression "pcVar10 = acStack_848" identifier = identifier) ;) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = ~(uint)lVar5 + iVar12;" (assignment_expression "iVar3 = ~(uint)lVar5 + iVar12" identifier = (binary_expression "~(uint)lVar5 + iVar12" (unary_expression "~(uint)lVar5" ~ (cast_expression "(uint)lVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) + identifier)) ;) (if_statement "if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" if (parenthesized_expression "(iVar13 < iVar3)" ( (binary_expression "iVar13 < iVar3" identifier < identifier) )) (compound_statement "{\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" { (expression_statement "iVar13 = iVar3 + 0x800;" (assignment_expression "iVar13 = iVar3 + 0x800" identifier = (binary_expression "iVar3 + 0x800" identifier + number_literal)) ;) (expression_statement "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);" (assignment_expression "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" identifier = (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" identifier (argument_list "(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (cast_expression "(long)iVar13" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 4) = uVar6;" (assignment_expression "*(undefined8 *)(param_1 + 4) = uVar6" (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);" (call_expression "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" identifier (argument_list "((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" ( (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" ( (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) , identifier ))) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));" (assignment_expression "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4))" identifier = (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" ( (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )))) ;) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar12 = iVar12 + ~(uint)lVar5;" (assignment_expression "iVar12 = iVar12 + ~(uint)lVar5" identifier = (binary_expression "iVar12 + ~(uint)lVar5" identifier + (unary_expression "~(uint)lVar5" ~ (cast_expression "(uint)lVar5" ( (type_descriptor "uint" type_identifier) ) identifier)))) ;) })) (expression_statement "FUN_0015563f(lVar4);" (call_expression "FUN_0015563f(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (expression_statement "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);" (assignment_expression "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" identifier = (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" identifier (argument_list "(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" ( (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (cast_expression "(long)(iVar12 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar12 + 1)" ( (binary_expression "iVar12 + 1" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "*(long *)(param_1 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar4 + iVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar4 + iVar12) = 0" (pointer_expression "*(undefined1 *)(lVar4 + iVar12)" * (cast_expression "(undefined1 *)(lVar4 + iVar12)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + iVar12)" ( (binary_expression "lVar4 + iVar12" identifier + identifier) )))) = number_literal) ;) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" identifier = (pointer_expression "*(byte **)(param_1 + 4)" * (cast_expression "(byte **)(param_1 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (while_statement "while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" while (parenthesized_expression "(bVar15 = bVar2 == 0, !bVar15)" ( (comma_expression "bVar15 = bVar2 == 0, !bVar15" (assignment_expression "bVar15 = bVar2 == 0" identifier = (binary_expression "bVar2 == 0" identifier == number_literal)) , (unary_expression "!bVar15" ! identifier)) )) (compound_statement "{\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);" do (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" identifier = (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" identifier = (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }" if (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" ( (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" ( (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" ! identifier) && (unary_expression "!bVar15" ! identifier)) )) != identifier) )) (compound_statement "{\n        *param_1 = *param_1 + 1;\n      }" { (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) })) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" { (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) })) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar7[1];" (assignment_expression "bVar2 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;) })) (expression_statement "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);" (assignment_expression "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" identifier = (cast_expression "(undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001222ee((long)(*param_1 + 1),8)" identifier (argument_list "((long)(*param_1 + 1),8)" ( (cast_expression "(long)(*param_1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(*param_1 + 1)" ( (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) ))) , number_literal ))))) ;) (expression_statement "*(undefined8 **)(param_1 + 2) = puVar8;" (assignment_expression "*(undefined8 **)(param_1 + 2) = puVar8" (pointer_expression "*(undefined8 **)(param_1 + 2)" * (cast_expression "(undefined8 **)(param_1 + 2)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar8 = "Default Settings";" (assignment_expression "*puVar8 = "Default Settings"" (pointer_expression "*puVar8" * identifier) = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" identifier = (pointer_expression "*(byte **)(param_1 + 4)" * (cast_expression "(byte **)(param_1 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar15 = *pbVar9 == 0;" (assignment_expression "bVar15 = *pbVar9 == 0" identifier = (binary_expression "*pbVar9 == 0" (pointer_expression "*pbVar9" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      iVar12 = 1;\n    }" { (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" { (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" identifier = (cast_expression "(byte *)"Default Settings"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Default Settings"" " string_content "))) ;) (do_statement "do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" identifier = (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" identifier = (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" identifier = (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" identifier + (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" if (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" ( (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" ( (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" ! identifier) && (unary_expression "!bVar15" ! identifier)) )) != identifier) )) (compound_statement "{\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" { (expression_statement "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;" (assignment_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9" (pointer_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" * (cast_expression "(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 2) + (long)iVar12 * 8)" ( (binary_expression "*(long *)(param_1 + 2) + (long)iVar12 * 8" (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) + (binary_expression "(long)iVar12 * 8" (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = identifier) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) })) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" { (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) })) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar15 = pbVar7[1] == 0;" (assignment_expression "bVar15 = pbVar7[1] == 0" identifier = (binary_expression "pbVar7[1] == 0" (subscript_expression "pbVar7[1]" identifier [ number_literal ]) == number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);" (call_expression "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" identifier (argument_list "(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" ( (pointer_expression "*(void **)(param_1 + 2)" * (cast_expression "(void **)(param_1 + 2)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) , (cast_expression "(long)iVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal , identifier ))) ;) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT == LIT)) , (unary_expression ! IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))) , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0012b0fd(int *param_1,int param_2)\n\n{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012b0fd(int *param_1,int param_2)" (identifier "FUN_0012b0fd") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  int iVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  byte *pbVar7;\n  undefined8 *puVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  int iVar12;\n  int iVar13;\n  long in_FS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char acStack_848 [2056];\n  long local_40;\n  \n  bVar16 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "byte *pbVar9;" (type_identifier "byte") (pointer_declarator "*pbVar9" (* "*") (identifier "pbVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "byte *pbVar11;" (type_identifier "byte") (pointer_declarator "*pbVar11" (* "*") (identifier "pbVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "bool bVar14;" (primitive_type "bool") (identifier "bVar14") (; ";")) (declaration "bool bVar15;" (primitive_type "bool") (identifier "bVar15") (; ";")) (declaration "byte bVar16;" (type_identifier "byte") (identifier "bVar16") (; ";")) (declaration "char acStack_848 [2056];" (primitive_type "char") (array_declarator "acStack_848 [2056]" (identifier "acStack_848") ([ "[") (number_literal "2056") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" (identifier "bVar16") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }\n  else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00122b5a(*(undefined8 *)(param_1 + 4));\n    FUN_00122b5a(*(undefined8 *)(param_1 + 2));\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[2] = 0;\n    param_1[3] = 0;\n  }" ({ "{") (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 4));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 4))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 2));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 2))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 2))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 2)" (* "*") (cast_expression "(undefined8 *)(param_1 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) () ")"))) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" (else "else") (compound_statement "{\n    param_1[4] = 0;\n    param_1[5] = 0;\n    lVar4 = FUN_001553db();\n    iVar12 = 0;\n    if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }\n    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);\n    *(long *)(param_1 + 4) = lVar4;\n    *(undefined1 *)(lVar4 + iVar12) = 0;\n    pbVar9 = *(byte **)(param_1 + 4);\n    *param_1 = 1;\n    bVar2 = *pbVar9;\n    while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }\n    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);\n    *(undefined8 **)(param_1 + 2) = puVar8;\n    *puVar8 = "Default Settings";\n    pbVar9 = *(byte **)(param_1 + 4);\n    bVar15 = *pbVar9 == 0;\n    if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }\n    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);\n  }" ({ "{") (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar4 = FUN_001553db();" (assignment_expression "lVar4 = FUN_001553db()" (identifier "lVar4") (= "=") (call_expression "FUN_001553db()" (identifier "FUN_001553db") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (if_statement "if (lVar4 != 0) {\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" (if "if") (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar13 = 0;\n      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }\n      FUN_0015563f(lVar4);\n    }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (while_statement "while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" (while "while") (parenthesized_expression "(lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0)" (( "(") (comma_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0" (assignment_expression "lVar5 = FUN_00155410(lVar4,acStack_848,0x800)" (identifier "lVar5") (= "=") (call_expression "FUN_00155410(lVar4,acStack_848,0x800)" (identifier "FUN_00155410") (argument_list "(lVar4,acStack_848,0x800)" (( "(") (identifier "lVar4") (, ",") (identifier "acStack_848") (, ",") (number_literal "0x800") () ")")))) (, ",") (binary_expression "lVar5 != 0" (identifier "lVar5") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        lVar5 = -1;\n        pcVar10 = acStack_848;\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar3 = ~(uint)lVar5 + iVar12;\n        if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }\n        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);\n        lVar5 = -1;\n        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));\n        do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');\n        iVar12 = iVar12 + ~(uint)lVar5;\n      }" ({ "{") (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" (identifier "lVar5") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar10 = acStack_848;" (assignment_expression "pcVar10 = acStack_848" (identifier "pcVar10") (= "=") (identifier "acStack_848")) (; ";")) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" (do "do") (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" ({ "{") (if_statement "if (lVar5 == 0) break;" (if "if") (parenthesized_expression "(lVar5 == 0)" (( "(") (binary_expression "lVar5 == 0" (identifier "lVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + -1" (identifier "lVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" (identifier "cVar1") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" (identifier "pcVar10") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar3 = ~(uint)lVar5 + iVar12;" (assignment_expression "iVar3 = ~(uint)lVar5 + iVar12" (identifier "iVar3") (= "=") (binary_expression "~(uint)lVar5 + iVar12" (unary_expression "~(uint)lVar5" (~ "~") (cast_expression "(uint)lVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar5"))) (+ "+") (identifier "iVar12"))) (; ";")) (if_statement "if (iVar13 < iVar3) {\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" (if "if") (parenthesized_expression "(iVar13 < iVar3)" (( "(") (binary_expression "iVar13 < iVar3" (identifier "iVar13") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n          iVar13 = iVar3 + 0x800;\n          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);\n          *(undefined8 *)(param_1 + 4) = uVar6;\n        }" ({ "{") (expression_statement "iVar13 = iVar3 + 0x800;" (assignment_expression "iVar13 = iVar3 + 0x800" (identifier "iVar13") (= "=") (binary_expression "iVar3 + 0x800" (identifier "iVar3") (+ "+") (number_literal "0x800"))) (; ";")) (expression_statement "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);" (assignment_expression "uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" (identifier "uVar6") (= "=") (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" (identifier "FUN_001226ba") (argument_list "(*(undefined8 *)(param_1 + 4),(long)iVar13,1)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (cast_expression "(long)iVar13" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar13")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 4) = uVar6;" (assignment_expression "*(undefined8 *)(param_1 + 4) = uVar6" (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);" (call_expression "strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" (identifier "strcpy") (argument_list "((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848)" (( "(") (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" (( "(") (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar12")) (+ "+") (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))) (, ",") (identifier "acStack_848") () ")"))) (; ";")) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" (identifier "lVar5") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));" (assignment_expression "pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4))" (identifier "pcVar10") (= "=") (cast_expression "(char *)((long)iVar12 + *(long *)(param_1 + 4))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)iVar12 + *(long *)(param_1 + 4))" (( "(") (binary_expression "(long)iVar12 + *(long *)(param_1 + 4)" (cast_expression "(long)iVar12" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar12")) (+ "+") (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")")))) (; ";")) (do_statement "do {\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        } while (cVar1 != '\0');" (do "do") (compound_statement "{\n          if (lVar5 == 0) break;\n          lVar5 = lVar5 + -1;\n          cVar1 = *pcVar10;\n          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;\n        }" ({ "{") (if_statement "if (lVar5 == 0) break;" (if "if") (parenthesized_expression "(lVar5 == 0)" (( "(") (binary_expression "lVar5 == 0" (identifier "lVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + -1" (identifier "lVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" (identifier "cVar1") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + (ulong)bVar16 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar16 * -2" (identifier "pcVar10") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar12 = iVar12 + ~(uint)lVar5;" (assignment_expression "iVar12 = iVar12 + ~(uint)lVar5" (identifier "iVar12") (= "=") (binary_expression "iVar12 + ~(uint)lVar5" (identifier "iVar12") (+ "+") (unary_expression "~(uint)lVar5" (~ "~") (cast_expression "(uint)lVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar5"))))) (; ";")) (} "}"))) (expression_statement "FUN_0015563f(lVar4);" (call_expression "FUN_0015563f(lVar4)" (identifier "FUN_0015563f") (argument_list "(lVar4)" (( "(") (identifier "lVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);" (assignment_expression "lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" (identifier "lVar4") (= "=") (call_expression "FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" (identifier "FUN_001226ba") (argument_list "(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (cast_expression "(long)(iVar12 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar12 + 1)" (( "(") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1")) () ")"))) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "*(undefined1 *)(lVar4 + iVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar4 + iVar12) = 0" (pointer_expression "*(undefined1 *)(lVar4 + iVar12)" (* "*") (cast_expression "(undefined1 *)(lVar4 + iVar12)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + iVar12)" (( "(") (binary_expression "lVar4 + iVar12" (identifier "lVar4") (+ "+") (identifier "iVar12")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" (identifier "pbVar9") (= "=") (pointer_expression "*(byte **)(param_1 + 4)" (* "*") (cast_expression "(byte **)(param_1 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" (identifier "bVar2") (= "=") (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9"))) (; ";")) (while_statement "while (bVar15 = bVar2 == 0, !bVar15) {\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" (while "while") (parenthesized_expression "(bVar15 = bVar2 == 0, !bVar15)" (( "(") (comma_expression "bVar15 = bVar2 == 0, !bVar15" (assignment_expression "bVar15 = bVar2 == 0" (identifier "bVar15") (= "=") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0"))) (, ",") (unary_expression "!bVar15" (! "!") (identifier "bVar15"))) () ")")) (compound_statement "{\n      bVar14 = false;\n      lVar4 = 0x11;\n      pbVar7 = pbVar9;\n      pbVar11 = (byte *)"Default Settings";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);\n      if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }\n      bVar2 = *pbVar9;\n      pbVar7 = pbVar9;\n      while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }\n      pbVar9 = pbVar7 + 1;\n      bVar2 = pbVar7[1];\n    }" ({ "{") (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" (identifier "bVar14") (= "=") (false "false")) (; ";")) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" (identifier "lVar4") (= "=") (number_literal "0x11")) (; ";")) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" (identifier "pbVar7") (= "=") (identifier "pbVar9")) (; ";")) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" (identifier "pbVar11") (= "=") (cast_expression "(byte *)"Default Settings"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""Default Settings"" (" """) (string_content "Default Settings") (" """)))) (; ";")) (do_statement "do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      } while (bVar15);" (do "do") (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar14 = *pbVar7 < *pbVar11;\n        bVar15 = *pbVar7 == *pbVar11;\n        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar4 == 0) break;" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" (identifier "bVar14") (= "=") (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (< "<") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" (identifier "bVar15") (= "=") (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (== "==") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" (identifier "pbVar7") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" (identifier "pbVar11") (= "=") (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" (identifier "pbVar11") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (; ";")) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n        *param_1 = *param_1 + 1;\n      }" (if "if") (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" (( "(") (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" (( "(") (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" (! "!") (identifier "bVar14")) (&& "&&") (unary_expression "!bVar15" (! "!") (identifier "bVar15"))) () ")")) (!= "!=") (identifier "bVar14")) () ")")) (compound_statement "{\n        *param_1 = *param_1 + 1;\n      }" ({ "{") (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" (identifier "bVar2") (= "=") (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9"))) (; ";")) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" (identifier "pbVar7") (= "=") (identifier "pbVar9")) (; ";")) (while_statement "while (bVar2 != 0) {\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pbVar7 = pbVar7 + 1;\n        bVar2 = *pbVar7;\n      }" ({ "{") (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" (identifier "bVar2") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (} "}"))) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" (identifier "pbVar9") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = pbVar7[1];" (assignment_expression "bVar2 = pbVar7[1]" (identifier "bVar2") (= "=") (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);" (assignment_expression "puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)FUN_001222ee((long)(*param_1 + 1),8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001222ee((long)(*param_1 + 1),8)" (identifier "FUN_001222ee") (argument_list "((long)(*param_1 + 1),8)" (( "(") (cast_expression "(long)(*param_1 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(*param_1 + 1)" (( "(") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) () ")"))) (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*(undefined8 **)(param_1 + 2) = puVar8;" (assignment_expression "*(undefined8 **)(param_1 + 2) = puVar8" (pointer_expression "*(undefined8 **)(param_1 + 2)" (* "*") (cast_expression "(undefined8 **)(param_1 + 2)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (expression_statement "*puVar8 = "Default Settings";" (assignment_expression "*puVar8 = "Default Settings"" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (string_literal ""Default Settings"" (" """) (string_content "Default Settings") (" """))) (; ";")) (expression_statement "pbVar9 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar9 = *(byte **)(param_1 + 4)" (identifier "pbVar9") (= "=") (pointer_expression "*(byte **)(param_1 + 4)" (* "*") (cast_expression "(byte **)(param_1 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar15 = *pbVar9 == 0;" (assignment_expression "bVar15 = *pbVar9 == 0" (identifier "bVar15") (= "=") (binary_expression "*pbVar9 == 0" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar15) {\n      iVar12 = 1;\n    }\n    else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n      iVar12 = 1;\n    }" ({ "{") (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" (identifier "iVar12") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" (else "else") (compound_statement "{\n      iVar12 = 1;\n      do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);\n    }" ({ "{") (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" (identifier "iVar12") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      } while (!bVar15);" (do "do") (compound_statement "{\n        bVar14 = false;\n        lVar4 = 0x11;\n        pbVar7 = pbVar9;\n        pbVar11 = (byte *)"Default Settings";\n        do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }\n        bVar2 = *pbVar9;\n        pbVar7 = pbVar9;\n        while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }\n        pbVar9 = pbVar7 + 1;\n        bVar15 = pbVar7[1] == 0;\n      }" ({ "{") (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" (identifier "bVar14") (= "=") (false "false")) (; ";")) (expression_statement "lVar4 = 0x11;" (assignment_expression "lVar4 = 0x11" (identifier "lVar4") (= "=") (number_literal "0x11")) (; ";")) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" (identifier "pbVar7") (= "=") (identifier "pbVar9")) (; ";")) (expression_statement "pbVar11 = (byte *)"Default Settings";" (assignment_expression "pbVar11 = (byte *)"Default Settings"" (identifier "pbVar11") (= "=") (cast_expression "(byte *)"Default Settings"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""Default Settings"" (" """) (string_content "Default Settings") (" """)))) (; ";")) (do_statement "do {\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        } while (bVar15);" (do "do") (compound_statement "{\n          if (lVar4 == 0) break;\n          lVar4 = lVar4 + -1;\n          bVar14 = *pbVar7 < *pbVar11;\n          bVar15 = *pbVar7 == *pbVar11;\n          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;\n          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;\n        }" ({ "{") (if_statement "if (lVar4 == 0) break;" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar14 = *pbVar7 < *pbVar11;" (assignment_expression "bVar14 = *pbVar7 < *pbVar11" (identifier "bVar14") (= "=") (binary_expression "*pbVar7 < *pbVar11" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (< "<") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "bVar15 = *pbVar7 == *pbVar11;" (assignment_expression "bVar15 = *pbVar7 == *pbVar11" (identifier "bVar15") (= "=") (binary_expression "*pbVar7 == *pbVar11" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (== "==") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar16 * -2" (identifier "pbVar7") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1" (identifier "pbVar11") (= "=") (binary_expression "pbVar11 + (ulong)bVar16 * -2 + 1" (binary_expression "pbVar11 + (ulong)bVar16 * -2" (identifier "pbVar11") (+ "+") (binary_expression "(ulong)bVar16 * -2" (cast_expression "(ulong)bVar16" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (; ";")) (if_statement "if ((!bVar14 && !bVar15) != bVar14) {\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" (if "if") (parenthesized_expression "((!bVar14 && !bVar15) != bVar14)" (( "(") (binary_expression "(!bVar14 && !bVar15) != bVar14" (parenthesized_expression "(!bVar14 && !bVar15)" (( "(") (binary_expression "!bVar14 && !bVar15" (unary_expression "!bVar14" (! "!") (identifier "bVar14")) (&& "&&") (unary_expression "!bVar15" (! "!") (identifier "bVar15"))) () ")")) (!= "!=") (identifier "bVar14")) () ")")) (compound_statement "{\n          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;\n          iVar12 = iVar12 + 1;\n        }" ({ "{") (expression_statement "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;" (assignment_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9" (pointer_expression "*(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" (* "*") (cast_expression "(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 2) + (long)iVar12 * 8)" (( "(") (binary_expression "*(long *)(param_1 + 2) + (long)iVar12 * 8" (pointer_expression "*(long *)(param_1 + 2)" (* "*") (cast_expression "(long *)(param_1 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (+ "+") (binary_expression "(long)iVar12 * 8" (cast_expression "(long)iVar12" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar12")) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "pbVar9")) (; ";")) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "bVar2 = *pbVar9;" (assignment_expression "bVar2 = *pbVar9" (identifier "bVar2") (= "=") (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9"))) (; ";")) (expression_statement "pbVar7 = pbVar9;" (assignment_expression "pbVar7 = pbVar9" (identifier "pbVar7") (= "=") (identifier "pbVar9")) (; ";")) (while_statement "while (bVar2 != 0) {\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          pbVar7 = pbVar7 + 1;\n          bVar2 = *pbVar7;\n        }" ({ "{") (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar7;" (assignment_expression "bVar2 = *pbVar7" (identifier "bVar2") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (} "}"))) (expression_statement "pbVar9 = pbVar7 + 1;" (assignment_expression "pbVar9 = pbVar7 + 1" (identifier "pbVar9") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar15 = pbVar7[1] == 0;" (assignment_expression "bVar15 = pbVar7[1] == 0" (identifier "bVar15") (= "=") (binary_expression "pbVar7[1] == 0" (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar15)" (( "(") (unary_expression "!bVar15" (! "!") (identifier "bVar15")) () ")")) (; ";")) (} "}")))) (expression_statement "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);" (call_expression "qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" (identifier "qsort") (argument_list "(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3)" (( "(") (pointer_expression "*(void **)(param_1 + 2)" (* "*") (cast_expression "(void **)(param_1 + 2)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (, ",") (cast_expression "(long)iVar12" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar12")) (, ",") (number_literal "8") (, ",") (identifier "FUN_001273a3") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *list,int var_2)

{
  int var_12;
  char var_9;
  type_2 var_16;
  long var_22;
  void *var_5;
  char *var_7;
  type_2 *var_17;
  char **ppcVar7;
  type_2 *pbVar8;
  long var_8;
  type_2 *var_18;
  int var_10;
  int var_11;
  long var_1;
  bool var_19;
  bool bVar14;
  type_2 bVar15;
  char otherbuf [2048];
  
  bVar15 = 0;
  var_22 = *(long *)(var_1 + 0x28);
  if (var_2 == 0) {
    var_3(list->buffer);
    var_3(list->sessions);
    list->buffer = (char *)0x0;
    list->sessions = (char **)0x0;
  }
  else {
    list->buffer = (char *)0x0;
    var_5 = var_4();
    var_10 = 0;
    if (var_5 != (void *)0x0) {
      var_11 = 0;
      while (var_7 = var_6(var_5,otherbuf,0x800), var_7 != (char *)0x0) {
        var_8 = -1;
        var_7 = otherbuf;
        do {
          if (var_8 == 0) break;
          var_8 = var_8 + -1;
          var_9 = *var_7;
          var_7 = var_7 + (type_3)bVar15 * -2 + 1;
        } while (var_9 != '\0');
        var_12 = ~(type_4)var_8 + var_10;
        if (var_11 < var_12) {
          var_11 = var_12 + 0x800;
          var_7 = (char *)var_13(list->buffer,(long)var_11,1);
          list->buffer = var_7;
        }
        var_14(list->buffer + var_10,otherbuf);
        var_8 = -1;
        var_7 = list->buffer + var_10;
        do {
          if (var_8 == 0) break;
          var_8 = var_8 + -1;
          var_9 = *var_7;
          var_7 = var_7 + (type_3)bVar15 * -2 + 1;
        } while (var_9 != '\0');
        var_10 = var_10 + ~(type_4)var_8;
      }
      var_15(var_5);
    }
    var_7 = (char *)var_13(list->buffer,(long)(var_10 + 1),1);
    list->buffer = var_7;
    var_7[var_10] = '\0';
    pbVar8 = (type_2 *)list->buffer;
    list->nsessions = 1;
    var_16 = *pbVar8;
    while (bVar14 = var_16 == 0, !bVar14) {
      var_19 = false;
      var_8 = 0x11;
      var_17 = pbVar8;
      var_18 = (type_2 *)"Default Settings";
      do {
        if (var_8 == 0) break;
        var_8 = var_8 + -1;
        var_19 = *var_17 < *var_18;
        bVar14 = *var_17 == *var_18;
        var_17 = var_17 + (type_3)bVar15 * -2 + 1;
        var_18 = var_18 + (type_3)bVar15 * -2 + 1;
      } while (bVar14);
      if ((!var_19 && !bVar14) != var_19) {
        list->nsessions = list->nsessions + 1;
      }
      var_16 = *pbVar8;
      var_17 = pbVar8;
      while (var_16 != 0) {
        var_17 = var_17 + 1;
        var_16 = *var_17;
      }
      pbVar8 = var_17 + 1;
      var_16 = var_17[1];
    }
    ppcVar7 = (char **)var_20((long)(list->nsessions + 1),8);
    list->sessions = ppcVar7;
    *ppcVar7 = "Default Settings";
    pbVar8 = (type_2 *)list->buffer;
    bVar14 = *pbVar8 == 0;
    if (bVar14) {
      var_10 = 1;
    }
    else {
      var_10 = 1;
      do {
        var_19 = false;
        var_8 = 0x11;
        var_17 = pbVar8;
        var_18 = (type_2 *)"Default Settings";
        do {
          if (var_8 == 0) break;
          var_8 = var_8 + -1;
          var_19 = *var_17 < *var_18;
          bVar14 = *var_17 == *var_18;
          var_17 = var_17 + (type_3)bVar15 * -2 + 1;
          var_18 = var_18 + (type_3)bVar15 * -2 + 1;
        } while (bVar14);
        if ((!var_19 && !bVar14) != var_19) {
          list->sessions[var_10] = (char *)pbVar8;
          var_10 = var_10 + 1;
        }
        var_16 = *pbVar8;
        var_17 = pbVar8;
        while (var_16 != 0) {
          var_17 = var_17 + 1;
          var_16 = *var_17;
        }
        pbVar8 = var_17 + 1;
        bVar14 = var_17[1] == 0;
      } while (!bVar14);
    }
    var_21(list->sessions,(long)var_10,8,sessioncmp);
  }
  if (var_22 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_23();
  }
  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))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (unary_expression argument: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (unary_expression argument: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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 (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))) right: (identifier))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) condition: (parenthesized_expression (unary_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) (number_literal) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  char cVar1;
  byte bVar2;
  int iVar3;
  long lVar4;
  long lVar5;
  undefined8 uVar6;
  byte *pbVar7;
  undefined8 *puVar8;
  byte *pbVar9;
  char *pcVar10;
  byte *pbVar11;
  int iVar12;
  int iVar13;
  long in_FS_OFFSET;
  bool bVar14;
  bool bVar15;
  byte bVar16;
  char acStack_848 [2056];
  long local_40;
  
  bVar16 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 0) {
    FUN_00122b5a(*(undefined8 *)(param_1 + 4));
    FUN_00122b5a(*(undefined8 *)(param_1 + 2));
    param_1[4] = 0;
    param_1[5] = 0;
    param_1[2] = 0;
    param_1[3] = 0;
  }
  else {
    param_1[4] = 0;
    param_1[5] = 0;
    lVar4 = FUN_001553db();
    iVar12 = 0;
    if (lVar4 != 0) {
      iVar13 = 0;
      while (lVar5 = FUN_00155410(lVar4,acStack_848,0x800), lVar5 != 0) {
        lVar5 = -1;
        pcVar10 = acStack_848;
        do {
          if (lVar5 == 0) break;
          lVar5 = lVar5 + -1;
          cVar1 = *pcVar10;
          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;
        } while (cVar1 != '\0');
        iVar3 = ~(uint)lVar5 + iVar12;
        if (iVar13 < iVar3) {
          iVar13 = iVar3 + 0x800;
          uVar6 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)iVar13,1);
          *(undefined8 *)(param_1 + 4) = uVar6;
        }
        strcpy((char *)((long)iVar12 + *(long *)(param_1 + 4)),acStack_848);
        lVar5 = -1;
        pcVar10 = (char *)((long)iVar12 + *(long *)(param_1 + 4));
        do {
          if (lVar5 == 0) break;
          lVar5 = lVar5 + -1;
          cVar1 = *pcVar10;
          pcVar10 = pcVar10 + (ulong)bVar16 * -2 + 1;
        } while (cVar1 != '\0');
        iVar12 = iVar12 + ~(uint)lVar5;
      }
      FUN_0015563f(lVar4);
    }
    lVar4 = FUN_001226ba(*(undefined8 *)(param_1 + 4),(long)(iVar12 + 1),1);
    *(long *)(param_1 + 4) = lVar4;
    *(undefined1 *)(lVar4 + iVar12) = 0;
    pbVar9 = *(byte **)(param_1 + 4);
    *param_1 = 1;
    bVar2 = *pbVar9;
    while (bVar15 = bVar2 == 0, !bVar15) {
      bVar14 = false;
      lVar4 = 0x11;
      pbVar7 = pbVar9;
      pbVar11 = (byte *)"Default Settings";
      do {
        if (lVar4 == 0) break;
        lVar4 = lVar4 + -1;
        bVar14 = *pbVar7 < *pbVar11;
        bVar15 = *pbVar7 == *pbVar11;
        pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;
        pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;
      } while (bVar15);
      if ((!bVar14 && !bVar15) != bVar14) {
        *param_1 = *param_1 + 1;
      }
      bVar2 = *pbVar9;
      pbVar7 = pbVar9;
      while (bVar2 != 0) {
        pbVar7 = pbVar7 + 1;
        bVar2 = *pbVar7;
      }
      pbVar9 = pbVar7 + 1;
      bVar2 = pbVar7[1];
    }
    puVar8 = (undefined8 *)FUN_001222ee((long)(*param_1 + 1),8);
    *(undefined8 **)(param_1 + 2) = puVar8;
    *puVar8 = "Default Settings";
    pbVar9 = *(byte **)(param_1 + 4);
    bVar15 = *pbVar9 == 0;
    if (bVar15) {
      iVar12 = 1;
    }
    else {
      iVar12 = 1;
      do {
        bVar14 = false;
        lVar4 = 0x11;
        pbVar7 = pbVar9;
        pbVar11 = (byte *)"Default Settings";
        do {
          if (lVar4 == 0) break;
          lVar4 = lVar4 + -1;
          bVar14 = *pbVar7 < *pbVar11;
          bVar15 = *pbVar7 == *pbVar11;
          pbVar7 = pbVar7 + (ulong)bVar16 * -2 + 1;
          pbVar11 = pbVar11 + (ulong)bVar16 * -2 + 1;
        } while (bVar15);
        if ((!bVar14 && !bVar15) != bVar14) {
          *(byte **)(*(long *)(param_1 + 2) + (long)iVar12 * 8) = pbVar9;
          iVar12 = iVar12 + 1;
        }
        bVar2 = *pbVar9;
        pbVar7 = pbVar9;
        while (bVar2 != 0) {
          pbVar7 = pbVar7 + 1;
          bVar2 = *pbVar7;
        }
        pbVar9 = pbVar7 + 1;
        bVar15 = pbVar7[1] == 0;
      } while (!bVar15);
    }
    qsort(*(void **)(param_1 + 2),(long)iVar12,8,FUN_001273a3);
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

