
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 sqlite3_randomness(int N,void *pBuf)

{
  uchar uVar1;
  int iVar2;
  uint uVar3;
  sqlite3_vfs *psVar4;
  int iVar5;
  uchar *puVar6;
  uchar *puVar7;
  byte bVar8;
  int in_GS_OFFSET;
  char *local_148;
  char local_140;
  sqlite3_mutex *local_13c;
  char k [256];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if ((sqlite3Config.bCoreMutex == 0) ||
     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)) {
    if (N < 1 || pBuf == (void *)0x0) {
      sqlite3Prng.isInit = '\0';
      goto LAB_0005bcfc;
    }
    local_13c = (sqlite3_mutex *)0x0;
    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;
LAB_0005bc33:
    bVar8 = sqlite3Prng.j;
  }
  else {
    (*sqlite3Config.mutex.xMutexEnter)(local_13c);
    if (N < 1 || pBuf == (void *)0x0) {
      sqlite3Prng.isInit = '\0';
      (*sqlite3Config.mutex.xMutexLeave)(local_13c);
      goto LAB_0005bcfc;
    }
    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;
LAB_0005bd39:
    sqlite3Prng.i = '\0';
    sqlite3Prng.j = '\0';
    psVar4 = sqlite3_vfs_find((char *)0x0);
    (*psVar4->xRandomness)(psVar4,0x100,k);
    iVar5 = 0;
    do {
      sqlite3Prng.s[iVar5] = (uchar)iVar5;
      iVar5 = iVar5 + 1;
    } while (iVar5 != 0x100);
    puVar6 = sqlite3Prng.s;
    bVar8 = sqlite3Prng.j;
    local_148 = k;
    do {
      puVar7 = puVar6 + 1;
      bVar8 = bVar8 + *puVar6 + *local_148;
      uVar1 = sqlite3Prng.s[bVar8];
      sqlite3Prng.s[bVar8] = *puVar6;
      *puVar6 = uVar1;
      puVar6 = puVar7;
      local_148 = local_148 + 1;
    } while (puVar7 != &DAT_0017ddc3);
    sqlite3Prng.isInit = '\x01';
  }
  puVar6 = (uchar *)pBuf;
  local_148._0_1_ = bVar8;
  do {
    puVar7 = puVar6 + 1;
    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;
    uVar1 = sqlite3Prng.s[uVar3];
    local_148._0_1_ = (byte)local_148 + uVar1;
    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];
    sqlite3Prng.s[(byte)local_148] = uVar1;
    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];
    puVar6 = puVar7;
  } while (puVar7 != (uchar *)(N + (int)pBuf));
  local_140 = (char)N;
  sqlite3Prng.j = (byte)local_148;
  sqlite3Prng.i = sqlite3Prng.i + local_140;
  if (local_13c != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(local_13c);
  }
LAB_0005bcfc:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  undefined1 *puVar6;
  undefined1 *puVar7;
  byte bVar8;
  int in_GS_OFFSET;
  char *local_148;
  char local_140;
  int local_13c;
  char local_120 [256];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {
    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {
      DAT_0017dcc0 = '\0';
      goto LAB_0005bcfc;
    }
    local_13c = 0;
    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;
LAB_0005bc33:
    bVar8 = DAT_0017dcc2;
  }
  else {
    (*DAT_0017c43c)(local_13c);
    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {
      DAT_0017dcc0 = '\0';
      (*DAT_0017c444)(local_13c);
      goto LAB_0005bcfc;
    }
    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;
LAB_0005bd39:
    _DAT_0017dcc1 = 0;
    iVar3 = FUN_0005baa0(0);
    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);
    iVar3 = 0;
    do {
      (&DAT_0017dcc3)[iVar3] = (char)iVar3;
      iVar3 = iVar3 + 1;
    } while (iVar3 != 0x100);
    pcVar4 = &DAT_0017dcc3;
    bVar8 = DAT_0017dcc2;
    local_148 = local_120;
    do {
      pcVar5 = pcVar4 + 1;
      bVar8 = bVar8 + *pcVar4 + *local_148;
      cVar1 = (&DAT_0017dcc3)[bVar8];
      (&DAT_0017dcc3)[bVar8] = *pcVar4;
      *pcVar4 = cVar1;
      pcVar4 = pcVar5;
      local_148 = local_148 + 1;
    } while (pcVar5 != &DAT_0017ddc3);
    DAT_0017dcc0 = '\x01';
  }
  puVar6 = param_2;
  local_148._0_1_ = bVar8;
  do {
    puVar7 = puVar6 + 1;
    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;
    cVar1 = (&DAT_0017dcc3)[uVar2];
    local_148._0_1_ = (byte)local_148 + cVar1;
    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];
    (&DAT_0017dcc3)[(byte)local_148] = cVar1;
    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];
    puVar6 = puVar7;
  } while (puVar7 != param_2 + param_1);
  local_140 = (char)param_1;
  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);
  if (local_13c != 0) {
    (*DAT_0017c444)(local_13c);
  }
