
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, std::string&) */

istream * std::operator>>(istream *param_1,string *param_2)

{
  int *piVar1;
  string sVar2;
  locale *plVar3;
  ctype *pcVar4;
  uint uVar5;
  byte *pbVar6;
  string *psVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  uint uVar11;
  byte *pbVar12;
  locale *plVar13;
  uint uVar14;
  uint local_30;
  sentry local_21;
  locale local_20 [16];
  
  uVar14 = 0;
  istream::sentry::sentry(&local_21,(istream *)param_1,false);
  if (local_21 == (sentry)0x0) {
    iVar8 = *(int *)param_1;
  }
  else {
    *(undefined4 *)(param_2 + 4) = 0;
    **(undefined1 **)param_2 = 0;
    uVar9 = 0x7fffffff;
    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {
      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);
    }
    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);
    locale::locale(local_20,plVar3);
                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */
    pcVar4 = use_facet<std::ctype<char>>(local_20);
    locale::~locale(local_20);
    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);
    if ((string *)piVar1[2] < (string *)piVar1[3]) {
      sVar2 = *(string *)piVar1[2];
    }
    else {
                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */
      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar8 == -1) {
        iVar8 = *(int *)param_1;
        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
        goto LAB_00248d89;
      }
      sVar2 = SUB41(iVar8,0);
    }
    local_30 = 0;
    iVar8 = *(int *)(pcVar4 + 0x18);
    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {
      do {
        plVar13 = (locale *)piVar1[2];
        iVar10 = piVar1[3] - (int)plVar13;
        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {
          iVar10 = uVar9 - local_30;
        }
        uVar11 = *(uint *)(param_2 + 4);
        if (iVar10 < 2) {
          psVar7 = *(string **)param_2;
          if (psVar7 == param_2 + 8) {
            uVar5 = 0xf;
          }
          else {
            uVar5 = *(uint *)(param_2 + 8);
          }
          plVar13 = plVar3;
          if (uVar5 < uVar11 + 1) {
            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);
            psVar7 = *(string **)param_2;
            plVar13 = plVar3;
          }
          local_30 = local_30 + 1;
          psVar7[uVar11] = sVar2;
          *(uint *)(param_2 + 4) = uVar11 + 1;
          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;
          pbVar12 = (byte *)piVar1[3];
          if ((byte *)piVar1[2] < pbVar12) {
            pbVar6 = (byte *)piVar1[2] + 1;
            piVar1[2] = (int)pbVar6;
LAB_00248f94:
            if (pbVar6 < pbVar12) goto LAB_00248ef2;
            goto LAB_00248f9c;
          }
          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar8 != -1) {
            pbVar6 = (byte *)piVar1[2];
            pbVar12 = (byte *)piVar1[3];
            goto LAB_00248f94;
          }
          iVar8 = *(int *)param_1;
LAB_00249024:
          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
          goto LAB_00248d89;
        }
        plVar3 = plVar13 + 1;
        if ((plVar3 < plVar13 + iVar10) &&
           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {
          do {
            plVar3 = plVar3 + 1;
            if (plVar13 + iVar10 <= plVar3) break;
          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);
          uVar5 = (int)plVar3 - (int)plVar13;
        }
        else {
          uVar5 = 1;
        }
        if (0x7fffffff - uVar11 < uVar5) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */
          __throw_length_error("basic_string::append");
        }
        uVar14 = uVar5;
                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */
        string::_M_append((char *)param_2,(uint)plVar13);
        local_30 = local_30 + uVar5;
        pbVar6 = (byte *)(piVar1[2] + uVar5);
        piVar1[2] = (int)pbVar6;
        if (pbVar6 < (byte *)piVar1[3]) {
LAB_00248ef2:
          uVar5 = (uint)*pbVar6;
          uVar11 = uVar5;
          if (uVar9 <= local_30) {
            iVar10 = *(int *)(*(int *)param_1 + -0xc);
            goto LAB_00249047;
          }
        }
        else {
LAB_00248f9c:
          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);
          if (uVar9 <= local_30) {
            iVar8 = *(int *)param_1;
            iVar10 = *(int *)(iVar8 + -0xc);
            if (uVar5 != 0xffffffff) {
LAB_00249047:
              *(undefined4 *)(param_1 + iVar10 + 8) = 0;
              return param_1;
            }
            goto LAB_00249024;
          }
          if (uVar5 == 0xffffffff) {
            iVar8 = *(int *)param_1;
            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
            goto LAB_00248d89;
          }
          uVar11 = uVar5 & 0xff;
        }
        sVar2 = SUB41(uVar5,0);
        iVar8 = *(int *)(pcVar4 + 0x18);
        plVar3 = plVar13;
      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);
      iVar8 = *(int *)param_1;
      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
      if (local_30 != 0) {
        return param_1;
      }
    }
    else {
      iVar8 = *(int *)param_1;
      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
    }
  }
LAB_00248d89:
  ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));
  return param_1;
}



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

int * FUN_00248d50(int *param_1,int *param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  byte bVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint uVar8;
  int *piVar9;
  int iVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  uint local_30;
  char local_21;
  undefined1 local_20 [16];
  
  FUN_0026bb10(&local_21,param_1,0);
  if (local_21 == '\0') {
    iVar13 = *param_1;
    uVar5 = 4;
  }
  else {
    param_2[1] = 0;
    *(undefined1 *)*param_2 = 0;
    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);
    uVar11 = 0x7fffffff;
    if (0 < (int)uVar5) {
      uVar11 = uVar5;
    }
    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */
    iVar13 = FUN_0025d250(local_20);
    FUN_0024a980(local_20);
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
      bVar4 = *(byte *)piVar1[2];
    }
    else {
                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */
      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar10 == -1) {
        iVar13 = *param_1;
        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
        uVar5 = 6;
        goto LAB_00248d89;
      }
      bVar4 = (byte)iVar10;
    }
    local_30 = 0;
    iVar10 = *(int *)(iVar13 + 0x18);
    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {
      do {
        iVar2 = piVar1[2];
        iVar12 = piVar1[3] - iVar2;
        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {
          iVar12 = uVar11 - local_30;
        }
        iVar3 = param_2[1];
        if (iVar12 < 2) {
          piVar9 = (int *)*param_2;
          if (piVar9 == param_2 + 2) {
            uVar5 = 0xf;
          }
          else {
            uVar5 = param_2[2];
          }
          if (uVar5 < iVar3 + 1U) {
            FUN_0024ff10(param_2,iVar3,0,0,1);
            piVar9 = (int *)*param_2;
          }
          local_30 = local_30 + 1;
          *(byte *)((int)piVar9 + iVar3) = bVar4;
          param_2[1] = iVar3 + 1U;
          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;
          pbVar6 = (byte *)piVar1[3];
          if ((byte *)piVar1[2] < pbVar6) {
            pbVar7 = (byte *)piVar1[2] + 1;
            piVar1[2] = (int)pbVar7;
LAB_00248f94:
            if (pbVar7 < pbVar6) goto LAB_00248ef2;
            goto LAB_00248f9c;
          }
          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar10 != -1) {
            pbVar7 = (byte *)piVar1[2];
            pbVar6 = (byte *)piVar1[3];
            goto LAB_00248f94;
          }
          iVar13 = *param_1;
LAB_00249024:
          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
          uVar5 = 2;
          goto LAB_00248d89;
        }
        pbVar6 = (byte *)(iVar2 + 1);
        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&
           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {
          do {
            pbVar6 = pbVar6 + 1;
            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;
          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);
          uVar5 = (int)pbVar6 - iVar2;
        }
        else {
          uVar5 = 1;
        }
        if (0x7fffffffU - iVar3 < uVar5) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */
          FUN_0028dc10("basic_string::append");
        }
                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */
        FUN_00251a30(param_2,iVar2,uVar5);
        local_30 = local_30 + uVar5;
        pbVar7 = (byte *)(piVar1[2] + uVar5);
        piVar1[2] = (int)pbVar7;
        if (pbVar7 < (byte *)piVar1[3]) {
LAB_00248ef2:
          uVar8 = (uint)*pbVar7;
          uVar5 = uVar8;
          if (uVar11 <= local_30) {
            iVar10 = *(int *)(*param_1 + -0xc);
            goto LAB_00249047;
          }
        }
        else {
LAB_00248f9c:
          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);
          if (uVar11 <= local_30) {
            iVar13 = *param_1;
            iVar10 = *(int *)(iVar13 + -0xc);
            if (uVar8 != 0xffffffff) {
LAB_00249047:
              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;
              return param_1;
            }
            goto LAB_00249024;
          }
          if (uVar8 == 0xffffffff) {
            iVar13 = *param_1;
            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;
            goto LAB_00248d89;
          }
          uVar5 = uVar8 & 0xff;
        }
        bVar4 = (byte)uVar8;
        iVar10 = *(int *)(iVar13 + 0x18);
      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);
      iVar13 = *param_1;
      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
      if (local_30 != 0) {
        return param_1;
      }
      uVar5 = 4;
    }
    else {
      iVar13 = *param_1;
      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
      uVar5 = 4;
    }
  }
LAB_00248d89:
  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);
  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));
  return param_1;
}


