
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::codecvt<wchar_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,
   unsigned int) const */

char * __thiscall
std::codecvt<wchar_t,char,__mbstate_t>::do_length
          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,
          uint param_4)

{
  int iVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  int iVar5;
  int aiStack_70 [12];
  undefined4 local_40;
  char **local_3c;
  int local_38;
  char *local_34;
  char *local_30;
  int local_24;
  _union_54 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x240aeb;
  local_20 = param_1->__value;
  local_24 = param_1->__count;
  aiStack_70[5] = *(int *)(this + 8);
  aiStack_70[4] = 0x240b0d;
  local_40 = __uselocale();
  local_30 = (char *)0x0;
  iVar1 = -(param_4 * 4 + 0x1b & 0xfffffff0);
  local_38 = (int)&local_40 + iVar1;
  local_3c = &param_2;
  while (param_2 < param_3) {
    while( true ) {
      pcVar4 = param_2;
      if (param_4 == 0) goto LAB_00240be6;
      iVar5 = (int)param_3 - (int)param_2;
      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;
      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;
      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),
                              *(int *)((int)aiStack_70 + iVar1 + 0x18),
                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));
      local_34 = param_3;
      if (pcVar2 != (char *)0x0) {
        iVar5 = (int)pcVar2 - (int)pcVar4;
        local_34 = pcVar2;
      }
      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;
      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;
      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;
      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;
      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;
      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;
      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),
                         *(char ***)((int)aiStack_70 + iVar1 + 8),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),
                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));
      pcVar2 = param_3;
      if (sVar3 == 0xffffffff) {
        local_34 = pcVar4;
        while( true ) {
          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;
          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;
          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;
          param_2 = pcVar4;
          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),
                          *(char **)((int)aiStack_70 + iVar1 + 0x18),
                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),
                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));
          if (sVar3 + 2 < 2) break;
          pcVar4 = param_2 + sVar3;
        }
        param_1->__count = local_24;
        param_1->__value = local_20;
        local_30 = param_2 + ((int)local_30 - (int)local_34);
        goto LAB_00240be6;
      }
      pcVar2 = local_34;
      if (param_2 != (char *)0x0) {
        iVar5 = (int)param_2 - (int)pcVar4;
        pcVar2 = param_2;
      }
      param_2 = pcVar2;
      local_30 = local_30 + iVar5;
      param_4 = param_4 - sVar3;
      if ((param_3 <= param_2) || (param_4 == 0)) break;
      param_2 = param_2 + 1;
      param_4 = param_4 - 1;
      local_30 = local_30 + 1;
      local_24 = param_1->__count;
      local_20 = param_1->__value;
      if (param_3 <= param_2) goto LAB_00240be6;
    }
  }
LAB_00240be6:
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;
  __uselocale();
  return local_30;
}



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

int FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)

{
  int iVar1;
  void *pvVar2;
  size_t sVar3;
  void *pvVar4;
  int iVar5;
  int aiStack_70 [12];
  undefined4 local_40;
  undefined4 *local_3c;
  int local_38;
  void *local_34;
  int local_30;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x240aeb;
  local_20 = param_2[1];
  local_24 = *param_2;
  aiStack_70[5] = *(undefined4 *)(param_1 + 8);
  aiStack_70[4] = 0x240b0d;
  local_40 = __uselocale();
  local_30 = 0;
  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);
  local_38 = (int)&local_40 + iVar1;
  local_3c = &param_3;
  while (param_3 < param_4) {
    while( true ) {
      pvVar4 = param_3;
      if (param_5 == 0) goto LAB_00240be6;
      iVar5 = (int)param_4 - (int)param_3;
      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;
      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;
      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),
                      *(int *)((int)aiStack_70 + iVar1 + 0x18),
                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));
      local_34 = param_4;
      if (pvVar2 != (void *)0x0) {
        iVar5 = (int)pvVar2 - (int)pvVar4;
        local_34 = pvVar2;
      }
      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;
      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;
      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;
      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;
      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;
      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;
      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),
                         *(char ***)((int)aiStack_70 + iVar1 + 8),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),
                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));
      pvVar2 = param_4;
      if (sVar3 == 0xffffffff) {
        local_34 = pvVar4;
        while( true ) {
          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;
          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;
          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;
          param_3 = pvVar4;
          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),
                          *(char **)((int)aiStack_70 + iVar1 + 0x18),
                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),
                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));
          if (sVar3 + 2 < 2) break;
          pvVar4 = (void *)(sVar3 + (int)param_3);
        }
        *param_2 = local_24;
        param_2[1] = local_20;
        local_30 = (int)param_3 + (local_30 - (int)local_34);
        goto LAB_00240be6;
      }
      pvVar2 = local_34;
      if (param_3 != (void *)0x0) {
        iVar5 = (int)param_3 - (int)pvVar4;
        pvVar2 = param_3;
      }
      param_3 = pvVar2;
      local_30 = local_30 + iVar5;
      param_5 = param_5 - sVar3;
      if ((param_4 <= param_3) || (param_5 == 0)) break;
      param_3 = (void *)((int)param_3 + 1);
      param_5 = param_5 + -1;
      local_30 = local_30 + 1;
      local_24 = *param_2;
      local_20 = param_2[1];
      if (param_4 <= param_3) goto LAB_00240be6;
    }
  }
LAB_00240be6:
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;
  __uselocale();
  return local_30;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0xfe515
