
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void get_sesslist(sesslist *list,int allocate)

{
  size_t sVar1;
  byte bVar2;
  int iVar3;
  void *handle;
  char *pcVar4;
  uint uVar5;
  uint uVar6;
  size_t sVar7;
  char *ptr;
  char **__base;
  byte *pbVar8;
  uint *puVar9;
  uint *puVar10;
  size_t sVar11;
  size_t sVar12;
  int iVar13;
  byte *pbVar14;
  byte *pbVar15;
  int in_GS_OFFSET;
  bool bVar16;
  bool bVar17;
  byte bVar18;
  char *local_834;
  char otherbuf [2048];
  
  bVar18 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  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();
    if (handle == (void *)0x0) {
      iVar13 = 0;
      sVar12 = 1;
    }
    else {
      local_834 = (char *)0x0;
      iVar13 = 0;
      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,
            pcVar4 != (char *)0x0) {
        do {
          puVar9 = puVar10;
          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;
          uVar6 = uVar5 & 0x80808080;
          puVar10 = puVar9 + 1;
        } while (uVar6 == 0);
        bVar17 = (uVar5 & 0x8080) == 0;
        if (bVar17) {
          uVar6 = uVar6 >> 0x10;
        }
        if (bVar17) {
          puVar10 = (uint *)((int)puVar9 + 6);
        }
        ptr = list->buffer;
        pcVar4 = (char *)((int)puVar10 +
                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);
        if ((int)local_834 < (int)pcVar4) {
          local_834 = pcVar4 + 0x800;
          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);
          list->buffer = ptr;
        }
        strcpy(ptr + iVar13,otherbuf);
        sVar7 = strlen(list->buffer + iVar13);
        iVar13 = iVar13 + 1 + sVar7;
      }
      enum_settings_finish(handle);
      sVar12 = iVar13 + 1;
    }
    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);
    list->buffer = pcVar4;
    pcVar4[iVar13] = '\0';
    pbVar8 = (byte *)list->buffer;
    list->nsessions = 1;
    bVar17 = *pbVar8 == 0;
    if (bVar17) {
      sVar12 = 2;
    }
    else {
      sVar11 = 1;
      do {
        bVar16 = false;
        iVar13 = 0x11;
        pbVar14 = pbVar8;
        pbVar15 = (byte *)"Default Settings";
        do {
          if (iVar13 == 0) break;
          iVar13 = iVar13 + -1;
          bVar16 = *pbVar14 < *pbVar15;
          bVar17 = *pbVar14 == *pbVar15;
          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;
          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;
        } while (bVar17);
        sVar12 = sVar11 + 1;
        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;
        sVar1 = sVar11 + 2;
        list->nsessions = sVar12;
        bVar2 = *pbVar8;
        sVar11 = sVar12;
        sVar12 = sVar1;
        while (bVar2 != 0) {
LAB_0002f4b0:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar17 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar17);
    }
    local_834 = "Default Settings";
    __base = (char **)safemalloc(sVar12,4);
    list->sessions = __base;
    *__base = "Default Settings";
    pbVar8 = (byte *)list->buffer;
    bVar17 = *pbVar8 == 0;
    if (bVar17) {
      sVar7 = 1;
    }
    else {
      sVar7 = 1;
      do {
        bVar16 = false;
        iVar13 = 0x11;
        pbVar14 = pbVar8;
        pbVar15 = (byte *)local_834;
        do {
          if (iVar13 == 0) break;
          iVar13 = iVar13 + -1;
          bVar16 = *pbVar14 < *pbVar15;
          bVar17 = *pbVar14 == *pbVar15;
          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;
          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;
        } while (bVar17);
        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;
        __base[sVar7] = (char *)pbVar8;
        bVar2 = *pbVar8;
        sVar7 = sVar7 + 1;
        while (bVar2 != 0) {
LAB_0002f520:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar17 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar17);
    }
    qsort(__base,sVar7,4,sessioncmp);
  }
  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_0002f2b0(int *param_1,int param_2)

{
  char *pcVar1;
  byte bVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  size_t sVar7;
  undefined4 *__base;
  byte *pbVar8;
  uint *puVar9;
  uint *puVar10;
  int iVar11;
  byte *pbVar12;
  byte *pbVar13;
  int in_GS_OFFSET;
  bool bVar14;
  bool bVar15;
  byte bVar16;
  char *local_834;
  uint local_820 [512];
  int local_20;
  
  bVar16 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    FUN_0001dd30(param_1[2]);
    FUN_0001dd30(param_1[1]);
    param_1[2] = 0;
    param_1[1] = 0;
  }
  else {
    param_1[2] = 0;
    iVar3 = FUN_0008b800();
    if (iVar3 == 0) {
      iVar11 = 0;
      iVar3 = 1;
    }
    else {
      local_834 = (char *)0x0;
      iVar11 = 0;
      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {
        do {
          puVar9 = puVar10;
          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;
          uVar6 = uVar5 & 0x80808080;
          puVar10 = puVar9 + 1;
        } while (uVar6 == 0);
        bVar15 = (uVar5 & 0x8080) == 0;
        if (bVar15) {
          uVar6 = uVar6 >> 0x10;
        }
        if (bVar15) {
          puVar10 = (uint *)((int)puVar9 + 6);
        }
        iVar4 = param_1[2];
        pcVar1 = (char *)((int)puVar10 +
                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);
        if ((int)local_834 < (int)pcVar1) {
          local_834 = pcVar1 + 0x800;
          iVar4 = FUN_0001dc50(iVar4,local_834,1);
          param_1[2] = iVar4;
        }
        strcpy((char *)(iVar4 + iVar11),(char *)local_820);
        sVar7 = strlen((char *)(param_1[2] + iVar11));
        iVar11 = iVar11 + 1 + sVar7;
      }
      FUN_0008bb20(iVar3);
      iVar3 = iVar11 + 1;
    }
    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);
    param_1[2] = iVar3;
    *(undefined1 *)(iVar3 + iVar11) = 0;
    pbVar8 = (byte *)param_1[2];
    *param_1 = 1;
    bVar15 = *pbVar8 == 0;
    if (bVar15) {
      iVar3 = 2;
    }
    else {
      iVar11 = 1;
      do {
        bVar14 = false;
        iVar3 = 0x11;
        pbVar12 = pbVar8;
        pbVar13 = (byte *)"Default Settings";
        do {
          if (iVar3 == 0) break;
          iVar3 = iVar3 + -1;
          bVar14 = *pbVar12 < *pbVar13;
          bVar15 = *pbVar12 == *pbVar13;
          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;
          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;
        } while (bVar15);
        iVar3 = iVar11 + 1;
        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;
        iVar4 = iVar11 + 2;
        *param_1 = iVar3;
        bVar2 = *pbVar8;
        iVar11 = iVar3;
        iVar3 = iVar4;
        while (bVar2 != 0) {
LAB_0002f4b0:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar15 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar15);
    }
    local_834 = "Default Settings";
    __base = (undefined4 *)FUN_0001db90(iVar3,4);
    param_1[1] = (int)__base;
    *__base = "Default Settings";
    pbVar8 = (byte *)param_1[2];
    bVar15 = *pbVar8 == 0;
    if (bVar15) {
      sVar7 = 1;
    }
    else {
      sVar7 = 1;
      do {
        bVar14 = false;
        iVar3 = 0x11;
        pbVar12 = pbVar8;
        pbVar13 = (byte *)local_834;
        do {
          if (iVar3 == 0) break;
          iVar3 = iVar3 + -1;
          bVar14 = *pbVar12 < *pbVar13;
          bVar15 = *pbVar12 == *pbVar13;
          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;
          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;
        } while (bVar15);
        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;
        __base[sVar7] = pbVar8;
        bVar2 = *pbVar8;
        sVar7 = sVar7 + 1;
        while (bVar2 != 0) {
LAB_0002f520:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar15 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar15);
    }
    qsort(__base,sVar7,4,FUN_00029850);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008eb20();
}


CALL 0x00014ffe
ADD EAX,0xa0adb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x82c
MOV dword ptr [ESP + 0x4],EAX
MOV EDX,dword ptr [ESP + 0x844]
MOV EBP,dword ptr [ESP + 0x840]
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x81c],EDI
XOR EDI,EDI
TEST EDX,EDX
JZ 0x0002f3b0
MOV dword ptr [EBP + 0x8],0x0
MOV EBX,EAX
CALL 0x0008b800
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x0002f54f
MOV dword ptr [ESP + 0x8],0x0
XOR ESI,ESI
LEA EDI,[ESP + 0x1c]
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0x4
PUSH 0x800
PUSH EDI
PUSH dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x0008b880
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002f428
MOV EDX,EDI
MOV ECX,dword ptr [EDX]
ADD EDX,0x4
LEA EAX,[ECX + 0xfefefeff]
NOT ECX
AND EAX,ECX
AND EAX,0x80808080
JZ 0x0002f343
MOV ECX,EAX
SHR ECX,0x10
TEST EAX,0x8080
CMOVZ EAX,ECX
LEA ECX,[EDX + 0x2]
CMOVZ EDX,ECX
MOV EBX,EAX
ADD BL,AL
MOV EAX,dword ptr [EBP + 0x8]
SBB EDX,0x3
SUB EDX,EDI
LEA EDX,[EDX + ESI*0x1 + 0x1]
CMP EDX,dword ptr [ESP + 0x8]
JG 0x0002f400
SUB ESP,0x8
ADD EAX,ESI
PUSH EDI
PUSH EAX
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x000142f0
MOV EAX,dword ptr [EBP + 0x8]
MOV EBX,dword ptr [ESP + 0x14]
ADD EAX,ESI
MOV dword ptr [ESP],EAX
CALL 0x00014470
ADD ESP,0x10
LEA ESI,[ESI + EAX*0x1 + 0x1]
JMP 0x0002f320
SUB ESP,0xc
PUSH dword ptr [EBP + 0x8]
MOV EDI,dword ptr [ESP + 0x14]
MOV EBX,EDI
CALL 0x0001dd30
POP EAX
PUSH dword ptr [EBP + 0x4]
CALL 0x0001dd30
MOV dword ptr [EBP + 0x8],0x0
ADD ESP,0x10
MOV dword ptr [EBP + 0x4],0x0
MOV EAX,dword ptr [ESP + 0x81c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002f57a
ADD ESP,0x82c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EBX,[EDX + 0x800]
SUB ESP,0x4
MOV dword ptr [ESP + 0xc],EBX
PUSH 0x1
PUSH EBX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x0001dc50
ADD ESP,0x10
MOV dword ptr [EBP + 0x8],EAX
JMP 0x0002f382
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x0008bb20
LEA EAX,[ESI + 0x1]
ADD ESP,0x10
SUB ESP,0x4
PUSH 0x1
PUSH EAX
PUSH dword ptr [EBP + 0x8]
MOV EDI,dword ptr [ESP + 0x14]
MOV EBX,EDI
CALL 0x0001dc50
ADD ESP,0x10
MOV dword ptr [EBP + 0x8],EAX
MOV byte ptr [EAX + ESI*0x1],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EBP],0x1
CMP byte ptr [EAX],0x0
JZ 0x0002f562
LEA EBX,[EDI + 0xfffc3534]
MOV EDX,0x1
MOV dword ptr [ESP + 0x8],EBX
NOP
MOV ECX,0x11
MOV ESI,EAX
MOV EDI,EBX
CMPSB.REPE ES:EDI,ESI
LEA ESI,[EDX + 0x1]
SETA CL
SBB CL,0x0
TEST CL,CL
JZ 0x0002f4a9
LEA ECX,[EDX + 0x2]
MOV dword ptr [EBP],ESI
CMP byte ptr [EAX],0x0
MOV EDX,ESI
MOV ESI,ECX
MOV ECX,EAX
JZ 0x0002f4b8
MOV ECX,EAX
LEA ESI,[ESI]
NOP
ADD ECX,0x1
CMP byte ptr [ECX],0x0
JNZ 0x0002f4b0
CMP byte ptr [ECX + 0x1],0x0
LEA EAX,[ECX + 0x1]
JNZ 0x0002f480
MOV EBX,ESI
SUB ESP,0x8
PUSH 0x4
PUSH EBX
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x0001db90
MOV EDI,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EBP + 0x4],EAX
MOV EBX,EAX
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [EBP + 0x8]
CMP byte ptr [EAX],0x0
JZ 0x0002f55b
MOV EDX,0x1
MOV EBP,EDI
NOP
MOV ECX,0x11
MOV ESI,EAX
MOV EDI,EBP
CMPSB.REPE ES:EDI,ESI
MOV ESI,EDX
SETA CL
SBB CL,0x0
TEST CL,CL
JZ 0x0002f516
ADD EDX,0x1
MOV dword ptr [EBX + ESI*0x4],EAX
CMP byte ptr [EAX],0x0
MOV ECX,EAX
MOV ESI,EDX
JZ 0x0002f528
MOV ECX,EAX
LEA ESI,[ESI]
NOP
ADD ECX,0x1
CMP byte ptr [ECX],0x0
JNZ 0x0002f520
CMP byte ptr [ECX + 0x1],0x0
LEA EAX,[ECX + 0x1]
JNZ 0x0002f4f0
MOV EDI,dword ptr [ESP + 0x4]
LEA EAX,[EDI + 0xfff59ac0]
PUSH EAX
PUSH 0x4
PUSH ESI
PUSH EBX
MOV EBX,EDI
CALL 0x00014700
ADD ESP,0x10
JMP 0x0002f3db
XOR ESI,ESI
MOV EAX,0x1
JMP 0x0002f43e
MOV ESI,0x1
JMP 0x0002f531
MOV EAX,dword ptr [ESP + 0x4]
MOV EBX,0x2
LEA EAX,[EAX + 0xfffc3534]
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0002f4c3
CALL 0x0008eb20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_0002f2b0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}\n\n" comment (function_definition "void FUN_0002f2b0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}" primitive_type (function_declarator "FUN_0002f2b0(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 *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008eb20();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "undefined4 *__base;" type_identifier (pointer_declarator "*__base" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "byte *pbVar13;" type_identifier (pointer_declarator "*pbVar13" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "byte bVar16;" type_identifier identifier ;) (declaration "char *local_834;" primitive_type (pointer_declarator "*local_834" * identifier) ;) (declaration "uint local_820 [512];" type_identifier (array_declarator "local_820 [512]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }" { (expression_statement "FUN_0001dd30(param_1[2]);" (call_expression "FUN_0001dd30(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(param_1[1]);" (call_expression "FUN_0001dd30(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ 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[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" else (compound_statement "{\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" { (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = FUN_0008b800();" (assignment_expression "iVar3 = FUN_0008b800()" identifier = (call_expression "FUN_0008b800()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar11 = 0;\n      iVar3 = 1;\n    }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" else (compound_statement "{\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" { (expression_statement "local_834 = (char *)0x0;" (assignment_expression "local_834 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (while_statement "while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" while (parenthesized_expression "(iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0" (assignment_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800)" identifier = (call_expression "FUN_0008b880(iVar3,local_820,0x800)" identifier (argument_list "(iVar3,local_820,0x800)" ( identifier , identifier , number_literal )))) , (comma_expression "puVar10 = local_820, iVar4 != 0" (assignment_expression "puVar10 = local_820" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal))) )) (compound_statement "{\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" { (do_statement "do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);" do (compound_statement "{\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        }" { (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) (expression_statement "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9" identifier = (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" * identifier) + number_literal) & (unary_expression "~*puVar9" ~ (pointer_expression "*puVar9" * identifier)))) ;) (expression_statement "uVar6 = uVar5 & 0x80808080;" (assignment_expression "uVar6 = uVar5 & 0x80808080" identifier = (binary_expression "uVar5 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) ;) (expression_statement "bVar15 = (uVar5 & 0x8080) == 0;" (assignment_expression "bVar15 = (uVar5 & 0x8080) == 0" identifier = (binary_expression "(uVar5 & 0x8080) == 0" (parenthesized_expression "(uVar5 & 0x8080)" ( (binary_expression "uVar5 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n          uVar6 = uVar6 >> 0x10;\n        }" { (expression_statement "uVar6 = uVar6 >> 0x10;" (assignment_expression "uVar6 = uVar6 >> 0x10" identifier = (binary_expression "uVar6 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" { (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" identifier = (cast_expression "(uint *)((int)puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 6)" ( (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);" (assignment_expression "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" identifier = (cast_expression "(char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2" (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" (binary_expression "(int)puVar10 +\n                         iVar11" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + (parenthesized_expression "(-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" ( (binary_expression "-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)" (unary_expression "-(int)local_820" - (cast_expression "(int)local_820" ( (type_descriptor "int" primitive_type) ) identifier)) - (cast_expression "(uint)CARRY1((byte)uVar6,(byte)uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar6,(byte)uVar6)" identifier (argument_list "((byte)uVar6,(byte)uVar6)" ( (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) + number_literal) )))) ;) (if_statement "if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" if (parenthesized_expression "((int)local_834 < (int)pcVar1)" ( (binary_expression "(int)local_834 < (int)pcVar1" (cast_expression "(int)local_834" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" { (expression_statement "local_834 = pcVar1 + 0x800;" (assignment_expression "local_834 = pcVar1 + 0x800" identifier = (binary_expression "pcVar1 + 0x800" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_0001dc50(iVar4,local_834,1);" (assignment_expression "iVar4 = FUN_0001dc50(iVar4,local_834,1)" identifier = (call_expression "FUN_0001dc50(iVar4,local_834,1)" identifier (argument_list "(iVar4,local_834,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar4;" (assignment_expression "param_1[2] = iVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "strcpy((char *)(iVar4 + iVar11),(char *)local_820);" (call_expression "strcpy((char *)(iVar4 + iVar11),(char *)local_820)" identifier (argument_list "((char *)(iVar4 + iVar11),(char *)local_820)" ( (cast_expression "(char *)(iVar4 + iVar11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar11)" ( (binary_expression "iVar4 + iVar11" identifier + identifier) ))) , (cast_expression "(char *)local_820" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "sVar7 = strlen((char *)(param_1[2] + iVar11));" (assignment_expression "sVar7 = strlen((char *)(param_1[2] + iVar11))" identifier = (call_expression "strlen((char *)(param_1[2] + iVar11))" identifier (argument_list "((char *)(param_1[2] + iVar11))" ( (cast_expression "(char *)(param_1[2] + iVar11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar11)" ( (binary_expression "param_1[2] + iVar11" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier) ))) )))) ;) (expression_statement "iVar11 = iVar11 + 1 + sVar7;" (assignment_expression "iVar11 = iVar11 + 1 + sVar7" identifier = (binary_expression "iVar11 + 1 + sVar7" (binary_expression "iVar11 + 1" identifier + number_literal) + identifier)) ;) })) (expression_statement "FUN_0008bb20(iVar3);" (call_expression "FUN_0008bb20(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) (expression_statement "iVar3 = FUN_0001dc50(param_1[2],iVar3,1);" (assignment_expression "iVar3 = FUN_0001dc50(param_1[2],iVar3,1)" identifier = (call_expression "FUN_0001dc50(param_1[2],iVar3,1)" identifier (argument_list "(param_1[2],iVar3,1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar11) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar11) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar11)" * (cast_expression "(undefined1 *)(iVar3 + iVar11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar11)" ( (binary_expression "iVar3 + iVar11" identifier + identifier) )))) = number_literal) ;) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      iVar3 = 2;\n    }" { (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" { (expression_statement "iVar11 = 1;" (assignment_expression "iVar11 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar13 = (byte *)"Default Settings";" (assignment_expression "pbVar13 = (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 (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" identifier = (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" * identifier) < (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" identifier = (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" * identifier) == (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;" 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) )) (goto_statement "goto LAB_0002f4b0;" goto statement_identifier ;)) (expression_statement "iVar4 = iVar11 + 2;" (assignment_expression "iVar4 = iVar11 + 2" identifier = (binary_expression "iVar11 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "local_834 = "Default Settings";" (assignment_expression "local_834 = "Default Settings"" identifier = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "__base = (undefined4 *)FUN_0001db90(iVar3,4);" (assignment_expression "__base = (undefined4 *)FUN_0001db90(iVar3,4)" identifier = (cast_expression "(undefined4 *)FUN_0001db90(iVar3,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(iVar3,4)" identifier (argument_list "(iVar3,4)" ( identifier , number_literal ))))) ;) (expression_statement "param_1[1] = (int)__base;" (assignment_expression "param_1[1] = (int)__base" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)__base" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*__base = "Default Settings";" (assignment_expression "*__base = "Default Settings"" (pointer_expression "*__base" * identifier) = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      sVar7 = 1;\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar13 = (byte *)local_834;" (assignment_expression "pbVar13 = (byte *)local_834" identifier = (cast_expression "(byte *)local_834" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" identifier = (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" * identifier) < (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" identifier = (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" * identifier) == (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;" 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) )) (goto_statement "goto LAB_0002f520;" goto statement_identifier ;)) (expression_statement "__base[sVar7] = pbVar8;" (assignment_expression "__base[sVar7] = pbVar8" (subscript_expression "__base[sVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "sVar7 = sVar7 + 1;" (assignment_expression "sVar7 = sVar7 + 1" identifier = (binary_expression "sVar7 + 1" identifier + number_literal)) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f520:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "qsort(__base,sVar7,4,FUN_00029850);" (call_expression "qsort(__base,sVar7,4,FUN_00029850)" identifier (argument_list "(__base,sVar7,4,FUN_00029850)" ( identifier , identifier , number_literal , identifier ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid get_sesslist(sesslist *list,int allocate)\n\n{\n  size_t sVar1;\n  byte bVar2;\n  int iVar3;\n  void *handle;\n  char *pcVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  char *ptr;\n  char **__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int iVar13;\n  byte *pbVar14;\n  byte *pbVar15;\n  int in_GS_OFFSET;\n  bool bVar16;\n  bool bVar17;\n  byte bVar18;\n  char *local_834;\n  char otherbuf [2048];\n  \n  bVar18 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\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    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,sessioncmp);\n  }\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void get_sesslist(sesslist *list,int allocate)\n\n{\n  size_t sVar1;\n  byte bVar2;\n  int iVar3;\n  void *handle;\n  char *pcVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  char *ptr;\n  char **__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int iVar13;\n  byte *pbVar14;\n  byte *pbVar15;\n  int in_GS_OFFSET;\n  bool bVar16;\n  bool bVar17;\n  byte bVar18;\n  char *local_834;\n  char otherbuf [2048];\n  \n  bVar18 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\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    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,sessioncmp);\n  }\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\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  size_t sVar1;\n  byte bVar2;\n  int iVar3;\n  void *handle;\n  char *pcVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  char *ptr;\n  char **__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int iVar13;\n  byte *pbVar14;\n  byte *pbVar15;\n  int in_GS_OFFSET;\n  bool bVar16;\n  bool bVar17;\n  byte bVar18;\n  char *local_834;\n  char otherbuf [2048];\n  \n  bVar18 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\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    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,sessioncmp);\n  }\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *handle;" primitive_type (pointer_declarator "*handle" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "char **__base;" primitive_type (pointer_declarator "**__base" * (pointer_declarator "*__base" * identifier)) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "byte *pbVar14;" type_identifier (pointer_declarator "*pbVar14" * identifier) ;) (declaration "byte *pbVar15;" type_identifier (pointer_declarator "*pbVar15" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar16;" primitive_type identifier ;) (declaration "bool bVar17;" primitive_type identifier ;) (declaration "byte bVar18;" type_identifier identifier ;) (declaration "char *local_834;" primitive_type (pointer_declarator "*local_834" * identifier) ;) (declaration "char otherbuf [2048];" primitive_type (array_declarator "otherbuf [2048]" identifier [ number_literal ]) ;) (expression_statement "bVar18 = 0;" (assignment_expression "bVar18 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" 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    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,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    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,sessioncmp);\n  }" else (compound_statement "{\n    list->buffer = (char *)0x0;\n    handle = enum_settings_start();\n    if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }\n    pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);\n    list->buffer = pcVar4;\n    pcVar4[iVar13] = '\0';\n    pbVar8 = (byte *)list->buffer;\n    list->nsessions = 1;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    local_834 = "Default Settings";\n    __base = (char **)safemalloc(sVar12,4);\n    list->sessions = __base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)list->buffer;\n    bVar17 = *pbVar8 == 0;\n    if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }\n    qsort(__base,sVar7,4,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 "()" ( )))) ;) (if_statement "if (handle == (void *)0x0) {\n      iVar13 = 0;\n      sVar12 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\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      iVar13 = 0;\n      sVar12 = 1;\n    }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "sVar12 = 1;" (assignment_expression "sVar12 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }" else (compound_statement "{\n      local_834 = (char *)0x0;\n      iVar13 = 0;\n      while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }\n      enum_settings_finish(handle);\n      sVar12 = iVar13 + 1;\n    }" { (expression_statement "local_834 = (char *)0x0;" (assignment_expression "local_834 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (while_statement "while (pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }" while (parenthesized_expression "(pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = enum_settings_next(handle,otherbuf,0x800), puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = 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 )))) , (comma_expression "puVar10 = (uint *)otherbuf,\n            pcVar4 != (char *)0x0" (assignment_expression "puVar10 = (uint *)otherbuf" identifier = (cast_expression "(uint *)otherbuf" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)))) )) (compound_statement "{\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar17 = (uVar5 & 0x8080) == 0;\n        if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        ptr = list->buffer;\n        pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }\n        strcpy(ptr + iVar13,otherbuf);\n        sVar7 = strlen(list->buffer + iVar13);\n        iVar13 = iVar13 + 1 + sVar7;\n      }" { (do_statement "do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);" do (compound_statement "{\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        }" { (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) (expression_statement "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9" identifier = (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" * identifier) + number_literal) & (unary_expression "~*puVar9" ~ (pointer_expression "*puVar9" * identifier)))) ;) (expression_statement "uVar6 = uVar5 & 0x80808080;" (assignment_expression "uVar6 = uVar5 & 0x80808080" identifier = (binary_expression "uVar5 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) ;) (expression_statement "bVar17 = (uVar5 & 0x8080) == 0;" (assignment_expression "bVar17 = (uVar5 & 0x8080) == 0" identifier = (binary_expression "(uVar5 & 0x8080) == 0" (parenthesized_expression "(uVar5 & 0x8080)" ( (binary_expression "uVar5 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar17) {\n          uVar6 = uVar6 >> 0x10;\n        }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n          uVar6 = uVar6 >> 0x10;\n        }" { (expression_statement "uVar6 = uVar6 >> 0x10;" (assignment_expression "uVar6 = uVar6 >> 0x10" identifier = (binary_expression "uVar6 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar17) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" { (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" identifier = (cast_expression "(uint *)((int)puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 6)" ( (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "ptr = list->buffer;" (assignment_expression "ptr = list->buffer" identifier = (field_expression "list->buffer" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);" (assignment_expression "pcVar4 = (char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" identifier = (cast_expression "(char *)((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (binary_expression "(int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2" (binary_expression "(int)puVar10 +\n                         iVar13 + (-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6))" (binary_expression "(int)puVar10 +\n                         iVar13" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + (parenthesized_expression "(-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6))" ( (binary_expression "-(int)otherbuf - (uint)CARRY1((byte)uVar6,(byte)uVar6)" (unary_expression "-(int)otherbuf" - (cast_expression "(int)otherbuf" ( (type_descriptor "int" primitive_type) ) identifier)) - (cast_expression "(uint)CARRY1((byte)uVar6,(byte)uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar6,(byte)uVar6)" identifier (argument_list "((byte)uVar6,(byte)uVar6)" ( (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) + number_literal) )))) ;) (if_statement "if ((int)local_834 < (int)pcVar4) {\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }" if (parenthesized_expression "((int)local_834 < (int)pcVar4)" ( (binary_expression "(int)local_834 < (int)pcVar4" (cast_expression "(int)local_834" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          local_834 = pcVar4 + 0x800;\n          ptr = (char *)saferealloc(ptr,(size_t)local_834,1);\n          list->buffer = ptr;\n        }" { (expression_statement "local_834 = pcVar4 + 0x800;" (assignment_expression "local_834 = pcVar4 + 0x800" identifier = (binary_expression "pcVar4 + 0x800" identifier + number_literal)) ;) (expression_statement "ptr = (char *)saferealloc(ptr,(size_t)local_834,1);" (assignment_expression "ptr = (char *)saferealloc(ptr,(size_t)local_834,1)" identifier = (cast_expression "(char *)saferealloc(ptr,(size_t)local_834,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(ptr,(size_t)local_834,1)" identifier (argument_list "(ptr,(size_t)local_834,1)" ( identifier , (cast_expression "(size_t)local_834" ( (type_descriptor "size_t" primitive_type) ) identifier) , number_literal ))))) ;) (expression_statement "list->buffer = ptr;" (assignment_expression "list->buffer = ptr" (field_expression "list->buffer" identifier -> field_identifier) = identifier) ;) })) (expression_statement "strcpy(ptr + iVar13,otherbuf);" (call_expression "strcpy(ptr + iVar13,otherbuf)" identifier (argument_list "(ptr + iVar13,otherbuf)" ( (binary_expression "ptr + iVar13" identifier + identifier) , identifier ))) ;) (expression_statement "sVar7 = strlen(list->buffer + iVar13);" (assignment_expression "sVar7 = strlen(list->buffer + iVar13)" identifier = (call_expression "strlen(list->buffer + iVar13)" identifier (argument_list "(list->buffer + iVar13)" ( (binary_expression "list->buffer + iVar13" (field_expression "list->buffer" identifier -> field_identifier) + identifier) )))) ;) (expression_statement "iVar13 = iVar13 + 1 + sVar7;" (assignment_expression "iVar13 = iVar13 + 1 + sVar7" identifier = (binary_expression "iVar13 + 1 + sVar7" (binary_expression "iVar13 + 1" identifier + number_literal) + identifier)) ;) })) (expression_statement "enum_settings_finish(handle);" (call_expression "enum_settings_finish(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (expression_statement "sVar12 = iVar13 + 1;" (assignment_expression "sVar12 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) }))) (expression_statement "pcVar4 = (char *)saferealloc(list->buffer,sVar12,1);" (assignment_expression "pcVar4 = (char *)saferealloc(list->buffer,sVar12,1)" identifier = (cast_expression "(char *)saferealloc(list->buffer,sVar12,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(list->buffer,sVar12,1)" identifier (argument_list "(list->buffer,sVar12,1)" ( (field_expression "list->buffer" identifier -> field_identifier) , identifier , number_literal ))))) ;) (expression_statement "list->buffer = pcVar4;" (assignment_expression "list->buffer = pcVar4" (field_expression "list->buffer" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4[iVar13] = '\0';" (assignment_expression "pcVar4[iVar13] = '\0'" (subscript_expression "pcVar4[iVar13]" 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 "bVar17 = *pbVar8 == 0;" (assignment_expression "bVar17 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar17) {\n      sVar12 = 2;\n    }\n    else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n      sVar12 = 2;\n    }" { (expression_statement "sVar12 = 2;" (assignment_expression "sVar12 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" else (compound_statement "{\n      sVar11 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" { (expression_statement "sVar11 = 1;" (assignment_expression "sVar11 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);" do (compound_statement "{\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)"Default Settings";\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        sVar12 = sVar11 + 1;\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;\n        sVar1 = sVar11 + 2;\n        list->nsessions = sVar12;\n        bVar2 = *pbVar8;\n        sVar11 = sVar12;\n        sVar12 = sVar1;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar16 = false;" (assignment_expression "bVar16 = false" identifier = false) ;) (expression_statement "iVar13 = 0x11;" (assignment_expression "iVar13 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar14 = pbVar8;" (assignment_expression "pbVar14 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar15 = (byte *)"Default Settings";" (assignment_expression "pbVar15 = (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 (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);" do (compound_statement "{\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        }" { (if_statement "if (iVar13 == 0) break;" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar13 = iVar13 + -1;" (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) (expression_statement "bVar16 = *pbVar14 < *pbVar15;" (assignment_expression "bVar16 = *pbVar14 < *pbVar15" identifier = (binary_expression "*pbVar14 < *pbVar15" (pointer_expression "*pbVar14" * identifier) < (pointer_expression "*pbVar15" * identifier))) ;) (expression_statement "bVar17 = *pbVar14 == *pbVar15;" (assignment_expression "bVar17 = *pbVar14 == *pbVar15" identifier = (binary_expression "*pbVar14 == *pbVar15" (pointer_expression "*pbVar14" * identifier) == (pointer_expression "*pbVar15" * identifier))) ;) (expression_statement "pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;" (assignment_expression "pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1" identifier = (binary_expression "pbVar14 + (uint)bVar18 * -2 + 1" (binary_expression "pbVar14 + (uint)bVar18 * -2" identifier + (binary_expression "(uint)bVar18 * -2" (cast_expression "(uint)bVar18" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;" (assignment_expression "pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1" identifier = (binary_expression "pbVar15 + (uint)bVar18 * -2 + 1" (binary_expression "pbVar15 + (uint)bVar18 * -2" identifier + (binary_expression "(uint)bVar18 * -2" (cast_expression "(uint)bVar18" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar17)" ( identifier )) ;) (expression_statement "sVar12 = sVar11 + 1;" (assignment_expression "sVar12 = sVar11 + 1" identifier = (binary_expression "sVar11 + 1" identifier + number_literal)) ;) (if_statement "if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f4b0;" if (parenthesized_expression "((!bVar16 && !bVar17) == bVar16)" ( (binary_expression "(!bVar16 && !bVar17) == bVar16" (parenthesized_expression "(!bVar16 && !bVar17)" ( (binary_expression "!bVar16 && !bVar17" (unary_expression "!bVar16" ! identifier) && (unary_expression "!bVar17" ! identifier)) )) == identifier) )) (goto_statement "goto LAB_0002f4b0;" goto statement_identifier ;)) (expression_statement "sVar1 = sVar11 + 2;" (assignment_expression "sVar1 = sVar11 + 2" identifier = (binary_expression "sVar11 + 2" identifier + number_literal)) ;) (expression_statement "list->nsessions = sVar12;" (assignment_expression "list->nsessions = sVar12" (field_expression "list->nsessions" identifier -> field_identifier) = identifier) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "sVar11 = sVar12;" (assignment_expression "sVar11 = sVar12" identifier = identifier) ;) (expression_statement "sVar12 = sVar1;" (assignment_expression "sVar12 = sVar1" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar17 = pbVar8[1] == 0;" (assignment_expression "bVar17 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar17)" ( (unary_expression "!bVar17" ! identifier) )) ;) }))) (expression_statement "local_834 = "Default Settings";" (assignment_expression "local_834 = "Default Settings"" identifier = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "__base = (char **)safemalloc(sVar12,4);" (assignment_expression "__base = (char **)safemalloc(sVar12,4)" identifier = (cast_expression "(char **)safemalloc(sVar12,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "safemalloc(sVar12,4)" identifier (argument_list "(sVar12,4)" ( identifier , number_literal ))))) ;) (expression_statement "list->sessions = __base;" (assignment_expression "list->sessions = __base" (field_expression "list->sessions" identifier -> field_identifier) = identifier) ;) (expression_statement "*__base = "Default Settings";" (assignment_expression "*__base = "Default Settings"" (pointer_expression "*__base" * 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 "bVar17 = *pbVar8 == 0;" (assignment_expression "bVar17 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar17) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" if (parenthesized_expression "(bVar17)" ( identifier )) (compound_statement "{\n      sVar7 = 1;\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" else (compound_statement "{\n      sVar7 = 1;\n      do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar17);" do (compound_statement "{\n        bVar16 = false;\n        iVar13 = 0x11;\n        pbVar14 = pbVar8;\n        pbVar15 = (byte *)local_834;\n        do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);\n        if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;\n        __base[sVar7] = (char *)pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar17 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar16 = false;" (assignment_expression "bVar16 = false" identifier = false) ;) (expression_statement "iVar13 = 0x11;" (assignment_expression "iVar13 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar14 = pbVar8;" (assignment_expression "pbVar14 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar15 = (byte *)local_834;" (assignment_expression "pbVar15 = (byte *)local_834" identifier = (cast_expression "(byte *)local_834" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        } while (bVar17);" do (compound_statement "{\n          if (iVar13 == 0) break;\n          iVar13 = iVar13 + -1;\n          bVar16 = *pbVar14 < *pbVar15;\n          bVar17 = *pbVar14 == *pbVar15;\n          pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;\n          pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;\n        }" { (if_statement "if (iVar13 == 0) break;" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar13 = iVar13 + -1;" (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) (expression_statement "bVar16 = *pbVar14 < *pbVar15;" (assignment_expression "bVar16 = *pbVar14 < *pbVar15" identifier = (binary_expression "*pbVar14 < *pbVar15" (pointer_expression "*pbVar14" * identifier) < (pointer_expression "*pbVar15" * identifier))) ;) (expression_statement "bVar17 = *pbVar14 == *pbVar15;" (assignment_expression "bVar17 = *pbVar14 == *pbVar15" identifier = (binary_expression "*pbVar14 == *pbVar15" (pointer_expression "*pbVar14" * identifier) == (pointer_expression "*pbVar15" * identifier))) ;) (expression_statement "pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1;" (assignment_expression "pbVar14 = pbVar14 + (uint)bVar18 * -2 + 1" identifier = (binary_expression "pbVar14 + (uint)bVar18 * -2 + 1" (binary_expression "pbVar14 + (uint)bVar18 * -2" identifier + (binary_expression "(uint)bVar18 * -2" (cast_expression "(uint)bVar18" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1;" (assignment_expression "pbVar15 = pbVar15 + (uint)bVar18 * -2 + 1" identifier = (binary_expression "pbVar15 + (uint)bVar18 * -2 + 1" (binary_expression "pbVar15 + (uint)bVar18 * -2" identifier + (binary_expression "(uint)bVar18 * -2" (cast_expression "(uint)bVar18" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar17)" ( identifier )) ;) (if_statement "if ((!bVar16 && !bVar17) == bVar16) goto LAB_0002f520;" if (parenthesized_expression "((!bVar16 && !bVar17) == bVar16)" ( (binary_expression "(!bVar16 && !bVar17) == bVar16" (parenthesized_expression "(!bVar16 && !bVar17)" ( (binary_expression "!bVar16 && !bVar17" (unary_expression "!bVar16" ! identifier) && (unary_expression "!bVar17" ! identifier)) )) == identifier) )) (goto_statement "goto LAB_0002f520;" goto statement_identifier ;)) (expression_statement "__base[sVar7] = (char *)pbVar8;" (assignment_expression "__base[sVar7] = (char *)pbVar8" (subscript_expression "__base[sVar7]" identifier [ identifier ]) = (cast_expression "(char *)pbVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "sVar7 = sVar7 + 1;" (assignment_expression "sVar7 = sVar7 + 1" identifier = (binary_expression "sVar7 + 1" identifier + number_literal)) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f520:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar17 = pbVar8[1] == 0;" (assignment_expression "bVar17 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar17)" ( (unary_expression "!bVar17" ! identifier) )) ;) }))) (expression_statement "qsort(__base,sVar7,4,sessioncmp);" (call_expression "qsort(__base,sVar7,4,sessioncmp)" identifier (argument_list "(__base,sVar7,4,sessioncmp)" ( identifier , identifier , number_literal , identifier ))) ;) }))) (if_statement "if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0002f2b0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008eb20();\n}\n\n" (function_definition "void FUN_0002f2b0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008eb20();\n}" primitive_type (function_declarator "FUN_0002f2b0(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 *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008eb20();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "undefined4 *__base;" type_identifier (pointer_declarator "*__base" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "byte *pbVar13;" type_identifier (pointer_declarator "*pbVar13" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "byte bVar16;" type_identifier identifier ;) (declaration "char *local_834;" primitive_type (pointer_declarator "*local_834" * identifier) ;) (declaration "uint local_820 [512];" type_identifier (array_declarator "local_820 [512]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }" { (expression_statement "FUN_0001dd30(param_1[2]);" (call_expression "FUN_0001dd30(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(param_1[1]);" (call_expression "FUN_0001dd30(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ 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[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" else (compound_statement "{\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" { (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = FUN_0008b800();" (assignment_expression "iVar3 = FUN_0008b800()" identifier = (call_expression "FUN_0008b800()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar11 = 0;\n      iVar3 = 1;\n    }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" else (compound_statement "{\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" { (expression_statement "local_834 = (char *)0x0;" (assignment_expression "local_834 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (while_statement "while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" while (parenthesized_expression "(iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0" (assignment_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800)" identifier = (call_expression "FUN_0008b880(iVar3,local_820,0x800)" identifier (argument_list "(iVar3,local_820,0x800)" ( identifier , identifier , number_literal )))) , (comma_expression "puVar10 = local_820, iVar4 != 0" (assignment_expression "puVar10 = local_820" identifier = identifier) , (binary_expression "iVar4 != 0" identifier != number_literal))) )) (compound_statement "{\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" { (do_statement "do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);" do (compound_statement "{\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        }" { (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" identifier = identifier) ;) (expression_statement "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9" identifier = (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" * identifier) + number_literal) & (unary_expression "~*puVar9" ~ (pointer_expression "*puVar9" * identifier)))) ;) (expression_statement "uVar6 = uVar5 & 0x80808080;" (assignment_expression "uVar6 = uVar5 & 0x80808080" identifier = (binary_expression "uVar5 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) ;) (expression_statement "bVar15 = (uVar5 & 0x8080) == 0;" (assignment_expression "bVar15 = (uVar5 & 0x8080) == 0" identifier = (binary_expression "(uVar5 & 0x8080) == 0" (parenthesized_expression "(uVar5 & 0x8080)" ( (binary_expression "uVar5 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n          uVar6 = uVar6 >> 0x10;\n        }" { (expression_statement "uVar6 = uVar6 >> 0x10;" (assignment_expression "uVar6 = uVar6 >> 0x10" identifier = (binary_expression "uVar6 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" { (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" identifier = (cast_expression "(uint *)((int)puVar9 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + 6)" ( (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);" (assignment_expression "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" identifier = (cast_expression "(char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" ( (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2" (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" (binary_expression "(int)puVar10 +\n                         iVar11" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + (parenthesized_expression "(-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" ( (binary_expression "-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)" (unary_expression "-(int)local_820" - (cast_expression "(int)local_820" ( (type_descriptor "int" primitive_type) ) identifier)) - (cast_expression "(uint)CARRY1((byte)uVar6,(byte)uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar6,(byte)uVar6)" identifier (argument_list "((byte)uVar6,(byte)uVar6)" ( (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) + number_literal) )))) ;) (if_statement "if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" if (parenthesized_expression "((int)local_834 < (int)pcVar1)" ( (binary_expression "(int)local_834 < (int)pcVar1" (cast_expression "(int)local_834" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" { (expression_statement "local_834 = pcVar1 + 0x800;" (assignment_expression "local_834 = pcVar1 + 0x800" identifier = (binary_expression "pcVar1 + 0x800" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_0001dc50(iVar4,local_834,1);" (assignment_expression "iVar4 = FUN_0001dc50(iVar4,local_834,1)" identifier = (call_expression "FUN_0001dc50(iVar4,local_834,1)" identifier (argument_list "(iVar4,local_834,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar4;" (assignment_expression "param_1[2] = iVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "strcpy((char *)(iVar4 + iVar11),(char *)local_820);" (call_expression "strcpy((char *)(iVar4 + iVar11),(char *)local_820)" identifier (argument_list "((char *)(iVar4 + iVar11),(char *)local_820)" ( (cast_expression "(char *)(iVar4 + iVar11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar11)" ( (binary_expression "iVar4 + iVar11" identifier + identifier) ))) , (cast_expression "(char *)local_820" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "sVar7 = strlen((char *)(param_1[2] + iVar11));" (assignment_expression "sVar7 = strlen((char *)(param_1[2] + iVar11))" identifier = (call_expression "strlen((char *)(param_1[2] + iVar11))" identifier (argument_list "((char *)(param_1[2] + iVar11))" ( (cast_expression "(char *)(param_1[2] + iVar11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar11)" ( (binary_expression "param_1[2] + iVar11" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier) ))) )))) ;) (expression_statement "iVar11 = iVar11 + 1 + sVar7;" (assignment_expression "iVar11 = iVar11 + 1 + sVar7" identifier = (binary_expression "iVar11 + 1 + sVar7" (binary_expression "iVar11 + 1" identifier + number_literal) + identifier)) ;) })) (expression_statement "FUN_0008bb20(iVar3);" (call_expression "FUN_0008bb20(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) }))) (expression_statement "iVar3 = FUN_0001dc50(param_1[2],iVar3,1);" (assignment_expression "iVar3 = FUN_0001dc50(param_1[2],iVar3,1)" identifier = (call_expression "FUN_0001dc50(param_1[2],iVar3,1)" identifier (argument_list "(param_1[2],iVar3,1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar11) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar11) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar11)" * (cast_expression "(undefined1 *)(iVar3 + iVar11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar11)" ( (binary_expression "iVar3 + iVar11" identifier + identifier) )))) = number_literal) ;) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      iVar3 = 2;\n    }" { (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" { (expression_statement "iVar11 = 1;" (assignment_expression "iVar11 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar13 = (byte *)"Default Settings";" (assignment_expression "pbVar13 = (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 (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" identifier = (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" * identifier) < (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" identifier = (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" * identifier) == (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;" 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) )) (goto_statement "goto LAB_0002f4b0;" goto statement_identifier ;)) (expression_statement "iVar4 = iVar11 + 2;" (assignment_expression "iVar4 = iVar11 + 2" identifier = (binary_expression "iVar11 + 2" identifier + number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "local_834 = "Default Settings";" (assignment_expression "local_834 = "Default Settings"" identifier = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "__base = (undefined4 *)FUN_0001db90(iVar3,4);" (assignment_expression "__base = (undefined4 *)FUN_0001db90(iVar3,4)" identifier = (cast_expression "(undefined4 *)FUN_0001db90(iVar3,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(iVar3,4)" identifier (argument_list "(iVar3,4)" ( identifier , number_literal ))))) ;) (expression_statement "param_1[1] = (int)__base;" (assignment_expression "param_1[1] = (int)__base" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)__base" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*__base = "Default Settings";" (assignment_expression "*__base = "Default Settings"" (pointer_expression "*__base" * identifier) = (string_literal ""Default Settings"" " string_content ")) ;) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" identifier = (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" * identifier) == number_literal)) ;) (if_statement "if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n      sVar7 = 1;\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" else (compound_statement "{\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" do (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" { (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" identifier = false) ;) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" identifier = number_literal) ;) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar13 = (byte *)local_834;" (assignment_expression "pbVar13 = (byte *)local_834" identifier = (cast_expression "(byte *)local_834" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" do (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" identifier = (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" * identifier) < (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" identifier = (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" * identifier) == (pointer_expression "*pbVar13" * identifier))) ;) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" identifier = (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" identifier + (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;" 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) )) (goto_statement "goto LAB_0002f520;" goto statement_identifier ;)) (expression_statement "__base[sVar7] = pbVar8;" (assignment_expression "__base[sVar7] = pbVar8" (subscript_expression "__base[sVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "sVar7 = sVar7 + 1;" (assignment_expression "sVar7 = sVar7 + 1" identifier = (binary_expression "sVar7 + 1" identifier + number_literal)) ;) (while_statement "while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" { (labeled_statement "LAB_0002f520:\n          pbVar8 = pbVar8 + 1;" statement_identifier : (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;)) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" identifier = (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(!bVar15)" ( (unary_expression "!bVar15" ! identifier) )) ;) }))) (expression_statement "qsort(__base,sVar7,4,FUN_00029850);" (call_expression "qsort(__base,sVar7,4,FUN_00029850)" identifier (argument_list "(__base,sVar7,4,FUN_00029850)" ( identifier , identifier , number_literal , identifier ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ 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 IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + (parenthesized_expression ( (binary_expression (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT)) - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) ))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_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 )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) }))) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 *)) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0002f2b0(int *param_1,int param_2)\n\n{\n  char *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008eb20();\n}" (primitive_type "void") (function_declarator "FUN_0002f2b0(int *param_1,int param_2)" (identifier "FUN_0002f2b0") (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 *pcVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  size_t sVar7;\n  undefined4 *__base;\n  byte *pbVar8;\n  uint *puVar9;\n  uint *puVar10;\n  int iVar11;\n  byte *pbVar12;\n  byte *pbVar13;\n  int in_GS_OFFSET;\n  bool bVar14;\n  bool bVar15;\n  byte bVar16;\n  char *local_834;\n  uint local_820 [512];\n  int local_20;\n  \n  bVar16 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008eb20();\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "size_t sVar7;" (primitive_type "size_t") (identifier "sVar7") (; ";")) (declaration "undefined4 *__base;" (type_identifier "undefined4") (pointer_declarator "*__base" (* "*") (identifier "__base")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "uint *puVar9;" (type_identifier "uint") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint *puVar10;" (type_identifier "uint") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "byte *pbVar12;" (type_identifier "byte") (pointer_declarator "*pbVar12" (* "*") (identifier "pbVar12")) (; ";")) (declaration "byte *pbVar13;" (type_identifier "byte") (pointer_declarator "*pbVar13" (* "*") (identifier "pbVar13")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_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 *local_834;" (primitive_type "char") (pointer_declarator "*local_834" (* "*") (identifier "local_834")) (; ";")) (declaration "uint local_820 [512];" (type_identifier "uint") (array_declarator "local_820 [512]" (identifier "local_820") ([ "[") (number_literal "512") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "bVar16 = 0;" (assignment_expression "bVar16 = 0" (identifier "bVar16") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }\n  else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0001dd30(param_1[2]);\n    FUN_0001dd30(param_1[1]);\n    param_1[2] = 0;\n    param_1[1] = 0;\n  }" ({ "{") (expression_statement "FUN_0001dd30(param_1[2]);" (call_expression "FUN_0001dd30(param_1[2])" (identifier "FUN_0001dd30") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(param_1[1]);" (call_expression "FUN_0001dd30(param_1[1])" (identifier "FUN_0001dd30") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (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[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" (else "else") (compound_statement "{\n    param_1[2] = 0;\n    iVar3 = FUN_0008b800();\n    if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }\n    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);\n    param_1[2] = iVar3;\n    *(undefined1 *)(iVar3 + iVar11) = 0;\n    pbVar8 = (byte *)param_1[2];\n    *param_1 = 1;\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    local_834 = "Default Settings";\n    __base = (undefined4 *)FUN_0001db90(iVar3,4);\n    param_1[1] = (int)__base;\n    *__base = "Default Settings";\n    pbVar8 = (byte *)param_1[2];\n    bVar15 = *pbVar8 == 0;\n    if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }\n    qsort(__base,sVar7,4,FUN_00029850);\n  }" ({ "{") (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 "iVar3 = FUN_0008b800();" (assignment_expression "iVar3 = FUN_0008b800()" (identifier "iVar3") (= "=") (call_expression "FUN_0008b800()" (identifier "FUN_0008b800") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      iVar11 = 0;\n      iVar3 = 1;\n    }\n    else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar11 = 0;\n      iVar3 = 1;\n    }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" (else "else") (compound_statement "{\n      local_834 = (char *)0x0;\n      iVar11 = 0;\n      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }\n      FUN_0008bb20(iVar3);\n      iVar3 = iVar11 + 1;\n    }" ({ "{") (expression_statement "local_834 = (char *)0x0;" (assignment_expression "local_834 = (char *)0x0" (identifier "local_834") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" (while "while") (parenthesized_expression "(iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0" (assignment_expression "iVar4 = FUN_0008b880(iVar3,local_820,0x800)" (identifier "iVar4") (= "=") (call_expression "FUN_0008b880(iVar3,local_820,0x800)" (identifier "FUN_0008b880") (argument_list "(iVar3,local_820,0x800)" (( "(") (identifier "iVar3") (, ",") (identifier "local_820") (, ",") (number_literal "0x800") () ")")))) (, ",") (comma_expression "puVar10 = local_820, iVar4 != 0" (assignment_expression "puVar10 = local_820" (identifier "puVar10") (= "=") (identifier "local_820")) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")))) () ")")) (compound_statement "{\n        do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);\n        bVar15 = (uVar5 & 0x8080) == 0;\n        if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }\n        if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }\n        iVar4 = param_1[2];\n        pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);\n        if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }\n        strcpy((char *)(iVar4 + iVar11),(char *)local_820);\n        sVar7 = strlen((char *)(param_1[2] + iVar11));\n        iVar11 = iVar11 + 1 + sVar7;\n      }" ({ "{") (do_statement "do {\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        } while (uVar6 == 0);" (do "do") (compound_statement "{\n          puVar9 = puVar10;\n          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;\n          uVar6 = uVar5 & 0x80808080;\n          puVar10 = puVar9 + 1;\n        }" ({ "{") (expression_statement "puVar9 = puVar10;" (assignment_expression "puVar9 = puVar10" (identifier "puVar9") (= "=") (identifier "puVar10")) (; ";")) (expression_statement "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;" (assignment_expression "uVar5 = *puVar9 + 0xfefefeff & ~*puVar9" (identifier "uVar5") (= "=") (binary_expression "*puVar9 + 0xfefefeff & ~*puVar9" (binary_expression "*puVar9 + 0xfefefeff" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar9" (~ "~") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))))) (; ";")) (expression_statement "uVar6 = uVar5 & 0x80808080;" (assignment_expression "uVar6 = uVar5 & 0x80808080" (identifier "uVar6") (= "=") (binary_expression "uVar5 & 0x80808080" (identifier "uVar5") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar10 = puVar9 + 1;" (assignment_expression "puVar10 = puVar9 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar15 = (uVar5 & 0x8080) == 0;" (assignment_expression "bVar15 = (uVar5 & 0x8080) == 0" (identifier "bVar15") (= "=") (binary_expression "(uVar5 & 0x8080) == 0" (parenthesized_expression "(uVar5 & 0x8080)" (( "(") (binary_expression "uVar5 & 0x8080" (identifier "uVar5") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar15) {\n          uVar6 = uVar6 >> 0x10;\n        }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n          uVar6 = uVar6 >> 0x10;\n        }" ({ "{") (expression_statement "uVar6 = uVar6 >> 0x10;" (assignment_expression "uVar6 = uVar6 >> 0x10" (identifier "uVar6") (= "=") (binary_expression "uVar6 >> 0x10" (identifier "uVar6") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar15) {\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n          puVar10 = (uint *)((int)puVar9 + 6);\n        }" ({ "{") (expression_statement "puVar10 = (uint *)((int)puVar9 + 6);" (assignment_expression "puVar10 = (uint *)((int)puVar9 + 6)" (identifier "puVar10") (= "=") (cast_expression "(uint *)((int)puVar9 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + 6)" (( "(") (binary_expression "(int)puVar9 + 6" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);" (assignment_expression "pcVar1 = (char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" (identifier "pcVar1") (= "=") (cast_expression "(char *)((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2)" (( "(") (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2" (binary_expression "(int)puVar10 +\n                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" (binary_expression "(int)puVar10 +\n                         iVar11" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (identifier "iVar11")) (+ "+") (parenthesized_expression "(-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6))" (( "(") (binary_expression "-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)" (unary_expression "-(int)local_820" (- "-") (cast_expression "(int)local_820" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_820"))) (- "-") (cast_expression "(uint)CARRY1((byte)uVar6,(byte)uVar6)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY1((byte)uVar6,(byte)uVar6)" (identifier "CARRY1") (argument_list "((byte)uVar6,(byte)uVar6)" (( "(") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6")) (, ",") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6")) () ")"))))) () ")"))) (+ "+") (number_literal "-2")) () ")")))) (; ";")) (if_statement "if ((int)local_834 < (int)pcVar1) {\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" (if "if") (parenthesized_expression "((int)local_834 < (int)pcVar1)" (( "(") (binary_expression "(int)local_834 < (int)pcVar1" (cast_expression "(int)local_834" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_834")) (< "<") (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1"))) () ")")) (compound_statement "{\n          local_834 = pcVar1 + 0x800;\n          iVar4 = FUN_0001dc50(iVar4,local_834,1);\n          param_1[2] = iVar4;\n        }" ({ "{") (expression_statement "local_834 = pcVar1 + 0x800;" (assignment_expression "local_834 = pcVar1 + 0x800" (identifier "local_834") (= "=") (binary_expression "pcVar1 + 0x800" (identifier "pcVar1") (+ "+") (number_literal "0x800"))) (; ";")) (expression_statement "iVar4 = FUN_0001dc50(iVar4,local_834,1);" (assignment_expression "iVar4 = FUN_0001dc50(iVar4,local_834,1)" (identifier "iVar4") (= "=") (call_expression "FUN_0001dc50(iVar4,local_834,1)" (identifier "FUN_0001dc50") (argument_list "(iVar4,local_834,1)" (( "(") (identifier "iVar4") (, ",") (identifier "local_834") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "param_1[2] = iVar4;" (assignment_expression "param_1[2] = iVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "strcpy((char *)(iVar4 + iVar11),(char *)local_820);" (call_expression "strcpy((char *)(iVar4 + iVar11),(char *)local_820)" (identifier "strcpy") (argument_list "((char *)(iVar4 + iVar11),(char *)local_820)" (( "(") (cast_expression "(char *)(iVar4 + iVar11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar11)" (( "(") (binary_expression "iVar4 + iVar11" (identifier "iVar4") (+ "+") (identifier "iVar11")) () ")"))) (, ",") (cast_expression "(char *)local_820" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_820")) () ")"))) (; ";")) (expression_statement "sVar7 = strlen((char *)(param_1[2] + iVar11));" (assignment_expression "sVar7 = strlen((char *)(param_1[2] + iVar11))" (identifier "sVar7") (= "=") (call_expression "strlen((char *)(param_1[2] + iVar11))" (identifier "strlen") (argument_list "((char *)(param_1[2] + iVar11))" (( "(") (cast_expression "(char *)(param_1[2] + iVar11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + iVar11)" (( "(") (binary_expression "param_1[2] + iVar11" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "iVar11")) () ")"))) () ")")))) (; ";")) (expression_statement "iVar11 = iVar11 + 1 + sVar7;" (assignment_expression "iVar11 = iVar11 + 1 + sVar7" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1 + sVar7" (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar7"))) (; ";")) (} "}"))) (expression_statement "FUN_0008bb20(iVar3);" (call_expression "FUN_0008bb20(iVar3)" (identifier "FUN_0008bb20") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_0001dc50(param_1[2],iVar3,1);" (assignment_expression "iVar3 = FUN_0001dc50(param_1[2],iVar3,1)" (identifier "iVar3") (= "=") (call_expression "FUN_0001dc50(param_1[2],iVar3,1)" (identifier "FUN_0001dc50") (argument_list "(param_1[2],iVar3,1)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar3") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + iVar11) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar11) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar11)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar11)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar11)" (( "(") (binary_expression "iVar3 + iVar11" (identifier "iVar3") (+ "+") (identifier "iVar11")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" (identifier "pbVar8") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" (identifier "bVar15") (= "=") (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar15) {\n      iVar3 = 2;\n    }\n    else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n      iVar3 = 2;\n    }" ({ "{") (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" (identifier "iVar3") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" (else "else") (compound_statement "{\n      iVar11 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" ({ "{") (expression_statement "iVar11 = 1;" (assignment_expression "iVar11 = 1" (identifier "iVar11") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" (do "do") (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)"Default Settings";\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        iVar3 = iVar11 + 1;\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;\n        iVar4 = iVar11 + 2;\n        *param_1 = iVar3;\n        bVar2 = *pbVar8;\n        iVar11 = iVar3;\n        iVar3 = iVar4;\n        while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" ({ "{") (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" (identifier "bVar14") (= "=") (false "false")) (; ";")) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" (identifier "iVar3") (= "=") (number_literal "0x11")) (; ";")) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" (identifier "pbVar12") (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "pbVar13 = (byte *)"Default Settings";" (assignment_expression "pbVar13 = (byte *)"Default Settings"" (identifier "pbVar13") (= "=") (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 (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" (do "do") (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" ({ "{") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" (identifier "bVar14") (= "=") (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (< "<") (pointer_expression "*pbVar13" (* "*") (identifier "pbVar13")))) (; ";")) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" (identifier "bVar15") (= "=") (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (== "==") (pointer_expression "*pbVar13" (* "*") (identifier "pbVar13")))) (; ";")) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" (identifier "pbVar12") (+ "+") (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" (identifier "pbVar13") (= "=") (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" (identifier "pbVar13") (+ "+") (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (; ";")) (expression_statement "iVar3 = iVar11 + 1;" (assignment_expression "iVar3 = iVar11 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;" (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")) () ")")) (goto_statement "goto LAB_0002f4b0;" (goto "goto") (statement_identifier "LAB_0002f4b0") (; ";"))) (expression_statement "iVar4 = iVar11 + 2;" (assignment_expression "iVar4 = iVar11 + 2" (identifier "iVar4") (= "=") (binary_expression "iVar11 + 2" (identifier "iVar11") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" (identifier "bVar2") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" (identifier "iVar11") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (while_statement "while (bVar2 != 0) {\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" ({ "{") (labeled_statement "LAB_0002f4b0:\n          pbVar8 = pbVar8 + 1;" (statement_identifier "LAB_0002f4b0") (: ":") (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" (identifier "bVar2") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (} "}"))) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" (identifier "bVar15") (= "=") (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" (identifier "pbVar8") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar15)" (( "(") (unary_expression "!bVar15" (! "!") (identifier "bVar15")) () ")")) (; ";")) (} "}")))) (expression_statement "local_834 = "Default Settings";" (assignment_expression "local_834 = "Default Settings"" (identifier "local_834") (= "=") (string_literal ""Default Settings"" (" """) (string_content "Default Settings") (" """))) (; ";")) (expression_statement "__base = (undefined4 *)FUN_0001db90(iVar3,4);" (assignment_expression "__base = (undefined4 *)FUN_0001db90(iVar3,4)" (identifier "__base") (= "=") (cast_expression "(undefined4 *)FUN_0001db90(iVar3,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(iVar3,4)" (identifier "FUN_0001db90") (argument_list "(iVar3,4)" (( "(") (identifier "iVar3") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "param_1[1] = (int)__base;" (assignment_expression "param_1[1] = (int)__base" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)__base" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__base"))) (; ";")) (expression_statement "*__base = "Default Settings";" (assignment_expression "*__base = "Default Settings"" (pointer_expression "*__base" (* "*") (identifier "__base")) (= "=") (string_literal ""Default Settings"" (" """) (string_content "Default Settings") (" """))) (; ";")) (expression_statement "pbVar8 = (byte *)param_1[2];" (assignment_expression "pbVar8 = (byte *)param_1[2]" (identifier "pbVar8") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "bVar15 = *pbVar8 == 0;" (assignment_expression "bVar15 = *pbVar8 == 0" (identifier "bVar15") (= "=") (binary_expression "*pbVar8 == 0" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar15) {\n      sVar7 = 1;\n    }\n    else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n      sVar7 = 1;\n    }" ({ "{") (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" (identifier "sVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" (else "else") (compound_statement "{\n      sVar7 = 1;\n      do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);\n    }" ({ "{") (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" (identifier "sVar7") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      } while (!bVar15);" (do "do") (compound_statement "{\n        bVar14 = false;\n        iVar3 = 0x11;\n        pbVar12 = pbVar8;\n        pbVar13 = (byte *)local_834;\n        do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);\n        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;\n        __base[sVar7] = pbVar8;\n        bVar2 = *pbVar8;\n        sVar7 = sVar7 + 1;\n        while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }\n        bVar15 = pbVar8[1] == 0;\n        pbVar8 = pbVar8 + 1;\n      }" ({ "{") (expression_statement "bVar14 = false;" (assignment_expression "bVar14 = false" (identifier "bVar14") (= "=") (false "false")) (; ";")) (expression_statement "iVar3 = 0x11;" (assignment_expression "iVar3 = 0x11" (identifier "iVar3") (= "=") (number_literal "0x11")) (; ";")) (expression_statement "pbVar12 = pbVar8;" (assignment_expression "pbVar12 = pbVar8" (identifier "pbVar12") (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "pbVar13 = (byte *)local_834;" (assignment_expression "pbVar13 = (byte *)local_834" (identifier "pbVar13") (= "=") (cast_expression "(byte *)local_834" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_834"))) (; ";")) (do_statement "do {\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        } while (bVar15);" (do "do") (compound_statement "{\n          if (iVar3 == 0) break;\n          iVar3 = iVar3 + -1;\n          bVar14 = *pbVar12 < *pbVar13;\n          bVar15 = *pbVar12 == *pbVar13;\n          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;\n          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;\n        }" ({ "{") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar14 = *pbVar12 < *pbVar13;" (assignment_expression "bVar14 = *pbVar12 < *pbVar13" (identifier "bVar14") (= "=") (binary_expression "*pbVar12 < *pbVar13" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (< "<") (pointer_expression "*pbVar13" (* "*") (identifier "pbVar13")))) (; ";")) (expression_statement "bVar15 = *pbVar12 == *pbVar13;" (assignment_expression "bVar15 = *pbVar12 == *pbVar13" (identifier "bVar15") (= "=") (binary_expression "*pbVar12 == *pbVar13" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (== "==") (pointer_expression "*pbVar13" (* "*") (identifier "pbVar13")))) (; ";")) (expression_statement "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar12 + (uint)bVar16 * -2" (identifier "pbVar12") (+ "+") (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;" (assignment_expression "pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1" (identifier "pbVar13") (= "=") (binary_expression "pbVar13 + (uint)bVar16 * -2 + 1" (binary_expression "pbVar13 + (uint)bVar16 * -2" (identifier "pbVar13") (+ "+") (binary_expression "(uint)bVar16 * -2" (cast_expression "(uint)bVar16" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar16")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (; ";")) (if_statement "if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;" (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")) () ")")) (goto_statement "goto LAB_0002f520;" (goto "goto") (statement_identifier "LAB_0002f520") (; ";"))) (expression_statement "__base[sVar7] = pbVar8;" (assignment_expression "__base[sVar7] = pbVar8" (subscript_expression "__base[sVar7]" (identifier "__base") ([ "[") (identifier "sVar7") (] "]")) (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" (identifier "bVar2") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "sVar7 = sVar7 + 1;" (assignment_expression "sVar7 = sVar7 + 1" (identifier "sVar7") (= "=") (binary_expression "sVar7 + 1" (identifier "sVar7") (+ "+") (number_literal "1"))) (; ";")) (while_statement "while (bVar2 != 0) {\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0002f520:\n          pbVar8 = pbVar8 + 1;\n          bVar2 = *pbVar8;\n        }" ({ "{") (labeled_statement "LAB_0002f520:\n          pbVar8 = pbVar8 + 1;" (statement_identifier "LAB_0002f520") (: ":") (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" (identifier "bVar2") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (} "}"))) (expression_statement "bVar15 = pbVar8[1] == 0;" (assignment_expression "bVar15 = pbVar8[1] == 0" (identifier "bVar15") (= "=") (binary_expression "pbVar8[1] == 0" (subscript_expression "pbVar8[1]" (identifier "pbVar8") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar15)" (( "(") (unary_expression "!bVar15" (! "!") (identifier "bVar15")) () ")")) (; ";")) (} "}")))) (expression_statement "qsort(__base,sVar7,4,FUN_00029850);" (call_expression "qsort(__base,sVar7,4,FUN_00029850)" (identifier "qsort") (argument_list "(__base,sVar7,4,FUN_00029850)" (( "(") (identifier "__base") (, ",") (identifier "sVar7") (, ",") (number_literal "4") (, ",") (identifier "FUN_00029850") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0008eb20();" (call_expression "FUN_0008eb20()" (identifier "FUN_0008eb20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void function_1(type_1 *list,int var_2)

{
  size_t sVar1;
  type_2 var_23;
  int var_27;
  void *var_5;
  char *var_7;
  type_3 var_8;
  type_3 var_10;
  size_t var_17;
  char *var_15;
  char **__base;
  type_2 *var_24;
  type_3 *var_9;
  type_3 *puVar10;
  size_t var_21;
  size_t sVar12;
  int var_11;
  type_2 *var_19;
  type_2 *var_20;
  int var_1;
  bool var_22;
  bool bVar17;
  type_2 bVar18;
  char *local_834;
  char otherbuf [2048];
  
  bVar18 = 0;
  var_27 = *(int *)(var_1 + 0x14);
  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();
    if (var_5 == (void *)0x0) {
      var_11 = 0;
      sVar12 = 1;
    }
    else {
      local_834 = (char *)0x0;
      var_11 = 0;
      while (var_7 = var_6(var_5,otherbuf,0x800), puVar10 = (type_3 *)otherbuf,
            var_7 != (char *)0x0) {
        do {
          var_9 = puVar10;
          var_8 = *var_9 + 0xfefefeff & ~*var_9;
          var_10 = var_8 & 0x80808080;
          puVar10 = var_9 + 1;
        } while (var_10 == 0);
        bVar17 = (var_8 & 0x8080) == 0;
        if (bVar17) {
          var_10 = var_10 >> 0x10;
        }
        if (bVar17) {
          puVar10 = (type_3 *)((int)var_9 + 6);
        }
        var_15 = list->buffer;
        var_7 = (char *)((int)puVar10 +
                         var_11 + (-(int)otherbuf - (type_3)var_12((type_2)var_10,(type_2)var_10)) + -2);
        if ((int)local_834 < (int)var_7) {
          local_834 = var_7 + 0x800;
          var_15 = (char *)var_13(var_15,(size_t)local_834,1);
          list->buffer = var_15;
        }
        var_14(var_15 + var_11,otherbuf);
        var_17 = var_16(list->buffer + var_11);
        var_11 = var_11 + 1 + var_17;
      }
      var_18(var_5);
      sVar12 = var_11 + 1;
    }
    var_7 = (char *)var_13(list->buffer,sVar12,1);
    list->buffer = var_7;
    var_7[var_11] = '\0';
    var_24 = (type_2 *)list->buffer;
    list->nsessions = 1;
    bVar17 = *var_24 == 0;
    if (bVar17) {
      sVar12 = 2;
    }
    else {
      var_21 = 1;
      do {
        var_22 = false;
        var_11 = 0x11;
        var_19 = var_24;
        var_20 = (type_2 *)"Default Settings";
        do {
          if (var_11 == 0) break;
          var_11 = var_11 + -1;
          var_22 = *var_19 < *var_20;
          bVar17 = *var_19 == *var_20;
          var_19 = var_19 + (type_3)bVar18 * -2 + 1;
          var_20 = var_20 + (type_3)bVar18 * -2 + 1;
        } while (bVar17);
        sVar12 = var_21 + 1;
        if ((!var_22 && !bVar17) == var_22) goto LAB_0002f4b0;
        sVar1 = var_21 + 2;
        list->nsessions = sVar12;
        var_23 = *var_24;
        var_21 = sVar12;
        sVar12 = sVar1;
        while (var_23 != 0) {
LAB_0002f4b0:
          var_24 = var_24 + 1;
          var_23 = *var_24;
        }
        bVar17 = var_24[1] == 0;
        var_24 = var_24 + 1;
      } while (!bVar17);
    }
    local_834 = "Default Settings";
    __base = (char **)var_25(sVar12,4);
    list->sessions = __base;
    *__base = "Default Settings";
    var_24 = (type_2 *)list->buffer;
    bVar17 = *var_24 == 0;
    if (bVar17) {
      var_17 = 1;
    }
    else {
      var_17 = 1;
      do {
        var_22 = false;
        var_11 = 0x11;
        var_19 = var_24;
        var_20 = (type_2 *)local_834;
        do {
          if (var_11 == 0) break;
          var_11 = var_11 + -1;
          var_22 = *var_19 < *var_20;
          bVar17 = *var_19 == *var_20;
          var_19 = var_19 + (type_3)bVar18 * -2 + 1;
          var_20 = var_20 + (type_3)bVar18 * -2 + 1;
        } while (bVar17);
        if ((!var_22 && !bVar17) == var_22) goto LAB_0002f520;
        __base[var_17] = (char *)var_24;
        var_23 = *var_24;
        var_17 = var_17 + 1;
        while (var_23 != 0) {
LAB_0002f520:
          var_24 = var_24 + 1;
          var_23 = *var_24;
        }
        bVar17 = var_24[1] == 0;
        var_24 = var_24 + 1;
      } while (!bVar17);
    }
    var_26(__base,var_17,4,sessioncmp);
  }
  if (var_27 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_28();
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int *param_1,int param_2)

{
  char *pcVar1;
  byte bVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  size_t sVar7;
  undefined4 *__base;
  byte *pbVar8;
  uint *puVar9;
  uint *puVar10;
  int iVar11;
  byte *pbVar12;
  byte *pbVar13;
  int in_GS_OFFSET;
  bool bVar14;
  bool bVar15;
  byte bVar16;
  char *local_834;
  uint local_820 [512];
  int local_20;
  
  bVar16 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    FUN_0001dd30(param_1[2]);
    FUN_0001dd30(param_1[1]);
    param_1[2] = 0;
    param_1[1] = 0;
  }
  else {
    param_1[2] = 0;
    iVar3 = FUN_0008b800();
    if (iVar3 == 0) {
      iVar11 = 0;
      iVar3 = 1;
    }
    else {
      local_834 = (char *)0x0;
      iVar11 = 0;
      while (iVar4 = FUN_0008b880(iVar3,local_820,0x800), puVar10 = local_820, iVar4 != 0) {
        do {
          puVar9 = puVar10;
          uVar5 = *puVar9 + 0xfefefeff & ~*puVar9;
          uVar6 = uVar5 & 0x80808080;
          puVar10 = puVar9 + 1;
        } while (uVar6 == 0);
        bVar15 = (uVar5 & 0x8080) == 0;
        if (bVar15) {
          uVar6 = uVar6 >> 0x10;
        }
        if (bVar15) {
          puVar10 = (uint *)((int)puVar9 + 6);
        }
        iVar4 = param_1[2];
        pcVar1 = (char *)((int)puVar10 +
                         iVar11 + (-(int)local_820 - (uint)CARRY1((byte)uVar6,(byte)uVar6)) + -2);
        if ((int)local_834 < (int)pcVar1) {
          local_834 = pcVar1 + 0x800;
          iVar4 = FUN_0001dc50(iVar4,local_834,1);
          param_1[2] = iVar4;
        }
        strcpy((char *)(iVar4 + iVar11),(char *)local_820);
        sVar7 = strlen((char *)(param_1[2] + iVar11));
        iVar11 = iVar11 + 1 + sVar7;
      }
      FUN_0008bb20(iVar3);
      iVar3 = iVar11 + 1;
    }
    iVar3 = FUN_0001dc50(param_1[2],iVar3,1);
    param_1[2] = iVar3;
    *(undefined1 *)(iVar3 + iVar11) = 0;
    pbVar8 = (byte *)param_1[2];
    *param_1 = 1;
    bVar15 = *pbVar8 == 0;
    if (bVar15) {
      iVar3 = 2;
    }
    else {
      iVar11 = 1;
      do {
        bVar14 = false;
        iVar3 = 0x11;
        pbVar12 = pbVar8;
        pbVar13 = (byte *)"Default Settings";
        do {
          if (iVar3 == 0) break;
          iVar3 = iVar3 + -1;
          bVar14 = *pbVar12 < *pbVar13;
          bVar15 = *pbVar12 == *pbVar13;
          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;
          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;
        } while (bVar15);
        iVar3 = iVar11 + 1;
        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f4b0;
        iVar4 = iVar11 + 2;
        *param_1 = iVar3;
        bVar2 = *pbVar8;
        iVar11 = iVar3;
        iVar3 = iVar4;
        while (bVar2 != 0) {
LAB_0002f4b0:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar15 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar15);
    }
    local_834 = "Default Settings";
    __base = (undefined4 *)FUN_0001db90(iVar3,4);
    param_1[1] = (int)__base;
    *__base = "Default Settings";
    pbVar8 = (byte *)param_1[2];
    bVar15 = *pbVar8 == 0;
    if (bVar15) {
      sVar7 = 1;
    }
    else {
      sVar7 = 1;
      do {
        bVar14 = false;
        iVar3 = 0x11;
        pbVar12 = pbVar8;
        pbVar13 = (byte *)local_834;
        do {
          if (iVar3 == 0) break;
          iVar3 = iVar3 + -1;
          bVar14 = *pbVar12 < *pbVar13;
          bVar15 = *pbVar12 == *pbVar13;
          pbVar12 = pbVar12 + (uint)bVar16 * -2 + 1;
          pbVar13 = pbVar13 + (uint)bVar16 * -2 + 1;
        } while (bVar15);
        if ((!bVar14 && !bVar15) == bVar14) goto LAB_0002f520;
        __base[sVar7] = pbVar8;
        bVar2 = *pbVar8;
        sVar7 = sVar7 + 1;
        while (bVar2 != 0) {
LAB_0002f520:
          pbVar8 = pbVar8 + 1;
          bVar2 = *pbVar8;
        }
        bVar15 = pbVar8[1] == 0;
        pbVar8 = pbVar8 + 1;
      } while (!bVar15);
    }
    qsort(__base,sVar7,4,FUN_00029850);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008eb20();
}

