
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::wistream::ignore(int, unsigned int) */

wistream * __thiscall std::wistream::ignore(wistream *this,int param_1,uint param_2)

{
  int *piVar1;
  wchar_t *pwVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  wistream *pwVar5;
  wchar_t wVar6;
  size_t sVar7;
  int iVar8;
  size_t local_3c;
  sentry local_31;
  sentry local_1d [13];
  
  if (param_2 == 0xffffffff) {
    pwVar5 = (wistream *)ignore(this,param_1);
    return pwVar5;
  }
  *(undefined4 *)(this + 4) = 0;
  sentry::sentry(local_1d,this,true);
  if (param_1 < 1) {
    return this;
  }
  if (local_1d[0] == (sentry)0x0) {
    return this;
  }
  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);
  if ((wchar_t *)piVar1[2] < (wchar_t *)piVar1[3]) {
    wVar6 = *(wchar_t *)piVar1[2];
  }
  else {
    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  local_31 = (sentry)0x0;
  iVar8 = *(int *)(this + 4);
  do {
    while (iVar8 < param_1) {
      if (wVar6 == L'\xffffffff') goto LAB_00297b30;
      if (wVar6 == param_2) {
        if (param_1 == 0x7fffffff) {
          if (local_31 != (sentry)0x0) goto LAB_00297af3;
          goto LAB_00297b10;
        }
        if (local_31 != (sentry)0x0) goto LAB_00297af3;
        goto LAB_00297b04;
      }
      pwVar2 = (wchar_t *)piVar1[3];
      pwVar3 = (wchar_t *)piVar1[2];
      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;
      local_3c = param_1 - iVar8;
      if ((int)sVar7 <= param_1 - iVar8) {
        local_3c = sVar7;
      }
      if ((int)local_3c < 2) {
        *(int *)(this + 4) = iVar8 + 1;
        if (pwVar3 < pwVar2) {
          wVar6 = *pwVar3;
          piVar1[2] = (int)(pwVar3 + 1);
        }
        else {
          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
        }
        if (wVar6 == L'\xffffffff') goto LAB_00297b30;
        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {
          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);
          goto LAB_00297bac;
        }
        wVar6 = *(wchar_t *)piVar1[2];
        iVar8 = *(int *)(this + 4);
      }
      else {
        pwVar4 = wmemchr(pwVar3,param_2,local_3c);
        if (pwVar4 != (wchar_t *)0x0) {
          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;
        }
        iVar8 = iVar8 + local_3c;
        pwVar3 = pwVar3 + local_3c;
        piVar1[2] = (int)pwVar3;
        *(int *)(this + 4) = iVar8;
        if (pwVar3 < pwVar2) {
          wVar6 = *pwVar3;
        }
        else {
                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */
          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);
LAB_00297bac:
          iVar8 = *(int *)(this + 4);
        }
      }
    }
    if (param_1 != 0x7fffffff) {
      if (local_31 != (sentry)0x0) goto LAB_00297af3;
      goto LAB_00297afa;
    }
    if (wVar6 == L'\xffffffff') {
LAB_00297b30:
      if (local_31 != (sentry)0x0) {
        *(undefined4 *)(this + 4) = 0x7fffffff;
      }
      goto LAB_00297b3d;
    }
    if (wVar6 == param_2) {
      if (local_31 != (sentry)0x0) {
LAB_00297af3:
        *(undefined4 *)(this + 4) = 0x7fffffff;
LAB_00297afa:
        if (wVar6 == L'\xffffffff') {
LAB_00297b3d:
          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));
          return this;
        }
        if (param_2 != wVar6) {
          return this;
        }
LAB_00297b04:
        iVar8 = *(int *)(this + 4);
      }
      if (iVar8 != 0x7fffffff) {
LAB_00297b10:
        *(int *)(this + 4) = iVar8 + 1;
      }
      if ((uint)piVar1[2] < (uint)piVar1[3]) {
        piVar1[2] = piVar1[2] + 4;
      }
      else {
                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */
        (**(code **)(*piVar1 + 0x28))(piVar1);
      }
      return this;
    }
    local_31 = local_1d[0];
    *(undefined4 *)(this + 4) = 0x80000000;
    iVar8 = -0x80000000;
  } while( true );
}



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

int * FUN_00297940(int *param_1,int param_2,wchar_t param_3)

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  wchar_t *pwVar3;
  int *piVar4;
  wchar_t wVar5;
  size_t sVar6;
  int iVar7;
  size_t local_3c;
  char local_31;
  char local_1d [13];
  
  if (param_3 == L'\xffffffff') {
    piVar4 = (int *)FUN_002d0e90(param_1,param_2);
    return piVar4;
  }
  param_1[1] = 0;
  FUN_0026eee0(local_1d,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_1d[0] == '\0') {
    return param_1;
  }
  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {
    wVar5 = *(wchar_t *)piVar4[2];
  }
  else {
    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
  }
  local_31 = '\0';
  iVar7 = param_1[1];
  do {
    while (iVar7 < param_2) {
      if (wVar5 == L'\xffffffff') goto LAB_00297b30;
      if (wVar5 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (local_31 != '\0') goto LAB_00297af3;
          goto LAB_00297b10;
        }
        if (local_31 != '\0') goto LAB_00297af3;
        goto LAB_00297b04;
      }
      pwVar1 = (wchar_t *)piVar4[3];
      pwVar2 = (wchar_t *)piVar4[2];
      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;
      local_3c = param_2 - iVar7;
      if ((int)sVar6 <= param_2 - iVar7) {
        local_3c = sVar6;
      }
      if ((int)local_3c < 2) {
        param_1[1] = iVar7 + 1;
        if (pwVar2 < pwVar1) {
          wVar5 = *pwVar2;
          piVar4[2] = (int)(pwVar2 + 1);
        }
        else {
          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);
        }
        if (wVar5 == L'\xffffffff') goto LAB_00297b30;
        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {
          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
          goto LAB_00297bac;
        }
        wVar5 = *(wchar_t *)piVar4[2];
        iVar7 = param_1[1];
      }
      else {
        pwVar3 = wmemchr(pwVar2,param_3,local_3c);
        if (pwVar3 != (wchar_t *)0x0) {
          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;
        }
        iVar7 = iVar7 + local_3c;
        pwVar2 = pwVar2 + local_3c;
        piVar4[2] = (int)pwVar2;
        param_1[1] = iVar7;
        if (pwVar2 < pwVar1) {
          wVar5 = *pwVar2;
        }
        else {
                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */
          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
LAB_00297bac:
          iVar7 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (local_31 != '\0') goto LAB_00297af3;
      goto LAB_00297afa;
    }
    if (wVar5 == L'\xffffffff') {
LAB_00297b30:
      if (local_31 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_00297b3d;
    }
    if (wVar5 == param_3) {
      if (local_31 != '\0') {
LAB_00297af3:
        param_1[1] = 0x7fffffff;
LAB_00297afa:
        if (wVar5 == L'\xffffffff') {
LAB_00297b3d:
          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;
          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != wVar5) {
          return param_1;
        }
LAB_00297b04:
        iVar7 = param_1[1];
      }
      if (iVar7 != 0x7fffffff) {
LAB_00297b10:
        param_1[1] = iVar7 + 1;
      }
      if ((uint)piVar4[2] < (uint)piVar4[3]) {
        piVar4[2] = piVar4[2] + 4;
      }
      else {
                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */
        (**(code **)(*piVar4 + 0x28))(piVar4);
      }
      return param_1;
    }
    local_31 = local_1d[0];
    param_1[1] = -0x80000000;
    iVar7 = -0x80000000;
  } while( true );
}