LAB_0005bcfc:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00115708
ADD ESI,0x120270
PUSH EBX
SUB ESP,0x13c
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x8],EDX
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x12c],EDI
XOR EDI,EDI
TEST EAX,EAX
SETLE BL
TEST EDX,EDX
MOV EDX,dword ptr [ESI + 0x5bc]
SETZ AL
OR EBX,EAX
TEST EDX,EDX
JZ 0x0005bdf0
SUB ESP,0xc
PUSH 0x5
CALL dword ptr [ESI + 0x60c]
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005bdf0
SUB ESP,0xc
PUSH EAX
CALL dword ptr [ESI + 0x614]
ADD ESP,0x10
TEST BL,BL
JNZ 0x0005bd20
CMP byte ptr [ESI + 0x1e98],0x0
JZ 0x0005bd39
LEA EAX,[ESI + 0x1e98]
MOVZX EBP,byte ptr [ESI + 0x1e9a]
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[0x1e98]
MOV dword ptr [ESP + 0x14],EAX
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,EDX
MOV dword ptr [ESP + 0x8],EAX
MOVZX EAX,byte ptr [ESI + 0x1e99]
ADD EAX,0x1
MOV byte ptr [ESP + 0x1b],AL
SUB EAX,EDX
MOV EDI,EAX
MOV EAX,EBP
MOV EBP,dword ptr [ESP + 0x1c]
MOV byte ptr [ESP + 0x4],AL
MOV EAX,EDI
MOV byte ptr [ESP + 0x1a],AL
NOP
MOVZX EAX,byte ptr [ESP + 0x1a]
ADD EAX,EDX
ADD EDX,0x1
MOVZX EAX,AL
LEA ECX,[ESI + EAX*0x1 + 0x1e98]
MOVZX EAX,byte ptr [ECX + 0x3]
ADD byte ptr [ESP + 0x4],AL
MOVZX EDI,byte ptr [ESP + 0x4]
LEA EDI,[ESI + EDI*0x1 + 0x1e98]
MOVZX EBX,byte ptr [EDI + 0x3]
MOV byte ptr [ECX + 0x3],BL
MOV byte ptr [EDI + 0x3],AL
ADD AL,byte ptr [ECX + 0x3]
MOVZX EAX,AL
MOVZX EAX,byte ptr [EAX + EBP*0x1 + 0x3]
MOV byte ptr [EDX + -0x1],AL
CMP EDX,dword ptr [ESP + 0x8]
JNZ 0x0005bc80
MOVZX EDI,byte ptr [ESP + 0xc]
MOVZX EAX,byte ptr [ESP + 0x1b]
MOVZX EBP,byte ptr [ESP + 0x4]
LEA EAX,[EAX + EDI*0x1 + -0x1]
MOV EDI,dword ptr [ESP + 0x14]
MOV byte ptr [EDI + ESI*0x1 + 0x1],AL
MOV EAX,EBP
MOV byte ptr [EDI + ESI*0x1 + 0x2],AL
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0005bcfc
SUB ESP,0xc
PUSH EAX
CALL dword ptr [ESI + 0x61c]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x12c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0005be1a
ADD ESP,0x13c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV byte ptr [ESI + 0x1e98],0x0
PUSH dword ptr [ESP + 0x1c]
CALL dword ptr [ESI + 0x61c]
ADD ESP,0x10
JMP 0x0005bcfc
SUB ESP,0xc
XOR EAX,EAX
PUSH 0x0
MOV word ptr [ESI + 0x1e99],AX
CALL 0x0005baa0
ADD ESP,0xc
LEA EBX,[ESP + 0x30]
PUSH EBX
PUSH 0x100
PUSH EAX
CALL dword ptr [EAX + 0x38]
XOR EAX,EAX
ADD ESP,0x10
LEA ESI,[ESI]
MOV byte ptr [EAX + ESI*0x1 + 0x1e9b],AL
ADD EAX,0x1
CMP EAX,0x100
JNZ 0x0005bd68
MOV dword ptr [ESP + 0x4],EBX
MOVZX EBP,byte ptr [ESI + 0x1e9a]
LEA EDI,[ESI + 0x1e98]
LEA ECX,[0x1e98]
MOV dword ptr [ESP + 0x1c],EDI
LEA EAX,[ESI + 0x1e9b]
LEA EDI,[ESI + 0x1f9b]
MOV dword ptr [ESP + 0x14],ECX
MOV ECX,EBP
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EDX,dword ptr [ESP + 0x4]
MOVZX EBX,byte ptr [EAX]
ADD EAX,0x1
ADD dword ptr [ESP + 0x4],0x1
ADD BL,byte ptr [EDX]
MOVZX EDX,byte ptr [EAX + -0x1]
ADD ECX,EBX
MOVZX EBX,CL
LEA EBX,[ESI + EBX*0x1 + 0x1e98]
MOVZX EBP,byte ptr [EBX + 0x3]
MOV byte ptr [EBX + 0x3],DL
MOV EDX,EBP
MOV byte ptr [EAX + -0x1],DL
CMP EDI,EAX
JNZ 0x0005bdb0
MOV EAX,dword ptr [ESP + 0x14]
MOV EBP,ECX
MOV byte ptr [EAX + ESI*0x1],0x1
JMP 0x0005bc4e
TEST BL,BL
JNZ 0x0005be0e
CMP byte ptr [ESI + 0x1e98],0x0
MOV dword ptr [ESP + 0x10],0x0
JNZ 0x0005bc33
JMP 0x0005bd39
MOV byte ptr [ESI + 0x1e98],0x0
JMP 0x0005bcfc
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005bbb0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_148;" primitive_type (pointer_declarator "*local_148" * identifier) ;) (declaration "char local_140;" primitive_type identifier ;) (declaration "int local_13c;" primitive_type identifier ;) (declaration "char local_120 [256];" primitive_type (array_declarator "local_120 [256]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (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 ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" if (parenthesized_expression "((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0))" ( (binary_expression "(DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)" (parenthesized_expression "(DAT_0017c3e4 == 0)" ( (binary_expression "DAT_0017c3e4 == 0" identifier == number_literal) )) || (parenthesized_expression "(local_13c = (*DAT_0017c434)(5), local_13c == 0)" ( (comma_expression "local_13c = (*DAT_0017c434)(5), local_13c == 0" (assignment_expression "local_13c = (*DAT_0017c434)(5)" identifier = (call_expression "(*DAT_0017c434)(5)" (parenthesized_expression "(*DAT_0017c434)" ( (pointer_expression "*DAT_0017c434" * identifier) )) (argument_list "(5)" ( number_literal )))) , (binary_expression "local_13c == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }" { (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" ( (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" identifier < number_literal) || (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" { (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (expression_statement "local_13c = 0;" (assignment_expression "local_13c = 0" identifier = number_literal) ;) (if_statement "if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;" if (parenthesized_expression "(DAT_0017dcc0 == '\0')" ( (binary_expression "DAT_0017dcc0 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bd39;" goto statement_identifier ;)) (labeled_statement "LAB_0005bc33:\n    bVar8 = DAT_0017dcc2;" statement_identifier : (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" identifier = identifier) ;)) }) (else_clause "else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" else (compound_statement "{\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" { (expression_statement "(*DAT_0017c43c)(local_13c);" (call_expression "(*DAT_0017c43c)(local_13c)" (parenthesized_expression "(*DAT_0017c43c)" ( (pointer_expression "*DAT_0017c43c" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" ( (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" identifier < number_literal) || (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" { (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (if_statement "if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;" if (parenthesized_expression "(DAT_0017dcc0 != '\0')" ( (binary_expression "DAT_0017dcc0 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bc33;" goto statement_identifier ;)) (labeled_statement "LAB_0005bd39:\n    _DAT_0017dcc1 = 0;" statement_identifier : (expression_statement "_DAT_0017dcc1 = 0;" (assignment_expression "_DAT_0017dcc1 = 0" identifier = number_literal) ;)) (expression_statement "iVar3 = FUN_0005baa0(0);" (assignment_expression "iVar3 = FUN_0005baa0(0)" identifier = (call_expression "FUN_0005baa0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);" (call_expression "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120)" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" ( (pointer_expression "**(code **)(iVar3 + 0x38)" * (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) )) (argument_list "(iVar3,0x100,local_120)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);" do (compound_statement "{\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "(&DAT_0017dcc3)[iVar3] = (char)iVar3;" (assignment_expression "(&DAT_0017dcc3)[iVar3] = (char)iVar3" (subscript_expression "(&DAT_0017dcc3)[iVar3]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (cast_expression "(char)iVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0x100)" ( (binary_expression "iVar3 != 0x100" identifier != number_literal) )) ;) (expression_statement "pcVar4 = &DAT_0017dcc3;" (assignment_expression "pcVar4 = &DAT_0017dcc3" identifier = (pointer_expression "&DAT_0017dcc3" & identifier)) ;) (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" identifier = identifier) ;) (expression_statement "local_148 = local_120;" (assignment_expression "local_148 = local_120" identifier = identifier) ;) (do_statement "do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);" do (compound_statement "{\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    }" { (expression_statement "pcVar5 = pcVar4 + 1;" (assignment_expression "pcVar5 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar8 = bVar8 + *pcVar4 + *local_148;" (assignment_expression "bVar8 = bVar8 + *pcVar4 + *local_148" identifier = (binary_expression "bVar8 + *pcVar4 + *local_148" (binary_expression "bVar8 + *pcVar4" identifier + (pointer_expression "*pcVar4" * identifier)) + (pointer_expression "*local_148" * identifier))) ;) (expression_statement "cVar1 = (&DAT_0017dcc3)[bVar8];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[bVar8]" identifier = (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ;) (expression_statement "(&DAT_0017dcc3)[bVar8] = *pcVar4;" (assignment_expression "(&DAT_0017dcc3)[bVar8] = *pcVar4" (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (expression_statement "local_148 = local_148 + 1;" (assignment_expression "local_148 = local_148 + 1" identifier = (binary_expression "local_148 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar5 != &DAT_0017ddc3)" ( (binary_expression "pcVar5 != &DAT_0017ddc3" identifier != (pointer_expression "&DAT_0017ddc3" & identifier)) )) ;) (expression_statement "DAT_0017dcc0 = '\x01';" (assignment_expression "DAT_0017dcc0 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" identifier = identifier) ;) (expression_statement "local_148._0_1_ = bVar8;" (assignment_expression "local_148._0_1_ = bVar8" (field_expression "local_148._0_1_" identifier . field_identifier) = identifier) ;) (do_statement "do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);" do (compound_statement "{\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;" (assignment_expression "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" identifier = (binary_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" (call_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" ( (binary_expression "puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" identifier + (call_expression "(byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((DAT_0017dcc1 + '\x01') - (char)param_2)" ( (binary_expression "(DAT_0017dcc1 + '\x01') - (char)param_2" (parenthesized_expression "(DAT_0017dcc1 + '\x01')" ( (binary_expression "DAT_0017dcc1 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence ')) )) - (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ))) & number_literal)) ;) (expression_statement "cVar1 = (&DAT_0017dcc3)[uVar2];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[uVar2]" identifier = (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ;) (expression_statement "local_148._0_1_ = (byte)local_148 + cVar1;" (assignment_expression "local_148._0_1_ = (byte)local_148 + cVar1" (field_expression "local_148._0_1_" identifier . field_identifier) = (binary_expression "(byte)local_148 + cVar1" (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) + identifier)) ;) (expression_statement "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];" (assignment_expression "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148]" (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ])) ;) (expression_statement "(&DAT_0017dcc3)[(byte)local_148] = cVar1;" (assignment_expression "(&DAT_0017dcc3)[(byte)local_148] = cVar1" (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ]) = identifier) ;) (expression_statement "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];" (assignment_expression "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (pointer_expression "*puVar6" * identifier) = (subscript_expression "(&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (call_expression "(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 + (&DAT_0017dcc3)[uVar2])" ( (binary_expression "cVar1 + (&DAT_0017dcc3)[uVar2]" identifier + (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ))) ])) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != param_2 + param_1)" ( (binary_expression "puVar7 != param_2 + param_1" identifier != (binary_expression "param_2 + param_1" identifier + identifier)) )) ;) (expression_statement "local_140 = (char)param_1;" (assignment_expression "local_140 = (char)param_1" identifier = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);" (assignment_expression "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" identifier = (call_expression "CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" identifier (argument_list "((byte)local_148,DAT_0017dcc1 + local_140)" ( (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) , (binary_expression "DAT_0017dcc1 + local_140" identifier + identifier) )))) ;) (if_statement "if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }" if (parenthesized_expression "(local_13c != 0)" ( (binary_expression "local_13c != 0" identifier != number_literal) )) (compound_statement "{\n    (*DAT_0017c444)(local_13c);\n  }" { (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) })) (labeled_statement "LAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\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                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 sqlite3_randomness(int N,void *pBuf)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uint uVar3;\n  sqlite3_vfs *psVar4;\n  int iVar5;\n  uchar *puVar6;\n  uchar *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  sqlite3_mutex *local_13c;\n  char k [256];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)) {\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = (sqlite3_mutex *)0x0;\n    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = sqlite3Prng.j;\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }\n  puVar6 = (uchar *)pBuf;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;\n    uVar1 = sqlite3Prng.s[uVar3];\n    local_148._0_1_ = (byte)local_148 + uVar1;\n    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];\n    sqlite3Prng.s[(byte)local_148] = uVar1;\n    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];\n    puVar6 = puVar7;\n  } while (puVar7 != (uchar *)(N + (int)pBuf));\n  local_140 = (char)N;\n  sqlite3Prng.j = (byte)local_148;\n  sqlite3Prng.i = sqlite3Prng.i + local_140;\n  if (local_13c != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n  }\nLAB_0005bcfc:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 sqlite3_randomness(int N,void *pBuf)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uint uVar3;\n  sqlite3_vfs *psVar4;\n  int iVar5;\n  uchar *puVar6;\n  uchar *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  sqlite3_mutex *local_13c;\n  char k [256];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)) {\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = (sqlite3_mutex *)0x0;\n    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = sqlite3Prng.j;\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }\n  puVar6 = (uchar *)pBuf;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;\n    uVar1 = sqlite3Prng.s[uVar3];\n    local_148._0_1_ = (byte)local_148 + uVar1;\n    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];\n    sqlite3Prng.s[(byte)local_148] = uVar1;\n    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];\n    puVar6 = puVar7;\n  } while (puVar7 != (uchar *)(N + (int)pBuf));\n  local_140 = (char)N;\n  sqlite3Prng.j = (byte)local_148;\n  sqlite3Prng.i = sqlite3Prng.i + local_140;\n  if (local_13c != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n  }\nLAB_0005bcfc:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3_randomness(int N,void *pBuf)" identifier (parameter_list "(int N,void *pBuf)" ( (parameter_declaration "int N" primitive_type identifier) , (parameter_declaration "void *pBuf" primitive_type (pointer_declarator "*pBuf" * identifier)) ))) (compound_statement "{\n  uchar uVar1;\n  int iVar2;\n  uint uVar3;\n  sqlite3_vfs *psVar4;\n  int iVar5;\n  uchar *puVar6;\n  uchar *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  sqlite3_mutex *local_13c;\n  char k [256];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)) {\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = (sqlite3_mutex *)0x0;\n    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = sqlite3Prng.j;\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }\n  puVar6 = (uchar *)pBuf;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;\n    uVar1 = sqlite3Prng.s[uVar3];\n    local_148._0_1_ = (byte)local_148 + uVar1;\n    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];\n    sqlite3Prng.s[(byte)local_148] = uVar1;\n    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];\n    puVar6 = puVar7;\n  } while (puVar7 != (uchar *)(N + (int)pBuf));\n  local_140 = (char)N;\n  sqlite3Prng.j = (byte)local_148;\n  sqlite3Prng.i = sqlite3Prng.i + local_140;\n  if (local_13c != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n  }\nLAB_0005bcfc:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "sqlite3_vfs *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uchar *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uchar *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_148;" primitive_type (pointer_declarator "*local_148" * identifier) ;) (declaration "char local_140;" primitive_type identifier ;) (declaration "sqlite3_mutex *local_13c;" type_identifier (pointer_declarator "*local_13c" * identifier) ;) (declaration "char k [256];" primitive_type (array_declarator "k [256]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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 ((sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)) {\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = (sqlite3_mutex *)0x0;\n    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = sqlite3Prng.j;\n  }\n  else {\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }" if (parenthesized_expression "((sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0))" ( (binary_expression "(sqlite3Config.bCoreMutex == 0) ||\n     (local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)" (parenthesized_expression "(sqlite3Config.bCoreMutex == 0)" ( (binary_expression "sqlite3Config.bCoreMutex == 0" (field_expression "sqlite3Config.bCoreMutex" identifier . field_identifier) == number_literal) )) || (parenthesized_expression "(local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0)" ( (comma_expression "local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5), local_13c == (sqlite3_mutex *)0x0" (assignment_expression "local_13c = (*sqlite3Config.mutex.xMutexAlloc)(5)" identifier = (call_expression "(*sqlite3Config.mutex.xMutexAlloc)(5)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexAlloc)" ( (pointer_expression "*sqlite3Config.mutex.xMutexAlloc" * (field_expression "sqlite3Config.mutex.xMutexAlloc" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(5)" ( number_literal )))) , (binary_expression "local_13c == (sqlite3_mutex *)0x0" identifier == (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = (sqlite3_mutex *)0x0;\n    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = sqlite3Prng.j;\n  }" { (if_statement "if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(N < 1 || pBuf == (void *)0x0)" ( (binary_expression "N < 1 || pBuf == (void *)0x0" (binary_expression "N < 1" identifier < number_literal) || (binary_expression "pBuf == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      sqlite3Prng.isInit = '\0';\n      goto LAB_0005bcfc;\n    }" { (expression_statement "sqlite3Prng.isInit = '\0';" (assignment_expression "sqlite3Prng.isInit = '\0'" (field_expression "sqlite3Prng.isInit" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (expression_statement "local_13c = (sqlite3_mutex *)0x0;" (assignment_expression "local_13c = (sqlite3_mutex *)0x0" identifier = (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;" if (parenthesized_expression "(sqlite3Prng.isInit == '\0')" ( (binary_expression "sqlite3Prng.isInit == '\0'" (field_expression "sqlite3Prng.isInit" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bd39;" goto statement_identifier ;)) (labeled_statement "LAB_0005bc33:\n    bVar8 = sqlite3Prng.j;" statement_identifier : (expression_statement "bVar8 = sqlite3Prng.j;" (assignment_expression "bVar8 = sqlite3Prng.j" identifier = (field_expression "sqlite3Prng.j" identifier . field_identifier)) ;)) }) (else_clause "else {\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }" else (compound_statement "{\n    (*sqlite3Config.mutex.xMutexEnter)(local_13c);\n    if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    sqlite3Prng.i = '\0';\n    sqlite3Prng.j = '\0';\n    psVar4 = sqlite3_vfs_find((char *)0x0);\n    (*psVar4->xRandomness)(psVar4,0x100,k);\n    iVar5 = 0;\n    do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);\n    puVar6 = sqlite3Prng.s;\n    bVar8 = sqlite3Prng.j;\n    local_148 = k;\n    do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);\n    sqlite3Prng.isInit = '\x01';\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(local_13c);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(local_13c)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexEnter)" ( (pointer_expression "*sqlite3Config.mutex.xMutexEnter" * (field_expression "sqlite3Config.mutex.xMutexEnter" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(local_13c)" ( identifier ))) ;) (if_statement "if (N < 1 || pBuf == (void *)0x0) {\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(N < 1 || pBuf == (void *)0x0)" ( (binary_expression "N < 1 || pBuf == (void *)0x0" (binary_expression "N < 1" identifier < number_literal) || (binary_expression "pBuf == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      sqlite3Prng.isInit = '\0';\n      (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n      goto LAB_0005bcfc;\n    }" { (expression_statement "sqlite3Prng.isInit = '\0';" (assignment_expression "sqlite3Prng.isInit = '\0'" (field_expression "sqlite3Prng.isInit" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(local_13c);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(local_13c)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(local_13c)" ( identifier ))) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (if_statement "if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;" if (parenthesized_expression "(sqlite3Prng.isInit != '\0')" ( (binary_expression "sqlite3Prng.isInit != '\0'" (field_expression "sqlite3Prng.isInit" identifier . field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bc33;" goto statement_identifier ;)) (labeled_statement "LAB_0005bd39:\n    sqlite3Prng.i = '\0';" statement_identifier : (expression_statement "sqlite3Prng.i = '\0';" (assignment_expression "sqlite3Prng.i = '\0'" (field_expression "sqlite3Prng.i" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "sqlite3Prng.j = '\0';" (assignment_expression "sqlite3Prng.j = '\0'" (field_expression "sqlite3Prng.j" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar4 = sqlite3_vfs_find((char *)0x0);" (assignment_expression "psVar4 = sqlite3_vfs_find((char *)0x0)" identifier = (call_expression "sqlite3_vfs_find((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "(*psVar4->xRandomness)(psVar4,0x100,k);" (call_expression "(*psVar4->xRandomness)(psVar4,0x100,k)" (parenthesized_expression "(*psVar4->xRandomness)" ( (pointer_expression "*psVar4->xRandomness" * (field_expression "psVar4->xRandomness" identifier -> field_identifier)) )) (argument_list "(psVar4,0x100,k)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 != 0x100);" do (compound_statement "{\n      sqlite3Prng.s[iVar5] = (uchar)iVar5;\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "sqlite3Prng.s[iVar5] = (uchar)iVar5;" (assignment_expression "sqlite3Prng.s[iVar5] = (uchar)iVar5" (subscript_expression "sqlite3Prng.s[iVar5]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ]) = (cast_expression "(uchar)iVar5" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x100)" ( (binary_expression "iVar5 != 0x100" identifier != number_literal) )) ;) (expression_statement "puVar6 = sqlite3Prng.s;" (assignment_expression "puVar6 = sqlite3Prng.s" identifier = (field_expression "sqlite3Prng.s" identifier . field_identifier)) ;) (expression_statement "bVar8 = sqlite3Prng.j;" (assignment_expression "bVar8 = sqlite3Prng.j" identifier = (field_expression "sqlite3Prng.j" identifier . field_identifier)) ;) (expression_statement "local_148 = k;" (assignment_expression "local_148 = k" identifier = identifier) ;) (do_statement "do {\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    } while (puVar7 != &DAT_0017ddc3);" do (compound_statement "{\n      puVar7 = puVar6 + 1;\n      bVar8 = bVar8 + *puVar6 + *local_148;\n      uVar1 = sqlite3Prng.s[bVar8];\n      sqlite3Prng.s[bVar8] = *puVar6;\n      *puVar6 = uVar1;\n      puVar6 = puVar7;\n      local_148 = local_148 + 1;\n    }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar8 = bVar8 + *puVar6 + *local_148;" (assignment_expression "bVar8 = bVar8 + *puVar6 + *local_148" identifier = (binary_expression "bVar8 + *puVar6 + *local_148" (binary_expression "bVar8 + *puVar6" identifier + (pointer_expression "*puVar6" * identifier)) + (pointer_expression "*local_148" * identifier))) ;) (expression_statement "uVar1 = sqlite3Prng.s[bVar8];" (assignment_expression "uVar1 = sqlite3Prng.s[bVar8]" identifier = (subscript_expression "sqlite3Prng.s[bVar8]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ])) ;) (expression_statement "sqlite3Prng.s[bVar8] = *puVar6;" (assignment_expression "sqlite3Prng.s[bVar8] = *puVar6" (subscript_expression "sqlite3Prng.s[bVar8]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "*puVar6 = uVar1;" (assignment_expression "*puVar6 = uVar1" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) (expression_statement "local_148 = local_148 + 1;" (assignment_expression "local_148 = local_148 + 1" identifier = (binary_expression "local_148 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != &DAT_0017ddc3)" ( (binary_expression "puVar7 != &DAT_0017ddc3" identifier != (pointer_expression "&DAT_0017ddc3" & identifier)) )) ;) (expression_statement "sqlite3Prng.isInit = '\x01';" (assignment_expression "sqlite3Prng.isInit = '\x01'" (field_expression "sqlite3Prng.isInit" identifier . field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "puVar6 = (uchar *)pBuf;" (assignment_expression "puVar6 = (uchar *)pBuf" identifier = (cast_expression "(uchar *)pBuf" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_148._0_1_ = bVar8;" (assignment_expression "local_148._0_1_ = bVar8" (field_expression "local_148._0_1_" identifier . field_identifier) = identifier) ;) (do_statement "do {\n    puVar7 = puVar6 + 1;\n    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;\n    uVar1 = sqlite3Prng.s[uVar3];\n    local_148._0_1_ = (byte)local_148 + uVar1;\n    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];\n    sqlite3Prng.s[(byte)local_148] = uVar1;\n    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];\n    puVar6 = puVar7;\n  } while (puVar7 != (uchar *)(N + (int)pBuf));" do (compound_statement "{\n    puVar7 = puVar6 + 1;\n    uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;\n    uVar1 = sqlite3Prng.s[uVar3];\n    local_148._0_1_ = (byte)local_148 + uVar1;\n    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];\n    sqlite3Prng.s[(byte)local_148] = uVar1;\n    *puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];\n    puVar6 = puVar7;\n  }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff;" (assignment_expression "uVar3 = (uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff" identifier = (binary_expression "(uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)) & 0xff" (call_expression "(uint)(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf))" ( (binary_expression "puVar6 + (byte)((sqlite3Prng.i + '\x01') - (char)pBuf)" identifier + (call_expression "(byte)((sqlite3Prng.i + '\x01') - (char)pBuf)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((sqlite3Prng.i + '\x01') - (char)pBuf)" ( (binary_expression "(sqlite3Prng.i + '\x01') - (char)pBuf" (parenthesized_expression "(sqlite3Prng.i + '\x01')" ( (binary_expression "sqlite3Prng.i + '\x01'" (field_expression "sqlite3Prng.i" identifier . field_identifier) + (char_literal "'\x01'" ' escape_sequence ')) )) - (cast_expression "(char)pBuf" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ))) & number_literal)) ;) (expression_statement "uVar1 = sqlite3Prng.s[uVar3];" (assignment_expression "uVar1 = sqlite3Prng.s[uVar3]" identifier = (subscript_expression "sqlite3Prng.s[uVar3]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ])) ;) (expression_statement "local_148._0_1_ = (byte)local_148 + uVar1;" (assignment_expression "local_148._0_1_ = (byte)local_148 + uVar1" (field_expression "local_148._0_1_" identifier . field_identifier) = (binary_expression "(byte)local_148 + uVar1" (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) + identifier)) ;) (expression_statement "sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148];" (assignment_expression "sqlite3Prng.s[uVar3] = sqlite3Prng.s[(byte)local_148]" (subscript_expression "sqlite3Prng.s[uVar3]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ]) = (subscript_expression "sqlite3Prng.s[(byte)local_148]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ])) ;) (expression_statement "sqlite3Prng.s[(byte)local_148] = uVar1;" (assignment_expression "sqlite3Prng.s[(byte)local_148] = uVar1" (subscript_expression "sqlite3Prng.s[(byte)local_148]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ]) = identifier) ;) (expression_statement "*puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])];" (assignment_expression "*puVar6 = sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])]" (pointer_expression "*puVar6" * identifier) = (subscript_expression "sqlite3Prng.s[(byte)(uVar1 + sqlite3Prng.s[uVar3])]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ (call_expression "(byte)(uVar1 + sqlite3Prng.s[uVar3])" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 + sqlite3Prng.s[uVar3])" ( (binary_expression "uVar1 + sqlite3Prng.s[uVar3]" identifier + (subscript_expression "sqlite3Prng.s[uVar3]" (field_expression "sqlite3Prng.s" identifier . field_identifier) [ identifier ])) ))) ])) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != (uchar *)(N + (int)pBuf))" ( (binary_expression "puVar7 != (uchar *)(N + (int)pBuf)" identifier != (cast_expression "(uchar *)(N + (int)pBuf)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(N + (int)pBuf)" ( (binary_expression "N + (int)pBuf" identifier + (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) ;) (expression_statement "local_140 = (char)N;" (assignment_expression "local_140 = (char)N" identifier = (cast_expression "(char)N" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "sqlite3Prng.j = (byte)local_148;" (assignment_expression "sqlite3Prng.j = (byte)local_148" (field_expression "sqlite3Prng.j" identifier . field_identifier) = (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "sqlite3Prng.i = sqlite3Prng.i + local_140;" (assignment_expression "sqlite3Prng.i = sqlite3Prng.i + local_140" (field_expression "sqlite3Prng.i" identifier . field_identifier) = (binary_expression "sqlite3Prng.i + local_140" (field_expression "sqlite3Prng.i" identifier . field_identifier) + identifier)) ;) (if_statement "if (local_13c != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n  }" if (parenthesized_expression "(local_13c != (sqlite3_mutex *)0x0)" ( (binary_expression "local_13c != (sqlite3_mutex *)0x0" identifier != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexLeave)(local_13c);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(local_13c);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(local_13c)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(local_13c)" ( identifier ))) ;) })) (labeled_statement "LAB_0005bcfc:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005bbb0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_148;" primitive_type (pointer_declarator "*local_148" * identifier) ;) (declaration "char local_140;" primitive_type identifier ;) (declaration "int local_13c;" primitive_type identifier ;) (declaration "char local_120 [256];" primitive_type (array_declarator "local_120 [256]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (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 ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" if (parenthesized_expression "((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0))" ( (binary_expression "(DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)" (parenthesized_expression "(DAT_0017c3e4 == 0)" ( (binary_expression "DAT_0017c3e4 == 0" identifier == number_literal) )) || (parenthesized_expression "(local_13c = (*DAT_0017c434)(5), local_13c == 0)" ( (comma_expression "local_13c = (*DAT_0017c434)(5), local_13c == 0" (assignment_expression "local_13c = (*DAT_0017c434)(5)" identifier = (call_expression "(*DAT_0017c434)(5)" (parenthesized_expression "(*DAT_0017c434)" ( (pointer_expression "*DAT_0017c434" * identifier) )) (argument_list "(5)" ( number_literal )))) , (binary_expression "local_13c == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }" { (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" ( (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" identifier < number_literal) || (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" { (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (expression_statement "local_13c = 0;" (assignment_expression "local_13c = 0" identifier = number_literal) ;) (if_statement "if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;" if (parenthesized_expression "(DAT_0017dcc0 == '\0')" ( (binary_expression "DAT_0017dcc0 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bd39;" goto statement_identifier ;)) (labeled_statement "LAB_0005bc33:\n    bVar8 = DAT_0017dcc2;" statement_identifier : (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" identifier = identifier) ;)) }) (else_clause "else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" else (compound_statement "{\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" { (expression_statement "(*DAT_0017c43c)(local_13c);" (call_expression "(*DAT_0017c43c)(local_13c)" (parenthesized_expression "(*DAT_0017c43c)" ( (pointer_expression "*DAT_0017c43c" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" if (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" ( (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" identifier < number_literal) || (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" { (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) (goto_statement "goto LAB_0005bcfc;" goto statement_identifier ;) })) (if_statement "if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;" if (parenthesized_expression "(DAT_0017dcc0 != '\0')" ( (binary_expression "DAT_0017dcc0 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0005bc33;" goto statement_identifier ;)) (labeled_statement "LAB_0005bd39:\n    _DAT_0017dcc1 = 0;" statement_identifier : (expression_statement "_DAT_0017dcc1 = 0;" (assignment_expression "_DAT_0017dcc1 = 0" identifier = number_literal) ;)) (expression_statement "iVar3 = FUN_0005baa0(0);" (assignment_expression "iVar3 = FUN_0005baa0(0)" identifier = (call_expression "FUN_0005baa0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);" (call_expression "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120)" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" ( (pointer_expression "**(code **)(iVar3 + 0x38)" * (pointer_expression "*(code **)(iVar3 + 0x38)" * (cast_expression "(code **)(iVar3 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) ))))) )) (argument_list "(iVar3,0x100,local_120)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);" do (compound_statement "{\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "(&DAT_0017dcc3)[iVar3] = (char)iVar3;" (assignment_expression "(&DAT_0017dcc3)[iVar3] = (char)iVar3" (subscript_expression "(&DAT_0017dcc3)[iVar3]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (cast_expression "(char)iVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0x100)" ( (binary_expression "iVar3 != 0x100" identifier != number_literal) )) ;) (expression_statement "pcVar4 = &DAT_0017dcc3;" (assignment_expression "pcVar4 = &DAT_0017dcc3" identifier = (pointer_expression "&DAT_0017dcc3" & identifier)) ;) (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" identifier = identifier) ;) (expression_statement "local_148 = local_120;" (assignment_expression "local_148 = local_120" identifier = identifier) ;) (do_statement "do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);" do (compound_statement "{\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    }" { (expression_statement "pcVar5 = pcVar4 + 1;" (assignment_expression "pcVar5 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar8 = bVar8 + *pcVar4 + *local_148;" (assignment_expression "bVar8 = bVar8 + *pcVar4 + *local_148" identifier = (binary_expression "bVar8 + *pcVar4 + *local_148" (binary_expression "bVar8 + *pcVar4" identifier + (pointer_expression "*pcVar4" * identifier)) + (pointer_expression "*local_148" * identifier))) ;) (expression_statement "cVar1 = (&DAT_0017dcc3)[bVar8];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[bVar8]" identifier = (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ;) (expression_statement "(&DAT_0017dcc3)[bVar8] = *pcVar4;" (assignment_expression "(&DAT_0017dcc3)[bVar8] = *pcVar4" (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (expression_statement "local_148 = local_148 + 1;" (assignment_expression "local_148 = local_148 + 1" identifier = (binary_expression "local_148 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar5 != &DAT_0017ddc3)" ( (binary_expression "pcVar5 != &DAT_0017ddc3" identifier != (pointer_expression "&DAT_0017ddc3" & identifier)) )) ;) (expression_statement "DAT_0017dcc0 = '\x01';" (assignment_expression "DAT_0017dcc0 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" identifier = identifier) ;) (expression_statement "local_148._0_1_ = bVar8;" (assignment_expression "local_148._0_1_ = bVar8" (field_expression "local_148._0_1_" identifier . field_identifier) = identifier) ;) (do_statement "do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);" do (compound_statement "{\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;" (assignment_expression "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" identifier = (binary_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" (call_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" ( (binary_expression "puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" identifier + (call_expression "(byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((DAT_0017dcc1 + '\x01') - (char)param_2)" ( (binary_expression "(DAT_0017dcc1 + '\x01') - (char)param_2" (parenthesized_expression "(DAT_0017dcc1 + '\x01')" ( (binary_expression "DAT_0017dcc1 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence ')) )) - (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) )))) ))) & number_literal)) ;) (expression_statement "cVar1 = (&DAT_0017dcc3)[uVar2];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[uVar2]" identifier = (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ;) (expression_statement "local_148._0_1_ = (byte)local_148 + cVar1;" (assignment_expression "local_148._0_1_ = (byte)local_148 + cVar1" (field_expression "local_148._0_1_" identifier . field_identifier) = (binary_expression "(byte)local_148 + cVar1" (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) + identifier)) ;) (expression_statement "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];" (assignment_expression "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148]" (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ]) = (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ])) ;) (expression_statement "(&DAT_0017dcc3)[(byte)local_148] = cVar1;" (assignment_expression "(&DAT_0017dcc3)[(byte)local_148] = cVar1" (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) ]) = identifier) ;) (expression_statement "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];" (assignment_expression "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (pointer_expression "*puVar6" * identifier) = (subscript_expression "(&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ (call_expression "(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 + (&DAT_0017dcc3)[uVar2])" ( (binary_expression "cVar1 + (&DAT_0017dcc3)[uVar2]" identifier + (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" ( (pointer_expression "&DAT_0017dcc3" & identifier) )) [ identifier ])) ))) ])) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(puVar7 != param_2 + param_1)" ( (binary_expression "puVar7 != param_2 + param_1" identifier != (binary_expression "param_2 + param_1" identifier + identifier)) )) ;) (expression_statement "local_140 = (char)param_1;" (assignment_expression "local_140 = (char)param_1" identifier = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);" (assignment_expression "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" identifier = (call_expression "CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" identifier (argument_list "((byte)local_148,DAT_0017dcc1 + local_140)" ( (cast_expression "(byte)local_148" ( (type_descriptor "byte" type_identifier) ) identifier) , (binary_expression "DAT_0017dcc1 + local_140" identifier + identifier) )))) ;) (if_statement "if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }" if (parenthesized_expression "(local_13c != 0)" ( (binary_expression "local_13c != 0" identifier != number_literal) )) (compound_statement "{\n    (*DAT_0017c444)(local_13c);\n  }" { (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(local_13c)" ( identifier ))) ;) })) (labeled_statement "LAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\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                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < LIT) || (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < LIT) || (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * IDENT)) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + (char_literal ' escape_sequence ')) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ))) & LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ])) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ))) ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005bbb0(int param_1,undefined1 *param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005bbb0(int param_1,undefined1 *param_2)" (identifier "FUN_0005bbb0") (parameter_list "(int param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined1 *puVar6;\n  undefined1 *puVar7;\n  byte bVar8;\n  int in_GS_OFFSET;\n  char *local_148;\n  char local_140;\n  int local_13c;\n  char local_120 [256];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }\n  puVar6 = param_2;\n  local_148._0_1_ = bVar8;\n  do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);\n  local_140 = (char)param_1;\n  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);\n  if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }\nLAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_148;" (primitive_type "char") (pointer_declarator "*local_148" (* "*") (identifier "local_148")) (; ";")) (declaration "char local_140;" (primitive_type "char") (identifier "local_140") (; ";")) (declaration "int local_13c;" (primitive_type "int") (identifier "local_13c") (; ";")) (declaration "char local_120 [256];" (primitive_type "char") (array_declarator "local_120 [256]" (identifier "local_120") ([ "[") (number_literal "256") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (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 ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }\n  else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" (if "if") (parenthesized_expression "((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0))" (( "(") (binary_expression "(DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)" (parenthesized_expression "(DAT_0017c3e4 == 0)" (( "(") (binary_expression "DAT_0017c3e4 == 0" (identifier "DAT_0017c3e4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(local_13c = (*DAT_0017c434)(5), local_13c == 0)" (( "(") (comma_expression "local_13c = (*DAT_0017c434)(5), local_13c == 0" (assignment_expression "local_13c = (*DAT_0017c434)(5)" (identifier "local_13c") (= "=") (call_expression "(*DAT_0017c434)(5)" (parenthesized_expression "(*DAT_0017c434)" (( "(") (pointer_expression "*DAT_0017c434" (* "*") (identifier "DAT_0017c434")) () ")")) (argument_list "(5)" (( "(") (number_literal "5") () ")")))) (, ",") (binary_expression "local_13c == 0" (identifier "local_13c") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }\n    local_13c = 0;\n    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;\nLAB_0005bc33:\n    bVar8 = DAT_0017dcc2;\n  }" ({ "{") (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" (if "if") (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" (( "(") (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" (identifier "param_1") (< "<") (number_literal "1")) (|| "||") (binary_expression "param_2 == (undefined1 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      goto LAB_0005bcfc;\n    }" ({ "{") (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" (identifier "DAT_0017dcc0") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (goto_statement "goto LAB_0005bcfc;" (goto "goto") (statement_identifier "LAB_0005bcfc") (; ";")) (} "}"))) (expression_statement "local_13c = 0;" (assignment_expression "local_13c = 0" (identifier "local_13c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;" (if "if") (parenthesized_expression "(DAT_0017dcc0 == '\0')" (( "(") (binary_expression "DAT_0017dcc0 == '\0'" (identifier "DAT_0017dcc0") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0005bd39;" (goto "goto") (statement_identifier "LAB_0005bd39") (; ";"))) (labeled_statement "LAB_0005bc33:\n    bVar8 = DAT_0017dcc2;" (statement_identifier "LAB_0005bc33") (: ":") (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" (identifier "bVar8") (= "=") (identifier "DAT_0017dcc2")) (; ";"))) (} "}")) (else_clause "else {\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" (else "else") (compound_statement "{\n    (*DAT_0017c43c)(local_13c);\n    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }\n    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;\nLAB_0005bd39:\n    _DAT_0017dcc1 = 0;\n    iVar3 = FUN_0005baa0(0);\n    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);\n    iVar3 = 0;\n    do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);\n    pcVar4 = &DAT_0017dcc3;\n    bVar8 = DAT_0017dcc2;\n    local_148 = local_120;\n    do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);\n    DAT_0017dcc0 = '\x01';\n  }" ({ "{") (expression_statement "(*DAT_0017c43c)(local_13c);" (call_expression "(*DAT_0017c43c)(local_13c)" (parenthesized_expression "(*DAT_0017c43c)" (( "(") (pointer_expression "*DAT_0017c43c" (* "*") (identifier "DAT_0017c43c")) () ")")) (argument_list "(local_13c)" (( "(") (identifier "local_13c") () ")"))) (; ";")) (if_statement "if (param_1 < 1 || param_2 == (undefined1 *)0x0) {\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" (if "if") (parenthesized_expression "(param_1 < 1 || param_2 == (undefined1 *)0x0)" (( "(") (binary_expression "param_1 < 1 || param_2 == (undefined1 *)0x0" (binary_expression "param_1 < 1" (identifier "param_1") (< "<") (number_literal "1")) (|| "||") (binary_expression "param_2 == (undefined1 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n      DAT_0017dcc0 = '\0';\n      (*DAT_0017c444)(local_13c);\n      goto LAB_0005bcfc;\n    }" ({ "{") (expression_statement "DAT_0017dcc0 = '\0';" (assignment_expression "DAT_0017dcc0 = '\0'" (identifier "DAT_0017dcc0") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" (( "(") (pointer_expression "*DAT_0017c444" (* "*") (identifier "DAT_0017c444")) () ")")) (argument_list "(local_13c)" (( "(") (identifier "local_13c") () ")"))) (; ";")) (goto_statement "goto LAB_0005bcfc;" (goto "goto") (statement_identifier "LAB_0005bcfc") (; ";")) (} "}"))) (if_statement "if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;" (if "if") (parenthesized_expression "(DAT_0017dcc0 != '\0')" (( "(") (binary_expression "DAT_0017dcc0 != '\0'" (identifier "DAT_0017dcc0") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0005bc33;" (goto "goto") (statement_identifier "LAB_0005bc33") (; ";"))) (labeled_statement "LAB_0005bd39:\n    _DAT_0017dcc1 = 0;" (statement_identifier "LAB_0005bd39") (: ":") (expression_statement "_DAT_0017dcc1 = 0;" (assignment_expression "_DAT_0017dcc1 = 0" (identifier "_DAT_0017dcc1") (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar3 = FUN_0005baa0(0);" (assignment_expression "iVar3 = FUN_0005baa0(0)" (identifier "iVar3") (= "=") (call_expression "FUN_0005baa0(0)" (identifier "FUN_0005baa0") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);" (call_expression "(**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120)" (parenthesized_expression "(**(code **)(iVar3 + 0x38))" (( "(") (pointer_expression "**(code **)(iVar3 + 0x38)" (* "*") (pointer_expression "*(code **)(iVar3 + 0x38)" (* "*") (cast_expression "(code **)(iVar3 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(iVar3,0x100,local_120)" (( "(") (identifier "iVar3") (, ",") (number_literal "0x100") (, ",") (identifier "local_120") () ")"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 0x100);" (do "do") (compound_statement "{\n      (&DAT_0017dcc3)[iVar3] = (char)iVar3;\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "(&DAT_0017dcc3)[iVar3] = (char)iVar3;" (assignment_expression "(&DAT_0017dcc3)[iVar3] = (char)iVar3" (subscript_expression "(&DAT_0017dcc3)[iVar3]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "iVar3") (] "]")) (= "=") (cast_expression "(char)iVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar3"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0x100)" (( "(") (binary_expression "iVar3 != 0x100" (identifier "iVar3") (!= "!=") (number_literal "0x100")) () ")")) (; ";")) (expression_statement "pcVar4 = &DAT_0017dcc3;" (assignment_expression "pcVar4 = &DAT_0017dcc3" (identifier "pcVar4") (= "=") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3"))) (; ";")) (expression_statement "bVar8 = DAT_0017dcc2;" (assignment_expression "bVar8 = DAT_0017dcc2" (identifier "bVar8") (= "=") (identifier "DAT_0017dcc2")) (; ";")) (expression_statement "local_148 = local_120;" (assignment_expression "local_148 = local_120" (identifier "local_148") (= "=") (identifier "local_120")) (; ";")) (do_statement "do {\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    } while (pcVar5 != &DAT_0017ddc3);" (do "do") (compound_statement "{\n      pcVar5 = pcVar4 + 1;\n      bVar8 = bVar8 + *pcVar4 + *local_148;\n      cVar1 = (&DAT_0017dcc3)[bVar8];\n      (&DAT_0017dcc3)[bVar8] = *pcVar4;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      local_148 = local_148 + 1;\n    }" ({ "{") (expression_statement "pcVar5 = pcVar4 + 1;" (assignment_expression "pcVar5 = pcVar4 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar8 = bVar8 + *pcVar4 + *local_148;" (assignment_expression "bVar8 = bVar8 + *pcVar4 + *local_148" (identifier "bVar8") (= "=") (binary_expression "bVar8 + *pcVar4 + *local_148" (binary_expression "bVar8 + *pcVar4" (identifier "bVar8") (+ "+") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (+ "+") (pointer_expression "*local_148" (* "*") (identifier "local_148")))) (; ";")) (expression_statement "cVar1 = (&DAT_0017dcc3)[bVar8];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[bVar8]" (identifier "cVar1") (= "=") (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "bVar8") (] "]"))) (; ";")) (expression_statement "(&DAT_0017dcc3)[bVar8] = *pcVar4;" (assignment_expression "(&DAT_0017dcc3)[bVar8] = *pcVar4" (subscript_expression "(&DAT_0017dcc3)[bVar8]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "bVar8") (] "]")) (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" (identifier "pcVar4") (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "local_148 = local_148 + 1;" (assignment_expression "local_148 = local_148 + 1" (identifier "local_148") (= "=") (binary_expression "local_148 + 1" (identifier "local_148") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar5 != &DAT_0017ddc3)" (( "(") (binary_expression "pcVar5 != &DAT_0017ddc3" (identifier "pcVar5") (!= "!=") (pointer_expression "&DAT_0017ddc3" (& "&") (identifier "DAT_0017ddc3"))) () ")")) (; ";")) (expression_statement "DAT_0017dcc0 = '\x01';" (assignment_expression "DAT_0017dcc0 = '\x01'" (identifier "DAT_0017dcc0") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (} "}")))) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" (identifier "puVar6") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_148._0_1_ = bVar8;" (assignment_expression "local_148._0_1_ = bVar8" (field_expression "local_148._0_1_" (identifier "local_148") (. ".") (field_identifier "_0_1_")) (= "=") (identifier "bVar8")) (; ";")) (do_statement "do {\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  } while (puVar7 != param_2 + param_1);" (do "do") (compound_statement "{\n    puVar7 = puVar6 + 1;\n    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;\n    cVar1 = (&DAT_0017dcc3)[uVar2];\n    local_148._0_1_ = (byte)local_148 + cVar1;\n    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];\n    (&DAT_0017dcc3)[(byte)local_148] = cVar1;\n    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];\n    puVar6 = puVar7;\n  }" ({ "{") (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;" (assignment_expression "uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" (identifier "uVar2") (= "=") (binary_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff" (call_expression "(uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2))" (( "(") (binary_expression "puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" (identifier "puVar6") (+ "+") (call_expression "(byte)((DAT_0017dcc1 + '\x01') - (char)param_2)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((DAT_0017dcc1 + '\x01') - (char)param_2)" (( "(") (binary_expression "(DAT_0017dcc1 + '\x01') - (char)param_2" (parenthesized_expression "(DAT_0017dcc1 + '\x01')" (( "(") (binary_expression "DAT_0017dcc1 + '\x01'" (identifier "DAT_0017dcc1") (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (- "-") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) () ")")))) () ")"))) (& "&") (number_literal "0xff"))) (; ";")) (expression_statement "cVar1 = (&DAT_0017dcc3)[uVar2];" (assignment_expression "cVar1 = (&DAT_0017dcc3)[uVar2]" (identifier "cVar1") (= "=") (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "uVar2") (] "]"))) (; ";")) (expression_statement "local_148._0_1_ = (byte)local_148 + cVar1;" (assignment_expression "local_148._0_1_ = (byte)local_148 + cVar1" (field_expression "local_148._0_1_" (identifier "local_148") (. ".") (field_identifier "_0_1_")) (= "=") (binary_expression "(byte)local_148 + cVar1" (cast_expression "(byte)local_148" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_148")) (+ "+") (identifier "cVar1"))) (; ";")) (expression_statement "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];" (assignment_expression "(&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148]" (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "uVar2") (] "]")) (= "=") (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (cast_expression "(byte)local_148" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_148")) (] "]"))) (; ";")) (expression_statement "(&DAT_0017dcc3)[(byte)local_148] = cVar1;" (assignment_expression "(&DAT_0017dcc3)[(byte)local_148] = cVar1" (subscript_expression "(&DAT_0017dcc3)[(byte)local_148]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (cast_expression "(byte)local_148" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_148")) (] "]")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];" (assignment_expression "*puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (subscript_expression "(&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (call_expression "(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 + (&DAT_0017dcc3)[uVar2])" (( "(") (binary_expression "cVar1 + (&DAT_0017dcc3)[uVar2]" (identifier "cVar1") (+ "+") (subscript_expression "(&DAT_0017dcc3)[uVar2]" (parenthesized_expression "(&DAT_0017dcc3)" (( "(") (pointer_expression "&DAT_0017dcc3" (& "&") (identifier "DAT_0017dcc3")) () ")")) ([ "[") (identifier "uVar2") (] "]"))) () ")"))) (] "]"))) (; ";")) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" (identifier "puVar6") (= "=") (identifier "puVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != param_2 + param_1)" (( "(") (binary_expression "puVar7 != param_2 + param_1" (identifier "puVar7") (!= "!=") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1"))) () ")")) (; ";")) (expression_statement "local_140 = (char)param_1;" (assignment_expression "local_140 = (char)param_1" (identifier "local_140") (= "=") (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);" (assignment_expression "_DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" (identifier "_DAT_0017dcc1") (= "=") (call_expression "CONCAT11((byte)local_148,DAT_0017dcc1 + local_140)" (identifier "CONCAT11") (argument_list "((byte)local_148,DAT_0017dcc1 + local_140)" (( "(") (cast_expression "(byte)local_148" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_148")) (, ",") (binary_expression "DAT_0017dcc1 + local_140" (identifier "DAT_0017dcc1") (+ "+") (identifier "local_140")) () ")")))) (; ";")) (if_statement "if (local_13c != 0) {\n    (*DAT_0017c444)(local_13c);\n  }" (if "if") (parenthesized_expression "(local_13c != 0)" (( "(") (binary_expression "local_13c != 0" (identifier "local_13c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*DAT_0017c444)(local_13c);\n  }" ({ "{") (expression_statement "(*DAT_0017c444)(local_13c);" (call_expression "(*DAT_0017c444)(local_13c)" (parenthesized_expression "(*DAT_0017c444)" (( "(") (pointer_expression "*DAT_0017c444" (* "*") (identifier "DAT_0017c444")) () ")")) (argument_list "(local_13c)" (( "(") (identifier "local_13c") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0005bcfc:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (statement_identifier "LAB_0005bcfc") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\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                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 function_1(int var_3,void *var_4)

{
  type_1 var_11;
  int var_13;
  type_2 uVar3;
  type_3 *psVar4;
  int var_6;
  type_1 *var_7;
  type_1 *var_10;
  type_4 var_8;
  int var_1;
  char *var_9;
  char var_12;
  type_5 *var_2;
  char k [256];
  
  var_13 = *(int *)(var_1 + 0x14);
  if ((sqlite3Config.bCoreMutex == 0) ||
     (var_2 = (*sqlite3Config.mutex.xMutexAlloc)(5), var_2 == (type_5 *)0x0)) {
    if (var_3 < 1 || var_4 == (void *)0x0) {
      sqlite3Prng.isInit = '\0';
      goto LAB_0005bcfc;
    }
    var_2 = (type_5 *)0x0;
    if (sqlite3Prng.isInit == '\0') goto LAB_0005bd39;
LAB_0005bc33:
    var_8 = sqlite3Prng.j;
  }
  else {
    (*sqlite3Config.mutex.xMutexEnter)(var_2);
    if (var_3 < 1 || var_4 == (void *)0x0) {
      sqlite3Prng.isInit = '\0';
      (*sqlite3Config.mutex.xMutexLeave)(var_2);
      goto LAB_0005bcfc;
    }
    if (sqlite3Prng.isInit != '\0') goto LAB_0005bc33;
LAB_0005bd39:
    sqlite3Prng.i = '\0';
    sqlite3Prng.j = '\0';
    psVar4 = var_5((char *)0x0);
    (*psVar4->xRandomness)(psVar4,0x100,k);
    var_6 = 0;
    do {
      sqlite3Prng.s[var_6] = (type_1)var_6;
      var_6 = var_6 + 1;
    } while (var_6 != 0x100);
    var_7 = sqlite3Prng.s;
    var_8 = sqlite3Prng.j;
    var_9 = k;
    do {
      var_10 = var_7 + 1;
      var_8 = var_8 + *var_7 + *var_9;
      var_11 = sqlite3Prng.s[var_8];
      sqlite3Prng.s[var_8] = *var_7;
      *var_7 = var_11;
      var_7 = var_10;
      var_9 = var_9 + 1;
    } while (var_10 != &DAT_0017ddc3);
    sqlite3Prng.isInit = '\x01';
  }
  var_7 = (type_1 *)var_4;
  var_9._0_1_ = var_8;
  do {
    var_10 = var_7 + 1;
    uVar3 = (type_2)(var_7 + (type_4)((sqlite3Prng.i + '\x01') - (char)var_4)) & 0xff;
    var_11 = sqlite3Prng.s[uVar3];
    var_9._0_1_ = (type_4)var_9 + var_11;
    sqlite3Prng.s[uVar3] = sqlite3Prng.s[(type_4)var_9];
    sqlite3Prng.s[(type_4)var_9] = var_11;
    *var_7 = sqlite3Prng.s[(type_4)(var_11 + sqlite3Prng.s[uVar3])];
    var_7 = var_10;
  } while (var_10 != (type_1 *)(var_3 + (int)var_4));
  var_12 = (char)var_3;
  sqlite3Prng.j = (type_4)var_9;
  sqlite3Prng.i = sqlite3Prng.i + var_12;
  if (var_2 != (type_5 *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(var_2);
  }
LAB_0005bcfc:
  if (var_13 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm3 MASKED(int param_1,undefined1 *param_2)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  undefined1 *puVar6;
  undefined1 *puVar7;
  byte bVar8;
  int in_GS_OFFSET;
  char *local_148;
  char local_140;
  int local_13c;
  char local_120 [256];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((DAT_0017c3e4 == 0) || (local_13c = (*DAT_0017c434)(5), local_13c == 0)) {
    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {
      DAT_0017dcc0 = '\0';
      goto LAB_0005bcfc;
    }
    local_13c = 0;
    if (DAT_0017dcc0 == '\0') goto LAB_0005bd39;
LAB_0005bc33:
    bVar8 = DAT_0017dcc2;
  }
  else {
    (*DAT_0017c43c)(local_13c);
    if (param_1 < 1 || param_2 == (undefined1 *)0x0) {
      DAT_0017dcc0 = '\0';
      (*DAT_0017c444)(local_13c);
      goto LAB_0005bcfc;
    }
    if (DAT_0017dcc0 != '\0') goto LAB_0005bc33;
LAB_0005bd39:
    _DAT_0017dcc1 = 0;
    iVar3 = FUN_0005baa0(0);
    (**(code **)(iVar3 + 0x38))(iVar3,0x100,local_120);
    iVar3 = 0;
    do {
      (&DAT_0017dcc3)[iVar3] = (char)iVar3;
      iVar3 = iVar3 + 1;
    } while (iVar3 != 0x100);
    pcVar4 = &DAT_0017dcc3;
    bVar8 = DAT_0017dcc2;
    local_148 = local_120;
    do {
      pcVar5 = pcVar4 + 1;
      bVar8 = bVar8 + *pcVar4 + *local_148;
      cVar1 = (&DAT_0017dcc3)[bVar8];
      (&DAT_0017dcc3)[bVar8] = *pcVar4;
      *pcVar4 = cVar1;
      pcVar4 = pcVar5;
      local_148 = local_148 + 1;
    } while (pcVar5 != &DAT_0017ddc3);
    DAT_0017dcc0 = '\x01';
  }
  puVar6 = param_2;
  local_148._0_1_ = bVar8;
  do {
    puVar7 = puVar6 + 1;
    uVar2 = (uint)(puVar6 + (byte)((DAT_0017dcc1 + '\x01') - (char)param_2)) & 0xff;
    cVar1 = (&DAT_0017dcc3)[uVar2];
    local_148._0_1_ = (byte)local_148 + cVar1;
    (&DAT_0017dcc3)[uVar2] = (&DAT_0017dcc3)[(byte)local_148];
    (&DAT_0017dcc3)[(byte)local_148] = cVar1;
    *puVar6 = (&DAT_0017dcc3)[(byte)(cVar1 + (&DAT_0017dcc3)[uVar2])];
    puVar6 = puVar7;
  } while (puVar7 != param_2 + param_1);
  local_140 = (char)param_1;
  _DAT_0017dcc1 = CONCAT11((byte)local_148,DAT_0017dcc1 + local_140);
  if (local_13c != 0) {
    (*DAT_0017c444)(local_13c);
  }
LAB_0005bcfc:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}