SUB ESP,0x48
MOV EAX,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBP + -0x20],EAX
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],EDX
PUSH dword ptr [EAX + 0x8]
CALL 0x000287d0
ADD ESP,0x10
MOV dword ptr [EBP + -0x2c],0x0
MOV ESI,dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x3c],EAX
MOV EAX,dword ptr [EBP + 0x18]
LEA EAX,[EAX*0x4 + 0x1b]
AND EAX,0xfffffff0
SUB ESP,EAX
LEA EAX,[ESP + 0xf]
AND EAX,0xfffffff0
MOV dword ptr [EBP + -0x34],EAX
LEA EAX,[EBP + 0x10]
MOV dword ptr [EBP + -0x38],EAX
LEA ESI,[ESI]
CMP dword ptr [EBP + 0x14],ESI
JBE 0x00240be6
MOV EDX,dword ptr [EBP + 0x18]
TEST EDX,EDX
JZ 0x00240be6
MOV EDI,dword ptr [EBP + 0x14]
SUB ESP,0x4
SUB EDI,ESI
PUSH EDI
PUSH 0x0
PUSH ESI
CALL 0x00028970
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00240c00
MOV EDI,EAX
SUB EDI,ESI
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + 0x18]
PUSH EDI
PUSH dword ptr [EBP + -0x38]
PUSH dword ptr [EBP + -0x34]
MOV dword ptr [EBP + -0x30],EDX
CALL 0x00028450
ADD ESP,0x20
MOV EDX,dword ptr [EBP + -0x30]
CMP EAX,-0x1
JZ 0x00240c20
MOV ECX,dword ptr [EBP + 0x10]
TEST ECX,ECX
JZ 0x00240c10
MOV EDI,ECX
SUB EDI,ESI
MOV ESI,ECX
ADD dword ptr [EBP + -0x2c],EDI
MOV ECX,dword ptr [EBP + -0x2c]
SUB dword ptr [EBP + 0x18],EAX
CMP dword ptr [EBP + 0x14],ESI
JBE 0x00240b40
MOV EAX,dword ptr [EBP + 0x18]
TEST EAX,EAX
JZ 0x00240b40
MOV EAX,dword ptr [EBP + 0xc]
ADD ESI,0x1
ADD ECX,0x1
SUB dword ptr [EBP + 0x18],0x1
MOV dword ptr [EBP + 0x10],ESI
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBP + -0x2c],ECX
MOV dword ptr [EBP + -0x20],EAX
MOV dword ptr [EBP + -0x1c],EDX
CMP dword ptr [EBP + 0x14],ESI
JA 0x00240b49
SUB ESP,0xc
PUSH dword ptr [EBP + -0x3c]
CALL 0x000287d0
MOV EAX,dword ptr [EBP + -0x2c]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EBP + 0x14]
JMP 0x00240b76
MOV dword ptr [EBP + 0x10],EDX
MOV ESI,EDX
JMP 0x00240baa
MOV dword ptr [EBP + 0x10],ESI
MOV EAX,ESI
LEA EDI,[EBP + -0x20]
MOV dword ptr [EBP + -0x30],ESI
MOV ESI,dword ptr [EBP + 0x14]
JMP 0x00240c36
ADD EAX,dword ptr [EBP + 0x10]
MOV dword ptr [EBP + 0x10],EAX
MOV EDX,ESI
PUSH EDI
SUB EDX,EAX
PUSH EDX
PUSH EAX
PUSH 0x0
CALL 0x000283a0
ADD ESP,0x10
LEA EDX,[EAX + 0x2]
CMP EDX,0x1
JA 0x00240c30
MOV EAX,dword ptr [EBP + -0x20]
MOV ECX,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + -0x30]
MOV EDX,dword ptr [EBP + -0x1c]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [EBP + 0x10]
MOV dword ptr [ECX + 0x4],EDX
SUB EAX,ESI
ADD dword ptr [EBP + -0x2c],EAX
JMP 0x00240be6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}\n\n" comment (function_definition "int FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" primitive_type (function_declarator "FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int aiStack_70 [12];" primitive_type (array_declarator "aiStack_70 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "void *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x240aeb;" (assignment_expression "uStack_14 = 0x240aeb" identifier = number_literal) ;) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "aiStack_70[5] = *(undefined4 *)(param_1 + 8);" (assignment_expression "aiStack_70[5] = *(undefined4 *)(param_1 + 8)" (subscript_expression "aiStack_70[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "aiStack_70[4] = 0x240b0d;" (assignment_expression "aiStack_70[4] = 0x240b0d" (subscript_expression "aiStack_70[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40 = __uselocale();" (assignment_expression "local_40 = __uselocale()" identifier = (call_expression "__uselocale()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0)" identifier = (unary_expression "-(param_5 * 4 + 0x1bU & 0xfffffff0)" - (parenthesized_expression "(param_5 * 4 + 0x1bU & 0xfffffff0)" ( (binary_expression "param_5 * 4 + 0x1bU & 0xfffffff0" (binary_expression "param_5 * 4 + 0x1bU" (binary_expression "param_5 * 4" identifier * number_literal) + number_literal) & number_literal) )))) ;) (expression_statement "local_38 = (int)&local_40 + iVar1;" (assignment_expression "local_38 = (int)&local_40 + iVar1" identifier = (binary_expression "(int)&local_40 + iVar1" (cast_expression "(int)&local_40" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_40" & identifier)) + identifier)) ;) (expression_statement "local_3c = &param_3;" (assignment_expression "local_3c = &param_3" identifier = (pointer_expression "&param_3" & identifier)) ;) (while_statement "while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" while (parenthesized_expression "(param_3 < param_4)" ( (binary_expression "param_3 < param_4" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" { (while_statement "while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" { (expression_statement "pvVar4 = param_3;" (assignment_expression "pvVar4 = param_3" identifier = identifier) ;) (if_statement "if (param_5 == 0) goto LAB_00240be6;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) (expression_statement "iVar5 = (int)param_4 - (int)param_3;" (assignment_expression "iVar5 = (int)param_4 - (int)param_3" identifier = (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));" (assignment_expression "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier = (call_expression "memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier (argument_list "(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" ( (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "local_34 = param_4;" (assignment_expression "local_34 = param_4" identifier = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" { (expression_statement "iVar5 = (int)pvVar2 - (int)pvVar4;" (assignment_expression "iVar5 = (int)pvVar2 - (int)pvVar4" identifier = (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_34 = pvVar2;" (assignment_expression "local_34 = pvVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1)" ( (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));" (assignment_expression "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier = (call_expression "mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char ***)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(char ***)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "pvVar2 = param_4;" (assignment_expression "pvVar2 = param_4" identifier = identifier) ;) (if_statement "if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" if (parenthesized_expression "(sVar3 == 0xffffffff)" ( (binary_expression "sVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" { (expression_statement "local_34 = pvVar4;" (assignment_expression "local_34 = pvVar4" identifier = identifier) ;) (while_statement "while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" { (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "param_3 = pvVar4;" (assignment_expression "param_3 = pvVar4" identifier = identifier) ;) (expression_statement "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));" (assignment_expression "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier = (call_expression "mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (if_statement "if (sVar3 + 2 < 2) break;" if (parenthesized_expression "(sVar3 + 2 < 2)" ( (binary_expression "sVar3 + 2 < 2" (binary_expression "sVar3 + 2" identifier + number_literal) < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pvVar4 = (void *)(sVar3 + (int)param_3);" (assignment_expression "pvVar4 = (void *)(sVar3 + (int)param_3)" identifier = (cast_expression "(void *)(sVar3 + (int)param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sVar3 + (int)param_3)" ( (binary_expression "sVar3 + (int)param_3" identifier + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*param_2 = local_24;" (assignment_expression "*param_2 = local_24" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_20;" (assignment_expression "param_2[1] = local_20" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_30 = (int)param_3 + (local_30 - (int)local_34);" (assignment_expression "local_30 = (int)param_3 + (local_30 - (int)local_34)" identifier = (binary_expression "(int)param_3 + (local_30 - (int)local_34)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(local_30 - (int)local_34)" ( (binary_expression "local_30 - (int)local_34" identifier - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;) })) (expression_statement "pvVar2 = local_34;" (assignment_expression "pvVar2 = local_34" identifier = identifier) ;) (if_statement "if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" if (parenthesized_expression "(param_3 != (void *)0x0)" ( (binary_expression "param_3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" { (expression_statement "iVar5 = (int)param_3 - (int)pvVar4;" (assignment_expression "iVar5 = (int)param_3 - (int)pvVar4" identifier = (binary_expression "(int)param_3 - (int)pvVar4" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pvVar2 = param_3;" (assignment_expression "pvVar2 = param_3" identifier = identifier) ;) })) (expression_statement "param_3 = pvVar2;" (assignment_expression "param_3 = pvVar2" identifier = identifier) ;) (expression_statement "local_30 = local_30 + iVar5;" (assignment_expression "local_30 = local_30 + iVar5" identifier = (binary_expression "local_30 + iVar5" identifier + identifier)) ;) (expression_statement "param_5 = param_5 - sVar3;" (assignment_expression "param_5 = param_5 - sVar3" identifier = (binary_expression "param_5 - sVar3" identifier - identifier)) ;) (if_statement "if ((param_4 <= param_3) || (param_5 == 0)) break;" if (parenthesized_expression "((param_4 <= param_3) || (param_5 == 0))" ( (binary_expression "(param_4 <= param_3) || (param_5 == 0)" (parenthesized_expression "(param_4 <= param_3)" ( (binary_expression "param_4 <= param_3" identifier <= identifier) )) || (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "param_3 = (void *)((int)param_3 + 1);" (assignment_expression "param_3 = (void *)((int)param_3 + 1)" identifier = (cast_expression "(void *)((int)param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 1)" ( (binary_expression "(int)param_3 + 1" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "param_5 = param_5 + -1;" (assignment_expression "param_5 = param_5 + -1" identifier = (binary_expression "param_5 + -1" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_4 <= param_3) goto LAB_00240be6;" if (parenthesized_expression "(param_4 <= param_3)" ( (binary_expression "param_4 <= param_3" identifier <= identifier) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" statement_identifier : (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "__uselocale();" (call_expression "__uselocale()" identifier (argument_list "()" ( ))) ;) (return_statement "return local_30;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::codecvt<wchar_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,\n   unsigned int) const */\n\nchar * __thiscall\nstd::codecvt<wchar_t,char,__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  char **local_3c;\n  int local_38;\n  char *local_34;\n  char *local_30;\n  int local_24;\n  _union_54 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_1->__value;\n  local_24 = param_1->__count;\n  aiStack_70[5] = *(int *)(this + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = (char *)0x0;\n  iVar1 = -(param_4 * 4 + 0x1b & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_2;\n  while (param_2 < param_3) {\n    while( true ) {\n      pcVar4 = param_2;\n      if (param_4 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_3 - (int)param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_3;\n      if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }\n      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;\n      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pcVar2 = param_3;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pcVar2 = local_34;\n      if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }\n      param_2 = pcVar2;\n      local_30 = local_30 + iVar5;\n      param_4 = param_4 - sVar3;\n      if ((param_3 <= param_2) || (param_4 == 0)) break;\n      param_2 = param_2 + 1;\n      param_4 = param_4 - 1;\n      local_30 = local_30 + 1;\n      local_24 = param_1->__count;\n      local_20 = param_1->__value;\n      if (param_3 <= param_2) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}\n\n" comment comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::codecvt<wchar_t,char,__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)\n\n{\n  int iVar1;" statement_identifier : (ERROR ":codecvt<wchar_t,char,__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)\n\n{" : (comma_expression "codecvt<wchar_t,char,__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" (binary_expression "codecvt<wchar_t" identifier < identifier) , (comma_expression "char,__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" identifier , (binary_expression "__mbstate_t>::do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" identifier > (ERROR "::" : :) (call_expression "do_length\n          (codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" identifier (argument_list "(codecvt<wchar_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" ( (binary_expression "codecvt<wchar_t" identifier < identifier) , identifier , (binary_expression "__mbstate_t> *this" identifier > (pointer_expression "*this" * identifier)) , (binary_expression "__mbstate_t *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier) , (binary_expression "char *param_3" identifier * identifier) , (ERROR "uint" identifier) identifier )))))) {) (declaration "int iVar1;" primitive_type identifier ;)) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int aiStack_70 [12];" primitive_type (array_declarator "aiStack_70 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "char **local_3c;" primitive_type (pointer_declarator "**local_3c" * (pointer_declarator "*local_3c" * identifier)) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "_union_54 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x240aeb;" (assignment_expression "uStack_14 = 0x240aeb" identifier = number_literal) ;) (expression_statement "local_20 = param_1->__value;" (assignment_expression "local_20 = param_1->__value" identifier = (field_expression "param_1->__value" identifier -> field_identifier)) ;) (expression_statement "local_24 = param_1->__count;" (assignment_expression "local_24 = param_1->__count" identifier = (field_expression "param_1->__count" identifier -> field_identifier)) ;) (expression_statement "aiStack_70[5] = *(int *)(this + 8);" (assignment_expression "aiStack_70[5] = *(int *)(this + 8)" (subscript_expression "aiStack_70[5]" identifier [ number_literal ]) = (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "aiStack_70[4] = 0x240b0d;" (assignment_expression "aiStack_70[4] = 0x240b0d" (subscript_expression "aiStack_70[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40 = __uselocale();" (assignment_expression "local_40 = __uselocale()" identifier = (call_expression "__uselocale()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_30 = (char *)0x0;" (assignment_expression "local_30 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = -(param_4 * 4 + 0x1b & 0xfffffff0);" (assignment_expression "iVar1 = -(param_4 * 4 + 0x1b & 0xfffffff0)" identifier = (unary_expression "-(param_4 * 4 + 0x1b & 0xfffffff0)" - (parenthesized_expression "(param_4 * 4 + 0x1b & 0xfffffff0)" ( (binary_expression "param_4 * 4 + 0x1b & 0xfffffff0" (binary_expression "param_4 * 4 + 0x1b" (binary_expression "param_4 * 4" identifier * number_literal) + number_literal) & number_literal) )))) ;) (expression_statement "local_38 = (int)&local_40 + iVar1;" (assignment_expression "local_38 = (int)&local_40 + iVar1" identifier = (binary_expression "(int)&local_40 + iVar1" (cast_expression "(int)&local_40" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_40" & identifier)) + identifier)) ;) (expression_statement "local_3c = &param_2;" (assignment_expression "local_3c = &param_2" identifier = (pointer_expression "&param_2" & identifier)) ;) (while_statement "while (param_2 < param_3) {\n    while( true ) {\n      pcVar4 = param_2;\n      if (param_4 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_3 - (int)param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_3;\n      if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }\n      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;\n      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pcVar2 = param_3;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pcVar2 = local_34;\n      if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }\n      param_2 = pcVar2;\n      local_30 = local_30 + iVar5;\n      param_4 = param_4 - sVar3;\n      if ((param_3 <= param_2) || (param_4 == 0)) break;\n      param_2 = param_2 + 1;\n      param_4 = param_4 - 1;\n      local_30 = local_30 + 1;\n      local_24 = param_1->__count;\n      local_20 = param_1->__value;\n      if (param_3 <= param_2) goto LAB_00240be6;\n    }\n  }" while (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      pcVar4 = param_2;\n      if (param_4 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_3 - (int)param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_3;\n      if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }\n      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;\n      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pcVar2 = param_3;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pcVar2 = local_34;\n      if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }\n      param_2 = pcVar2;\n      local_30 = local_30 + iVar5;\n      param_4 = param_4 - sVar3;\n      if ((param_3 <= param_2) || (param_4 == 0)) break;\n      param_2 = param_2 + 1;\n      param_4 = param_4 - 1;\n      local_30 = local_30 + 1;\n      local_24 = param_1->__count;\n      local_20 = param_1->__value;\n      if (param_3 <= param_2) goto LAB_00240be6;\n    }\n  }" { (while_statement "while( true ) {\n      pcVar4 = param_2;\n      if (param_4 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_3 - (int)param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_3;\n      if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }\n      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;\n      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pcVar2 = param_3;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pcVar2 = local_34;\n      if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }\n      param_2 = pcVar2;\n      local_30 = local_30 + iVar5;\n      param_4 = param_4 - sVar3;\n      if ((param_3 <= param_2) || (param_4 == 0)) break;\n      param_2 = param_2 + 1;\n      param_4 = param_4 - 1;\n      local_30 = local_30 + 1;\n      local_24 = param_1->__count;\n      local_20 = param_1->__value;\n      if (param_3 <= param_2) goto LAB_00240be6;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar4 = param_2;\n      if (param_4 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_3 - (int)param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_3;\n      if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }\n      *(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;\n      *(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pcVar2 = param_3;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pcVar2 = local_34;\n      if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }\n      param_2 = pcVar2;\n      local_30 = local_30 + iVar5;\n      param_4 = param_4 - sVar3;\n      if ((param_3 <= param_2) || (param_4 == 0)) break;\n      param_2 = param_2 + 1;\n      param_4 = param_4 - 1;\n      local_30 = local_30 + 1;\n      local_24 = param_1->__count;\n      local_20 = param_1->__value;\n      if (param_3 <= param_2) goto LAB_00240be6;\n    }" { (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_4 == 0) goto LAB_00240be6;" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) (expression_statement "iVar5 = (int)param_3 - (int)param_2;" (assignment_expression "iVar5 = (int)param_3 - (int)param_2" identifier = (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2;" (assignment_expression "*(char **)((int)aiStack_70 + iVar1 + 0x14) = param_2" (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));" (assignment_expression "pcVar2 = (char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier = (cast_expression "(char *)memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier (argument_list "(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                              *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                              *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" ( (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ))))) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)pcVar2 - (int)pcVar4;\n        local_34 = pcVar2;\n      }" { (expression_statement "iVar5 = (int)pcVar2 - (int)pcVar4;" (assignment_expression "iVar5 = (int)pcVar2 - (int)pcVar4" identifier = (binary_expression "(int)pcVar2 - (int)pcVar4" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_34 = pcVar2;" (assignment_expression "local_34 = pcVar2" identifier = identifier) ;) })) (expression_statement "*(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1;" (assignment_expression "*(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14) = param_1" (pointer_expression "*(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(__mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "__mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4;" (assignment_expression "*(uint *)((int)aiStack_70 + iVar1 + 0x10) = param_4" (pointer_expression "*(uint *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(uint *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c;" (assignment_expression "*(char ***)((int)aiStack_70 + iVar1 + 8) = local_3c" (pointer_expression "*(char ***)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(char ***)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1)" ( (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));" (assignment_expression "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier = (call_expression "mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char ***)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(char ***)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "pcVar2 = param_3;" (assignment_expression "pcVar2 = param_3" identifier = identifier) ;) (if_statement "if (sVar3 == 0xffffffff) {\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" if (parenthesized_expression "(sVar3 == 0xffffffff)" ( (binary_expression "sVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        local_34 = pcVar4;\n        while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }\n        param_1->__count = local_24;\n        param_1->__value = local_20;\n        local_30 = param_2 + ((int)local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" { (expression_statement "local_34 = pcVar4;" (assignment_expression "local_34 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          *(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;\n          *(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_2 = pcVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pcVar4 = param_2 + sVar3;\n        }" { (expression_statement "*(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;" (assignment_expression "*(int **)((int)aiStack_70 + iVar1 + 0x20) = &local_24" (pointer_expression "*(int **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(int **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pcVar2 - (int)pcVar4" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)pcVar2 - (int)pcVar4" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4;" (assignment_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18) = pcVar4" (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "param_2 = pcVar4;" (assignment_expression "param_2 = pcVar4" identifier = identifier) ;) (expression_statement "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));" (assignment_expression "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier = (call_expression "mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (if_statement "if (sVar3 + 2 < 2) break;" if (parenthesized_expression "(sVar3 + 2 < 2)" ( (binary_expression "sVar3 + 2 < 2" (binary_expression "sVar3 + 2" identifier + number_literal) < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar4 = param_2 + sVar3;" (assignment_expression "pcVar4 = param_2 + sVar3" identifier = (binary_expression "param_2 + sVar3" identifier + identifier)) ;) })) (expression_statement "param_1->__count = local_24;" (assignment_expression "param_1->__count = local_24" (field_expression "param_1->__count" identifier -> field_identifier) = identifier) ;) (expression_statement "param_1->__value = local_20;" (assignment_expression "param_1->__value = local_20" (field_expression "param_1->__value" identifier -> field_identifier) = identifier) ;) (expression_statement "local_30 = param_2 + ((int)local_30 - (int)local_34);" (assignment_expression "local_30 = param_2 + ((int)local_30 - (int)local_34)" identifier = (binary_expression "param_2 + ((int)local_30 - (int)local_34)" identifier + (parenthesized_expression "((int)local_30 - (int)local_34)" ( (binary_expression "(int)local_30 - (int)local_34" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;) })) (expression_statement "pcVar2 = local_34;" (assignment_expression "pcVar2 = local_34" identifier = identifier) ;) (if_statement "if (param_2 != (char *)0x0) {\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)param_2 - (int)pcVar4;\n        pcVar2 = param_2;\n      }" { (expression_statement "iVar5 = (int)param_2 - (int)pcVar4;" (assignment_expression "iVar5 = (int)param_2 - (int)pcVar4" identifier = (binary_expression "(int)param_2 - (int)pcVar4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar2 = param_2;" (assignment_expression "pcVar2 = param_2" identifier = identifier) ;) })) (expression_statement "param_2 = pcVar2;" (assignment_expression "param_2 = pcVar2" identifier = identifier) ;) (expression_statement "local_30 = local_30 + iVar5;" (assignment_expression "local_30 = local_30 + iVar5" identifier = (binary_expression "local_30 + iVar5" identifier + identifier)) ;) (expression_statement "param_4 = param_4 - sVar3;" (assignment_expression "param_4 = param_4 - sVar3" identifier = (binary_expression "param_4 - sVar3" identifier - identifier)) ;) (if_statement "if ((param_3 <= param_2) || (param_4 == 0)) break;" if (parenthesized_expression "((param_3 <= param_2) || (param_4 == 0))" ( (binary_expression "(param_3 <= param_2) || (param_4 == 0)" (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) || (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "param_4 = param_4 - 1;" (assignment_expression "param_4 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = param_1->__count;" (assignment_expression "local_24 = param_1->__count" identifier = (field_expression "param_1->__count" identifier -> field_identifier)) ;) (expression_statement "local_20 = param_1->__value;" (assignment_expression "local_20 = param_1->__value" identifier = (field_expression "param_1->__value" identifier -> field_identifier)) ;) (if_statement "if (param_3 <= param_2) goto LAB_00240be6;" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" statement_identifier : (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "__uselocale();" (call_expression "__uselocale()" identifier (argument_list "()" ( ))) ;) (return_statement "return local_30;" return identifier ;) (ERROR "}" }))
(translation_unit "int FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}\n\n" (function_definition "int FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" primitive_type (function_declarator "FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int aiStack_70 [12];" primitive_type (array_declarator "aiStack_70 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "void *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x240aeb;" (assignment_expression "uStack_14 = 0x240aeb" identifier = number_literal) ;) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "aiStack_70[5] = *(undefined4 *)(param_1 + 8);" (assignment_expression "aiStack_70[5] = *(undefined4 *)(param_1 + 8)" (subscript_expression "aiStack_70[5]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "aiStack_70[4] = 0x240b0d;" (assignment_expression "aiStack_70[4] = 0x240b0d" (subscript_expression "aiStack_70[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40 = __uselocale();" (assignment_expression "local_40 = __uselocale()" identifier = (call_expression "__uselocale()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0)" identifier = (unary_expression "-(param_5 * 4 + 0x1bU & 0xfffffff0)" - (parenthesized_expression "(param_5 * 4 + 0x1bU & 0xfffffff0)" ( (binary_expression "param_5 * 4 + 0x1bU & 0xfffffff0" (binary_expression "param_5 * 4 + 0x1bU" (binary_expression "param_5 * 4" identifier * number_literal) + number_literal) & number_literal) )))) ;) (expression_statement "local_38 = (int)&local_40 + iVar1;" (assignment_expression "local_38 = (int)&local_40 + iVar1" identifier = (binary_expression "(int)&local_40 + iVar1" (cast_expression "(int)&local_40" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_40" & identifier)) + identifier)) ;) (expression_statement "local_3c = &param_3;" (assignment_expression "local_3c = &param_3" identifier = (pointer_expression "&param_3" & identifier)) ;) (while_statement "while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" while (parenthesized_expression "(param_3 < param_4)" ( (binary_expression "param_3 < param_4" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" { (while_statement "while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" { (expression_statement "pvVar4 = param_3;" (assignment_expression "pvVar4 = param_3" identifier = identifier) ;) (if_statement "if (param_5 == 0) goto LAB_00240be6;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) (expression_statement "iVar5 = (int)param_4 - (int)param_3;" (assignment_expression "iVar5 = (int)param_4 - (int)param_3" identifier = (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));" (assignment_expression "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier = (call_expression "memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" identifier (argument_list "(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" ( (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "local_34 = param_4;" (assignment_expression "local_34 = param_4" identifier = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" { (expression_statement "iVar5 = (int)pvVar2 - (int)pvVar4;" (assignment_expression "iVar5 = (int)pvVar2 - (int)pvVar4" identifier = (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_34 = pvVar2;" (assignment_expression "local_34 = pvVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1)" ( (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));" (assignment_expression "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier = (call_expression "mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 4)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 4)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" ( (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char ***)((int)aiStack_70 + iVar1 + 8)" * (cast_expression "(char ***)((int)aiStack_70 + iVar1 + 8)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" ( (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0xc)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (expression_statement "pvVar2 = param_4;" (assignment_expression "pvVar2 = param_4" identifier = identifier) ;) (if_statement "if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" if (parenthesized_expression "(sVar3 == 0xffffffff)" ( (binary_expression "sVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" { (expression_statement "local_34 = pvVar4;" (assignment_expression "local_34 = pvVar4" identifier = identifier) ;) (while_statement "while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" { (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "param_3 = pvVar4;" (assignment_expression "param_3 = pvVar4" identifier = identifier) ;) (expression_statement "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));" (assignment_expression "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier = (call_expression "mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" identifier (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" ( (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18)" * (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" * (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" * (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" ( (type_descriptor "mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) )))) ;) (if_statement "if (sVar3 + 2 < 2) break;" if (parenthesized_expression "(sVar3 + 2 < 2)" ( (binary_expression "sVar3 + 2 < 2" (binary_expression "sVar3 + 2" identifier + number_literal) < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pvVar4 = (void *)(sVar3 + (int)param_3);" (assignment_expression "pvVar4 = (void *)(sVar3 + (int)param_3)" identifier = (cast_expression "(void *)(sVar3 + (int)param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sVar3 + (int)param_3)" ( (binary_expression "sVar3 + (int)param_3" identifier + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*param_2 = local_24;" (assignment_expression "*param_2 = local_24" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_20;" (assignment_expression "param_2[1] = local_20" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_30 = (int)param_3 + (local_30 - (int)local_34);" (assignment_expression "local_30 = (int)param_3 + (local_30 - (int)local_34)" identifier = (binary_expression "(int)param_3 + (local_30 - (int)local_34)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(local_30 - (int)local_34)" ( (binary_expression "local_30 - (int)local_34" identifier - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;) })) (expression_statement "pvVar2 = local_34;" (assignment_expression "pvVar2 = local_34" identifier = identifier) ;) (if_statement "if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" if (parenthesized_expression "(param_3 != (void *)0x0)" ( (binary_expression "param_3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" { (expression_statement "iVar5 = (int)param_3 - (int)pvVar4;" (assignment_expression "iVar5 = (int)param_3 - (int)pvVar4" identifier = (binary_expression "(int)param_3 - (int)pvVar4" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pvVar2 = param_3;" (assignment_expression "pvVar2 = param_3" identifier = identifier) ;) })) (expression_statement "param_3 = pvVar2;" (assignment_expression "param_3 = pvVar2" identifier = identifier) ;) (expression_statement "local_30 = local_30 + iVar5;" (assignment_expression "local_30 = local_30 + iVar5" identifier = (binary_expression "local_30 + iVar5" identifier + identifier)) ;) (expression_statement "param_5 = param_5 - sVar3;" (assignment_expression "param_5 = param_5 - sVar3" identifier = (binary_expression "param_5 - sVar3" identifier - identifier)) ;) (if_statement "if ((param_4 <= param_3) || (param_5 == 0)) break;" if (parenthesized_expression "((param_4 <= param_3) || (param_5 == 0))" ( (binary_expression "(param_4 <= param_3) || (param_5 == 0)" (parenthesized_expression "(param_4 <= param_3)" ( (binary_expression "param_4 <= param_3" identifier <= identifier) )) || (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "param_3 = (void *)((int)param_3 + 1);" (assignment_expression "param_3 = (void *)((int)param_3 + 1)" identifier = (cast_expression "(void *)((int)param_3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + 1)" ( (binary_expression "(int)param_3 + 1" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "param_5 = param_5 + -1;" (assignment_expression "param_5 = param_5 + -1" identifier = (binary_expression "param_5 + -1" identifier + number_literal)) ;) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_4 <= param_3) goto LAB_00240be6;" if (parenthesized_expression "(param_4 <= param_3)" ( (binary_expression "param_4 <= param_3" identifier <= identifier) )) (goto_statement "goto LAB_00240be6;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" statement_identifier : (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" * (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" ( (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "__uselocale();" (call_expression "__uselocale()" identifier (argument_list "()" ( ))) ;) (return_statement "return local_30;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT * LIT) + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator * (abstract_pointer_declarator *)))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" (primitive_type "int") (function_declarator "FUN_00240ae0(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" (identifier "FUN_00240ae0") (parameter_list "(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "void *param_4" (primitive_type "void") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  size_t sVar3;\n  void *pvVar4;\n  int iVar5;\n  int aiStack_70 [12];\n  undefined4 local_40;\n  undefined4 *local_3c;\n  int local_38;\n  void *local_34;\n  int local_30;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x240aeb;\n  local_20 = param_2[1];\n  local_24 = *param_2;\n  aiStack_70[5] = *(undefined4 *)(param_1 + 8);\n  aiStack_70[4] = 0x240b0d;\n  local_40 = __uselocale();\n  local_30 = 0;\n  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);\n  local_38 = (int)&local_40 + iVar1;\n  local_3c = &param_3;\n  while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }\nLAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;\n  __uselocale();\n  return local_30;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int aiStack_70 [12];" (primitive_type "int") (array_declarator "aiStack_70 [12]" (identifier "aiStack_70") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 *local_3c;" (type_identifier "undefined4") (pointer_declarator "*local_3c" (* "*") (identifier "local_3c")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "void *local_34;" (primitive_type "void") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x240aeb;" (assignment_expression "uStack_14 = 0x240aeb" (identifier "uStack_14") (= "=") (number_literal "0x240aeb")) (; ";")) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" (identifier "local_20") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" (identifier "local_24") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "aiStack_70[5] = *(undefined4 *)(param_1 + 8);" (assignment_expression "aiStack_70[5] = *(undefined4 *)(param_1 + 8)" (subscript_expression "aiStack_70[5]" (identifier "aiStack_70") ([ "[") (number_literal "5") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "aiStack_70[4] = 0x240b0d;" (assignment_expression "aiStack_70[4] = 0x240b0d" (subscript_expression "aiStack_70[4]" (identifier "aiStack_70") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0x240b0d")) (; ";")) (expression_statement "local_40 = __uselocale();" (assignment_expression "local_40 = __uselocale()" (identifier "local_40") (= "=") (call_expression "__uselocale()" (identifier "__uselocale") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);" (assignment_expression "iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0)" (identifier "iVar1") (= "=") (unary_expression "-(param_5 * 4 + 0x1bU & 0xfffffff0)" (- "-") (parenthesized_expression "(param_5 * 4 + 0x1bU & 0xfffffff0)" (( "(") (binary_expression "param_5 * 4 + 0x1bU & 0xfffffff0" (binary_expression "param_5 * 4 + 0x1bU" (binary_expression "param_5 * 4" (identifier "param_5") (* "*") (number_literal "4")) (+ "+") (number_literal "0x1bU")) (& "&") (number_literal "0xfffffff0")) () ")")))) (; ";")) (expression_statement "local_38 = (int)&local_40 + iVar1;" (assignment_expression "local_38 = (int)&local_40 + iVar1" (identifier "local_38") (= "=") (binary_expression "(int)&local_40 + iVar1" (cast_expression "(int)&local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_40" (& "&") (identifier "local_40"))) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "local_3c = &param_3;" (assignment_expression "local_3c = &param_3" (identifier "local_3c") (= "=") (pointer_expression "&param_3" (& "&") (identifier "param_3"))) (; ";")) (while_statement "while (param_3 < param_4) {\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" (while "while") (parenthesized_expression "(param_3 < param_4)" (( "(") (binary_expression "param_3 < param_4" (identifier "param_3") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      pvVar4 = param_3;\n      if (param_5 == 0) goto LAB_00240be6;\n      iVar5 = (int)param_4 - (int)param_3;\n      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;\n      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;\n      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;\n      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));\n      local_34 = param_4;\n      if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;\n      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;\n      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;\n      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;\n      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;\n      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;\n      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));\n      pvVar2 = param_4;\n      if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }\n      pvVar2 = local_34;\n      if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }\n      param_3 = pvVar2;\n      local_30 = local_30 + iVar5;\n      param_5 = param_5 - sVar3;\n      if ((param_4 <= param_3) || (param_5 == 0)) break;\n      param_3 = (void *)((int)param_3 + 1);\n      param_5 = param_5 + -1;\n      local_30 = local_30 + 1;\n      local_24 = *param_2;\n      local_20 = param_2[1];\n      if (param_4 <= param_3) goto LAB_00240be6;\n    }" ({ "{") (expression_statement "pvVar4 = param_3;" (assignment_expression "pvVar4 = param_3" (identifier "pvVar4") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_5 == 0) goto LAB_00240be6;" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00240be6;" (goto "goto") (statement_identifier "LAB_00240be6") (; ";"))) (expression_statement "iVar5 = (int)param_4 - (int)param_3;" (assignment_expression "iVar5 = (int)param_4 - (int)param_3" (identifier "iVar5") (= "=") (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")))) (; ";")) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0x240b65")) (; ";")) (expression_statement "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));" (assignment_expression "pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" (identifier "pvVar2") (= "=") (call_expression "memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" (identifier "memchr") (argument_list "(*(void **)((int)aiStack_70 + iVar1 + 0x14),\n                      *(int *)((int)aiStack_70 + iVar1 + 0x18),\n                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c))" (( "(") (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x18)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" (* "*") (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x1c")) () ")")))) () ")")))) (; ";")) (expression_statement "local_34 = param_4;" (assignment_expression "local_34 = param_4" (identifier "local_34") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar5 = (int)pvVar2 - (int)pvVar4;\n        local_34 = pvVar2;\n      }" ({ "{") (expression_statement "iVar5 = (int)pvVar2 - (int)pvVar4;" (assignment_expression "iVar5 = (int)pvVar2 - (int)pvVar4" (identifier "iVar5") (= "=") (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (- "-") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4")))) (; ";")) (expression_statement "local_34 = pvVar2;" (assignment_expression "local_34 = pvVar2" (identifier "local_34") (= "=") (identifier "pvVar2")) (; ";")) (} "}"))) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x10)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0xc)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 8)" (* "*") (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_3c")) (; ";")) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 4) = local_38" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 4)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "local_38")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1)" (( "(") (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0x240b8e")) (; ";")) (expression_statement "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));" (assignment_expression "sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" (identifier "sVar3") (= "=") (call_expression "mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" (identifier "mbsnrtowcs") (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),\n                         *(char ***)((int)aiStack_70 + iVar1 + 8),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),\n                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),\n                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14))" (( "(") (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 4)" (* "*") (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 4)" (( "(") (type_descriptor "wchar_t **" (type_identifier "wchar_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 4)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 4" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(char ***)((int)aiStack_70 + iVar1 + 8)" (* "*") (cast_expression "(char ***)((int)aiStack_70 + iVar1 + 8)" (( "(") (type_descriptor "char ***" (primitive_type "char") (abstract_pointer_declarator "***" (* "*") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*"))))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 8)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 8" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0xc)" (* "*") (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0xc)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0xc)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0xc" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x10)" (* "*") (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x10)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "mbstate_t **" (type_identifier "mbstate_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (expression_statement "pvVar2 = param_4;" (assignment_expression "pvVar2 = param_4" (identifier "pvVar2") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (sVar3 == 0xffffffff) {\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" (if "if") (parenthesized_expression "(sVar3 == 0xffffffff)" (( "(") (binary_expression "sVar3 == 0xffffffff" (identifier "sVar3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        local_34 = pvVar4;\n        while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }\n        *param_2 = local_24;\n        param_2[1] = local_20;\n        local_30 = (int)param_3 + (local_30 - (int)local_34);\n        goto LAB_00240be6;\n      }" ({ "{") (expression_statement "local_34 = pvVar4;" (assignment_expression "local_34 = pvVar4" (identifier "local_34") (= "=") (identifier "pvVar4")) (; ";")) (while_statement "while( true ) {\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;\n          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;\n          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;\n          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;\n          param_3 = pvVar4;\n          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));\n          if (sVar3 + 2 < 2) break;\n          pvVar4 = (void *)(sVar3 + (int)param_3);\n        }" ({ "{") (expression_statement "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;" (assignment_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24" (pointer_expression "*(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 **)((int)aiStack_70 + iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (; ";")) (expression_statement "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;" (assignment_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4" (pointer_expression "*(int *)((int)aiStack_70 + iVar1 + 0x1c)" (* "*") (cast_expression "(int *)((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "(int)pvVar2 - (int)pvVar4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (- "-") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4")))) (; ";")) (expression_statement "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;" (assignment_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4" (pointer_expression "*(void **)((int)aiStack_70 + iVar1 + 0x18)" (* "*") (cast_expression "(void **)((int)aiStack_70 + iVar1 + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0x240c44")) (; ";")) (expression_statement "param_3 = pvVar4;" (assignment_expression "param_3 = pvVar4" (identifier "param_3") (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));" (assignment_expression "sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" (identifier "sVar3") (= "=") (call_expression "mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" (identifier "mbrtowc") (argument_list "(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),\n                          *(char **)((int)aiStack_70 + iVar1 + 0x18),\n                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),\n                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20))" (( "(") (pointer_expression "*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(wchar_t **)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "wchar_t **" (type_identifier "wchar_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(char **)((int)aiStack_70 + iVar1 + 0x18)" (* "*") (cast_expression "(char **)((int)aiStack_70 + iVar1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x18)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x18" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" (* "*") (cast_expression "(size_t *)((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x1c)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x1c" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (pointer_expression "*(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" (* "*") (cast_expression "(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20)" (( "(") (type_descriptor "mbstate_t **" (type_identifier "mbstate_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x20)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x20" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x20")) () ")")))) () ")")))) (; ";")) (if_statement "if (sVar3 + 2 < 2) break;" (if "if") (parenthesized_expression "(sVar3 + 2 < 2)" (( "(") (binary_expression "sVar3 + 2 < 2" (binary_expression "sVar3 + 2" (identifier "sVar3") (+ "+") (number_literal "2")) (< "<") (number_literal "2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pvVar4 = (void *)(sVar3 + (int)param_3);" (assignment_expression "pvVar4 = (void *)(sVar3 + (int)param_3)" (identifier "pvVar4") (= "=") (cast_expression "(void *)(sVar3 + (int)param_3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(sVar3 + (int)param_3)" (( "(") (binary_expression "sVar3 + (int)param_3" (identifier "sVar3") (+ "+") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*param_2 = local_24;" (assignment_expression "*param_2 = local_24" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "param_2[1] = local_20;" (assignment_expression "param_2[1] = local_20" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_20")) (; ";")) (expression_statement "local_30 = (int)param_3 + (local_30 - (int)local_34);" (assignment_expression "local_30 = (int)param_3 + (local_30 - (int)local_34)" (identifier "local_30") (= "=") (binary_expression "(int)param_3 + (local_30 - (int)local_34)" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (parenthesized_expression "(local_30 - (int)local_34)" (( "(") (binary_expression "local_30 - (int)local_34" (identifier "local_30") (- "-") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) () ")")))) (; ";")) (goto_statement "goto LAB_00240be6;" (goto "goto") (statement_identifier "LAB_00240be6") (; ";")) (} "}"))) (expression_statement "pvVar2 = local_34;" (assignment_expression "pvVar2 = local_34" (identifier "pvVar2") (= "=") (identifier "local_34")) (; ";")) (if_statement "if (param_3 != (void *)0x0) {\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" (if "if") (parenthesized_expression "(param_3 != (void *)0x0)" (( "(") (binary_expression "param_3 != (void *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar5 = (int)param_3 - (int)pvVar4;\n        pvVar2 = param_3;\n      }" ({ "{") (expression_statement "iVar5 = (int)param_3 - (int)pvVar4;" (assignment_expression "iVar5 = (int)param_3 - (int)pvVar4" (identifier "iVar5") (= "=") (binary_expression "(int)param_3 - (int)pvVar4" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4")))) (; ";")) (expression_statement "pvVar2 = param_3;" (assignment_expression "pvVar2 = param_3" (identifier "pvVar2") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "param_3 = pvVar2;" (assignment_expression "param_3 = pvVar2" (identifier "param_3") (= "=") (identifier "pvVar2")) (; ";")) (expression_statement "local_30 = local_30 + iVar5;" (assignment_expression "local_30 = local_30 + iVar5" (identifier "local_30") (= "=") (binary_expression "local_30 + iVar5" (identifier "local_30") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "param_5 = param_5 - sVar3;" (assignment_expression "param_5 = param_5 - sVar3" (identifier "param_5") (= "=") (binary_expression "param_5 - sVar3" (identifier "param_5") (- "-") (identifier "sVar3"))) (; ";")) (if_statement "if ((param_4 <= param_3) || (param_5 == 0)) break;" (if "if") (parenthesized_expression "((param_4 <= param_3) || (param_5 == 0))" (( "(") (binary_expression "(param_4 <= param_3) || (param_5 == 0)" (parenthesized_expression "(param_4 <= param_3)" (( "(") (binary_expression "param_4 <= param_3" (identifier "param_4") (<= "<=") (identifier "param_3")) () ")")) (|| "||") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_3 = (void *)((int)param_3 + 1);" (assignment_expression "param_3 = (void *)((int)param_3 + 1)" (identifier "param_3") (= "=") (cast_expression "(void *)((int)param_3 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + 1)" (( "(") (binary_expression "(int)param_3 + 1" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_5 = param_5 + -1;" (assignment_expression "param_5 = param_5 + -1" (identifier "param_5") (= "=") (binary_expression "param_5 + -1" (identifier "param_5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_24 = *param_2;" (assignment_expression "local_24 = *param_2" (identifier "local_24") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_20 = param_2[1];" (assignment_expression "local_20 = param_2[1]" (identifier "local_20") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_4 <= param_3) goto LAB_00240be6;" (if "if") (parenthesized_expression "(param_4 <= param_3)" (( "(") (binary_expression "param_4 <= param_3" (identifier "param_4") (<= "<=") (identifier "param_3")) () ")")) (goto_statement "goto LAB_00240be6;" (goto "goto") (statement_identifier "LAB_00240be6") (; ";"))) (} "}"))) (} "}"))) (labeled_statement "LAB_00240be6:\n  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" (statement_identifier "LAB_00240be6") (: ":") (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x14)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x14" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "local_40")) (; ";"))) (expression_statement "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;" (assignment_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1" (pointer_expression "*(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)aiStack_70 + iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)aiStack_70 + iVar1 + 0x10)" (( "(") (binary_expression "(int)aiStack_70 + iVar1 + 0x10" (binary_expression "(int)aiStack_70 + iVar1" (cast_expression "(int)aiStack_70" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "aiStack_70")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0x240bf1")) (; ";")) (expression_statement "__uselocale();" (call_expression "__uselocale()" (identifier "__uselocale") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::codecvt<wchar_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,
   unsigned int) const */

char * __thiscall
std::codecvt<type_5,char,type_3>::do_length
          (codecvt<type_5,char,type_3> *var_1,type_3 *param_1,char *var_5,char *var_6,
          type_4 var_3)

{
  int var_4;
  char *var_8;
  size_t var_10;
  char *pcVar4;
  int var_13;
  int aiStack_70 [12];
  type_1 local_40;
  char **local_3c;
  int local_38;
  char *local_34;
  char *var_12;
  int local_24;
  type_2 local_20;
  type_1 uStack_14;
  
  uStack_14 = 0x240aeb;
  local_20 = param_1->__value;
  local_24 = param_1->__count;
  aiStack_70[5] = *(int *)(var_1 + 8);
  aiStack_70[4] = 0x240b0d;
  local_40 = var_2();
  var_12 = (char *)0x0;
  var_4 = -(var_3 * 4 + 0x1b & 0xfffffff0);
  local_38 = (int)&local_40 + var_4;
  local_3c = &var_5;
  while (var_5 < var_6) {
    while( true ) {
      pcVar4 = var_5;
      if (var_3 == 0) goto LAB_00240be6;
      var_13 = (int)var_6 - (int)var_5;
      *(int *)((int)aiStack_70 + var_4 + 0x1c) = var_13;
      *(type_1 *)((int)aiStack_70 + var_4 + 0x18) = 0;
      *(char **)((int)aiStack_70 + var_4 + 0x14) = var_5;
      *(type_1 *)((int)aiStack_70 + var_4 + 0x10) = 0x240b65;
      var_8 = (char *)var_7(*(void **)((int)aiStack_70 + var_4 + 0x14),
                              *(int *)((int)aiStack_70 + var_4 + 0x18),
                              *(size_t *)((int)aiStack_70 + var_4 + 0x1c));
      local_34 = var_6;
      if (var_8 != (char *)0x0) {
        var_13 = (int)var_8 - (int)pcVar4;
        local_34 = var_8;
      }
      *(type_3 **)((int)aiStack_70 + var_4 + 0x14) = param_1;
      *(type_4 *)((int)aiStack_70 + var_4 + 0x10) = var_3;
      *(int *)((int)aiStack_70 + var_4 + 0xc) = var_13;
      *(char ***)((int)aiStack_70 + var_4 + 8) = local_3c;
      *(int *)((int)aiStack_70 + var_4 + 4) = local_38;
      *(type_1 *)((int)aiStack_70 + var_4) = 0x240b8e;
      var_10 = var_9(*(type_5 **)((int)aiStack_70 + var_4 + 4),
                         *(char ***)((int)aiStack_70 + var_4 + 8),
                         *(size_t *)((int)aiStack_70 + var_4 + 0xc),
                         *(size_t *)((int)aiStack_70 + var_4 + 0x10),
                         *(type_6 **)((int)aiStack_70 + var_4 + 0x14));
      var_8 = var_6;
      if (var_10 == 0xffffffff) {
        local_34 = pcVar4;
        while( true ) {
          *(int **)((int)aiStack_70 + var_4 + 0x20) = &local_24;
          *(int *)((int)aiStack_70 + var_4 + 0x1c) = (int)var_8 - (int)pcVar4;
          *(char **)((int)aiStack_70 + var_4 + 0x18) = pcVar4;
          *(type_1 *)((int)aiStack_70 + var_4 + 0x14) = 0;
          *(type_1 *)((int)aiStack_70 + var_4 + 0x10) = 0x240c44;
          var_5 = pcVar4;
          var_10 = var_11(*(type_5 **)((int)aiStack_70 + var_4 + 0x14),
                          *(char **)((int)aiStack_70 + var_4 + 0x18),
                          *(size_t *)((int)aiStack_70 + var_4 + 0x1c),
                          *(type_6 **)((int)aiStack_70 + var_4 + 0x20));
          if (var_10 + 2 < 2) break;
          pcVar4 = var_5 + var_10;
        }
        param_1->__count = local_24;
        param_1->__value = local_20;
        var_12 = var_5 + ((int)var_12 - (int)local_34);
        goto LAB_00240be6;
      }
      var_8 = local_34;
      if (var_5 != (char *)0x0) {
        var_13 = (int)var_5 - (int)pcVar4;
        var_8 = var_5;
      }
      var_5 = var_8;
      var_12 = var_12 + var_13;
      var_3 = var_3 - var_10;
      if ((var_6 <= var_5) || (var_3 == 0)) break;
      var_5 = var_5 + 1;
      var_3 = var_3 - 1;
      var_12 = var_12 + 1;
      local_24 = param_1->__count;
      local_20 = param_1->__value;
      if (var_6 <= var_5) goto LAB_00240be6;
    }
  }
LAB_00240be6:
  *(type_1 *)((int)aiStack_70 + var_4 + 0x14) = local_40;
  *(type_1 *)((int)aiStack_70 + var_4 + 0x10) = 0x240bf1;
  var_2();
  return var_12;
}


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

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

int MASKED(int param_1,undefined4 *param_2,void *param_3,void *param_4,int param_5)

{
  int iVar1;
  void *pvVar2;
  size_t sVar3;
  void *pvVar4;
  int iVar5;
  int aiStack_70 [12];
  undefined4 local_40;
  undefined4 *local_3c;
  int local_38;
  void *local_34;
  int local_30;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x240aeb;
  local_20 = param_2[1];
  local_24 = *param_2;
  aiStack_70[5] = *(undefined4 *)(param_1 + 8);
  aiStack_70[4] = 0x240b0d;
  local_40 = __uselocale();
  local_30 = 0;
  iVar1 = -(param_5 * 4 + 0x1bU & 0xfffffff0);
  local_38 = (int)&local_40 + iVar1;
  local_3c = &param_3;
  while (param_3 < param_4) {
    while( true ) {
      pvVar4 = param_3;
      if (param_5 == 0) goto LAB_00240be6;
      iVar5 = (int)param_4 - (int)param_3;
      *(int *)((int)aiStack_70 + iVar1 + 0x1c) = iVar5;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x18) = 0;
      *(void **)((int)aiStack_70 + iVar1 + 0x14) = param_3;
      *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240b65;
      pvVar2 = memchr(*(void **)((int)aiStack_70 + iVar1 + 0x14),
                      *(int *)((int)aiStack_70 + iVar1 + 0x18),
                      *(size_t *)((int)aiStack_70 + iVar1 + 0x1c));
      local_34 = param_4;
      if (pvVar2 != (void *)0x0) {
        iVar5 = (int)pvVar2 - (int)pvVar4;
        local_34 = pvVar2;
      }
      *(undefined4 **)((int)aiStack_70 + iVar1 + 0x14) = param_2;
      *(int *)((int)aiStack_70 + iVar1 + 0x10) = param_5;
      *(int *)((int)aiStack_70 + iVar1 + 0xc) = iVar5;
      *(undefined4 **)((int)aiStack_70 + iVar1 + 8) = local_3c;
      *(int *)((int)aiStack_70 + iVar1 + 4) = local_38;
      *(undefined4 *)((int)aiStack_70 + iVar1) = 0x240b8e;
      sVar3 = mbsnrtowcs(*(wchar_t **)((int)aiStack_70 + iVar1 + 4),
                         *(char ***)((int)aiStack_70 + iVar1 + 8),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0xc),
                         *(size_t *)((int)aiStack_70 + iVar1 + 0x10),
                         *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x14));
      pvVar2 = param_4;
      if (sVar3 == 0xffffffff) {
        local_34 = pvVar4;
        while( true ) {
          *(undefined4 **)((int)aiStack_70 + iVar1 + 0x20) = &local_24;
          *(int *)((int)aiStack_70 + iVar1 + 0x1c) = (int)pvVar2 - (int)pvVar4;
          *(void **)((int)aiStack_70 + iVar1 + 0x18) = pvVar4;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = 0;
          *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240c44;
          param_3 = pvVar4;
          sVar3 = mbrtowc(*(wchar_t **)((int)aiStack_70 + iVar1 + 0x14),
                          *(char **)((int)aiStack_70 + iVar1 + 0x18),
                          *(size_t *)((int)aiStack_70 + iVar1 + 0x1c),
                          *(mbstate_t **)((int)aiStack_70 + iVar1 + 0x20));
          if (sVar3 + 2 < 2) break;
          pvVar4 = (void *)(sVar3 + (int)param_3);
        }
        *param_2 = local_24;
        param_2[1] = local_20;
        local_30 = (int)param_3 + (local_30 - (int)local_34);
        goto LAB_00240be6;
      }
      pvVar2 = local_34;
      if (param_3 != (void *)0x0) {
        iVar5 = (int)param_3 - (int)pvVar4;
        pvVar2 = param_3;
      }
      param_3 = pvVar2;
      local_30 = local_30 + iVar5;
      param_5 = param_5 - sVar3;
      if ((param_4 <= param_3) || (param_5 == 0)) break;
      param_3 = (void *)((int)param_3 + 1);
      param_5 = param_5 + -1;
      local_30 = local_30 + 1;
      local_24 = *param_2;
      local_20 = param_2[1];
      if (param_4 <= param_3) goto LAB_00240be6;
    }
  }
LAB_00240be6:
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x14) = local_40;
  *(undefined4 *)((int)aiStack_70 + iVar1 + 0x10) = 0x240bf1;
  __uselocale();
  return local_30;
}