CALL 0x000b4846
ADD EAX,0x17c6bb
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
CMP dword ptr [EBP + 0x10],-0x1
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x2c],EAX
JZ 0x00297ac0
SUB ESP,0x4
LEA EAX,[EBP + -0x19]
MOV dword ptr [ESI + 0x4],0x0
MOV EBX,dword ptr [EBP + -0x2c]
PUSH 0x1
PUSH ESI
PUSH EAX
CALL 0x0026eee0
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x10
TEST EAX,EAX
JLE 0x00297ab0
MOVZX EAX,byte ptr [EBP + -0x19]
MOV byte ptr [EBP + -0x2e],AL
TEST AL,AL
JZ 0x00297ab0
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + -0xc]
MOV ECX,dword ptr [ESI + EAX*0x1 + 0x7c]
MOV dword ptr [EBP + -0x34],ECX
MOV EAX,dword ptr [ECX + 0x8]
CMP dword ptr [ECX + 0xc],EAX
JBE 0x00297bb7
MOV EAX,dword ptr [EAX]
MOV byte ptr [EBP + -0x2d],0x0
MOV EDI,dword ptr [ESI + 0x4]
LEA ESI,[ESI]
CMP dword ptr [EBP + 0xc],EDI
JLE 0x00297a60
CMP EAX,-0x1
JZ 0x00297b30
CMP EAX,dword ptr [EBP + 0x10]
JZ 0x00297ae0
MOV EAX,dword ptr [EBP + -0x34]
MOV ECX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EBP + 0xc]
MOV EBX,ECX
SUB EBX,EDX
SUB EAX,EDI
SAR EBX,0x2
CMP EBX,EAX
CMOVLE EAX,EBX
MOV dword ptr [EBP + -0x38],EAX
CMP EAX,0x1
JLE 0x00297b68
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x44],ECX
PUSH EAX
PUSH dword ptr [EBP + 0x10]
PUSH EDX
MOV dword ptr [EBP + -0x40],EDX
MOV dword ptr [EBP + -0x3c],EAX
CALL 0x0002ca20
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x40]
MOV ECX,dword ptr [EBP + -0x44]
TEST EAX,EAX
JZ 0x00297a32
SUB EAX,EDX
SAR EAX,0x2
MOV dword ptr [EBP + -0x38],EAX
MOV dword ptr [EBP + -0x3c],EAX
MOV EAX,dword ptr [EBP + -0x3c]
ADD EDI,dword ptr [EBP + -0x38]
LEA EAX,[EDX + EAX*0x4]
MOV EDX,dword ptr [EBP + -0x34]
MOV dword ptr [EDX + 0x8],EAX
MOV dword ptr [ESI + 0x4],EDI
CMP ECX,EAX
JBE 0x00297ba0
MOV EAX,dword ptr [EAX]
CMP dword ptr [EBP + 0xc],EDI
JG 0x002979c9
LEA ESI,[ESI]
NOP
CMP dword ptr [EBP + 0xc],0x7fffffff
JNZ 0x00297c08
CMP EAX,-0x1
JZ 0x00297b30
CMP EAX,dword ptr [EBP + 0x10]
JZ 0x00297bf9
MOVZX EBX,byte ptr [EBP + -0x2e]
MOV dword ptr [ESI + 0x4],0x80000000
MOV EDI,0x80000000
MOV byte ptr [EBP + -0x2d],BL
JMP 0x002979c0
MOV EDX,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDX]
PUSH EDX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,ESI
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [EBP + 0xc]
MOV EBX,EAX
PUSH ESI
CALL 0x002d0e90
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [EBP + 0xc],0x7fffffff
JNZ 0x00297bea
CMP byte ptr [EBP + -0x2d],0x0
JZ 0x00297b10
MOV dword ptr [ESI + 0x4],0x7fffffff
CMP EAX,-0x1
JZ 0x00297b3d
CMP dword ptr [EBP + 0x10],EAX
JNZ 0x00297ab0
MOV EDI,dword ptr [ESI + 0x4]
CMP EDI,0x7fffffff
JZ 0x00297b16
NOP
ADD EDI,0x1
MOV dword ptr [ESI + 0x4],EDI
MOV EDX,dword ptr [EBP + -0x34]
MOV EAX,dword ptr [EDX + 0x8]
CMP EAX,dword ptr [EDX + 0xc]
JNC 0x00297a97
ADD EAX,0x4
MOV dword ptr [EDX + 0x8],EAX
MOV EAX,ESI
JMP 0x00297ab2
CMP byte ptr [EBP + -0x2d],0x0
JZ 0x00297b3d
MOV dword ptr [ESI + 0x4],0x7fffffff
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x2c]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x2
PUSH EAX
PUSH EDX
CALL 0x00272b10
ADD ESP,0x10
MOV EAX,ESI
JMP 0x00297ab2
ADD EDI,0x1
MOV dword ptr [ESI + 0x4],EDI
CMP ECX,EDX
JBE 0x00297bcb
MOV ECX,dword ptr [EBP + -0x34]
MOV EAX,dword ptr [EDX]
ADD EDX,0x4
MOV dword ptr [ECX + 0x8],EDX
CMP EAX,-0x1
JZ 0x00297b30
MOV ECX,dword ptr [EBP + -0x34]
MOV EAX,dword ptr [ECX + 0x8]
CMP EAX,dword ptr [ECX + 0xc]
JNC 0x00297bdc
MOV EAX,dword ptr [EAX]
MOV EDI,dword ptr [ESI + 0x4]
JMP 0x002979c0
MOV EDX,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDX]
PUSH EDX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
MOV EDI,dword ptr [ESI + 0x4]
JMP 0x002979c0
MOV ECX,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x002979b3
MOV ECX,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
JMP 0x00297b7d
MOV ECX,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x24]
JMP 0x00297bac
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x00297af3
JMP 0x00297b04
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x00297af3
JMP 0x00297b07
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x00297af3
JMP 0x00297afa
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_00297940(int *param_1,int param_2,wchar_t param_3)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}\n\n" comment (function_definition "int * FUN_00297940(int *param_1,int param_2,wchar_t param_3)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_00297940(int *param_1,int param_2,wchar_t param_3)" * (function_declarator "FUN_00297940(int *param_1,int param_2,wchar_t param_3)" identifier (parameter_list "(int *param_1,int param_2,wchar_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "wchar_t param_3" type_identifier identifier) )))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "wchar_t wVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t local_3c;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" if (parenthesized_expression "(param_3 == L'\xffffffff')" ( (binary_expression "param_3 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" { (expression_statement "piVar4 = (int *)FUN_002d0e90(param_1,param_2);" (assignment_expression "piVar4 = (int *)FUN_002d0e90(param_1,param_2)" identifier = (cast_expression "(int *)FUN_002d0e90(param_1,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d0e90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (return_statement "return piVar4;" return identifier ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0026eee0(local_1d,param_1,1);" (call_expression "FUN_0026eee0(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" if (parenthesized_expression "((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3])" ( (binary_expression "(wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]" (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) < (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    wVar5 = *(wchar_t *)piVar4[2];\n  }" { (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" identifier = (pointer_expression "*(wchar_t *)piVar4[2]" * (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" else (compound_statement "{\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) }))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" { (while_statement "while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar7 < param_2)" ( (binary_expression "iVar7 < param_2" identifier < identifier) )) (compound_statement "{\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" if (parenthesized_expression "(wVar5 == param_3)" ( (binary_expression "wVar5 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" { (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b10;" goto statement_identifier ;) })) (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b04;" goto statement_identifier ;) })) (expression_statement "pwVar1 = (wchar_t *)piVar4[3];" (assignment_expression "pwVar1 = (wchar_t *)piVar4[3]" identifier = (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar2 = (wchar_t *)piVar4[2];" (assignment_expression "pwVar2 = (wchar_t *)piVar4[2]" identifier = (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (expression_statement "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;" (assignment_expression "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2" identifier = (binary_expression "(int)pwVar1 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar1 - (int)pwVar2" (cast_expression "(int)pwVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "local_3c = param_2 - iVar7;" (assignment_expression "local_3c = param_2 - iVar7" identifier = (binary_expression "param_2 - iVar7" identifier - identifier)) ;) (if_statement "if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }" if (parenthesized_expression "((int)sVar6 <= param_2 - iVar7)" ( (binary_expression "(int)sVar6 <= param_2 - iVar7" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= (binary_expression "param_2 - iVar7" identifier - identifier)) )) (compound_statement "{\n        local_3c = sVar6;\n      }" { (expression_statement "local_3c = sVar6;" (assignment_expression "local_3c = sVar6" identifier = identifier) ;) })) (if_statement "if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" if (parenthesized_expression "((int)local_3c < 2)" ( (binary_expression "(int)local_3c < 2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" if (parenthesized_expression "(pwVar2 < pwVar1)" ( (binary_expression "pwVar2 < pwVar1" identifier < identifier) )) (compound_statement "{\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }" { (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) (expression_statement "piVar4[2] = (int)(pwVar2 + 1);" (assignment_expression "piVar4[2] = (int)(pwVar2 + 1)" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(int)(pwVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pwVar2 + 1)" ( (binary_expression "pwVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" else (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" ( (pointer_expression "**(code **)(*piVar4 + 0x28)" * (pointer_expression "*(code **)(*piVar4 + 0x28)" * (cast_expression "(code **)(*piVar4 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x28)" ( (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) }))) (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" if (parenthesized_expression "((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2])" ( (binary_expression "(wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]" (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ])) <= (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (goto_statement "goto LAB_00297bac;" goto statement_identifier ;) })) (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" identifier = (pointer_expression "*(wchar_t *)piVar4[2]" * (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" else (compound_statement "{\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" { (expression_statement "pwVar3 = wmemchr(pwVar2,param_3,local_3c);" (assignment_expression "pwVar3 = wmemchr(pwVar2,param_3,local_3c)" identifier = (call_expression "wmemchr(pwVar2,param_3,local_3c)" identifier (argument_list "(pwVar2,param_3,local_3c)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" if (parenthesized_expression "(pwVar3 != (wchar_t *)0x0)" ( (binary_expression "pwVar3 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" { (expression_statement "local_3c = (int)pwVar3 - (int)pwVar2 >> 2;" (assignment_expression "local_3c = (int)pwVar3 - (int)pwVar2 >> 2" identifier = (binary_expression "(int)pwVar3 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar3 - (int)pwVar2" (cast_expression "(int)pwVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) })) (expression_statement "iVar7 = iVar7 + local_3c;" (assignment_expression "iVar7 = iVar7 + local_3c" identifier = (binary_expression "iVar7 + local_3c" identifier + identifier)) ;) (expression_statement "pwVar2 = pwVar2 + local_3c;" (assignment_expression "pwVar2 = pwVar2 + local_3c" identifier = (binary_expression "pwVar2 + local_3c" identifier + identifier)) ;) (expression_statement "piVar4[2] = (int)pwVar2;" (assignment_expression "piVar4[2] = (int)pwVar2" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pwVar2 < pwVar1)" ( (binary_expression "pwVar2 < pwVar1" identifier < identifier) )) (compound_statement "{\n          wVar5 = *pwVar2;\n        }" { (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" { comment (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (labeled_statement "LAB_00297bac:\n          iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" { (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297afa;" goto statement_identifier ;) })) (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" { (labeled_statement "LAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_00297b3d;" goto statement_identifier ;) })) (if_statement "if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(wVar5 == param_3)" ( (binary_expression "wVar5 == param_3" identifier == identifier) )) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" { (if_statement "if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" { (labeled_statement "LAB_00297af3:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2)" identifier (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != wVar5) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != wVar5)" ( (binary_expression "param_3 != wVar5" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_00297b04:\n        iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) })) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" if (parenthesized_expression "(iVar7 != 0x7fffffff)" ( (binary_expression "iVar7 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" { (labeled_statement "LAB_00297b10:\n        param_1[1] = iVar7 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" if (parenthesized_expression "((uint)piVar4[2] < (uint)piVar4[3])" ( (binary_expression "(uint)piVar4[2] < (uint)piVar4[3]" (cast_expression "(uint)piVar4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar4[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar4[2] = piVar4[2] + 4;\n      }" { (expression_statement "piVar4[2] = piVar4[2] + 4;" (assignment_expression "piVar4[2] = piVar4[2] + 4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (binary_expression "piVar4[2] + 4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" else (compound_statement "{\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" { comment (expression_statement "(**(code **)(*piVar4 + 0x28))(piVar4);" (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" ( (pointer_expression "**(code **)(*piVar4 + 0x28)" * (pointer_expression "*(code **)(*piVar4 + 0x28)" * (cast_expression "(code **)(*piVar4 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x28)" ( (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::wistream::ignore(int, unsigned int) */\n\nwistream * __thiscall std::wistream::ignore(wistream *this,int param_1,uint param_2)\n\n{\n  int *piVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  wistream *pwVar5;\n  wchar_t wVar6;\n  size_t sVar7;\n  int iVar8;\n  size_t local_3c;\n  sentry local_31;\n  sentry local_1d [13];\n  \n  if (param_2 == 0xffffffff) {\n    pwVar5 = (wistream *)ignore(this,param_1);\n    return pwVar5;\n  }\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n  if ((wchar_t *)piVar1[2] < (wchar_t *)piVar1[3]) {\n    wVar6 = *(wchar_t *)piVar1[2];\n  }\n  else {\n    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_31 = (sentry)0x0;\n  iVar8 = *(int *)(this + 4);\n  do {\n    while (iVar8 < param_1) {\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar6 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar6 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );\n}\n\n" comment comment (ERROR "wistream * __thiscall std::wistream::ignore(wistream *this,int param_1,uint param_2)" (binary_expression "wistream * __thiscall std::wistream::ignore(wistream *this" (binary_expression "wistream * __thiscall" identifier * identifier) (ERROR "std::wistream::ignore(wistream" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type identifier , identifier identifier )) (compound_statement "{\n  int *piVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  wistream *pwVar5;\n  wchar_t wVar6;\n  size_t sVar7;\n  int iVar8;\n  size_t local_3c;\n  sentry local_31;\n  sentry local_1d [13];\n  \n  if (param_2 == 0xffffffff) {\n    pwVar5 = (wistream *)ignore(this,param_1);\n    return pwVar5;\n  }\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n  if ((wchar_t *)piVar1[2] < (wchar_t *)piVar1[3]) {\n    wVar6 = *(wchar_t *)piVar1[2];\n  }\n  else {\n    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_31 = (sentry)0x0;\n  iVar8 = *(int *)(this + 4);\n  do {\n    while (iVar8 < param_1) {\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar6 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar6 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "wistream *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "wchar_t wVar6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "size_t local_3c;" primitive_type identifier ;) (declaration "sentry local_31;" type_identifier identifier ;) (declaration "sentry local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_2 == 0xffffffff) {\n    pwVar5 = (wistream *)ignore(this,param_1);\n    return pwVar5;\n  }" if (parenthesized_expression "(param_2 == 0xffffffff)" ( (binary_expression "param_2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    pwVar5 = (wistream *)ignore(this,param_1);\n    return pwVar5;\n  }" { (expression_statement "pwVar5 = (wistream *)ignore(this,param_1);" (assignment_expression "pwVar5 = (wistream *)ignore(this,param_1)" identifier = (cast_expression "(wistream *)ignore(this,param_1)" ( (type_descriptor "wistream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ignore(this,param_1)" identifier (argument_list "(this,param_1)" ( identifier , identifier ))))) ;) (return_statement "return pwVar5;" return identifier ;) })) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "sentry::sentry(local_1d,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1d,this,true);" (call_expression "sentry(local_1d,this,true)" identifier (argument_list "(local_1d,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if (param_1 < 1) {\n    return this;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (if_statement "if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }" if (parenthesized_expression "(local_1d[0] == (sentry)0x0)" ( (binary_expression "local_1d[0] == (sentry)0x0" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x7c" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((wchar_t *)piVar1[2] < (wchar_t *)piVar1[3]) {\n    wVar6 = *(wchar_t *)piVar1[2];\n  }\n  else {\n    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" if (parenthesized_expression "((wchar_t *)piVar1[2] < (wchar_t *)piVar1[3])" ( (binary_expression "(wchar_t *)piVar1[2] < (wchar_t *)piVar1[3]" (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(wchar_t *)piVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    wVar6 = *(wchar_t *)piVar1[2];\n  }" { (expression_statement "wVar6 = *(wchar_t *)piVar1[2];" (assignment_expression "wVar6 = *(wchar_t *)piVar1[2]" identifier = (pointer_expression "*(wchar_t *)piVar1[2]" * (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n    wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (expression_statement "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "local_31 = (sentry)0x0;" (assignment_expression "local_31 = (sentry)0x0" identifier = (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;) (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n    while (iVar8 < param_1) {\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar6 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar6 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar8 < param_1) {\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar6 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar6 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  }" { (while_statement "while (iVar8 < param_1) {\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }" while (parenthesized_expression "(iVar8 < param_1)" ( (binary_expression "iVar8 < param_1" identifier < identifier) )) (compound_statement "{\n      if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar2 = (wchar_t *)piVar1[3];\n      pwVar3 = (wchar_t *)piVar1[2];\n      sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;\n      local_3c = param_1 - iVar8;\n      if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }\n      if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }" { (if_statement "if (wVar6 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar6 == L'\xffffffff')" ( (binary_expression "wVar6 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if (wVar6 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" if (parenthesized_expression "(wVar6 == param_2)" ( (binary_expression "wVar6 == param_2" identifier == identifier) )) (compound_statement "{\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" { (if_statement "if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" if (parenthesized_expression "(param_1 == 0x7fffffff)" ( (binary_expression "param_1 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != (sentry)0x0) goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" { (if_statement "if (local_31 != (sentry)0x0) goto LAB_00297af3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b10;" goto statement_identifier ;) })) (if_statement "if (local_31 != (sentry)0x0) goto LAB_00297af3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b04;" goto statement_identifier ;) })) (expression_statement "pwVar2 = (wchar_t *)piVar1[3];" (assignment_expression "pwVar2 = (wchar_t *)piVar1[3]" identifier = (cast_expression "(wchar_t *)piVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)piVar1[2];" (assignment_expression "pwVar3 = (wchar_t *)piVar1[2]" identifier = (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "sVar7 = (int)pwVar2 - (int)pwVar3 >> 2;" (assignment_expression "sVar7 = (int)pwVar2 - (int)pwVar3 >> 2" identifier = (binary_expression "(int)pwVar2 - (int)pwVar3 >> 2" (binary_expression "(int)pwVar2 - (int)pwVar3" (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "local_3c = param_1 - iVar8;" (assignment_expression "local_3c = param_1 - iVar8" identifier = (binary_expression "param_1 - iVar8" identifier - identifier)) ;) (if_statement "if ((int)sVar7 <= param_1 - iVar8) {\n        local_3c = sVar7;\n      }" if (parenthesized_expression "((int)sVar7 <= param_1 - iVar8)" ( (binary_expression "(int)sVar7 <= param_1 - iVar8" (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= (binary_expression "param_1 - iVar8" identifier - identifier)) )) (compound_statement "{\n        local_3c = sVar7;\n      }" { (expression_statement "local_3c = sVar7;" (assignment_expression "local_3c = sVar7" identifier = identifier) ;) })) (if_statement "if ((int)local_3c < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }" if (parenthesized_expression "((int)local_3c < 2)" ( (binary_expression "(int)local_3c < 2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (wVar6 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }\n        wVar6 = *(wchar_t *)piVar1[2];\n        iVar8 = *(int *)(this + 4);\n      }" { (expression_statement "*(int *)(this + 4) = iVar8 + 1;" (assignment_expression "*(int *)(this + 4) = iVar8 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }\n        else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" if (parenthesized_expression "(pwVar3 < pwVar2)" ( (binary_expression "pwVar3 < pwVar2" identifier < identifier) )) (compound_statement "{\n          wVar6 = *pwVar3;\n          piVar1[2] = (int)(pwVar3 + 1);\n        }" { (expression_statement "wVar6 = *pwVar3;" (assignment_expression "wVar6 = *pwVar3" identifier = (pointer_expression "*pwVar3" * identifier)) ;) (expression_statement "piVar1[2] = (int)(pwVar3 + 1);" (assignment_expression "piVar1[2] = (int)(pwVar3 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(pwVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pwVar3 + 1)" ( (binary_expression "pwVar3 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" else (compound_statement "{\n          wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" { (expression_statement "wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "wVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (wVar6 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar6 == L'\xffffffff')" ( (binary_expression "wVar6 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if ((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]) {\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }" if (parenthesized_expression "((wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2])" ( (binary_expression "(wchar_t *)piVar1[3] <= (wchar_t *)piVar1[2]" (cast_expression "(wchar_t *)piVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          goto LAB_00297bac;\n        }" { (expression_statement "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (goto_statement "goto LAB_00297bac;" goto statement_identifier ;) })) (expression_statement "wVar6 = *(wchar_t *)piVar1[2];" (assignment_expression "wVar6 = *(wchar_t *)piVar1[2]" identifier = (pointer_expression "*(wchar_t *)piVar1[2]" * (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }" else (compound_statement "{\n        pwVar4 = wmemchr(pwVar3,param_2,local_3c);\n        if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }\n        iVar8 = iVar8 + local_3c;\n        pwVar3 = pwVar3 + local_3c;\n        piVar1[2] = (int)pwVar3;\n        *(int *)(this + 4) = iVar8;\n        if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }\n      }" { (expression_statement "pwVar4 = wmemchr(pwVar3,param_2,local_3c);" (assignment_expression "pwVar4 = wmemchr(pwVar3,param_2,local_3c)" identifier = (call_expression "wmemchr(pwVar3,param_2,local_3c)" identifier (argument_list "(pwVar3,param_2,local_3c)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pwVar4 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }" if (parenthesized_expression "(pwVar4 != (wchar_t *)0x0)" ( (binary_expression "pwVar4 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_3c = (int)pwVar4 - (int)pwVar3 >> 2;\n        }" { (expression_statement "local_3c = (int)pwVar4 - (int)pwVar3 >> 2;" (assignment_expression "local_3c = (int)pwVar4 - (int)pwVar3 >> 2" identifier = (binary_expression "(int)pwVar4 - (int)pwVar3 >> 2" (binary_expression "(int)pwVar4 - (int)pwVar3" (cast_expression "(int)pwVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) })) (expression_statement "iVar8 = iVar8 + local_3c;" (assignment_expression "iVar8 = iVar8 + local_3c" identifier = (binary_expression "iVar8 + local_3c" identifier + identifier)) ;) (expression_statement "pwVar3 = pwVar3 + local_3c;" (assignment_expression "pwVar3 = pwVar3 + local_3c" identifier = (binary_expression "pwVar3 + local_3c" identifier + identifier)) ;) (expression_statement "piVar1[2] = (int)pwVar3;" (assignment_expression "piVar1[2] = (int)pwVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pwVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(this + 4) = iVar8;" (assignment_expression "*(int *)(this + 4) = iVar8" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pwVar3 < pwVar2) {\n          wVar6 = *pwVar3;\n        }\n        else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }" if (parenthesized_expression "(pwVar3 < pwVar2)" ( (binary_expression "pwVar3 < pwVar2" identifier < identifier) )) (compound_statement "{\n          wVar6 = *pwVar3;\n        }" { (expression_statement "wVar6 = *pwVar3;" (assignment_expression "wVar6 = *pwVar3" identifier = (pointer_expression "*pwVar3" * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }" else (compound_statement "{\n                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */\n          wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);\nLAB_00297bac:\n          iVar8 = *(int *)(this + 4);\n        }" { comment (expression_statement "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "wVar6 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (labeled_statement "LAB_00297bac:\n          iVar8 = *(int *)(this + 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;)) }))) }))) })) (if_statement "if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" if (parenthesized_expression "(param_1 != 0x7fffffff)" ( (binary_expression "param_1 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != (sentry)0x0) goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" { (if_statement "if (local_31 != (sentry)0x0) goto LAB_00297af3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297afa;" goto statement_identifier ;) })) (if_statement "if (wVar6 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" if (parenthesized_expression "(wVar6 == L'\xffffffff')" ( (binary_expression "wVar6 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" { (labeled_statement "LAB_00297b30:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" { (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_00297b3d;" goto statement_identifier ;) })) (if_statement "if (wVar6 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }" if (parenthesized_expression "(wVar6 == param_2)" ( (binary_expression "wVar6 == param_2" identifier == identifier) )) (compound_statement "{\n      if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }" { (if_statement "if (local_31 != (sentry)0x0) {\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\nLAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }\n        if (param_2 != wVar6) {\n          return this;\n        }\nLAB_00297b04:\n        iVar8 = *(int *)(this + 4);\n      }" { (labeled_statement "LAB_00297af3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;" statement_identifier : (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;)) (labeled_statement "LAB_00297afa:\n        if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }" statement_identifier : (if_statement "if (wVar6 == L'\xffffffff') {\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }" if (parenthesized_expression "(wVar6 == L'\xffffffff')" ( (binary_expression "wVar6 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));\n          return this;\n        }" { (labeled_statement "LAB_00297b3d:\n          wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));" statement_identifier : (labeled_statement "wios::clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));" statement_identifier : (ERROR ":" :) (expression_statement "clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)));" (call_expression "clear((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)))" identifier (argument_list "((_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc)))" ( (call_expression "(_Ios_Iostate)(this + *(int *)(*(int *)this + -0xc))" (parenthesized_expression "(_Ios_Iostate)" ( identifier )) (argument_list "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) ))) ;))) (return_statement "return this;" return identifier ;) }))) (if_statement "if (param_2 != wVar6) {\n          return this;\n        }" if (parenthesized_expression "(param_2 != wVar6)" ( (binary_expression "param_2 != wVar6" identifier != identifier) )) (compound_statement "{\n          return this;\n        }" { (return_statement "return this;" return identifier ;) })) (labeled_statement "LAB_00297b04:\n        iVar8 = *(int *)(this + 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;)) })) (if_statement "if (iVar8 != 0x7fffffff) {\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }" if (parenthesized_expression "(iVar8 != 0x7fffffff)" ( (binary_expression "iVar8 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;\n      }" { (labeled_statement "LAB_00297b10:\n        *(int *)(this + 4) = iVar8 + 1;" statement_identifier : (expression_statement "*(int *)(this + 4) = iVar8 + 1;" (assignment_expression "*(int *)(this + 4) = iVar8 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 4;\n      }\n      else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" if (parenthesized_expression "((uint)piVar1[2] < (uint)piVar1[3])" ( (binary_expression "(uint)piVar1[2] < (uint)piVar1[3]" (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar1[2] = piVar1[2] + 4;\n      }" { (expression_statement "piVar1[2] = piVar1[2] + 4;" (assignment_expression "piVar1[2] = piVar1[2] + 4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (binary_expression "piVar1[2] + 4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" else (compound_statement "{\n                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" { comment (expression_statement "(**(code **)(*piVar1 + 0x28))(piVar1);" (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) (return_statement "return this;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 4) = 0x80000000;" (assignment_expression "*(undefined4 *)(this + 4) = 0x80000000" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = -0x80000000;" (assignment_expression "iVar8 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))
(translation_unit "int * FUN_00297940(int *param_1,int param_2,wchar_t param_3)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}\n\n" (function_definition "int * FUN_00297940(int *param_1,int param_2,wchar_t param_3)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_00297940(int *param_1,int param_2,wchar_t param_3)" * (function_declarator "FUN_00297940(int *param_1,int param_2,wchar_t param_3)" identifier (parameter_list "(int *param_1,int param_2,wchar_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "wchar_t param_3" type_identifier identifier) )))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wchar_t *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "wchar_t wVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t local_3c;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" if (parenthesized_expression "(param_3 == L'\xffffffff')" ( (binary_expression "param_3 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" { (expression_statement "piVar4 = (int *)FUN_002d0e90(param_1,param_2);" (assignment_expression "piVar4 = (int *)FUN_002d0e90(param_1,param_2)" identifier = (cast_expression "(int *)FUN_002d0e90(param_1,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d0e90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (return_statement "return piVar4;" return identifier ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0026eee0(local_1d,param_1,1);" (call_expression "FUN_0026eee0(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" if (parenthesized_expression "((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3])" ( (binary_expression "(wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]" (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) < (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    wVar5 = *(wchar_t *)piVar4[2];\n  }" { (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" identifier = (pointer_expression "*(wchar_t *)piVar4[2]" * (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" else (compound_statement "{\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) }))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" { (while_statement "while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar7 < param_2)" ( (binary_expression "iVar7 < param_2" identifier < identifier) )) (compound_statement "{\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" if (parenthesized_expression "(wVar5 == param_3)" ( (binary_expression "wVar5 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" { (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b10;" goto statement_identifier ;) })) (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297b04;" goto statement_identifier ;) })) (expression_statement "pwVar1 = (wchar_t *)piVar4[3];" (assignment_expression "pwVar1 = (wchar_t *)piVar4[3]" identifier = (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar2 = (wchar_t *)piVar4[2];" (assignment_expression "pwVar2 = (wchar_t *)piVar4[2]" identifier = (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (expression_statement "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;" (assignment_expression "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2" identifier = (binary_expression "(int)pwVar1 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar1 - (int)pwVar2" (cast_expression "(int)pwVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "local_3c = param_2 - iVar7;" (assignment_expression "local_3c = param_2 - iVar7" identifier = (binary_expression "param_2 - iVar7" identifier - identifier)) ;) (if_statement "if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }" if (parenthesized_expression "((int)sVar6 <= param_2 - iVar7)" ( (binary_expression "(int)sVar6 <= param_2 - iVar7" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= (binary_expression "param_2 - iVar7" identifier - identifier)) )) (compound_statement "{\n        local_3c = sVar6;\n      }" { (expression_statement "local_3c = sVar6;" (assignment_expression "local_3c = sVar6" identifier = identifier) ;) })) (if_statement "if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" if (parenthesized_expression "((int)local_3c < 2)" ( (binary_expression "(int)local_3c < 2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" if (parenthesized_expression "(pwVar2 < pwVar1)" ( (binary_expression "pwVar2 < pwVar1" identifier < identifier) )) (compound_statement "{\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }" { (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) (expression_statement "piVar4[2] = (int)(pwVar2 + 1);" (assignment_expression "piVar4[2] = (int)(pwVar2 + 1)" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(int)(pwVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pwVar2 + 1)" ( (binary_expression "pwVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" else (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" ( (pointer_expression "**(code **)(*piVar4 + 0x28)" * (pointer_expression "*(code **)(*piVar4 + 0x28)" * (cast_expression "(code **)(*piVar4 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x28)" ( (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) }))) (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_00297b30;" goto statement_identifier ;)) (if_statement "if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" if (parenthesized_expression "((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2])" ( (binary_expression "(wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]" (cast_expression "(wchar_t *)piVar4[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[3]" identifier [ number_literal ])) <= (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (goto_statement "goto LAB_00297bac;" goto statement_identifier ;) })) (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" identifier = (pointer_expression "*(wchar_t *)piVar4[2]" * (cast_expression "(wchar_t *)piVar4[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" else (compound_statement "{\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" { (expression_statement "pwVar3 = wmemchr(pwVar2,param_3,local_3c);" (assignment_expression "pwVar3 = wmemchr(pwVar2,param_3,local_3c)" identifier = (call_expression "wmemchr(pwVar2,param_3,local_3c)" identifier (argument_list "(pwVar2,param_3,local_3c)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" if (parenthesized_expression "(pwVar3 != (wchar_t *)0x0)" ( (binary_expression "pwVar3 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" { (expression_statement "local_3c = (int)pwVar3 - (int)pwVar2 >> 2;" (assignment_expression "local_3c = (int)pwVar3 - (int)pwVar2 >> 2" identifier = (binary_expression "(int)pwVar3 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar3 - (int)pwVar2" (cast_expression "(int)pwVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) })) (expression_statement "iVar7 = iVar7 + local_3c;" (assignment_expression "iVar7 = iVar7 + local_3c" identifier = (binary_expression "iVar7 + local_3c" identifier + identifier)) ;) (expression_statement "pwVar2 = pwVar2 + local_3c;" (assignment_expression "pwVar2 = pwVar2 + local_3c" identifier = (binary_expression "pwVar2 + local_3c" identifier + identifier)) ;) (expression_statement "piVar4[2] = (int)pwVar2;" (assignment_expression "piVar4[2] = (int)pwVar2" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (cast_expression "(int)pwVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pwVar2 < pwVar1)" ( (binary_expression "pwVar2 < pwVar1" identifier < identifier) )) (compound_statement "{\n          wVar5 = *pwVar2;\n        }" { (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) }) (else_clause "else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" { (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" identifier = (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" ( (pointer_expression "**(code **)(*piVar4 + 0x24)" * (pointer_expression "*(code **)(*piVar4 + 0x24)" * (cast_expression "(code **)(*piVar4 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x24)" ( (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier )))) ;) (labeled_statement "LAB_00297bac:\n          iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" { (if_statement "if (local_31 != '\0') goto LAB_00297af3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00297af3;" goto statement_identifier ;)) (goto_statement "goto LAB_00297afa;" goto statement_identifier ;) })) (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" { (labeled_statement "LAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_00297b3d;" goto statement_identifier ;) })) (if_statement "if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(wVar5 == param_3)" ( (binary_expression "wVar5 == param_3" identifier == identifier) )) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" { (if_statement "if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" { (labeled_statement "LAB_00297af3:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(wVar5 == L'\xffffffff')" ( (binary_expression "wVar5 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2)" identifier (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != wVar5) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != wVar5)" ( (binary_expression "param_3 != wVar5" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_00297b04:\n        iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) })) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" if (parenthesized_expression "(iVar7 != 0x7fffffff)" ( (binary_expression "iVar7 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" { (labeled_statement "LAB_00297b10:\n        param_1[1] = iVar7 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" if (parenthesized_expression "((uint)piVar4[2] < (uint)piVar4[3])" ( (binary_expression "(uint)piVar4[2] < (uint)piVar4[3]" (cast_expression "(uint)piVar4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar4[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar4[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar4[2] = piVar4[2] + 4;\n      }" { (expression_statement "piVar4[2] = piVar4[2] + 4;" (assignment_expression "piVar4[2] = piVar4[2] + 4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (binary_expression "piVar4[2] + 4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" else (compound_statement "{\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" { (expression_statement "(**(code **)(*piVar4 + 0x28))(piVar4);" (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" ( (pointer_expression "**(code **)(*piVar4 + 0x28)" * (pointer_expression "*(code **)(*piVar4 + 0x28)" * (cast_expression "(code **)(*piVar4 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x28)" ( (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (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) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) }))) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return IDENT ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int * FUN_00297940(int *param_1,int param_2,wchar_t param_3)\n\n{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* FUN_00297940(int *param_1,int param_2,wchar_t param_3)" (* "*") (function_declarator "FUN_00297940(int *param_1,int param_2,wchar_t param_3)" (identifier "FUN_00297940") (parameter_list "(int *param_1,int param_2,wchar_t param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "wchar_t param_3" (type_identifier "wchar_t") (identifier "param_3")) () ")")))) (compound_statement "{\n  wchar_t *pwVar1;\n  wchar_t *pwVar2;\n  wchar_t *pwVar3;\n  int *piVar4;\n  wchar_t wVar5;\n  size_t sVar6;\n  int iVar7;\n  size_t local_3c;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }\n  param_1[1] = 0;\n  FUN_0026eee0(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" ({ "{") (declaration "wchar_t *pwVar1;" (type_identifier "wchar_t") (pointer_declarator "*pwVar1" (* "*") (identifier "pwVar1")) (; ";")) (declaration "wchar_t *pwVar2;" (type_identifier "wchar_t") (pointer_declarator "*pwVar2" (* "*") (identifier "pwVar2")) (; ";")) (declaration "wchar_t *pwVar3;" (type_identifier "wchar_t") (pointer_declarator "*pwVar3" (* "*") (identifier "pwVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "wchar_t wVar5;" (type_identifier "wchar_t") (identifier "wVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "size_t local_3c;" (primitive_type "size_t") (identifier "local_3c") (; ";")) (declaration "char local_31;" (primitive_type "char") (identifier "local_31") (; ";")) (declaration "char local_1d [13];" (primitive_type "char") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (if_statement "if (param_3 == L'\xffffffff') {\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" (if "if") (parenthesized_expression "(param_3 == L'\xffffffff')" (( "(") (binary_expression "param_3 == L'\xffffffff'" (identifier "param_3") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\n    piVar4 = (int *)FUN_002d0e90(param_1,param_2);\n    return piVar4;\n  }" ({ "{") (expression_statement "piVar4 = (int *)FUN_002d0e90(param_1,param_2);" (assignment_expression "piVar4 = (int *)FUN_002d0e90(param_1,param_2)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_002d0e90(param_1,param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002d0e90(param_1,param_2)" (identifier "FUN_002d0e90") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}"))) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0026eee0(local_1d,param_1,1);" (call_expression "FUN_0026eee0(local_1d,param_1,1)" (identifier "FUN_0026eee0") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (if_statement "if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {\n    wVar5 = *(wchar_t *)piVar4[2];\n  }\n  else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" (if "if") (parenthesized_expression "((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3])" (( "(") (binary_expression "(wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]" (cast_expression "(wchar_t *)piVar4[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(wchar_t *)piVar4[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    wVar5 = *(wchar_t *)piVar4[2];\n  }" ({ "{") (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" (identifier "wVar5") (= "=") (pointer_expression "*(wchar_t *)piVar4[2]" (* "*") (cast_expression "(wchar_t *)piVar4[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" (else "else") (compound_statement "{\n    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n  }" ({ "{") (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" (identifier "wVar5") (= "=") (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x24)" (* "*") (cast_expression "(code **)(*piVar4 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x24)" (( "(") (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (} "}")))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" (identifier "local_31") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" (do "do") (compound_statement "{\n    while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }\n    if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }\n    if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" ({ "{") (while_statement "while (iVar7 < param_2) {\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" (while "while") (parenthesized_expression "(iVar7 < param_2)" (( "(") (binary_expression "iVar7 < param_2" (identifier "iVar7") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n      if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }\n      pwVar1 = (wchar_t *)piVar4[3];\n      pwVar2 = (wchar_t *)piVar4[2];\n      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;\n      local_3c = param_2 - iVar7;\n      if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }\n      if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }\n    }" ({ "{") (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" (if "if") (parenthesized_expression "(wVar5 == L'\xffffffff')" (( "(") (binary_expression "wVar5 == L'\xffffffff'" (identifier "wVar5") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (goto_statement "goto LAB_00297b30;" (goto "goto") (statement_identifier "LAB_00297b30") (; ";"))) (if_statement "if (wVar5 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" (if "if") (parenthesized_expression "(wVar5 == param_3)" (( "(") (binary_expression "wVar5 == param_3" (identifier "wVar5") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }\n        if (local_31 != '\0') goto LAB_00297af3;\n        goto LAB_00297b04;\n      }" ({ "{") (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" (if "if") (parenthesized_expression "(param_2 == 0x7fffffff)" (( "(") (binary_expression "param_2 == 0x7fffffff" (identifier "param_2") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n          if (local_31 != '\0') goto LAB_00297af3;\n          goto LAB_00297b10;\n        }" ({ "{") (if_statement "if (local_31 != '\0') goto LAB_00297af3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00297af3;" (goto "goto") (statement_identifier "LAB_00297af3") (; ";"))) (goto_statement "goto LAB_00297b10;" (goto "goto") (statement_identifier "LAB_00297b10") (; ";")) (} "}"))) (if_statement "if (local_31 != '\0') goto LAB_00297af3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00297af3;" (goto "goto") (statement_identifier "LAB_00297af3") (; ";"))) (goto_statement "goto LAB_00297b04;" (goto "goto") (statement_identifier "LAB_00297b04") (; ";")) (} "}"))) (expression_statement "pwVar1 = (wchar_t *)piVar4[3];" (assignment_expression "pwVar1 = (wchar_t *)piVar4[3]" (identifier "pwVar1") (= "=") (cast_expression "(wchar_t *)piVar4[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pwVar2 = (wchar_t *)piVar4[2];" (assignment_expression "pwVar2 = (wchar_t *)piVar4[2]" (identifier "pwVar2") (= "=") (cast_expression "(wchar_t *)piVar4[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;" (assignment_expression "sVar6 = (int)pwVar1 - (int)pwVar2 >> 2" (identifier "sVar6") (= "=") (binary_expression "(int)pwVar1 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar1 - (int)pwVar2" (cast_expression "(int)pwVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pwVar1")) (- "-") (cast_expression "(int)pwVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pwVar2"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "local_3c = param_2 - iVar7;" (assignment_expression "local_3c = param_2 - iVar7" (identifier "local_3c") (= "=") (binary_expression "param_2 - iVar7" (identifier "param_2") (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if ((int)sVar6 <= param_2 - iVar7) {\n        local_3c = sVar6;\n      }" (if "if") (parenthesized_expression "((int)sVar6 <= param_2 - iVar7)" (( "(") (binary_expression "(int)sVar6 <= param_2 - iVar7" (cast_expression "(int)sVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar6")) (<= "<=") (binary_expression "param_2 - iVar7" (identifier "param_2") (- "-") (identifier "iVar7"))) () ")")) (compound_statement "{\n        local_3c = sVar6;\n      }" ({ "{") (expression_statement "local_3c = sVar6;" (assignment_expression "local_3c = sVar6" (identifier "local_3c") (= "=") (identifier "sVar6")) (; ";")) (} "}"))) (if_statement "if ((int)local_3c < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }\n      else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" (if "if") (parenthesized_expression "((int)local_3c < 2)" (( "(") (binary_expression "(int)local_3c < 2" (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }\n        if (wVar5 == L'\xffffffff') goto LAB_00297b30;\n        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }\n        wVar5 = *(wchar_t *)piVar4[2];\n        iVar7 = param_1[1];\n      }" ({ "{") (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }\n        else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" (if "if") (parenthesized_expression "(pwVar2 < pwVar1)" (( "(") (binary_expression "pwVar2 < pwVar1" (identifier "pwVar2") (< "<") (identifier "pwVar1")) () ")")) (compound_statement "{\n          wVar5 = *pwVar2;\n          piVar4[2] = (int)(pwVar2 + 1);\n        }" ({ "{") (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" (identifier "wVar5") (= "=") (pointer_expression "*pwVar2" (* "*") (identifier "pwVar2"))) (; ";")) (expression_statement "piVar4[2] = (int)(pwVar2 + 1);" (assignment_expression "piVar4[2] = (int)(pwVar2 + 1)" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(pwVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pwVar2 + 1)" (( "(") (binary_expression "pwVar2 + 1" (identifier "pwVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" (else "else") (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);\n        }" ({ "{") (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4)" (identifier "wVar5") (= "=") (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x28)" (* "*") (cast_expression "(code **)(*piVar4 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x28)" (( "(") (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (} "}")))) (if_statement "if (wVar5 == L'\xffffffff') goto LAB_00297b30;" (if "if") (parenthesized_expression "(wVar5 == L'\xffffffff')" (( "(") (binary_expression "wVar5 == L'\xffffffff'" (identifier "wVar5") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (goto_statement "goto LAB_00297b30;" (goto "goto") (statement_identifier "LAB_00297b30") (; ";"))) (if_statement "if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" (if "if") (parenthesized_expression "((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2])" (( "(") (binary_expression "(wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]" (cast_expression "(wchar_t *)piVar4[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(wchar_t *)piVar4[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\n          goto LAB_00297bac;\n        }" ({ "{") (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" (identifier "wVar5") (= "=") (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x24)" (* "*") (cast_expression "(code **)(*piVar4 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x24)" (( "(") (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (goto_statement "goto LAB_00297bac;" (goto "goto") (statement_identifier "LAB_00297bac") (; ";")) (} "}"))) (expression_statement "wVar5 = *(wchar_t *)piVar4[2];" (assignment_expression "wVar5 = *(wchar_t *)piVar4[2]" (identifier "wVar5") (= "=") (pointer_expression "*(wchar_t *)piVar4[2]" (* "*") (cast_expression "(wchar_t *)piVar4[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" (else "else") (compound_statement "{\n        pwVar3 = wmemchr(pwVar2,param_3,local_3c);\n        if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }\n        iVar7 = iVar7 + local_3c;\n        pwVar2 = pwVar2 + local_3c;\n        piVar4[2] = (int)pwVar2;\n        param_1[1] = iVar7;\n        if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }\n      }" ({ "{") (expression_statement "pwVar3 = wmemchr(pwVar2,param_3,local_3c);" (assignment_expression "pwVar3 = wmemchr(pwVar2,param_3,local_3c)" (identifier "pwVar3") (= "=") (call_expression "wmemchr(pwVar2,param_3,local_3c)" (identifier "wmemchr") (argument_list "(pwVar2,param_3,local_3c)" (( "(") (identifier "pwVar2") (, ",") (identifier "param_3") (, ",") (identifier "local_3c") () ")")))) (; ";")) (if_statement "if (pwVar3 != (wchar_t *)0x0) {\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" (if "if") (parenthesized_expression "(pwVar3 != (wchar_t *)0x0)" (( "(") (binary_expression "pwVar3 != (wchar_t *)0x0" (identifier "pwVar3") (!= "!=") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;\n        }" ({ "{") (expression_statement "local_3c = (int)pwVar3 - (int)pwVar2 >> 2;" (assignment_expression "local_3c = (int)pwVar3 - (int)pwVar2 >> 2" (identifier "local_3c") (= "=") (binary_expression "(int)pwVar3 - (int)pwVar2 >> 2" (binary_expression "(int)pwVar3 - (int)pwVar2" (cast_expression "(int)pwVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pwVar3")) (- "-") (cast_expression "(int)pwVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pwVar2"))) (>> ">>") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + local_3c;" (assignment_expression "iVar7 = iVar7 + local_3c" (identifier "iVar7") (= "=") (binary_expression "iVar7 + local_3c" (identifier "iVar7") (+ "+") (identifier "local_3c"))) (; ";")) (expression_statement "pwVar2 = pwVar2 + local_3c;" (assignment_expression "pwVar2 = pwVar2 + local_3c" (identifier "pwVar2") (= "=") (binary_expression "pwVar2 + local_3c" (identifier "pwVar2") (+ "+") (identifier "local_3c"))) (; ";")) (expression_statement "piVar4[2] = (int)pwVar2;" (assignment_expression "piVar4[2] = (int)pwVar2" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pwVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pwVar2"))) (; ";")) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (pwVar2 < pwVar1) {\n          wVar5 = *pwVar2;\n        }\n        else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" (if "if") (parenthesized_expression "(pwVar2 < pwVar1)" (( "(") (binary_expression "pwVar2 < pwVar1" (identifier "pwVar2") (< "<") (identifier "pwVar1")) () ")")) (compound_statement "{\n          wVar5 = *pwVar2;\n        }" ({ "{") (expression_statement "wVar5 = *pwVar2;" (assignment_expression "wVar5 = *pwVar2" (identifier "wVar5") (= "=") (pointer_expression "*pwVar2" (* "*") (identifier "pwVar2"))) (; ";")) (} "}")) (else_clause "else {\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" (else "else") (compound_statement "{\n                    \n          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);\nLAB_00297bac:\n          iVar7 = param_1[1];\n        }" ({ "{") (expression_statement "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);" (assignment_expression "wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4)" (identifier "wVar5") (= "=") (call_expression "(**(code **)(*piVar4 + 0x24))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x24)" (* "*") (cast_expression "(code **)(*piVar4 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x24)" (( "(") (binary_expression "*piVar4 + 0x24" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (labeled_statement "LAB_00297bac:\n          iVar7 = param_1[1];" (statement_identifier "LAB_00297bac") (: ":") (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (} "}")))) (} "}")))) (} "}"))) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" (if "if") (parenthesized_expression "(param_2 != 0x7fffffff)" (( "(") (binary_expression "param_2 != 0x7fffffff" (identifier "param_2") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n      if (local_31 != '\0') goto LAB_00297af3;\n      goto LAB_00297afa;\n    }" ({ "{") (if_statement "if (local_31 != '\0') goto LAB_00297af3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00297af3;" (goto "goto") (statement_identifier "LAB_00297af3") (; ";"))) (goto_statement "goto LAB_00297afa;" (goto "goto") (statement_identifier "LAB_00297afa") (; ";")) (} "}"))) (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" (if "if") (parenthesized_expression "(wVar5 == L'\xffffffff')" (( "(") (binary_expression "wVar5 == L'\xffffffff'" (identifier "wVar5") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\nLAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_00297b3d;\n    }" ({ "{") (labeled_statement "LAB_00297b30:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (statement_identifier "LAB_00297b30") (: ":") (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" ({ "{") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")))) (goto_statement "goto LAB_00297b3d;" (goto "goto") (statement_identifier "LAB_00297b3d") (; ";")) (} "}"))) (if_statement "if (wVar5 == param_3) {\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" (if "if") (parenthesized_expression "(wVar5 == param_3)" (( "(") (binary_expression "wVar5 == param_3" (identifier "wVar5") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }\n      return param_1;\n    }" ({ "{") (if_statement "if (local_31 != '\0') {\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_00297af3:\n        param_1[1] = 0x7fffffff;\nLAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != wVar5) {\n          return param_1;\n        }\nLAB_00297b04:\n        iVar7 = param_1[1];\n      }" ({ "{") (labeled_statement "LAB_00297af3:\n        param_1[1] = 0x7fffffff;" (statement_identifier "LAB_00297af3") (: ":") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";"))) (labeled_statement "LAB_00297afa:\n        if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" (statement_identifier "LAB_00297afa") (: ":") (if_statement "if (wVar5 == L'\xffffffff') {\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" (if "if") (parenthesized_expression "(wVar5 == L'\xffffffff')" (( "(") (binary_expression "wVar5 == L'\xffffffff'" (identifier "wVar5") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\nLAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" ({ "{") (labeled_statement "LAB_00297b3d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_00297b3d") (: ":") (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar7") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";"))) (expression_statement "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2)" (identifier "FUN_00272b10") (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" (( "(") (identifier "iVar7") (, ",") (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" (* "*") (cast_expression "(uint *)(iVar7 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "2")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (if_statement "if (param_3 != wVar5) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(param_3 != wVar5)" (( "(") (binary_expression "param_3 != wVar5" (identifier "param_3") (!= "!=") (identifier "wVar5")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "LAB_00297b04:\n        iVar7 = param_1[1];" (statement_identifier "LAB_00297b04") (: ":") (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (} "}"))) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" (if "if") (parenthesized_expression "(iVar7 != 0x7fffffff)" (( "(") (binary_expression "iVar7 != 0x7fffffff" (identifier "iVar7") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\nLAB_00297b10:\n        param_1[1] = iVar7 + 1;\n      }" ({ "{") (labeled_statement "LAB_00297b10:\n        param_1[1] = iVar7 + 1;" (statement_identifier "LAB_00297b10") (: ":") (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";"))) (} "}"))) (if_statement "if ((uint)piVar4[2] < (uint)piVar4[3]) {\n        piVar4[2] = piVar4[2] + 4;\n      }\n      else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" (if "if") (parenthesized_expression "((uint)piVar4[2] < (uint)piVar4[3])" (( "(") (binary_expression "(uint)piVar4[2] < (uint)piVar4[3]" (cast_expression "(uint)piVar4[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(uint)piVar4[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        piVar4[2] = piVar4[2] + 4;\n      }" ({ "{") (expression_statement "piVar4[2] = piVar4[2] + 4;" (assignment_expression "piVar4[2] = piVar4[2] + 4" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar4[2] + 4" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" (else "else") (compound_statement "{\n                    \n        (**(code **)(*piVar4 + 0x28))(piVar4);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar4 + 0x28))(piVar4);" (call_expression "(**(code **)(*piVar4 + 0x28))(piVar4)" (parenthesized_expression "(**(code **)(*piVar4 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar4 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar4 + 0x28)" (* "*") (cast_expression "(code **)(*piVar4 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x28)" (( "(") (binary_expression "*piVar4 + 0x28" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" (identifier "local_31") (= "=") (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "-0x80000000")) (; ";")) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" (identifier "iVar7") (= "=") (number_literal "-0x80000000")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::wistream::ignore(int, unsigned int) */

type_2 * __thiscall std::type_2::var_2(type_2 *var_3,int var_4,type_6 var_1)

{
  int *piVar1;
  type_1 *var_9;
  type_1 *var_8;
  type_1 *var_11;
  type_2 *pwVar5;
  type_1 var_6;
  size_t sVar7;
  int var_5;
  size_t var_12;
  type_3 var_7;
  type_3 local_1d [13];
  
  if (var_1 == 0xffffffff) {
    pwVar5 = (type_2 *)var_2(var_3,var_4);
    return pwVar5;
  }
  *(type_4 *)(var_3 + 4) = 0;
  sentry::type_3(local_1d,var_3,true);
  if (var_4 < 1) {
    return var_3;
  }
  if (local_1d[0] == (type_3)0x0) {
    return var_3;
  }
  piVar1 = *(int **)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x7c);
  if ((type_1 *)piVar1[2] < (type_1 *)piVar1[3]) {
    var_6 = *(type_1 *)piVar1[2];
  }
  else {
    var_6 = (**(type_5 **)(*piVar1 + 0x24))(piVar1);
  }
  var_7 = (type_3)0x0;
  var_5 = *(int *)(var_3 + 4);
  do {
    while (var_5 < var_4) {
      if (var_6 == L'\xffffffff') goto LAB_00297b30;
      if (var_6 == var_1) {
        if (var_4 == 0x7fffffff) {
          if (var_7 != (type_3)0x0) goto LAB_00297af3;
          goto LAB_00297b10;
        }
        if (var_7 != (type_3)0x0) goto LAB_00297af3;
        goto LAB_00297b04;
      }
      var_9 = (type_1 *)piVar1[3];
      var_8 = (type_1 *)piVar1[2];
      sVar7 = (int)var_9 - (int)var_8 >> 2;
      var_12 = var_4 - var_5;
      if ((int)sVar7 <= var_4 - var_5) {
        var_12 = sVar7;
      }
      if ((int)var_12 < 2) {
        *(int *)(var_3 + 4) = var_5 + 1;
        if (var_8 < var_9) {
          var_6 = *var_8;
          piVar1[2] = (int)(var_8 + 1);
        }
        else {
          var_6 = (**(type_5 **)(*piVar1 + 0x28))(piVar1);
        }
        if (var_6 == L'\xffffffff') goto LAB_00297b30;
        if ((type_1 *)piVar1[3] <= (type_1 *)piVar1[2]) {
          var_6 = (**(type_5 **)(*piVar1 + 0x24))(piVar1);
          goto LAB_00297bac;
        }
        var_6 = *(type_1 *)piVar1[2];
        var_5 = *(int *)(var_3 + 4);
      }
      else {
        var_11 = var_10(var_8,var_1,var_12);
        if (var_11 != (type_1 *)0x0) {
          var_12 = (int)var_11 - (int)var_8 >> 2;
        }
        var_5 = var_5 + var_12;
        var_8 = var_8 + var_12;
        piVar1[2] = (int)var_8;
        *(int *)(var_3 + 4) = var_5;
        if (var_8 < var_9) {
          var_6 = *var_8;
        }
        else {
                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */
          var_6 = (**(type_5 **)(*piVar1 + 0x24))(piVar1);
LAB_00297bac:
          var_5 = *(int *)(var_3 + 4);
        }
      }
    }
    if (var_4 != 0x7fffffff) {
      if (var_7 != (type_3)0x0) goto LAB_00297af3;
      goto LAB_00297afa;
    }
    if (var_6 == L'\xffffffff') {
LAB_00297b30:
      if (var_7 != (type_3)0x0) {
        *(type_4 *)(var_3 + 4) = 0x7fffffff;
      }
      goto LAB_00297b3d;
    }
    if (var_6 == var_1) {
      if (var_7 != (type_3)0x0) {
LAB_00297af3:
        *(type_4 *)(var_3 + 4) = 0x7fffffff;
LAB_00297afa:
        if (var_6 == L'\xffffffff') {
LAB_00297b3d:
          wios::var_13((_Ios_Iostate)(var_3 + *(int *)(*(int *)var_3 + -0xc)));
          return var_3;
        }
        if (var_1 != var_6) {
          return var_3;
        }
LAB_00297b04:
        var_5 = *(int *)(var_3 + 4);
      }
      if (var_5 != 0x7fffffff) {
LAB_00297b10:
        *(int *)(var_3 + 4) = var_5 + 1;
      }
      if ((type_6)piVar1[2] < (type_6)piVar1[3]) {
        piVar1[2] = piVar1[2] + 4;
      }
      else {
                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */
        (**(type_5 **)(*piVar1 + 0x28))(piVar1);
      }
      return var_3;
    }
    var_7 = local_1d[0];
    *(type_4 *)(var_3 + 4) = 0x80000000;
    var_5 = -0x80000000;
  } while( true );
}


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

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

int * MASKED(int *param_1,int param_2,wchar_t param_3)

{
  wchar_t *pwVar1;
  wchar_t *pwVar2;
  wchar_t *pwVar3;
  int *piVar4;
  wchar_t wVar5;
  size_t sVar6;
  int iVar7;
  size_t local_3c;
  char local_31;
  char local_1d [13];
  
  if (param_3 == L'\xffffffff') {
    piVar4 = (int *)FUN_002d0e90(param_1,param_2);
    return piVar4;
  }
  param_1[1] = 0;
  FUN_0026eee0(local_1d,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_1d[0] == '\0') {
    return param_1;
  }
  piVar4 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  if ((wchar_t *)piVar4[2] < (wchar_t *)piVar4[3]) {
    wVar5 = *(wchar_t *)piVar4[2];
  }
  else {
    wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
  }
  local_31 = '\0';
  iVar7 = param_1[1];
  do {
    while (iVar7 < param_2) {
      if (wVar5 == L'\xffffffff') goto LAB_00297b30;
      if (wVar5 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (local_31 != '\0') goto LAB_00297af3;
          goto LAB_00297b10;
        }
        if (local_31 != '\0') goto LAB_00297af3;
        goto LAB_00297b04;
      }
      pwVar1 = (wchar_t *)piVar4[3];
      pwVar2 = (wchar_t *)piVar4[2];
      sVar6 = (int)pwVar1 - (int)pwVar2 >> 2;
      local_3c = param_2 - iVar7;
      if ((int)sVar6 <= param_2 - iVar7) {
        local_3c = sVar6;
      }
      if ((int)local_3c < 2) {
        param_1[1] = iVar7 + 1;
        if (pwVar2 < pwVar1) {
          wVar5 = *pwVar2;
          piVar4[2] = (int)(pwVar2 + 1);
        }
        else {
          wVar5 = (**(code **)(*piVar4 + 0x28))(piVar4);
        }
        if (wVar5 == L'\xffffffff') goto LAB_00297b30;
        if ((wchar_t *)piVar4[3] <= (wchar_t *)piVar4[2]) {
          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
          goto LAB_00297bac;
        }
        wVar5 = *(wchar_t *)piVar4[2];
        iVar7 = param_1[1];
      }
      else {
        pwVar3 = wmemchr(pwVar2,param_3,local_3c);
        if (pwVar3 != (wchar_t *)0x0) {
          local_3c = (int)pwVar3 - (int)pwVar2 >> 2;
        }
        iVar7 = iVar7 + local_3c;
        pwVar2 = pwVar2 + local_3c;
        piVar4[2] = (int)pwVar2;
        param_1[1] = iVar7;
        if (pwVar2 < pwVar1) {
          wVar5 = *pwVar2;
        }
        else {
                    /* try { // try from 00297ba9 to 00297be7 has its CatchHandler @ 00297c17 */
          wVar5 = (**(code **)(*piVar4 + 0x24))(piVar4);
LAB_00297bac:
          iVar7 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (local_31 != '\0') goto LAB_00297af3;
      goto LAB_00297afa;
    }
    if (wVar5 == L'\xffffffff') {
LAB_00297b30:
      if (local_31 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_00297b3d;
    }
    if (wVar5 == param_3) {
      if (local_31 != '\0') {
LAB_00297af3:
        param_1[1] = 0x7fffffff;
LAB_00297afa:
        if (wVar5 == L'\xffffffff') {
LAB_00297b3d:
          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;
          FUN_00272b10(iVar7,*(uint *)(iVar7 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != wVar5) {
          return param_1;
        }
LAB_00297b04:
        iVar7 = param_1[1];
      }
      if (iVar7 != 0x7fffffff) {
LAB_00297b10:
        param_1[1] = iVar7 + 1;
      }
      if ((uint)piVar4[2] < (uint)piVar4[3]) {
        piVar4[2] = piVar4[2] + 4;
      }
      else {
                    /* try { // try from 00297aa0 to 00297aa2 has its CatchHandler @ 00297c17 */
        (**(code **)(*piVar4 + 0x28))(piVar4);
      }
      return param_1;
    }
    local_31 = local_1d[0];
    param_1[1] = -0x80000000;
    iVar7 = -0x80000000;
  } while( true );
}