CALL 0x000b4846
ADD EAX,0x1cb2ab
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x40
MOV dword ptr [EBP + -0x40],EAX
LEA EAX,[EBP + -0x1d]
PUSH 0x0
PUSH dword ptr [EBP + 0x8]
PUSH EAX
CALL 0x0026bb10
ADD ESP,0x10
CMP byte ptr [EBP + -0x1d],0x0
JNZ 0x00248db0
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,0x4
MOV ESI,dword ptr [EBP + 0x8]
ADD ESI,dword ptr [EDX + -0xc]
SUB ESP,0x8
OR EAX,dword ptr [ESI + 0x14]
MOV EBX,dword ptr [EBP + -0x40]
PUSH EAX
PUSH ESI
CALL 0x00272070
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0xc]
MOV EDI,dword ptr [EBP + 0x8]
MOV EDX,0x7fffffff
LEA ESI,[EBP + -0x1c]
MOV dword ptr [EAX + 0x4],0x0
MOV EAX,dword ptr [EAX]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX]
ADD EDI,dword ptr [EAX + -0xc]
MOV EAX,EDI
MOV EDI,dword ptr [EDI + 0x8]
TEST EDI,EDI
CMOVG EDX,EDI
SUB ESP,0x8
ADD EAX,0x6c
MOV EDI,dword ptr [EBP + -0x40]
PUSH EAX
PUSH ESI
MOV EBX,EDI
MOV dword ptr [EBP + -0x34],EDX
CALL 0x0024a1b0
MOV dword ptr [ESP],ESI
CALL 0x0025d250
MOV dword ptr [ESP],ESI
MOV dword ptr [EBP + -0x44],EAX
CALL 0x0024a980
MOV EAX,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + -0xc]
MOV ESI,dword ptr [EDI + EAX*0x1 + 0x78]
MOV EAX,dword ptr [ESI + 0x8]
CMP dword ptr [ESI + 0xc],EAX
JBE 0x0024907d
MOVZX EDX,byte ptr [EAX]
MOV byte ptr [EBP + -0x38],DL
MOV EAX,dword ptr [EBP + -0x44]
MOV dword ptr [EBP + -0x2c],0x0
MOV ECX,dword ptr [EAX + 0x18]
MOV EAX,dword ptr [EBP + 0xc]
ADD EAX,0x8
MOV dword ptr [EBP + -0x48],EAX
TEST byte ptr [ECX + EDX*0x2 + 0x1],0x20
JNZ 0x002490b0
LEA ESI,[ESI]
MOV EBX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [EBP + -0x34]
SUB EAX,dword ptr [EBP + -0x2c]
SUB EDX,EBX
CMP EDX,EAX
CMOVG EDX,EAX
MOV EAX,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [EBP + -0x30],EAX
CMP EDX,0x1
JLE 0x00248f40
ADD EDX,EBX
LEA EAX,[EBX + 0x1]
CMP EDX,EAX
JBE 0x00249000
MOVZX EDI,byte ptr [EBX + 0x1]
TEST byte ptr [ECX + EDI*0x2 + 0x1],0x20
JNZ 0x00249000
MOV dword ptr [EBP + -0x38],EBX
MOV EDI,dword ptr [EBP + 0xc]
JMP 0x00248eaa
MOVZX EBX,byte ptr [EAX]
TEST byte ptr [ECX + EBX*0x2 + 0x1],0x20
JNZ 0x00248eb1
ADD EAX,0x1
CMP EDX,EAX
JA 0x00248ea0
MOV EBX,dword ptr [EBP + -0x38]
MOV dword ptr [EBP + 0xc],EDI
SUB EAX,EBX
MOV EDI,EAX
MOV EAX,0x7fffffff
SUB EAX,dword ptr [EBP + -0x30]
CMP EAX,EDI
JC 0x002490d8
SUB ESP,0x4
PUSH EDI
PUSH EBX
MOV EBX,dword ptr [EBP + -0x40]
PUSH dword ptr [EBP + 0xc]
CALL 0x00251a30
MOV EAX,dword ptr [ESI + 0x8]
ADD ESP,0x10
ADD dword ptr [EBP + -0x2c],EDI
ADD EAX,EDI
MOV dword ptr [ESI + 0x8],EAX
CMP dword ptr [ESI + 0xc],EAX
JBE 0x00248f9c
MOVZX EAX,byte ptr [EAX]
MOV EDX,dword ptr [EBP + -0x34]
CMP dword ptr [EBP + -0x2c],EDX
JNC 0x0024903c
MOV EDX,EAX
MOV byte ptr [EBP + -0x38],AL
MOV EAX,dword ptr [EBP + -0x44]
MOV ECX,dword ptr [EAX + 0x18]
TEST byte ptr [ECX + EDX*0x2 + 0x1],0x20
JZ 0x00248e50
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
MOV EAX,dword ptr [EBP + -0x2c]
TEST EAX,EAX
JNZ 0x00248da2
MOV EAX,0x4
JMP 0x00248d89
MOV EAX,dword ptr [EBP + -0x30]
ADD EAX,0x1
MOV dword ptr [EBP + -0x3c],EAX
MOV EAX,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [EAX]
CMP EAX,dword ptr [EBP + -0x48]
JZ 0x00248ff0
MOV ECX,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [ECX + 0x8]
CMP dword ptr [EBP + -0x3c],EDX
JA 0x00248fc8
MOV EDX,dword ptr [EBP + -0x30]
MOVZX ECX,byte ptr [EBP + -0x38]
MOV EDI,dword ptr [EBP + 0xc]
ADD dword ptr [EBP + -0x2c],0x1
MOV byte ptr [EAX + EDX*0x1],CL
MOV EAX,dword ptr [EBP + -0x3c]
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [EDI]
MOV byte ptr [EAX + EDX*0x1 + 0x1],0x0
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
CMP EAX,EDX
JNC 0x0024900a
ADD EAX,0x1
MOV dword ptr [ESI + 0x8],EAX
CMP EAX,EDX
JC 0x00248ef2
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x34]
CMP dword ptr [EBP + -0x2c],ECX
JNC 0x00249099
CMP EAX,-0x1
JZ 0x00249059
MOVZX EDX,AL
JMP 0x00248f03
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x40]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + 0xc]
CALL 0x0024ff10
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x20
MOV EAX,dword ptr [EAX]
JMP 0x00248f62
MOV EDX,0xf
JMP 0x00248f5d
MOV EDI,0x1
JMP 0x00248ebb
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x002490cd
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
MOV EAX,0x2
JMP 0x00248d89
MOV EAX,dword ptr [EBP + 0x8]
MOV ECX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX]
ADD ECX,dword ptr [EAX + -0xc]
MOV dword ptr [ECX + 0x8],0x0
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
CMP dword ptr [EBP + -0x2c],0x1
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
SBB EAX,EAX
AND EAX,0x4
ADD EAX,0x2
JMP 0x00248d89
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x002490ea
MOVZX EDX,AL
MOV byte ptr [EBP + -0x38],AL
JMP 0x00248e28
MOV ESI,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [ESI]
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,ESI
CMP EAX,-0x1
JNZ 0x00249047
JMP 0x00249024
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
MOV EAX,0x4
JMP 0x00248d89
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
JMP 0x00248f94
MOV EBX,dword ptr [EBP + -0x40]
SUB ESP,0xc
LEA EAX,[EBX + 0xffee49c3]
PUSH EAX
CALL 0x0028dc10
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
MOV EAX,0x6
JMP 0x00248d89
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_00248d50(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_00248d50(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00248d50(int *param_1,int *param_2)" * (function_declarator "FUN_00248d50(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "char local_21;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" identifier (argument_list "(&local_21,param_1,0)" ( (pointer_expression "&local_21" & identifier) , identifier , number_literal ))) ;) (if_statement "if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" if (parenthesized_expression "(local_21 == '\0')" ( (binary_expression "local_21 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" else (compound_statement "{\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" identifier = (pointer_expression "*(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" * (cast_expression "(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (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) ))))) ;) (expression_statement "uVar11 = 0x7fffffff;" (assignment_expression "uVar11 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }" if (parenthesized_expression "(0 < (int)uVar5)" ( (binary_expression "0 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar11 = uVar5;\n    }" { (expression_statement "uVar11 = uVar5;" (assignment_expression "uVar11 = uVar5" identifier = identifier) ;) })) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (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) ))) ;) comment (expression_statement "iVar13 = FUN_0025d250(local_20);" (assignment_expression "iVar13 = FUN_0025d250(local_20)" identifier = (call_expression "FUN_0025d250(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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 ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" if (parenthesized_expression "((byte *)piVar1[2] < (byte *)piVar1[3])" ( (binary_expression "(byte *)piVar1[2] < (byte *)piVar1[3]" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      bVar4 = *(byte *)piVar1[2];\n    }" { (expression_statement "bVar4 = *(byte *)piVar1[2];" (assignment_expression "bVar4 = *(byte *)piVar1[2]" identifier = (pointer_expression "*(byte *)piVar1[2]" * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" else (compound_statement "{\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" { comment (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar10 = (**(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 )))) ;) (if_statement "if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" if (parenthesized_expression "(iVar10 == -1)" ( (binary_expression "iVar10 == -1" identifier == number_literal) )) (compound_statement "{\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 6;" (assignment_expression "uVar5 = 6" identifier = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "bVar4 = (byte)iVar10;" (assignment_expression "bVar4 = (byte)iVar10" identifier = (cast_expression "(byte)iVar10" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" identifier = (pointer_expression "*(int *)(iVar13 + 0x18)" * (cast_expression "(int *)(iVar13 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x18)" ( (binary_expression "iVar13 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" if (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)bVar4 * 2)" ( (binary_expression "iVar10 + 1 + (uint)bVar4 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }" { (do_statement "do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);" do (compound_statement "{\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      }" { (expression_statement "iVar2 = piVar1[2];" (assignment_expression "iVar2 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar12 = piVar1[3] - iVar2;" (assignment_expression "iVar12 = piVar1[3] - iVar2" identifier = (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }" if (parenthesized_expression "((int)(uVar11 - local_30) < piVar1[3] - iVar2)" ( (binary_expression "(int)(uVar11 - local_30) < piVar1[3] - iVar2" (cast_expression "(int)(uVar11 - local_30)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar11 - local_30)" ( (binary_expression "uVar11 - local_30" identifier - identifier) ))) < (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - identifier)) )) (compound_statement "{\n          iVar12 = uVar11 - local_30;\n        }" { (expression_statement "iVar12 = uVar11 - local_30;" (assignment_expression "iVar12 = uVar11 - local_30" identifier = (binary_expression "uVar11 - local_30" identifier - identifier)) ;) })) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" if (parenthesized_expression "(iVar12 < 2)" ( (binary_expression "iVar12 < 2" identifier < number_literal) )) (compound_statement "{\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" { (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }" if (parenthesized_expression "(piVar9 == param_2 + 2)" ( (binary_expression "piVar9 == param_2 + 2" identifier == (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n            uVar5 = 0xf;\n          }" { (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n            uVar5 = param_2[2];\n          }" else (compound_statement "{\n            uVar5 = param_2[2];\n          }" { (expression_statement "uVar5 = param_2[2];" (assignment_expression "uVar5 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" if (parenthesized_expression "(uVar5 < iVar3 + 1U)" ( (binary_expression "uVar5 < iVar3 + 1U" identifier < (binary_expression "iVar3 + 1U" identifier + number_literal)) )) (compound_statement "{\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" { (expression_statement "FUN_0024ff10(param_2,iVar3,0,0,1);" (call_expression "FUN_0024ff10(param_2,iVar3,0,0,1)" identifier (argument_list "(param_2,iVar3,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) })) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "*(byte *)((int)piVar9 + iVar3) = bVar4;" (assignment_expression "*(byte *)((int)piVar9 + iVar3) = bVar4" (pointer_expression "*(byte *)((int)piVar9 + iVar3)" * (cast_expression "(byte *)((int)piVar9 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar9 + iVar3)" ( (binary_expression "(int)piVar9 + iVar3" (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "param_2[1] = iVar3 + 1U;" (assignment_expression "param_2[1] = iVar3 + 1U" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_2 + 1 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + iVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + iVar3)" * (cast_expression "(undefined1 *)(*param_2 + 1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 1 + iVar3)" ( (binary_expression "*param_2 + 1 + iVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar6)" ( (binary_expression "(byte *)piVar1[2] < pbVar6" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" { (expression_statement "pbVar7 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar7 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;" statement_identifier : (if_statement "if (pbVar7 < pbVar6) goto LAB_00248ef2;" if (parenthesized_expression "(pbVar7 < pbVar6)" ( (binary_expression "pbVar7 < pbVar6" identifier < identifier) )) (goto_statement "goto LAB_00248ef2;" goto statement_identifier ;))) (goto_statement "goto LAB_00248f9c;" goto statement_identifier ;) })) (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar10 = (**(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 (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" if (parenthesized_expression "(iVar10 != -1)" ( (binary_expression "iVar10 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" { (expression_statement "pbVar7 = (byte *)piVar1[2];" (assignment_expression "pbVar7 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00248f94;" goto statement_identifier ;) })) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;)) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "pbVar6 = (byte *)(iVar2 + 1);" (assignment_expression "pbVar6 = (byte *)(iVar2 + 1)" identifier = (cast_expression "(byte *)(iVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) (if_statement "if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }" if (parenthesized_expression "((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0))" ( (binary_expression "(pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar6 < (byte *)(iVar12 + iVar2))" ( (binary_expression "pbVar6 < (byte *)(iVar12 + iVar2)" identifier < (cast_expression "(byte *)(iVar12 + iVar2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar2)" ( (binary_expression "iVar12 + iVar2" identifier + identifier) )))) )) && (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" ( (binary_expression "iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "(uint)*(byte *)(iVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }" { (do_statement "do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);" do (compound_statement "{\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          }" { (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)(iVar12 + iVar2) <= pbVar6) break;" if (parenthesized_expression "((byte *)(iVar12 + iVar2) <= pbVar6)" ( (binary_expression "(byte *)(iVar12 + iVar2) <= pbVar6" (cast_expression "(byte *)(iVar12 + iVar2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar2)" ( (binary_expression "iVar12 + iVar2" identifier + identifier) ))) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)*pbVar6 * 2)" ( (binary_expression "iVar10 + 1 + (uint)*pbVar6 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)*pbVar6 * 2" (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "uVar5 = (int)pbVar6 - iVar2;" (assignment_expression "uVar5 = (int)pbVar6 - iVar2" identifier = (binary_expression "(int)pbVar6 - iVar2" (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }) (else_clause "else {\n          uVar5 = 1;\n        }" else (compound_statement "{\n          uVar5 = 1;\n        }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) }))) (if_statement "if (0x7fffffffU - iVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }" if (parenthesized_expression "(0x7fffffffU - iVar3 < uVar5)" ( (binary_expression "0x7fffffffU - iVar3 < uVar5" (binary_expression "0x7fffffffU - iVar3" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          FUN_0028dc10("basic_string::append");\n        }" { comment comment (expression_statement "FUN_0028dc10("basic_string::append");" (call_expression "FUN_0028dc10("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (expression_statement "FUN_00251a30(param_2,iVar2,uVar5);" (call_expression "FUN_00251a30(param_2,iVar2,uVar5)" identifier (argument_list "(param_2,iVar2,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_30 = local_30 + uVar5;" (assignment_expression "local_30 = local_30 + uVar5" identifier = (binary_expression "local_30 + uVar5" identifier + identifier)) ;) (expression_statement "pbVar7 = (byte *)(piVar1[2] + uVar5);" (assignment_expression "pbVar7 = (byte *)(piVar1[2] + uVar5)" identifier = (cast_expression "(byte *)(piVar1[2] + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[2] + uVar5)" ( (binary_expression "piVar1[2] + uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" if (parenthesized_expression "(pbVar7 < (byte *)piVar1[3])" ( (binary_expression "pbVar7 < (byte *)piVar1[3]" identifier < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }" { (labeled_statement "LAB_00248ef2:\n          uVar8 = (uint)*pbVar7;" statement_identifier : (expression_statement "uVar8 = (uint)*pbVar7;" (assignment_expression "uVar8 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;)) (expression_statement "uVar5 = uVar8;" (assignment_expression "uVar5 = uVar8" identifier = identifier) ;) (if_statement "if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" if (parenthesized_expression "(uVar11 <= local_30)" ( (binary_expression "uVar11 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" { (expression_statement "iVar10 = *(int *)(*param_1 + -0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + -0xc)" 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) ))))) ;) (goto_statement "goto LAB_00249047;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" else (compound_statement "{\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" { (labeled_statement "LAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar8 = (**(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 )))) ;)) (if_statement "if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" if (parenthesized_expression "(uVar11 <= local_30)" ( (binary_expression "uVar11 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar10 = *(int *)(iVar13 + -0xc);" (assignment_expression "iVar10 = *(int *)(iVar13 + -0xc)" identifier = (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" if (parenthesized_expression "(uVar8 != 0xffffffff)" ( (binary_expression "uVar8 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" { (labeled_statement "LAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + iVar10 + 8)" * (cast_expression "(undefined4 *)((int)param_1 + iVar10 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar10 + 8)" ( (binary_expression "(int)param_1 + iVar10 + 8" (binary_expression "(int)param_1 + iVar10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;)) (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_00249024;" goto statement_identifier ;) })) (if_statement "if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" if (parenthesized_expression "(uVar8 == 0xffffffff)" ( (binary_expression "uVar8 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar5 = (-(uint)(local_30 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" ( (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" - (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar8 & 0xff;" (assignment_expression "uVar5 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) }))) (expression_statement "bVar4 = (byte)uVar8;" (assignment_expression "bVar4 = (byte)uVar8" identifier = (cast_expression "(byte)uVar8" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" identifier = (pointer_expression "*(int *)(iVar13 + 0x18)" * (cast_expression "(int *)(iVar13 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x18)" ( (binary_expression "iVar13 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + uVar5 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + uVar5 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + uVar5 * 2)" ( (binary_expression "iVar10 + 1 + uVar5 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n        return param_1;\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" else (compound_statement "{\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" statement_identifier : (expression_statement "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" (assignment_expression "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) )))))) ;)) (expression_statement "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));" (call_expression "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" identifier (argument_list "(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" ( identifier , (binary_expression "uVar5 | *(uint *)(iVar13 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar13 + 0x14)" * (cast_expression "(uint *)(iVar13 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x14)" ( (binary_expression "iVar13 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, std::string&) */\n\nistream * std::operator>>(istream *param_1,string *param_2)\n\n{\n  int *piVar1;\n  string sVar2;\n  locale *plVar3;\n  ctype *pcVar4;\n  uint uVar5;\n  byte *pbVar6;\n  string *psVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  byte *pbVar12;\n  locale *plVar13;\n  uint uVar14;\n  uint local_30;\n  sentry local_21;\n  locale local_20 [16];\n  \n  uVar14 = 0;\n  istream::sentry::sentry(&local_21,(istream *)param_1,false);\n  if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\n  }\n  else {\n    *(undefined4 *)(param_2 + 4) = 0;\n    **(undefined1 **)param_2 = 0;\n    uVar9 = 0x7fffffff;\n    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }\n    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);\n    locale::locale(local_20,plVar3);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    pcVar4 = use_facet<std::ctype<char>>(local_20);\n    locale::~locale(local_20);\n    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }\n    local_30 = 0;\n    iVar8 = *(int *)(pcVar4 + 0x18);\n    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }\n  }\nLAB_00248d89:\n  ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n  return param_1;\n}\n\n" comment comment comment (ERROR "istream * std::operator>>(istream *param_1,string *param_2)" (binary_expression "istream * std::operator>>(istream *param_1,string *param_2)" (binary_expression "istream * std" identifier * identifier) (ERROR "::operator" : : identifier) >> (parenthesized_expression "(istream *param_1,string *param_2)" ( (comma_expression "istream *param_1,string *param_2" (binary_expression "istream *param_1" identifier * identifier) , (binary_expression "string *param_2" identifier * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  string sVar2;\n  locale *plVar3;\n  ctype *pcVar4;\n  uint uVar5;\n  byte *pbVar6;\n  string *psVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  byte *pbVar12;\n  locale *plVar13;\n  uint uVar14;\n  uint local_30;\n  sentry local_21;\n  locale local_20 [16];\n  \n  uVar14 = 0;\n  istream::sentry::sentry(&local_21,(istream *)param_1,false);\n  if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\n  }\n  else {\n    *(undefined4 *)(param_2 + 4) = 0;\n    **(undefined1 **)param_2 = 0;\n    uVar9 = 0x7fffffff;\n    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }\n    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);\n    locale::locale(local_20,plVar3);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    pcVar4 = use_facet<std::ctype<char>>(local_20);\n    locale::~locale(local_20);\n    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }\n    local_30 = 0;\n    iVar8 = *(int *)(pcVar4 + 0x18);\n    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }\n  }\nLAB_00248d89:\n  ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "string sVar2;" type_identifier identifier ;) (declaration "locale *plVar3;" type_identifier (pointer_declarator "*plVar3" * identifier) ;) (declaration "ctype *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "string *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "locale *plVar13;" type_identifier (pointer_declarator "*plVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "sentry local_21;" type_identifier identifier ;) (declaration "locale local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (labeled_statement "istream::sentry::sentry(&local_21,(istream *)param_1,false);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(&local_21,(istream *)param_1,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(&local_21,(istream *)param_1,false);" (call_expression "sentry(&local_21,(istream *)param_1,false)" identifier (argument_list "(&local_21,(istream *)param_1,false)" ( (pointer_expression "&local_21" & identifier) , (cast_expression "(istream *)param_1" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , false ))) ;))) (if_statement "if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\n  }\n  else {\n    *(undefined4 *)(param_2 + 4) = 0;\n    **(undefined1 **)param_2 = 0;\n    uVar9 = 0x7fffffff;\n    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }\n    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);\n    locale::locale(local_20,plVar3);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    pcVar4 = use_facet<std::ctype<char>>(local_20);\n    locale::~locale(local_20);\n    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }\n    local_30 = 0;\n    iVar8 = *(int *)(pcVar4 + 0x18);\n    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }\n  }" if (parenthesized_expression "(local_21 == (sentry)0x0)" ( (binary_expression "local_21 == (sentry)0x0" identifier == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    iVar8 = *(int *)param_1;\n  }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    *(undefined4 *)(param_2 + 4) = 0;\n    **(undefined1 **)param_2 = 0;\n    uVar9 = 0x7fffffff;\n    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }\n    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);\n    locale::locale(local_20,plVar3);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    pcVar4 = use_facet<std::ctype<char>>(local_20);\n    locale::~locale(local_20);\n    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }\n    local_30 = 0;\n    iVar8 = *(int *)(pcVar4 + 0x18);\n    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }\n  }" else (compound_statement "{\n    *(undefined4 *)(param_2 + 4) = 0;\n    **(undefined1 **)param_2 = 0;\n    uVar9 = 0x7fffffff;\n    if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }\n    plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);\n    locale::locale(local_20,plVar3);\n                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */\n    pcVar4 = use_facet<std::ctype<char>>(local_20);\n    locale::~locale(local_20);\n    piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }\n    local_30 = 0;\n    iVar8 = *(int *)(pcVar4 + 0x18);\n    if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_2 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined1 **)param_2 = 0;" (assignment_expression "**(undefined1 **)param_2 = 0" (pointer_expression "**(undefined1 **)param_2" * (pointer_expression "*(undefined1 **)param_2" * (cast_expression "(undefined1 **)param_2" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (expression_statement "uVar9 = 0x7fffffff;" (assignment_expression "uVar9 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }" if (parenthesized_expression "(0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8))" ( (binary_expression "0 < (int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" number_literal < (cast_expression "(int)*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 8" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))))) )) (compound_statement "{\n      uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n    }" { (expression_statement "uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);" (assignment_expression "uVar9 = *(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" identifier = (pointer_expression "*(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" * (cast_expression "(uint *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 8" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) })) (expression_statement "plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c);" (assignment_expression "plVar3 = (locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" identifier = (cast_expression "(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) ;) (labeled_statement "locale::locale(local_20,plVar3);" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,plVar3);" (call_expression "locale(local_20,plVar3)" identifier (argument_list "(local_20,plVar3)" ( identifier , identifier ))) ;)) comment (expression_statement "pcVar4 = use_facet<std::ctype<char>>(local_20);" (binary_expression "pcVar4 = use_facet<std::ctype<char>>(local_20)" (assignment_expression "pcVar4 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(local_20)" identifier >> (parenthesized_expression "(local_20)" ( identifier )))) ;) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (expression_statement "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((string *)piVar1[2] < (string *)piVar1[3]) {\n      sVar2 = *(string *)piVar1[2];\n    }\n    else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }" if (parenthesized_expression "((string *)piVar1[2] < (string *)piVar1[3])" ( (binary_expression "(string *)piVar1[2] < (string *)piVar1[3]" (cast_expression "(string *)piVar1[2]" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(string *)piVar1[3]" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      sVar2 = *(string *)piVar1[2];\n    }" { (expression_statement "sVar2 = *(string *)piVar1[2];" (assignment_expression "sVar2 = *(string *)piVar1[2]" identifier = (pointer_expression "*(string *)piVar1[2]" * (cast_expression "(string *)piVar1[2]" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }" else (compound_statement "{\n                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */\n      iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }\n      sVar2 = SUB41(iVar8,0);\n    }" { comment (expression_statement "iVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar8 = (**(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 )))) ;) (if_statement "if (iVar8 == -1) {\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (compound_statement "{\n        iVar8 = *(int *)param_1;\n        *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n        goto LAB_00248d89;\n      }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "sVar2 = SUB41(iVar8,0);" (assignment_expression "sVar2 = SUB41(iVar8,0)" identifier = (call_expression "SUB41(iVar8,0)" identifier (argument_list "(iVar8,0)" ( identifier , number_literal )))) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = *(int *)(pcVar4 + 0x18);" (assignment_expression "iVar8 = *(int *)(pcVar4 + 0x18)" identifier = (pointer_expression "*(int *)(pcVar4 + 0x18)" * (cast_expression "(int *)(pcVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x18)" ( (binary_expression "pcVar4 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0) {\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }" if (parenthesized_expression "((*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2) & 0x20" (pointer_expression "*(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2)" * (cast_expression "(byte *)(iVar8 + 1 + (uint)(byte)sVar2 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 1 + (uint)(byte)sVar2 * 2)" ( (binary_expression "iVar8 + 1 + (uint)(byte)sVar2 * 2" (binary_expression "iVar8 + 1" identifier + number_literal) + (binary_expression "(uint)(byte)sVar2 * 2" (cast_expression "(uint)(byte)sVar2" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)sVar2" ( (type_descriptor "byte" type_identifier) ) identifier)) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n    }" { (do_statement "do {\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      } while ((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0);" do (compound_statement "{\n        plVar13 = (locale *)piVar1[2];\n        iVar10 = piVar1[3] - (int)plVar13;\n        if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }\n        uVar11 = *(uint *)(param_2 + 4);\n        if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }\n        plVar3 = plVar13 + 1;\n        if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }\n        uVar14 = uVar5;\n                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */\n        string::_M_append((char *)param_2,(uint)plVar13);\n        local_30 = local_30 + uVar5;\n        pbVar6 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar6;\n        if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }\n        sVar2 = SUB41(uVar5,0);\n        iVar8 = *(int *)(pcVar4 + 0x18);\n        plVar3 = plVar13;\n      }" { (expression_statement "plVar13 = (locale *)piVar1[2];" (assignment_expression "plVar13 = (locale *)piVar1[2]" identifier = (cast_expression "(locale *)piVar1[2]" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar10 = piVar1[3] - (int)plVar13;" (assignment_expression "iVar10 = piVar1[3] - (int)plVar13" identifier = (binary_expression "piVar1[3] - (int)plVar13" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - (cast_expression "(int)plVar13" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13) {\n          iVar10 = uVar9 - local_30;\n        }" if (parenthesized_expression "((int)(uVar9 - local_30) < piVar1[3] - (int)plVar13)" ( (binary_expression "(int)(uVar9 - local_30) < piVar1[3] - (int)plVar13" (cast_expression "(int)(uVar9 - local_30)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar9 - local_30)" ( (binary_expression "uVar9 - local_30" identifier - identifier) ))) < (binary_expression "piVar1[3] - (int)plVar13" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - (cast_expression "(int)plVar13" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n          iVar10 = uVar9 - local_30;\n        }" { (expression_statement "iVar10 = uVar9 - local_30;" (assignment_expression "iVar10 = uVar9 - local_30" identifier = (binary_expression "uVar9 - local_30" identifier - identifier)) ;) })) (expression_statement "uVar11 = *(uint *)(param_2 + 4);" (assignment_expression "uVar11 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar10 < 2) {\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }" if (parenthesized_expression "(iVar10 < 2)" ( (binary_expression "iVar10 < 2" identifier < number_literal) )) (compound_statement "{\n          psVar7 = *(string **)param_2;\n          if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }\n          plVar13 = plVar3;\n          if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }\n          local_30 = local_30 + 1;\n          psVar7[uVar11] = sVar2;\n          *(uint *)(param_2 + 4) = uVar11 + 1;\n          *(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;\n          pbVar12 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar8 = *(int *)param_1;\nLAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n          goto LAB_00248d89;\n        }" { (expression_statement "psVar7 = *(string **)param_2;" (assignment_expression "psVar7 = *(string **)param_2" identifier = (pointer_expression "*(string **)param_2" * (cast_expression "(string **)param_2" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (psVar7 == param_2 + 8) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }" if (parenthesized_expression "(psVar7 == param_2 + 8)" ( (binary_expression "psVar7 == param_2 + 8" identifier == (binary_expression "param_2 + 8" identifier + number_literal)) )) (compound_statement "{\n            uVar5 = 0xf;\n          }" { (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n            uVar5 = *(uint *)(param_2 + 8);\n          }" else (compound_statement "{\n            uVar5 = *(uint *)(param_2 + 8);\n          }" { (expression_statement "uVar5 = *(uint *)(param_2 + 8);" (assignment_expression "uVar5 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "plVar13 = plVar3;" (assignment_expression "plVar13 = plVar3" identifier = identifier) ;) (if_statement "if (uVar5 < uVar11 + 1) {\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }" if (parenthesized_expression "(uVar5 < uVar11 + 1)" ( (binary_expression "uVar5 < uVar11 + 1" identifier < (binary_expression "uVar11 + 1" identifier + number_literal)) )) (compound_statement "{\n            string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);\n            psVar7 = *(string **)param_2;\n            plVar13 = plVar3;\n          }" { (labeled_statement "string::_M_mutate((uint)param_2,uVar11,(char *)0x0,0);" statement_identifier : (ERROR ":" :) (expression_statement "_M_mutate((uint)param_2,uVar11,(char *)0x0,0);" (call_expression "_M_mutate((uint)param_2,uVar11,(char *)0x0,0)" identifier (argument_list "((uint)param_2,uVar11,(char *)0x0,0)" ( (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;)) (expression_statement "psVar7 = *(string **)param_2;" (assignment_expression "psVar7 = *(string **)param_2" identifier = (pointer_expression "*(string **)param_2" * (cast_expression "(string **)param_2" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "plVar13 = plVar3;" (assignment_expression "plVar13 = plVar3" identifier = identifier) ;) })) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "psVar7[uVar11] = sVar2;" (assignment_expression "psVar7[uVar11] = sVar2" (subscript_expression "psVar7[uVar11]" identifier [ identifier ]) = identifier) ;) (expression_statement "*(uint *)(param_2 + 4) = uVar11 + 1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar11 + 1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0;" (assignment_expression "*(undefined1 *)(*(int *)param_2 + 1 + uVar11) = 0" (pointer_expression "*(undefined1 *)(*(int *)param_2 + 1 + uVar11)" * (cast_expression "(undefined1 *)(*(int *)param_2 + 1 + uVar11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + 1 + uVar11)" ( (binary_expression "*(int *)param_2 + 1 + uVar11" (binary_expression "*(int *)param_2 + 1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "pbVar12 = (byte *)piVar1[3];" (assignment_expression "pbVar12 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)piVar1[2] < pbVar12) {\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar12)" ( (binary_expression "(byte *)piVar1[2] < pbVar12" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n            pbVar6 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar6;\nLAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" { (expression_statement "pbVar6 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar6 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar6;" (assignment_expression "piVar1[2] = (int)pbVar6" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00248f94:\n            if (pbVar6 < pbVar12) goto LAB_00248ef2;" statement_identifier : (if_statement "if (pbVar6 < pbVar12) goto LAB_00248ef2;" if (parenthesized_expression "(pbVar6 < pbVar12)" ( (binary_expression "pbVar6 < pbVar12" identifier < identifier) )) (goto_statement "goto LAB_00248ef2;" goto statement_identifier ;))) (goto_statement "goto LAB_00248f9c;" goto statement_identifier ;) })) (expression_statement "iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar8 = (**(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 (iVar8 != -1) {\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" if (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar6 = (byte *)piVar1[2];\n            pbVar12 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" { (expression_statement "pbVar6 = (byte *)piVar1[2];" (assignment_expression "pbVar6 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar12 = (byte *)piVar1[3];" (assignment_expression "pbVar12 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00248f94;" goto statement_identifier ;) })) (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "LAB_00249024:\n          *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;)) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "plVar3 = plVar13 + 1;" (assignment_expression "plVar3 = plVar13 + 1" identifier = (binary_expression "plVar13 + 1" identifier + number_literal)) ;) (if_statement "if ((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)) {\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }\n        else {\n          uVar5 = 1;\n        }" if (parenthesized_expression "((plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0))" ( (binary_expression "(plVar3 < plVar13 + iVar10) &&\n           ((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)" (parenthesized_expression "(plVar3 < plVar13 + iVar10)" ( (binary_expression "plVar3 < plVar13 + iVar10" identifier < (binary_expression "plVar13 + iVar10" identifier + identifier)) )) && (parenthesized_expression "((*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2) & 0x20" (pointer_expression "*(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2)" * (cast_expression "(byte *)(iVar8 + 1 + (uint)(byte)plVar13[1] * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 1 + (uint)(byte)plVar13[1] * 2)" ( (binary_expression "iVar8 + 1 + (uint)(byte)plVar13[1] * 2" (binary_expression "iVar8 + 1" identifier + number_literal) + (binary_expression "(uint)(byte)plVar13[1] * 2" (cast_expression "(uint)(byte)plVar13[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)plVar13[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "plVar13[1]" identifier [ number_literal ]))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);\n          uVar5 = (int)plVar3 - (int)plVar13;\n        }" { (do_statement "do {\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          } while ((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0);" do (compound_statement "{\n            plVar3 = plVar3 + 1;\n            if (plVar13 + iVar10 <= plVar3) break;\n          }" { (expression_statement "plVar3 = plVar3 + 1;" (assignment_expression "plVar3 = plVar3 + 1" identifier = (binary_expression "plVar3 + 1" identifier + number_literal)) ;) (if_statement "if (plVar13 + iVar10 <= plVar3) break;" if (parenthesized_expression "(plVar13 + iVar10 <= plVar3)" ( (binary_expression "plVar13 + iVar10 <= plVar3" (binary_expression "plVar13 + iVar10" identifier + identifier) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2) & 0x20" (pointer_expression "*(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2)" * (cast_expression "(byte *)(iVar8 + 1 + (uint)(byte)*plVar3 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 1 + (uint)(byte)*plVar3 * 2)" ( (binary_expression "iVar8 + 1 + (uint)(byte)*plVar3 * 2" (binary_expression "iVar8 + 1" identifier + number_literal) + (binary_expression "(uint)(byte)*plVar3 * 2" (binary_expression "(uint)(byte)*plVar3" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "uVar5 = (int)plVar3 - (int)plVar13;" (assignment_expression "uVar5 = (int)plVar3 - (int)plVar13" identifier = (binary_expression "(int)plVar3 - (int)plVar13" (cast_expression "(int)plVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)plVar13" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n          uVar5 = 1;\n        }" else (compound_statement "{\n          uVar5 = 1;\n        }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) }))) (if_statement "if (0x7fffffff - uVar11 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }" if (parenthesized_expression "(0x7fffffff - uVar11 < uVar5)" ( (binary_expression "0x7fffffff - uVar11 < uVar5" (binary_expression "0x7fffffff - uVar11" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */\n          __throw_length_error("basic_string::append");\n        }" { comment comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "uVar14 = uVar5;" (assignment_expression "uVar14 = uVar5" identifier = identifier) ;) comment (labeled_statement "string::_M_append((char *)param_2,(uint)plVar13);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((char *)param_2,(uint)plVar13);" (call_expression "_M_append((char *)param_2,(uint)plVar13)" identifier (argument_list "((char *)param_2,(uint)plVar13)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(uint)plVar13" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;)) (expression_statement "local_30 = local_30 + uVar5;" (assignment_expression "local_30 = local_30 + uVar5" identifier = (binary_expression "local_30 + uVar5" identifier + identifier)) ;) (expression_statement "pbVar6 = (byte *)(piVar1[2] + uVar5);" (assignment_expression "pbVar6 = (byte *)(piVar1[2] + uVar5)" identifier = (cast_expression "(byte *)(piVar1[2] + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[2] + uVar5)" ( (binary_expression "piVar1[2] + uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "piVar1[2] = (int)pbVar6;" (assignment_expression "piVar1[2] = (int)pbVar6" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pbVar6 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }" if (parenthesized_expression "(pbVar6 < (byte *)piVar1[3])" ( (binary_expression "pbVar6 < (byte *)piVar1[3]" identifier < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00248ef2:\n          uVar5 = (uint)*pbVar6;\n          uVar11 = uVar5;\n          if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }" { (labeled_statement "LAB_00248ef2:\n          uVar5 = (uint)*pbVar6;" statement_identifier : (expression_statement "uVar5 = (uint)*pbVar6;" (assignment_expression "uVar5 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;)) (expression_statement "uVar11 = uVar5;" (assignment_expression "uVar11 = uVar5" identifier = identifier) ;) (if_statement "if (uVar9 <= local_30) {\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }" if (parenthesized_expression "(uVar9 <= local_30)" ( (binary_expression "uVar9 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar10 = *(int *)(*(int *)param_1 + -0xc);\n            goto LAB_00249047;\n          }" { (expression_statement "iVar10 = *(int *)(*(int *)param_1 + -0xc);" (assignment_expression "iVar10 = *(int *)(*(int *)param_1 + -0xc)" identifier = (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (goto_statement "goto LAB_00249047;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }" else (compound_statement "{\nLAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);\n          if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }\n          uVar11 = uVar5 & 0xff;\n        }" { (labeled_statement "LAB_00248f9c:\n          uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);" statement_identifier : (expression_statement "uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14);" (assignment_expression "uVar5 = (**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1,plVar13,uVar14)" (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,plVar13,uVar14)" ( identifier , identifier , identifier )))) ;)) (if_statement "if (uVar9 <= local_30) {\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" if (parenthesized_expression "(uVar9 <= local_30)" ( (binary_expression "uVar9 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar8 = *(int *)param_1;\n            iVar10 = *(int *)(iVar8 + -0xc);\n            if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar10 = *(int *)(iVar8 + -0xc);" (assignment_expression "iVar10 = *(int *)(iVar8 + -0xc)" identifier = (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (uVar5 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" if (parenthesized_expression "(uVar5 != 0xffffffff)" ( (binary_expression "uVar5 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" { (labeled_statement "LAB_00249047:\n              *(undefined4 *)(param_1 + iVar10 + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + iVar10 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + iVar10 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + iVar10 + 8)" * (cast_expression "(undefined4 *)(param_1 + iVar10 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar10 + 8)" ( (binary_expression "param_1 + iVar10 + 8" (binary_expression "param_1 + iVar10" identifier + identifier) + number_literal) )))) = number_literal) ;)) (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_00249024;" goto statement_identifier ;) })) (if_statement "if (uVar5 == 0xffffffff) {\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }" if (parenthesized_expression "(uVar5 == 0xffffffff)" ( (binary_expression "uVar5 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            iVar8 = *(int *)param_1;\n            *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n            goto LAB_00248d89;\n          }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar5 & 0xff;" (assignment_expression "uVar11 = uVar5 & 0xff" identifier = (binary_expression "uVar5 & 0xff" identifier & number_literal)) ;) }))) (expression_statement "sVar2 = SUB41(uVar5,0);" (assignment_expression "sVar2 = SUB41(uVar5,0)" identifier = (call_expression "SUB41(uVar5,0)" identifier (argument_list "(uVar5,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar8 = *(int *)(pcVar4 + 0x18);" (assignment_expression "iVar8 = *(int *)(pcVar4 + 0x18)" identifier = (pointer_expression "*(int *)(pcVar4 + 0x18)" * (cast_expression "(int *)(pcVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x18)" ( (binary_expression "pcVar4 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar3 = plVar13;" (assignment_expression "plVar3 = plVar13" identifier = identifier) ;) }) while (parenthesized_expression "((*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar8 + 1 + uVar11 * 2) & 0x20" (pointer_expression "*(byte *)(iVar8 + 1 + uVar11 * 2)" * (cast_expression "(byte *)(iVar8 + 1 + uVar11 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 1 + uVar11 * 2)" ( (binary_expression "iVar8 + 1 + uVar11 * 2" (binary_expression "iVar8 + 1" identifier + number_literal) + (binary_expression "uVar11 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n        return param_1;\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else {\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }" else (compound_statement "{\n      iVar8 = *(int *)param_1;\n      *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) }))) }))) (labeled_statement "LAB_00248d89:\n  ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" statement_identifier : (labeled_statement "ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" statement_identifier : (ERROR ":" :) (expression_statement "clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" (call_expression "clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)))" identifier (argument_list "((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)))" ( (call_expression "(_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc))" (parenthesized_expression "(_Ios_Iostate)" ( identifier )) (argument_list "(param_1 + *(int *)(iVar8 + -0xc))" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) ))) ))) ;))) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "int * FUN_00248d50(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}\n\n" (function_definition "int * FUN_00248d50(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00248d50(int *param_1,int *param_2)" * (function_declarator "FUN_00248d50(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "char local_21;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" identifier (argument_list "(&local_21,param_1,0)" ( (pointer_expression "&local_21" & identifier) , identifier , number_literal ))) ;) (if_statement "if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" if (parenthesized_expression "(local_21 == '\0')" ( (binary_expression "local_21 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" else (compound_statement "{\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" * (cast_expression "(undefined1 *)*param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" identifier = (pointer_expression "*(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" * (cast_expression "(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (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) ))))) ;) (expression_statement "uVar11 = 0x7fffffff;" (assignment_expression "uVar11 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }" if (parenthesized_expression "(0 < (int)uVar5)" ( (binary_expression "0 < (int)uVar5" number_literal < (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar11 = uVar5;\n    }" { (expression_statement "uVar11 = uVar5;" (assignment_expression "uVar11 = uVar5" identifier = identifier) ;) })) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (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) ))) ;) (expression_statement "iVar13 = FUN_0025d250(local_20);" (assignment_expression "iVar13 = FUN_0025d250(local_20)" identifier = (call_expression "FUN_0025d250(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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 ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" if (parenthesized_expression "((byte *)piVar1[2] < (byte *)piVar1[3])" ( (binary_expression "(byte *)piVar1[2] < (byte *)piVar1[3]" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      bVar4 = *(byte *)piVar1[2];\n    }" { (expression_statement "bVar4 = *(byte *)piVar1[2];" (assignment_expression "bVar4 = *(byte *)piVar1[2]" identifier = (pointer_expression "*(byte *)piVar1[2]" * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" else (compound_statement "{\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" { (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar10 = (**(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 )))) ;) (if_statement "if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" if (parenthesized_expression "(iVar10 == -1)" ( (binary_expression "iVar10 == -1" identifier == number_literal) )) (compound_statement "{\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 6;" (assignment_expression "uVar5 = 6" identifier = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "bVar4 = (byte)iVar10;" (assignment_expression "bVar4 = (byte)iVar10" identifier = (cast_expression "(byte)iVar10" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" identifier = (pointer_expression "*(int *)(iVar13 + 0x18)" * (cast_expression "(int *)(iVar13 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x18)" ( (binary_expression "iVar13 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" if (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)bVar4 * 2)" ( (binary_expression "iVar10 + 1 + (uint)bVar4 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }" { (do_statement "do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);" do (compound_statement "{\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      }" { (expression_statement "iVar2 = piVar1[2];" (assignment_expression "iVar2 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar12 = piVar1[3] - iVar2;" (assignment_expression "iVar12 = piVar1[3] - iVar2" identifier = (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }" if (parenthesized_expression "((int)(uVar11 - local_30) < piVar1[3] - iVar2)" ( (binary_expression "(int)(uVar11 - local_30) < piVar1[3] - iVar2" (cast_expression "(int)(uVar11 - local_30)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar11 - local_30)" ( (binary_expression "uVar11 - local_30" identifier - identifier) ))) < (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - identifier)) )) (compound_statement "{\n          iVar12 = uVar11 - local_30;\n        }" { (expression_statement "iVar12 = uVar11 - local_30;" (assignment_expression "iVar12 = uVar11 - local_30" identifier = (binary_expression "uVar11 - local_30" identifier - identifier)) ;) })) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" if (parenthesized_expression "(iVar12 < 2)" ( (binary_expression "iVar12 < 2" identifier < number_literal) )) (compound_statement "{\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" { (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }" if (parenthesized_expression "(piVar9 == param_2 + 2)" ( (binary_expression "piVar9 == param_2 + 2" identifier == (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n            uVar5 = 0xf;\n          }" { (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n            uVar5 = param_2[2];\n          }" else (compound_statement "{\n            uVar5 = param_2[2];\n          }" { (expression_statement "uVar5 = param_2[2];" (assignment_expression "uVar5 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" if (parenthesized_expression "(uVar5 < iVar3 + 1U)" ( (binary_expression "uVar5 < iVar3 + 1U" identifier < (binary_expression "iVar3 + 1U" identifier + number_literal)) )) (compound_statement "{\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" { (expression_statement "FUN_0024ff10(param_2,iVar3,0,0,1);" (call_expression "FUN_0024ff10(param_2,iVar3,0,0,1)" identifier (argument_list "(param_2,iVar3,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) })) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "*(byte *)((int)piVar9 + iVar3) = bVar4;" (assignment_expression "*(byte *)((int)piVar9 + iVar3) = bVar4" (pointer_expression "*(byte *)((int)piVar9 + iVar3)" * (cast_expression "(byte *)((int)piVar9 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar9 + iVar3)" ( (binary_expression "(int)piVar9 + iVar3" (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "param_2[1] = iVar3 + 1U;" (assignment_expression "param_2[1] = iVar3 + 1U" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_2 + 1 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + iVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + iVar3)" * (cast_expression "(undefined1 *)(*param_2 + 1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 1 + iVar3)" ( (binary_expression "*param_2 + 1 + iVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar6)" ( (binary_expression "(byte *)piVar1[2] < pbVar6" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" { (expression_statement "pbVar7 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar7 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;" statement_identifier : (if_statement "if (pbVar7 < pbVar6) goto LAB_00248ef2;" if (parenthesized_expression "(pbVar7 < pbVar6)" ( (binary_expression "pbVar7 < pbVar6" identifier < identifier) )) (goto_statement "goto LAB_00248ef2;" goto statement_identifier ;))) (goto_statement "goto LAB_00248f9c;" goto statement_identifier ;) })) (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar10 = (**(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 (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" if (parenthesized_expression "(iVar10 != -1)" ( (binary_expression "iVar10 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" { (expression_statement "pbVar7 = (byte *)piVar1[2];" (assignment_expression "pbVar7 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00248f94;" goto statement_identifier ;) })) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;)) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "pbVar6 = (byte *)(iVar2 + 1);" (assignment_expression "pbVar6 = (byte *)(iVar2 + 1)" identifier = (cast_expression "(byte *)(iVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) (if_statement "if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }" if (parenthesized_expression "((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0))" ( (binary_expression "(pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar6 < (byte *)(iVar12 + iVar2))" ( (binary_expression "pbVar6 < (byte *)(iVar12 + iVar2)" identifier < (cast_expression "(byte *)(iVar12 + iVar2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar2)" ( (binary_expression "iVar12 + iVar2" identifier + identifier) )))) )) && (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" ( (binary_expression "iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "(uint)*(byte *)(iVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }" { (do_statement "do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);" do (compound_statement "{\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          }" { (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)(iVar12 + iVar2) <= pbVar6) break;" if (parenthesized_expression "((byte *)(iVar12 + iVar2) <= pbVar6)" ( (binary_expression "(byte *)(iVar12 + iVar2) <= pbVar6" (cast_expression "(byte *)(iVar12 + iVar2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar2)" ( (binary_expression "iVar12 + iVar2" identifier + identifier) ))) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + (uint)*pbVar6 * 2)" ( (binary_expression "iVar10 + 1 + (uint)*pbVar6 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "(uint)*pbVar6 * 2" (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "uVar5 = (int)pbVar6 - iVar2;" (assignment_expression "uVar5 = (int)pbVar6 - iVar2" identifier = (binary_expression "(int)pbVar6 - iVar2" (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }) (else_clause "else {\n          uVar5 = 1;\n        }" else (compound_statement "{\n          uVar5 = 1;\n        }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) }))) (if_statement "if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }" if (parenthesized_expression "(0x7fffffffU - iVar3 < uVar5)" ( (binary_expression "0x7fffffffU - iVar3 < uVar5" (binary_expression "0x7fffffffU - iVar3" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }" { (expression_statement "FUN_0028dc10("basic_string::append");" (call_expression "FUN_0028dc10("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_00251a30(param_2,iVar2,uVar5);" (call_expression "FUN_00251a30(param_2,iVar2,uVar5)" identifier (argument_list "(param_2,iVar2,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_30 = local_30 + uVar5;" (assignment_expression "local_30 = local_30 + uVar5" identifier = (binary_expression "local_30 + uVar5" identifier + identifier)) ;) (expression_statement "pbVar7 = (byte *)(piVar1[2] + uVar5);" (assignment_expression "pbVar7 = (byte *)(piVar1[2] + uVar5)" identifier = (cast_expression "(byte *)(piVar1[2] + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[2] + uVar5)" ( (binary_expression "piVar1[2] + uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" if (parenthesized_expression "(pbVar7 < (byte *)piVar1[3])" ( (binary_expression "pbVar7 < (byte *)piVar1[3]" identifier < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }" { (labeled_statement "LAB_00248ef2:\n          uVar8 = (uint)*pbVar7;" statement_identifier : (expression_statement "uVar8 = (uint)*pbVar7;" (assignment_expression "uVar8 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;)) (expression_statement "uVar5 = uVar8;" (assignment_expression "uVar5 = uVar8" identifier = identifier) ;) (if_statement "if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" if (parenthesized_expression "(uVar11 <= local_30)" ( (binary_expression "uVar11 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" { (expression_statement "iVar10 = *(int *)(*param_1 + -0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + -0xc)" 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) ))))) ;) (goto_statement "goto LAB_00249047;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" else (compound_statement "{\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" { (labeled_statement "LAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar8 = (**(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 )))) ;)) (if_statement "if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" if (parenthesized_expression "(uVar11 <= local_30)" ( (binary_expression "uVar11 <= local_30" identifier <= identifier) )) (compound_statement "{\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar10 = *(int *)(iVar13 + -0xc);" (assignment_expression "iVar10 = *(int *)(iVar13 + -0xc)" identifier = (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" if (parenthesized_expression "(uVar8 != 0xffffffff)" ( (binary_expression "uVar8 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" { (labeled_statement "LAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" statement_identifier : (expression_statement "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + iVar10 + 8)" * (cast_expression "(undefined4 *)((int)param_1 + iVar10 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar10 + 8)" ( (binary_expression "(int)param_1 + iVar10 + 8" (binary_expression "(int)param_1 + iVar10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;)) (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_00249024;" goto statement_identifier ;) })) (if_statement "if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" if (parenthesized_expression "(uVar8 == 0xffffffff)" ( (binary_expression "uVar8 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar5 = (-(uint)(local_30 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" ( (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" - (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_00248d89;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar8 & 0xff;" (assignment_expression "uVar5 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) }))) (expression_statement "bVar4 = (byte)uVar8;" (assignment_expression "bVar4 = (byte)uVar8" identifier = (cast_expression "(byte)uVar8" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" identifier = (pointer_expression "*(int *)(iVar13 + 0x18)" * (cast_expression "(int *)(iVar13 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x18)" ( (binary_expression "iVar13 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + uVar5 * 2)" * (cast_expression "(byte *)(iVar10 + 1 + uVar5 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 1 + uVar5 * 2)" ( (binary_expression "iVar10 + 1 + uVar5 * 2" (binary_expression "iVar10 + 1" identifier + number_literal) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n        return param_1;\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }) (else_clause "else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" else (compound_statement "{\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" { (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" identifier = number_literal) ;) }))) }))) (labeled_statement "LAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" statement_identifier : (expression_statement "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" (assignment_expression "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar13 + -0xc)" * (cast_expression "(int *)(iVar13 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + -0xc)" ( (binary_expression "iVar13 + -0xc" identifier + number_literal) )))))) ;)) (expression_statement "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));" (call_expression "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" identifier (argument_list "(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" ( identifier , (binary_expression "uVar5 | *(uint *)(iVar13 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar13 + 0x14)" * (cast_expression "(uint *)(iVar13 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar13 + 0x14)" ( (binary_expression "iVar13 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (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) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;))) (goto_statement goto statement_identifier ;) })) (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 != LIT) )) (compound_statement { (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 ]))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) & LIT) )) == LIT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))) & LIT) )) == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (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 <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;)) (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) & LIT) )) == LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00248d50(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00248d50(int *param_1,int *param_2)" (* "*") (function_declarator "FUN_00248d50(int *param_1,int *param_2)" (identifier "FUN_00248d50") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  byte bVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  uint local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }\nLAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);\n  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "char local_21;" (primitive_type "char") (identifier "local_21") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" (identifier "FUN_0026bb10") (argument_list "(&local_21,param_1,0)" (( "(") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_21 == '\0') {\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" (if "if") (parenthesized_expression "(local_21 == '\0')" (( "(") (binary_expression "local_21 == '\0'" (identifier "local_21") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar13 = *param_1;\n    uVar5 = 4;\n  }" ({ "{") (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" (identifier "uVar5") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" (else "else") (compound_statement "{\n    param_2[1] = 0;\n    *(undefined1 *)*param_2 = 0;\n    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n    uVar11 = 0x7fffffff;\n    if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }\n    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n    iVar13 = FUN_0025d250(local_20);\n    FUN_0024a980(local_20);\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }\n    local_30 = 0;\n    iVar10 = *(int *)(iVar13 + 0x18);\n    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }\n  }" ({ "{") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)*param_2 = 0;" (assignment_expression "*(undefined1 *)*param_2 = 0" (pointer_expression "*(undefined1 *)*param_2" (* "*") (cast_expression "(undefined1 *)*param_2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (* "*") (cast_expression "(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (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 "8")) () ")"))))) (; ";")) (expression_statement "uVar11 = 0x7fffffff;" (assignment_expression "uVar11 = 0x7fffffff" (identifier "uVar11") (= "=") (number_literal "0x7fffffff")) (; ";")) (if_statement "if (0 < (int)uVar5) {\n      uVar11 = uVar5;\n    }" (if "if") (parenthesized_expression "(0 < (int)uVar5)" (( "(") (binary_expression "0 < (int)uVar5" (number_literal "0") (< "<") (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5"))) () ")")) (compound_statement "{\n      uVar11 = uVar5;\n    }" ({ "{") (expression_statement "uVar11 = uVar5;" (assignment_expression "uVar11 = uVar5" (identifier "uVar11") (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (identifier "FUN_0024a1b0") (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (( "(") (identifier "local_20") (, ",") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (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 "0x6c")) () ")"))) (; ";")) (expression_statement "iVar13 = FUN_0025d250(local_20);" (assignment_expression "iVar13 = FUN_0025d250(local_20)" (identifier "iVar13") (= "=") (call_expression "FUN_0025d250(local_20)" (identifier "FUN_0025d250") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")")))) (; ";")) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" (identifier "FUN_0024a980") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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 "0x78")) () ")"))))) (; ";")) (if_statement "if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n      bVar4 = *(byte *)piVar1[2];\n    }\n    else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" (if "if") (parenthesized_expression "((byte *)piVar1[2] < (byte *)piVar1[3])" (( "(") (binary_expression "(byte *)piVar1[2] < (byte *)piVar1[3]" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      bVar4 = *(byte *)piVar1[2];\n    }" ({ "{") (expression_statement "bVar4 = *(byte *)piVar1[2];" (assignment_expression "bVar4 = *(byte *)piVar1[2]" (identifier "bVar4") (= "=") (pointer_expression "*(byte *)piVar1[2]" (* "*") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" (else "else") (compound_statement "{\n                    \n      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);\n      if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }\n      bVar4 = (byte)iVar10;\n    }" ({ "{") (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar10") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar10 == -1) {\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" (if "if") (parenthesized_expression "(iVar10 == -1)" (( "(") (binary_expression "iVar10 == -1" (identifier "iVar10") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        iVar13 = *param_1;\n        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n        uVar5 = 6;\n        goto LAB_00248d89;\n      }" ({ "{") (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 6;" (assignment_expression "uVar5 = 6" (identifier "uVar5") (= "=") (number_literal "6")) (; ";")) (goto_statement "goto LAB_00248d89;" (goto "goto") (statement_identifier "LAB_00248d89") (; ";")) (} "}"))) (expression_statement "bVar4 = (byte)iVar10;" (assignment_expression "bVar4 = (byte)iVar10" (identifier "bVar4") (= "=") (cast_expression "(byte)iVar10" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar10"))) (; ";")) (} "}")))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar13 + 0x18)" (* "*") (cast_expression "(int *)(iVar13 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + 0x18)" (( "(") (binary_expression "iVar13 + 0x18" (identifier "iVar13") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }\n    else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" (if "if") (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" (* "*") (cast_expression "(byte *)(iVar10 + 1 + (uint)bVar4 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 1 + (uint)bVar4 * 2)" (( "(") (binary_expression "iVar10 + 1 + (uint)bVar4 * 2" (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      if (local_30 != 0) {\n        return param_1;\n      }\n      uVar5 = 4;\n    }" ({ "{") (do_statement "do {\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);" (do "do") (compound_statement "{\n        iVar2 = piVar1[2];\n        iVar12 = piVar1[3] - iVar2;\n        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }\n        iVar3 = param_2[1];\n        if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }\n        pbVar6 = (byte *)(iVar2 + 1);\n        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }\n        if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }\n                    \n        FUN_00251a30(param_2,iVar2,uVar5);\n        local_30 = local_30 + uVar5;\n        pbVar7 = (byte *)(piVar1[2] + uVar5);\n        piVar1[2] = (int)pbVar7;\n        if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }\n        bVar4 = (byte)uVar8;\n        iVar10 = *(int *)(iVar13 + 0x18);\n      }" ({ "{") (expression_statement "iVar2 = piVar1[2];" (assignment_expression "iVar2 = piVar1[2]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar12 = piVar1[3] - iVar2;" (assignment_expression "iVar12 = piVar1[3] - iVar2" (identifier "iVar12") (= "=") (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {\n          iVar12 = uVar11 - local_30;\n        }" (if "if") (parenthesized_expression "((int)(uVar11 - local_30) < piVar1[3] - iVar2)" (( "(") (binary_expression "(int)(uVar11 - local_30) < piVar1[3] - iVar2" (cast_expression "(int)(uVar11 - local_30)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar11 - local_30)" (( "(") (binary_expression "uVar11 - local_30" (identifier "uVar11") (- "-") (identifier "local_30")) () ")"))) (< "<") (binary_expression "piVar1[3] - iVar2" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (- "-") (identifier "iVar2"))) () ")")) (compound_statement "{\n          iVar12 = uVar11 - local_30;\n        }" ({ "{") (expression_statement "iVar12 = uVar11 - local_30;" (assignment_expression "iVar12 = uVar11 - local_30" (identifier "iVar12") (= "=") (binary_expression "uVar11 - local_30" (identifier "uVar11") (- "-") (identifier "local_30"))) (; ";")) (} "}"))) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" (identifier "iVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar12 < 2) {\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" (if "if") (parenthesized_expression "(iVar12 < 2)" (( "(") (binary_expression "iVar12 < 2" (identifier "iVar12") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n          piVar9 = (int *)*param_2;\n          if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }\n          if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }\n          local_30 = local_30 + 1;\n          *(byte *)((int)piVar9 + iVar3) = bVar4;\n          param_2[1] = iVar3 + 1U;\n          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;\n          pbVar6 = (byte *)piVar1[3];\n          if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }\n          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }\n          iVar13 = *param_1;\nLAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n          uVar5 = 2;\n          goto LAB_00248d89;\n        }" ({ "{") (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" (identifier "piVar9") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (piVar9 == param_2 + 2) {\n            uVar5 = 0xf;\n          }\n          else {\n            uVar5 = param_2[2];\n          }" (if "if") (parenthesized_expression "(piVar9 == param_2 + 2)" (( "(") (binary_expression "piVar9 == param_2 + 2" (identifier "piVar9") (== "==") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n            uVar5 = 0xf;\n          }" ({ "{") (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" (identifier "uVar5") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n            uVar5 = param_2[2];\n          }" (else "else") (compound_statement "{\n            uVar5 = param_2[2];\n          }" ({ "{") (expression_statement "uVar5 = param_2[2];" (assignment_expression "uVar5 = param_2[2]" (identifier "uVar5") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar5 < iVar3 + 1U) {\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" (if "if") (parenthesized_expression "(uVar5 < iVar3 + 1U)" (( "(") (binary_expression "uVar5 < iVar3 + 1U" (identifier "uVar5") (< "<") (binary_expression "iVar3 + 1U" (identifier "iVar3") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n            FUN_0024ff10(param_2,iVar3,0,0,1);\n            piVar9 = (int *)*param_2;\n          }" ({ "{") (expression_statement "FUN_0024ff10(param_2,iVar3,0,0,1);" (call_expression "FUN_0024ff10(param_2,iVar3,0,0,1)" (identifier "FUN_0024ff10") (argument_list "(param_2,iVar3,0,0,1)" (( "(") (identifier "param_2") (, ",") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "piVar9 = (int *)*param_2;" (assignment_expression "piVar9 = (int *)*param_2" (identifier "piVar9") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}"))) (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(byte *)((int)piVar9 + iVar3) = bVar4;" (assignment_expression "*(byte *)((int)piVar9 + iVar3) = bVar4" (pointer_expression "*(byte *)((int)piVar9 + iVar3)" (* "*") (cast_expression "(byte *)((int)piVar9 + iVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar9 + iVar3)" (( "(") (binary_expression "(int)piVar9 + iVar3" (cast_expression "(int)piVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar9")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (identifier "bVar4")) (; ";")) (expression_statement "param_2[1] = iVar3 + 1U;" (assignment_expression "param_2[1] = iVar3 + 1U" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + 1U" (identifier "iVar3") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined1 *)(*param_2 + 1 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + iVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + iVar3)" (* "*") (cast_expression "(undefined1 *)(*param_2 + 1 + iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 1 + iVar3)" (( "(") (binary_expression "*param_2 + 1 + iVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" (identifier "pbVar6") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if ((byte *)piVar1[2] < pbVar6) {\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" (if "if") (parenthesized_expression "((byte *)piVar1[2] < pbVar6)" (( "(") (binary_expression "(byte *)piVar1[2] < pbVar6" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar6")) () ")")) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2] + 1;\n            piVar1[2] = (int)pbVar7;\nLAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;\n            goto LAB_00248f9c;\n          }" ({ "{") (expression_statement "pbVar7 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar7 = (byte *)piVar1[2] + 1" (identifier "pbVar7") (= "=") (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar7"))) (; ";")) (labeled_statement "LAB_00248f94:\n            if (pbVar7 < pbVar6) goto LAB_00248ef2;" (statement_identifier "LAB_00248f94") (: ":") (if_statement "if (pbVar7 < pbVar6) goto LAB_00248ef2;" (if "if") (parenthesized_expression "(pbVar7 < pbVar6)" (( "(") (binary_expression "pbVar7 < pbVar6" (identifier "pbVar7") (< "<") (identifier "pbVar6")) () ")")) (goto_statement "goto LAB_00248ef2;" (goto "goto") (statement_identifier "LAB_00248ef2") (; ";")))) (goto_statement "goto LAB_00248f9c;" (goto "goto") (statement_identifier "LAB_00248f9c") (; ";")) (} "}"))) (expression_statement "iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar10") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar10 != -1) {\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" (if "if") (parenthesized_expression "(iVar10 != -1)" (( "(") (binary_expression "iVar10 != -1" (identifier "iVar10") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n            pbVar7 = (byte *)piVar1[2];\n            pbVar6 = (byte *)piVar1[3];\n            goto LAB_00248f94;\n          }" ({ "{") (expression_statement "pbVar7 = (byte *)piVar1[2];" (assignment_expression "pbVar7 = (byte *)piVar1[2]" (identifier "pbVar7") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" (identifier "pbVar6") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (goto_statement "goto LAB_00248f94;" (goto "goto") (statement_identifier "LAB_00248f94") (; ";")) (} "}"))) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (labeled_statement "LAB_00249024:\n          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (statement_identifier "LAB_00249024") (: ":") (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" (identifier "uVar5") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00248d89;" (goto "goto") (statement_identifier "LAB_00248d89") (; ";")) (} "}"))) (expression_statement "pbVar6 = (byte *)(iVar2 + 1);" (assignment_expression "pbVar6 = (byte *)(iVar2 + 1)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(iVar2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 1)" (( "(") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }\n        else {\n          uVar5 = 1;\n        }" (if "if") (parenthesized_expression "((pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0))" (( "(") (binary_expression "(pbVar6 < (byte *)(iVar12 + iVar2)) &&\n           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar6 < (byte *)(iVar12 + iVar2))" (( "(") (binary_expression "pbVar6 < (byte *)(iVar12 + iVar2)" (identifier "pbVar6") (< "<") (cast_expression "(byte *)(iVar12 + iVar2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar2)" (( "(") (binary_expression "iVar12 + iVar2" (identifier "iVar12") (+ "+") (identifier "iVar2")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" (* "*") (cast_expression "(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2)" (( "(") (binary_expression "iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*(byte *)(iVar2 + 1) * 2" (binary_expression "(uint)*(byte *)(iVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(iVar2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 1)" (( "(") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);\n          uVar5 = (int)pbVar6 - iVar2;\n        }" ({ "{") (do_statement "do {\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);" (do "do") (compound_statement "{\n            pbVar6 = pbVar6 + 1;\n            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;\n          }" ({ "{") (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((byte *)(iVar12 + iVar2) <= pbVar6) break;" (if "if") (parenthesized_expression "((byte *)(iVar12 + iVar2) <= pbVar6)" (( "(") (binary_expression "(byte *)(iVar12 + iVar2) <= pbVar6" (cast_expression "(byte *)(iVar12 + iVar2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar2)" (( "(") (binary_expression "iVar12 + iVar2" (identifier "iVar12") (+ "+") (identifier "iVar2")) () ")"))) (<= "<=") (identifier "pbVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" (* "*") (cast_expression "(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 1 + (uint)*pbVar6 * 2)" (( "(") (binary_expression "iVar10 + 1 + (uint)*pbVar6 * 2" (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*pbVar6 * 2" (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar5 = (int)pbVar6 - iVar2;" (assignment_expression "uVar5 = (int)pbVar6 - iVar2" (identifier "uVar5") (= "=") (binary_expression "(int)pbVar6 - iVar2" (cast_expression "(int)pbVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar6")) (- "-") (identifier "iVar2"))) (; ";")) (} "}")) (else_clause "else {\n          uVar5 = 1;\n        }" (else "else") (compound_statement "{\n          uVar5 = 1;\n        }" ({ "{") (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if (0x7fffffffU - iVar3 < uVar5) {\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }" (if "if") (parenthesized_expression "(0x7fffffffU - iVar3 < uVar5)" (( "(") (binary_expression "0x7fffffffU - iVar3 < uVar5" (binary_expression "0x7fffffffU - iVar3" (number_literal "0x7fffffffU") (- "-") (identifier "iVar3")) (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n                    \n                    \n          FUN_0028dc10("basic_string::append");\n        }" ({ "{") (expression_statement "FUN_0028dc10("basic_string::append");" (call_expression "FUN_0028dc10("basic_string::append")" (identifier "FUN_0028dc10") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00251a30(param_2,iVar2,uVar5);" (call_expression "FUN_00251a30(param_2,iVar2,uVar5)" (identifier "FUN_00251a30") (argument_list "(param_2,iVar2,uVar5)" (( "(") (identifier "param_2") (, ",") (identifier "iVar2") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "local_30 = local_30 + uVar5;" (assignment_expression "local_30 = local_30 + uVar5" (identifier "local_30") (= "=") (binary_expression "local_30 + uVar5" (identifier "local_30") (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "pbVar7 = (byte *)(piVar1[2] + uVar5);" (assignment_expression "pbVar7 = (byte *)(piVar1[2] + uVar5)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)(piVar1[2] + uVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[2] + uVar5)" (( "(") (binary_expression "piVar1[2] + uVar5" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "uVar5")) () ")")))) (; ";")) (expression_statement "piVar1[2] = (int)pbVar7;" (assignment_expression "piVar1[2] = (int)pbVar7" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar7"))) (; ";")) (if_statement "if (pbVar7 < (byte *)piVar1[3]) {\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }\n        else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" (if "if") (parenthesized_expression "(pbVar7 < (byte *)piVar1[3])" (( "(") (binary_expression "pbVar7 < (byte *)piVar1[3]" (identifier "pbVar7") (< "<") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\nLAB_00248ef2:\n          uVar8 = (uint)*pbVar7;\n          uVar5 = uVar8;\n          if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }\n        }" ({ "{") (labeled_statement "LAB_00248ef2:\n          uVar8 = (uint)*pbVar7;" (statement_identifier "LAB_00248ef2") (: ":") (expression_statement "uVar8 = (uint)*pbVar7;" (assignment_expression "uVar8 = (uint)*pbVar7" (identifier "uVar8") (= "=") (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar7"))) (; ";"))) (expression_statement "uVar5 = uVar8;" (assignment_expression "uVar5 = uVar8" (identifier "uVar5") (= "=") (identifier "uVar8")) (; ";")) (if_statement "if (uVar11 <= local_30) {\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" (if "if") (parenthesized_expression "(uVar11 <= local_30)" (( "(") (binary_expression "uVar11 <= local_30" (identifier "uVar11") (<= "<=") (identifier "local_30")) () ")")) (compound_statement "{\n            iVar10 = *(int *)(*param_1 + -0xc);\n            goto LAB_00249047;\n          }" ({ "{") (expression_statement "iVar10 = *(int *)(*param_1 + -0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + -0xc)" (identifier "iVar10") (= "=") (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")) () ")"))))) (; ";")) (goto_statement "goto LAB_00249047;" (goto "goto") (statement_identifier "LAB_00249047") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" (else "else") (compound_statement "{\nLAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }\n          if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }\n          uVar5 = uVar8 & 0xff;\n        }" ({ "{") (labeled_statement "LAB_00248f9c:\n          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" (statement_identifier "LAB_00248f9c") (: ":") (expression_statement "uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar8") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";"))) (if_statement "if (uVar11 <= local_30) {\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" (if "if") (parenthesized_expression "(uVar11 <= local_30)" (( "(") (binary_expression "uVar11 <= local_30" (identifier "uVar11") (<= "<=") (identifier "local_30")) () ")")) (compound_statement "{\n            iVar13 = *param_1;\n            iVar10 = *(int *)(iVar13 + -0xc);\n            if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }\n            goto LAB_00249024;\n          }" ({ "{") (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar10 = *(int *)(iVar13 + -0xc);" (assignment_expression "iVar10 = *(int *)(iVar13 + -0xc)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (if_statement "if (uVar8 != 0xffffffff) {\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" (if "if") (parenthesized_expression "(uVar8 != 0xffffffff)" (( "(") (binary_expression "uVar8 != 0xffffffff" (identifier "uVar8") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;\n              return param_1;\n            }" ({ "{") (labeled_statement "LAB_00249047:\n              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" (statement_identifier "LAB_00249047") (: ":") (expression_statement "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + iVar10 + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + iVar10 + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + iVar10 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar10 + 8)" (( "(") (binary_expression "(int)param_1 + iVar10 + 8" (binary_expression "(int)param_1 + iVar10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar10")) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (goto_statement "goto LAB_00249024;" (goto "goto") (statement_identifier "LAB_00249024") (; ";")) (} "}"))) (if_statement "if (uVar8 == 0xffffffff) {\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" (if "if") (parenthesized_expression "(uVar8 == 0xffffffff)" (( "(") (binary_expression "uVar8 == 0xffffffff" (identifier "uVar8") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n            iVar13 = *param_1;\n            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;\n            goto LAB_00248d89;\n          }" ({ "{") (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar5 = (-(uint)(local_30 == 0) & 4) + 2" (identifier "uVar5") (= "=") (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" (( "(") (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" (- "-") (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_00248d89;" (goto "goto") (statement_identifier "LAB_00248d89") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar8 & 0xff;" (assignment_expression "uVar5 = uVar8 & 0xff" (identifier "uVar5") (= "=") (binary_expression "uVar8 & 0xff" (identifier "uVar8") (& "&") (number_literal "0xff"))) (; ";")) (} "}")))) (expression_statement "bVar4 = (byte)uVar8;" (assignment_expression "bVar4 = (byte)uVar8" (identifier "bVar4") (= "=") (cast_expression "(byte)uVar8" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar8"))) (; ";")) (expression_statement "iVar10 = *(int *)(iVar13 + 0x18);" (assignment_expression "iVar10 = *(int *)(iVar13 + 0x18)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar13 + 0x18)" (* "*") (cast_expression "(int *)(iVar13 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + 0x18)" (( "(") (binary_expression "iVar13 + 0x18" (identifier "iVar13") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20" (pointer_expression "*(byte *)(iVar10 + 1 + uVar5 * 2)" (* "*") (cast_expression "(byte *)(iVar10 + 1 + uVar5 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 1 + uVar5 * 2)" (( "(") (binary_expression "iVar10 + 1 + uVar5 * 2" (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1")) (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_30 != 0) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" (identifier "uVar5") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" (else "else") (compound_statement "{\n      iVar13 = *param_1;\n      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;\n      uVar5 = 4;\n    }" ({ "{") (expression_statement "iVar13 = *param_1;" (assignment_expression "iVar13 = *param_1" (identifier "iVar13") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar13 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 4;" (assignment_expression "uVar5 = 4" (identifier "uVar5") (= "=") (number_literal "4")) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_00248d89:\n  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" (statement_identifier "LAB_00248d89") (: ":") (expression_statement "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);" (assignment_expression "iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc)" (identifier "iVar13") (= "=") (binary_expression "(int)param_1 + *(int *)(iVar13 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar13 + -0xc)" (* "*") (cast_expression "(int *)(iVar13 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + -0xc)" (( "(") (binary_expression "iVar13 + -0xc" (identifier "iVar13") (+ "+") (number_literal "-0xc")) () ")")))))) (; ";"))) (expression_statement "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));" (call_expression "FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" (identifier "FUN_00272070") (argument_list "(iVar13,uVar5 | *(uint *)(iVar13 + 0x14))" (( "(") (identifier "iVar13") (, ",") (binary_expression "uVar5 | *(uint *)(iVar13 + 0x14)" (identifier "uVar5") (| "|") (pointer_expression "*(uint *)(iVar13 + 0x14)" (* "*") (cast_expression "(uint *)(iVar13 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar13 + 0x14)" (( "(") (binary_expression "iVar13 + 0x14" (identifier "iVar13") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, std::string&) */

type_7 * var_5::operator>>(type_7 *var_3,type_1 *var_2)

{
  int *piVar1;
  type_1 sVar2;
  type_2 *var_20;
  type_3 *var_9;
  type_4 var_14;
  type_5 *var_18;
  type_1 *var_13;
  int var_7;
  type_4 var_10;
  int var_12;
  type_4 var_15;
  type_5 *var_17;
  type_2 *var_19;
  type_4 uVar14;
  type_4 var_11;
  type_6 var_1;
  type_2 local_20 [16];
  
  uVar14 = 0;
  istream::sentry::type_6(&var_1,(type_7 *)var_3,false);
  if (var_1 == (type_6)0x0) {
    var_7 = *(int *)var_3;
  }
  else {
    *(type_8 *)(var_2 + 4) = 0;
    **(type_9 **)var_2 = 0;
    var_10 = 0x7fffffff;
    if (0 < (int)*(type_4 *)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 8)) {
      var_10 = *(type_4 *)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 8);
    }
    var_20 = (type_2 *)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x6c);
    locale::type_2(local_20,var_20);
                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */
    var_9 = var_4<var_5::type_3<var_6>>(local_20);
    locale::~type_2(local_20);
    piVar1 = *(int **)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x78);
    if ((type_1 *)piVar1[2] < (type_1 *)piVar1[3]) {
      sVar2 = *(type_1 *)piVar1[2];
    }
    else {
                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */
      var_7 = (**(type_10 **)(*piVar1 + 0x24))(piVar1);
      if (var_7 == -1) {
        var_7 = *(int *)var_3;
        *(type_8 *)(var_3 + *(int *)(var_7 + -0xc) + 8) = 0;
        goto LAB_00248d89;
      }
      sVar2 = var_8(var_7,0);
    }
    var_11 = 0;
    var_7 = *(int *)(var_9 + 0x18);
    if ((*(type_5 *)(var_7 + 1 + (type_4)(type_5)sVar2 * 2) & 0x20) == 0) {
      do {
        var_19 = (type_2 *)piVar1[2];
        var_12 = piVar1[3] - (int)var_19;
        if ((int)(var_10 - var_11) < piVar1[3] - (int)var_19) {
          var_12 = var_10 - var_11;
        }
        var_15 = *(type_4 *)(var_2 + 4);
        if (var_12 < 2) {
          var_13 = *(type_1 **)var_2;
          if (var_13 == var_2 + 8) {
            var_14 = 0xf;
          }
          else {
            var_14 = *(type_4 *)(var_2 + 8);
          }
          var_19 = var_20;
          if (var_14 < var_15 + 1) {
            string::var_16((type_4)var_2,var_15,(char *)0x0,0);
            var_13 = *(type_1 **)var_2;
            var_19 = var_20;
          }
          var_11 = var_11 + 1;
          var_13[var_15] = sVar2;
          *(type_4 *)(var_2 + 4) = var_15 + 1;
          *(type_9 *)(*(int *)var_2 + 1 + var_15) = 0;
          var_17 = (type_5 *)piVar1[3];
          if ((type_5 *)piVar1[2] < var_17) {
            var_18 = (type_5 *)piVar1[2] + 1;
            piVar1[2] = (int)var_18;
LAB_00248f94:
            if (var_18 < var_17) goto LAB_00248ef2;
            goto LAB_00248f9c;
          }
          var_7 = (**(type_10 **)(*piVar1 + 0x28))(piVar1);
          if (var_7 != -1) {
            var_18 = (type_5 *)piVar1[2];
            var_17 = (type_5 *)piVar1[3];
            goto LAB_00248f94;
          }
          var_7 = *(int *)var_3;
LAB_00249024:
          *(type_8 *)(var_3 + *(int *)(var_7 + -0xc) + 8) = 0;
          goto LAB_00248d89;
        }
        var_20 = var_19 + 1;
        if ((var_20 < var_19 + var_12) &&
           ((*(type_5 *)(var_7 + 1 + (type_4)(type_5)var_19[1] * 2) & 0x20) == 0)) {
          do {
            var_20 = var_20 + 1;
            if (var_19 + var_12 <= var_20) break;
          } while ((*(type_5 *)(var_7 + 1 + (type_4)(type_5)*var_20 * 2) & 0x20) == 0);
          var_14 = (int)var_20 - (int)var_19;
        }
        else {
          var_14 = 1;
        }
        if (0x7fffffff - var_15 < var_14) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */
          var_21("basic_string::append");
        }
        uVar14 = var_14;
                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */
        string::var_22((char *)var_2,(type_4)var_19);
        var_11 = var_11 + var_14;
        var_18 = (type_5 *)(piVar1[2] + var_14);
        piVar1[2] = (int)var_18;
        if (var_18 < (type_5 *)piVar1[3]) {
LAB_00248ef2:
          var_14 = (type_4)*var_18;
          var_15 = var_14;
          if (var_10 <= var_11) {
            var_12 = *(int *)(*(int *)var_3 + -0xc);
            goto LAB_00249047;
          }
        }
        else {
LAB_00248f9c:
          var_14 = (**(type_10 **)(*piVar1 + 0x24))(piVar1,var_19,uVar14);
          if (var_10 <= var_11) {
            var_7 = *(int *)var_3;
            var_12 = *(int *)(var_7 + -0xc);
            if (var_14 != 0xffffffff) {
LAB_00249047:
              *(type_8 *)(var_3 + var_12 + 8) = 0;
              return var_3;
            }
            goto LAB_00249024;
          }
          if (var_14 == 0xffffffff) {
            var_7 = *(int *)var_3;
            *(type_8 *)(var_3 + *(int *)(var_7 + -0xc) + 8) = 0;
            goto LAB_00248d89;
          }
          var_15 = var_14 & 0xff;
        }
        sVar2 = var_8(var_14,0);
        var_7 = *(int *)(var_9 + 0x18);
        var_20 = var_19;
      } while ((*(type_5 *)(var_7 + 1 + var_15 * 2) & 0x20) == 0);
      var_7 = *(int *)var_3;
      *(type_8 *)(var_3 + *(int *)(var_7 + -0xc) + 8) = 0;
      if (var_11 != 0) {
        return var_3;
      }
    }
    else {
      var_7 = *(int *)var_3;
      *(type_8 *)(var_3 + *(int *)(var_7 + -0xc) + 8) = 0;
    }
  }
LAB_00248d89:
  ios::var_23((_Ios_Iostate)(var_3 + *(int *)(var_7 + -0xc)));
  return var_3;
}


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

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

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

{
  int *piVar1;
  int iVar2;
  int iVar3;
  byte bVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint uVar8;
  int *piVar9;
  int iVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  uint local_30;
  char local_21;
  undefined1 local_20 [16];
  
  FUN_0026bb10(&local_21,param_1,0);
  if (local_21 == '\0') {
    iVar13 = *param_1;
    uVar5 = 4;
  }
  else {
    param_2[1] = 0;
    *(undefined1 *)*param_2 = 0;
    uVar5 = *(uint *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);
    uVar11 = 0x7fffffff;
    if (0 < (int)uVar5) {
      uVar11 = uVar5;
    }
    FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 00248df4 to 00248df8 has its CatchHandler @ 0024910c */
    iVar13 = FUN_0025d250(local_20);
    FUN_0024a980(local_20);
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
    if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
      bVar4 = *(byte *)piVar1[2];
    }
    else {
                    /* try { // try from 00249083 to 00249085 has its CatchHandler @ 00249107 */
      iVar10 = (**(code **)(*piVar1 + 0x24))(piVar1);
      if (iVar10 == -1) {
        iVar13 = *param_1;
        *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
        uVar5 = 6;
        goto LAB_00248d89;
      }
      bVar4 = (byte)iVar10;
    }
    local_30 = 0;
    iVar10 = *(int *)(iVar13 + 0x18);
    if ((*(byte *)(iVar10 + 1 + (uint)bVar4 * 2) & 0x20) == 0) {
      do {
        iVar2 = piVar1[2];
        iVar12 = piVar1[3] - iVar2;
        if ((int)(uVar11 - local_30) < piVar1[3] - iVar2) {
          iVar12 = uVar11 - local_30;
        }
        iVar3 = param_2[1];
        if (iVar12 < 2) {
          piVar9 = (int *)*param_2;
          if (piVar9 == param_2 + 2) {
            uVar5 = 0xf;
          }
          else {
            uVar5 = param_2[2];
          }
          if (uVar5 < iVar3 + 1U) {
            FUN_0024ff10(param_2,iVar3,0,0,1);
            piVar9 = (int *)*param_2;
          }
          local_30 = local_30 + 1;
          *(byte *)((int)piVar9 + iVar3) = bVar4;
          param_2[1] = iVar3 + 1U;
          *(undefined1 *)(*param_2 + 1 + iVar3) = 0;
          pbVar6 = (byte *)piVar1[3];
          if ((byte *)piVar1[2] < pbVar6) {
            pbVar7 = (byte *)piVar1[2] + 1;
            piVar1[2] = (int)pbVar7;
LAB_00248f94:
            if (pbVar7 < pbVar6) goto LAB_00248ef2;
            goto LAB_00248f9c;
          }
          iVar10 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar10 != -1) {
            pbVar7 = (byte *)piVar1[2];
            pbVar6 = (byte *)piVar1[3];
            goto LAB_00248f94;
          }
          iVar13 = *param_1;
LAB_00249024:
          *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
          uVar5 = 2;
          goto LAB_00248d89;
        }
        pbVar6 = (byte *)(iVar2 + 1);
        if ((pbVar6 < (byte *)(iVar12 + iVar2)) &&
           ((*(byte *)(iVar10 + 1 + (uint)*(byte *)(iVar2 + 1) * 2) & 0x20) == 0)) {
          do {
            pbVar6 = pbVar6 + 1;
            if ((byte *)(iVar12 + iVar2) <= pbVar6) break;
          } while ((*(byte *)(iVar10 + 1 + (uint)*pbVar6 * 2) & 0x20) == 0);
          uVar5 = (int)pbVar6 - iVar2;
        }
        else {
          uVar5 = 1;
        }
        if (0x7fffffffU - iVar3 < uVar5) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002490e5 to 002490e9 has its CatchHandler @ 00249116 */
          FUN_0028dc10("basic_string::append");
        }
                    /* try { // try from 00248ed6 to 00249012 has its CatchHandler @ 00249116 */
        FUN_00251a30(param_2,iVar2,uVar5);
        local_30 = local_30 + uVar5;
        pbVar7 = (byte *)(piVar1[2] + uVar5);
        piVar1[2] = (int)pbVar7;
        if (pbVar7 < (byte *)piVar1[3]) {
LAB_00248ef2:
          uVar8 = (uint)*pbVar7;
          uVar5 = uVar8;
          if (uVar11 <= local_30) {
            iVar10 = *(int *)(*param_1 + -0xc);
            goto LAB_00249047;
          }
        }
        else {
LAB_00248f9c:
          uVar8 = (**(code **)(*piVar1 + 0x24))(piVar1);
          if (uVar11 <= local_30) {
            iVar13 = *param_1;
            iVar10 = *(int *)(iVar13 + -0xc);
            if (uVar8 != 0xffffffff) {
LAB_00249047:
              *(undefined4 *)((int)param_1 + iVar10 + 8) = 0;
              return param_1;
            }
            goto LAB_00249024;
          }
          if (uVar8 == 0xffffffff) {
            iVar13 = *param_1;
            *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
            uVar5 = (-(uint)(local_30 == 0) & 4) + 2;
            goto LAB_00248d89;
          }
          uVar5 = uVar8 & 0xff;
        }
        bVar4 = (byte)uVar8;
        iVar10 = *(int *)(iVar13 + 0x18);
      } while ((*(byte *)(iVar10 + 1 + uVar5 * 2) & 0x20) == 0);
      iVar13 = *param_1;
      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
      if (local_30 != 0) {
        return param_1;
      }
      uVar5 = 4;
    }
    else {
      iVar13 = *param_1;
      *(undefined4 *)((int)param_1 + *(int *)(iVar13 + -0xc) + 8) = 0;
      uVar5 = 4;
    }
  }
LAB_00248d89:
  iVar13 = (int)param_1 + *(int *)(iVar13 + -0xc);
  FUN_00272070(iVar13,uVar5 | *(uint *)(iVar13 + 0x14));
  return param_1;
}

