
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::istream::getline(char*, int, char) */

void std::istream::getline(char *param_1,int param_2,char param_3)

{
}



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

int * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)

{
  int *piVar1;
  uint uVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte *pbVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  char local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x3fcabb;
  param_1[1] = 0;
  FUN_003d1970(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    if (param_3 < 1) {
      iVar6 = param_1[1];
    }
    else {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
joined_r0x003fcd9c:
    if (iVar6 != 0) {
      return param_1;
    }
    uVar2 = 4;
LAB_003fcb0d:
    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;
    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));
    return param_1;
  }
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar2 = (uint)*(byte *)piVar1[2];
  }
  else {
                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */
    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  iVar7 = param_1[1];
LAB_003fcb71:
  iVar6 = iVar7 + 1;
  if (iVar6 < param_3) {
    do {
      if (uVar2 == 0xffffffff) {
LAB_003fcd10:
        if (0 < param_3) {
          *param_2 = 0;
        }
        iVar7 = param_1[1];
        goto LAB_003fcd20;
      }
      pbVar5 = (byte *)piVar1[3];
      pbVar4 = (byte *)piVar1[2];
      if (param_4 == uVar2) goto LAB_003fcd70;
      __n = (param_3 - iVar7) - 1;
      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {
        __n = (int)pbVar5 - (int)pbVar4;
      }
      if ((int)__n < 2) {
        *param_2 = (char)uVar2;
        param_2 = param_2 + 1;
        pbVar5 = (byte *)piVar1[3];
        param_1[1] = param_1[1] + 1;
        if ((byte *)piVar1[2] < pbVar5) {
          pbVar4 = (byte *)piVar1[2] + 1;
          piVar1[2] = (int)pbVar4;
        }
        else {
                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar6 == -1) goto LAB_003fcd10;
          pbVar4 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
        }
        if (pbVar4 < pbVar5) {
          uVar2 = (uint)*pbVar4;
          iVar7 = param_1[1];
        }
        else {
          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
          iVar7 = param_1[1];
        }
        goto LAB_003fcb71;
      }
      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);
      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {
        memcpy(param_2,pbVar4,__n);
        iVar7 = param_1[1];
        pbVar5 = (byte *)piVar1[3];
        pbVar3 = (byte *)(piVar1[2] + __n);
      }
      iVar7 = iVar7 + __n;
      param_2 = param_2 + __n;
      piVar1[2] = (int)pbVar3;
      param_1[1] = iVar7;
      if (pbVar5 <= pbVar3) goto LAB_003fccc0;
      uVar2 = (uint)*pbVar3;
      iVar6 = iVar7 + 1;
      if (param_3 <= iVar6) break;
    } while( true );
  }
  if (uVar2 == 0xffffffff) {
    if (0 < param_3) {
      *param_2 = 0;
      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;
      goto LAB_003fcb0d;
    }
LAB_003fcd20:
    uVar2 = 2;
LAB_003fcd25:
    if (iVar7 == 0) {
      uVar2 = uVar2 | 4;
    }
    goto LAB_003fcb0d;
  }
  if (param_4 != uVar2) {
    if (0 < param_3) {
      *param_2 = 0;
      uVar2 = 4;
      goto LAB_003fcb0d;
    }
    uVar2 = 4;
    goto LAB_003fcd25;
  }
  pbVar5 = (byte *)piVar1[3];
  pbVar4 = (byte *)piVar1[2];
LAB_003fcd70:
  param_1[1] = iVar6;
  if (pbVar4 < pbVar5) {
    piVar1[2] = (int)(pbVar4 + 1);
    if (0 < param_3) {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
  }
  else {
                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */
    (**(code **)(*piVar1 + 0x28))(piVar1);
    if (param_3 < 1) {
      iVar6 = param_1[1];
    }
    else {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
  }
  goto joined_r0x003fcd9c;
LAB_003fccc0:
                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */
  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  iVar7 = param_1[1];
  goto LAB_003fcb71;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x1ed545
SUB ESP,0x40
MOV EAX,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0x14]
MOV dword ptr [EAX + 0x4],0x0
PUSH 0x1
PUSH EAX
LEA EAX,[EBP + -0x19]
PUSH EAX
MOV dword ptr [EBP + -0x34],EBX
CALL 0x003d1970
ADD ESP,0x10
CMP byte ptr [EBP + -0x19],0x0
JNZ 0x003fcb38
MOV EAX,dword ptr [EBP + 0x10]
TEST EAX,EAX
JLE 0x003fcc30
MOV EAX,dword ptr [EBP + 0xc]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JNZ 0x003fcc3e
MOV EAX,0x4
MOV ECX,dword ptr [EBP + 0x8]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x34]
MOV EDX,dword ptr [ECX]
MOV EDI,dword ptr [EDX + -0xc]
ADD EDI,ECX
OR EAX,dword ptr [EDI + 0x14]
PUSH EAX
PUSH EDI
CALL 0x003d7ed0
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EDI
MOV ECX,dword ptr [EBP + 0x8]
MOV ESI,EDI
MOVZX EAX,AL
MOV dword ptr [EBP + -0x3c],EAX
MOV EAX,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + -0xc]
MOV EDI,dword ptr [ECX + EAX*0x1 + 0x78]
MOV dword ptr [EBP + -0x2c],EDI
MOV EAX,dword ptr [EDI + 0x8]
CMP dword ptr [EDI + 0xc],EAX
JBE 0x003fcce0
MOVZX EAX,byte ptr [EAX]
MOV ECX,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [ECX + 0x4]
MOV ECX,ESI
MOVSX ECX,CL
MOV dword ptr [EBP + -0x40],ECX
LEA EBX,[EDI + 0x1]
CMP EBX,dword ptr [EBP + 0x10]
JGE 0x003fcc03
CMP EAX,-0x1
JZ 0x003fcdb0
MOV EDX,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [EDX + 0xc]
MOV EDX,dword ptr [EDX + 0x8]
CMP dword ptr [EBP + -0x3c],EAX
JZ 0x003fcd70
MOV ESI,dword ptr [EBP + 0x10]
MOV EBX,ECX
SUB EBX,EDX
SUB ESI,EDI
SUB ESI,0x1
CMP ESI,EBX
CMOVG ESI,EBX
CMP ESI,0x1
JLE 0x003fcc80
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x34]
MOV dword ptr [EBP + -0x30],EDX
PUSH ESI
PUSH dword ptr [EBP + -0x40]
PUSH EDX
MOV dword ptr [EBP + -0x38],ECX
CALL 0x00039430
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x30]
TEST EAX,EAX
JZ 0x003fcc50
MOV ESI,EAX
MOV ECX,dword ptr [EBP + -0x38]
SUB ESI,EDX
JNZ 0x003fcc50
MOV EBX,dword ptr [EBP + -0x2c]
ADD EDI,ESI
ADD dword ptr [EBP + 0xc],ESI
MOV dword ptr [EBX + 0x8],EAX
MOV EBX,dword ptr [EBP + 0x8]
MOV dword ptr [EBX + 0x4],EDI
CMP ECX,EAX
JBE 0x003fccc0
MOVZX EAX,byte ptr [EAX]
LEA EBX,[EDI + 0x1]
CMP EBX,dword ptr [EBP + 0x10]
JL 0x003fcb7d
CMP EAX,-0x1
JZ 0x003fcdf2
CMP dword ptr [EBP + -0x3c],EAX
JZ 0x003fcd5d
MOV EAX,dword ptr [EBP + 0x10]
TEST EAX,EAX
JLE 0x003fcd38
MOV EAX,dword ptr [EBP + 0xc]
MOV byte ptr [EAX],0x0
MOV EAX,0x4
JMP 0x003fcb0d
MOV EAX,dword ptr [EBP + 0x8]
MOV EBX,dword ptr [EAX + 0x4]
TEST EBX,EBX
JZ 0x003fcb08
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x34]
PUSH ESI
PUSH EDX
PUSH dword ptr [EBP + 0xc]
CALL 0x000392d0
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV EDI,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EBP + -0x2c]
MOV EBX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [EAX + 0xc]
ADD EBX,ESI
MOV EAX,EBX
JMP 0x003fcbdb
MOV EDI,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EBP + -0x2c]
MOV byte ptr [EDI],AL
MOV EAX,dword ptr [EBP + 0x8]
LEA ESI,[EDI + 0x1]
MOV EDX,dword ptr [ECX + 0xc]
ADD dword ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [ECX + 0x8]
CMP EAX,EDX
JNC 0x003fccf8
ADD EAX,0x1
MOV dword ptr [ECX + 0x8],EAX
CMP EAX,EDX
JNC 0x003fcd40
MOV EDI,dword ptr [EBP + 0x8]
MOVZX EAX,byte ptr [EAX]
MOV dword ptr [EBP + 0xc],ESI
MOV EDI,dword ptr [EDI + 0x4]
JMP 0x003fcb71
MOV EDI,dword ptr [EBP + -0x2c]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x24]
MOV EDI,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV EDI,dword ptr [EDI + 0x4]
JMP 0x003fcb71
MOV EDI,dword ptr [EBP + -0x2c]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x003fcb63
MOV ECX,dword ptr [EBP + -0x2c]
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x003fce17
MOV EAX,dword ptr [EBP + 0x10]
TEST EAX,EAX
JLE 0x003fcd1a
MOV byte ptr [ESI],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EAX + 0x4]
MOV EAX,0x2
TEST EDI,EDI
JNZ 0x003fcb0d
OR EAX,0x4
JMP 0x003fcb0d
MOV EAX,0x4
JMP 0x003fcd25
MOV EDI,dword ptr [EBP + -0x2c]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x24]
MOV ECX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV dword ptr [EBP + 0xc],ESI
MOV EDI,dword ptr [ECX + 0x4]
JMP 0x003fcb71
MOV EAX,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x8]
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EAX + 0x4],EBX
CMP ECX,EDX
JBE 0x003fcdb8
MOV EAX,dword ptr [EBP + -0x2c]
MOV ESI,dword ptr [EBP + 0x10]
ADD EDX,0x1
MOV dword ptr [EAX + 0x8],EDX
TEST ESI,ESI
JLE 0x003fcc36
MOV EAX,dword ptr [EBP + 0xc]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EBX,dword ptr [EAX + 0x4]
TEST EBX,EBX
JZ 0x003fcb08
JMP 0x003fcc3e
MOV ESI,dword ptr [EBP + 0xc]
JMP 0x003fcd10
MOV ECX,dword ptr [EBP + -0x2c]
SUB ESP,0xc
MOV EAX,dword ptr [ECX]
PUSH ECX
CALL dword ptr [EAX + 0x28]
MOV ECX,dword ptr [EBP + 0x10]
ADD ESP,0x10
TEST ECX,ECX
JLE 0x003fcde7
MOV EAX,dword ptr [EBP + 0xc]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JZ 0x003fcb08
JMP 0x003fcc3e
MOV EAX,dword ptr [EBP + 0x8]
MOV EBX,dword ptr [EAX + 0x4]
JMP 0x003fcc36
MOV EAX,dword ptr [EBP + 0x10]
TEST EAX,EAX
JLE 0x003fcd20
MOV EAX,dword ptr [EBP + 0xc]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
CMP dword ptr [EAX + 0x4],0x1
SBB EAX,EAX
AND EAX,0x4
ADD EAX,0x2
JMP 0x003fcb0d
MOV ECX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [ECX + 0x8]
MOV EDX,dword ptr [ECX + 0xc]
JMP 0x003fcca2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}\n\n" comment (function_definition "int * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" primitive_type (pointer_declarator "* FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" * (function_declarator "FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3,byte param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte param_4" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char local_1d [9];" primitive_type (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3fcabb;" (assignment_expression "uStack_14 = 0x3fcabb" identifier = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_003d1970(local_1d,param_1,1);" (call_expression "FUN_003d1970(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" { (if_statement "if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = param_1[1];\n    }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" else (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (labeled_statement "joined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }" statement_identifier : (if_statement "if (iVar6 != 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) }))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (labeled_statement "LAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" identifier (argument_list "(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" ( identifier , (binary_expression "uVar2 | *(uint *)(iVar6 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar6 + 0x14)" * (cast_expression "(uint *)(iVar6 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return 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    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\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    uVar2 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (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 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_003fcb71:\n  iVar6 = iVar7 + 1;" statement_identifier : (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" if (parenthesized_expression "(iVar6 < param_3)" ( (binary_expression "iVar6 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" { (do_statement "do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );" do (compound_statement "{\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    }" { (if_statement "if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" { (labeled_statement "LAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }" statement_identifier : (if_statement "if (0 < param_3) {\n          *param_2 = 0;\n        }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n          *param_2 = 0;\n        }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) }))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_003fcd20;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (param_4 == uVar2) goto LAB_003fcd70;" if (parenthesized_expression "(param_4 == uVar2)" ( (binary_expression "param_4 == uVar2" identifier == identifier) )) (goto_statement "goto LAB_003fcd70;" goto statement_identifier ;)) (expression_statement "__n = (param_3 - iVar7) - 1;" (assignment_expression "__n = (param_3 - iVar7) - 1" identifier = (binary_expression "(param_3 - iVar7) - 1" (parenthesized_expression "(param_3 - iVar7)" ( (binary_expression "param_3 - iVar7" identifier - identifier) )) - number_literal)) ;) (if_statement "if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" if (parenthesized_expression "((int)pbVar5 - (int)pbVar4 < (int)__n)" ( (binary_expression "(int)pbVar5 - (int)pbVar4 < (int)__n" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) < (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" { (expression_statement "__n = (int)pbVar5 - (int)pbVar4;" (assignment_expression "__n = (int)pbVar5 - (int)pbVar4" identifier = (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" if (parenthesized_expression "((int)__n < 2)" ( (binary_expression "(int)__n < 2" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" { (expression_statement "*param_2 = (char)uVar2;" (assignment_expression "*param_2 = (char)uVar2" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar5)" ( (binary_expression "(byte *)piVar1[2] < pbVar5" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }" { (expression_statement "pbVar4 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar4 = (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)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" { comment (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(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 (iVar6 == -1) goto LAB_003fcd10;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_003fcd10;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (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 "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (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 (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }" { (expression_statement "uVar2 = (uint)*pbVar4;" (assignment_expression "uVar2 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (goto_statement "goto LAB_003fcb71;" goto statement_identifier ;) })) (expression_statement "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);" (assignment_expression "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n)" identifier = (cast_expression "(byte *)memchr(pbVar4,(int)(char)param_4,__n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "memchr(pbVar4,(int)(char)param_4,__n)" identifier (argument_list "(pbVar4,(int)(char)param_4,__n)" ( identifier , (cast_expression "(int)(char)param_4" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier ))))) ;) (if_statement "if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" if (parenthesized_expression "((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0))" ( (binary_expression "(pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)" (parenthesized_expression "(pbVar3 == (byte *)0x0)" ( (binary_expression "pbVar3 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(__n = (int)pbVar3 - (int)pbVar4, __n != 0)" ( (comma_expression "__n = (int)pbVar3 - (int)pbVar4, __n != 0" (assignment_expression "__n = (int)pbVar3 - (int)pbVar4" identifier = (binary_expression "(int)pbVar3 - (int)pbVar4" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) , (binary_expression "__n != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" { (expression_statement "memcpy(param_2,pbVar4,__n);" (call_expression "memcpy(param_2,pbVar4,__n)" identifier (argument_list "(param_2,pbVar4,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar3 = (byte *)(piVar1[2] + __n);" (assignment_expression "pbVar3 = (byte *)(piVar1[2] + __n)" identifier = (cast_expression "(byte *)(piVar1[2] + __n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[2] + __n)" ( (binary_expression "piVar1[2] + __n" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + identifier) )))) ;) })) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" identifier = (binary_expression "iVar7 + __n" identifier + identifier)) ;) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" identifier = (binary_expression "param_2 + __n" identifier + identifier)) ;) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar5 <= pbVar3) goto LAB_003fccc0;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_003fccc0;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 <= iVar6) break;" if (parenthesized_expression "(param_3 <= iVar6)" ( (binary_expression "param_3 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" { (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (labeled_statement "LAB_003fcd20:\n    uVar2 = 2;" statement_identifier : (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;)) (labeled_statement "LAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" statement_identifier : (if_statement "if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = uVar2 | 4;\n    }" { (expression_statement "uVar2 = uVar2 | 4;" (assignment_expression "uVar2 = uVar2 | 4" identifier = (binary_expression "uVar2 | 4" identifier | number_literal)) ;) }))) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (if_statement "if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" if (parenthesized_expression "(param_4 != uVar2)" ( (binary_expression "param_4 != uVar2" identifier != identifier) )) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" { (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_003fcd25;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_003fcd70:\n  param_1[1] = iVar6;" statement_identifier : (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (if_statement "if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" { (expression_statement "piVar1[2] = (int)(pbVar4 + 1);" (assignment_expression "piVar1[2] = (int)(pbVar4 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(pbVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar4 + 1)" ( (binary_expression "pbVar4 + 1" identifier + number_literal) )))) ;) (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) }) (else_clause "else {\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" else (compound_statement "{\n                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */\n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" { comment (expression_statement "(**(code **)(*piVar1 + 0x28))(piVar1);" (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (if_statement "if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = param_1[1];\n    }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" else (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) (goto_statement "goto joined_r0x003fcd9c;" goto statement_identifier ;) (labeled_statement "LAB_003fccc0:\n                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_003fcb71;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::istream::getline(char*, int, char) */\n\nvoid std::istream::getline(char *param_1,int param_2,char param_3)\n\n{\n}\n\n" comment comment (function_definition "void std::istream::getline(char *param_1,int param_2,char param_3)\n\n{\n}" primitive_type (ERROR "std::istream::" identifier : : identifier : :) (function_declarator "getline(char *param_1,int param_2,char param_3)" identifier (parameter_list "(char *param_1,int param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}\n\n" (function_definition "int * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" primitive_type (pointer_declarator "* FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" * (function_declarator "FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3,byte param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte param_4" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char local_1d [9];" primitive_type (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3fcabb;" (assignment_expression "uStack_14 = 0x3fcabb" identifier = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_003d1970(local_1d,param_1,1);" (call_expression "FUN_003d1970(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" { (if_statement "if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = param_1[1];\n    }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" else (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (labeled_statement "joined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }" statement_identifier : (if_statement "if (iVar6 != 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) }))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (labeled_statement "LAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" identifier (argument_list "(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" ( identifier , (binary_expression "uVar2 | *(uint *)(iVar6 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar6 + 0x14)" * (cast_expression "(uint *)(iVar6 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return 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    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\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    uVar2 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (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    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_003fcb71:\n  iVar6 = iVar7 + 1;" statement_identifier : (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (if_statement "if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" if (parenthesized_expression "(iVar6 < param_3)" ( (binary_expression "iVar6 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" { (do_statement "do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );" do (compound_statement "{\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    }" { (if_statement "if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" { (labeled_statement "LAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }" statement_identifier : (if_statement "if (0 < param_3) {\n          *param_2 = 0;\n        }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n          *param_2 = 0;\n        }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) }))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_003fcd20;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (param_4 == uVar2) goto LAB_003fcd70;" if (parenthesized_expression "(param_4 == uVar2)" ( (binary_expression "param_4 == uVar2" identifier == identifier) )) (goto_statement "goto LAB_003fcd70;" goto statement_identifier ;)) (expression_statement "__n = (param_3 - iVar7) - 1;" (assignment_expression "__n = (param_3 - iVar7) - 1" identifier = (binary_expression "(param_3 - iVar7) - 1" (parenthesized_expression "(param_3 - iVar7)" ( (binary_expression "param_3 - iVar7" identifier - identifier) )) - number_literal)) ;) (if_statement "if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" if (parenthesized_expression "((int)pbVar5 - (int)pbVar4 < (int)__n)" ( (binary_expression "(int)pbVar5 - (int)pbVar4 < (int)__n" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) < (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" { (expression_statement "__n = (int)pbVar5 - (int)pbVar4;" (assignment_expression "__n = (int)pbVar5 - (int)pbVar4" identifier = (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" if (parenthesized_expression "((int)__n < 2)" ( (binary_expression "(int)__n < 2" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" { (expression_statement "*param_2 = (char)uVar2;" (assignment_expression "*param_2 = (char)uVar2" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar5)" ( (binary_expression "(byte *)piVar1[2] < pbVar5" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }" { (expression_statement "pbVar4 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar4 = (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)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" { (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(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 (iVar6 == -1) goto LAB_003fcd10;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_003fcd10;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (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 "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (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 (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }" { (expression_statement "uVar2 = (uint)*pbVar4;" (assignment_expression "uVar2 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (goto_statement "goto LAB_003fcb71;" goto statement_identifier ;) })) (expression_statement "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);" (assignment_expression "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n)" identifier = (cast_expression "(byte *)memchr(pbVar4,(int)(char)param_4,__n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "memchr(pbVar4,(int)(char)param_4,__n)" identifier (argument_list "(pbVar4,(int)(char)param_4,__n)" ( identifier , (cast_expression "(int)(char)param_4" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier ))))) ;) (if_statement "if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" if (parenthesized_expression "((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0))" ( (binary_expression "(pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)" (parenthesized_expression "(pbVar3 == (byte *)0x0)" ( (binary_expression "pbVar3 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(__n = (int)pbVar3 - (int)pbVar4, __n != 0)" ( (comma_expression "__n = (int)pbVar3 - (int)pbVar4, __n != 0" (assignment_expression "__n = (int)pbVar3 - (int)pbVar4" identifier = (binary_expression "(int)pbVar3 - (int)pbVar4" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) , (binary_expression "__n != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" { (expression_statement "memcpy(param_2,pbVar4,__n);" (call_expression "memcpy(param_2,pbVar4,__n)" identifier (argument_list "(param_2,pbVar4,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar3 = (byte *)(piVar1[2] + __n);" (assignment_expression "pbVar3 = (byte *)(piVar1[2] + __n)" identifier = (cast_expression "(byte *)(piVar1[2] + __n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[2] + __n)" ( (binary_expression "piVar1[2] + __n" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + identifier) )))) ;) })) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" identifier = (binary_expression "iVar7 + __n" identifier + identifier)) ;) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" identifier = (binary_expression "param_2 + __n" identifier + identifier)) ;) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar5 <= pbVar3) goto LAB_003fccc0;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_003fccc0;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 <= iVar6) break;" if (parenthesized_expression "(param_3 <= iVar6)" ( (binary_expression "param_3 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" { (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (labeled_statement "LAB_003fcd20:\n    uVar2 = 2;" statement_identifier : (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;)) (labeled_statement "LAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" statement_identifier : (if_statement "if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = uVar2 | 4;\n    }" { (expression_statement "uVar2 = uVar2 | 4;" (assignment_expression "uVar2 = uVar2 | 4" identifier = (binary_expression "uVar2 | 4" identifier | number_literal)) ;) }))) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (if_statement "if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" if (parenthesized_expression "(param_4 != uVar2)" ( (binary_expression "param_4 != uVar2" identifier != identifier) )) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" { (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_003fcb0d;" goto statement_identifier ;) })) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_003fcd25;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_003fcd70:\n  param_1[1] = iVar6;" statement_identifier : (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (if_statement "if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" { (expression_statement "piVar1[2] = (int)(pbVar4 + 1);" (assignment_expression "piVar1[2] = (int)(pbVar4 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(pbVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar4 + 1)" ( (binary_expression "pbVar4 + 1" identifier + number_literal) )))) ;) (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) }) (else_clause "else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" else (compound_statement "{\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" { (expression_statement "(**(code **)(*piVar1 + 0x28))(piVar1);" (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (if_statement "if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = param_1[1];\n    }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" else (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) (goto_statement "goto joined_r0x003fcd9c;" goto statement_identifier ;) (labeled_statement "LAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_003fcb71;" goto statement_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)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + 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)) ;) }) (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) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( BOOL )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )))) & LIT) )) + LIT)) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }))) (goto_statement goto statement_identifier ;) (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 )))) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "int * FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" (primitive_type "int") (pointer_declarator "* FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" (* "*") (function_declarator "FUN_003fcab0(int *param_1,undefined1 *param_2,int param_3,byte param_4)" (identifier "FUN_003fcab0") (parameter_list "(int *param_1,undefined1 *param_2,int param_3,byte param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "byte param_4" (type_identifier "byte") (identifier "param_4")) () ")")))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3fcabb;\n  param_1[1] = 0;\n  FUN_003d1970(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  iVar7 = param_1[1];\nLAB_003fcb71:\n  iVar6 = iVar7 + 1;\n  if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }\n  if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }\n  if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }\n  pbVar5 = (byte *)piVar1[3];\n  pbVar4 = (byte *)piVar1[2];\nLAB_003fcd70:\n  param_1[1] = iVar6;\n  if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  goto joined_r0x003fcd9c;\nLAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  iVar7 = param_1[1];\n  goto LAB_003fcb71;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char local_1d [9];" (primitive_type "char") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x3fcabb;" (assignment_expression "uStack_14 = 0x3fcabb" (identifier "uStack_14") (= "=") (number_literal "0x3fcabb")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_003d1970(local_1d,param_1,1);" (call_expression "FUN_003d1970(local_1d,param_1,1)" (identifier "FUN_003d1970") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_1d[0] == '\0') {\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\njoined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }\n    uVar2 = 4;\nLAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));\n    return param_1;\n  }" ({ "{") (if_statement "if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar6 = param_1[1];\n    }" ({ "{") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" (else "else") (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (labeled_statement "joined_r0x003fcd9c:\n    if (iVar6 != 0) {\n      return param_1;\n    }" (statement_identifier "joined_r0x003fcd9c") (: ":") (if_statement "if (iVar6 != 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (labeled_statement "LAB_003fcb0d:\n    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_003fcb0d") (: ":") (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";"))) (expression_statement "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" (identifier "FUN_003d7ed0") (argument_list "(iVar6,uVar2 | *(uint *)(iVar6 + 0x14))" (( "(") (identifier "iVar6") (, ",") (binary_expression "uVar2 | *(uint *)(iVar6 + 0x14)" (identifier "uVar2") (| "|") (pointer_expression "*(uint *)(iVar6 + 0x14)" (* "*") (cast_expression "(uint *)(iVar6 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x14)" (( "(") (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (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    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\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    uVar2 = (uint)*(byte *)piVar1[2];\n  }" ({ "{") (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (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    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" (else "else") (compound_statement "{\n                    \n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" ({ "{") (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar2") (= "=") (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") () ")")))) (; ";")) (} "}")))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (labeled_statement "LAB_003fcb71:\n  iVar6 = iVar7 + 1;" (statement_identifier "LAB_003fcb71") (: ":") (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (iVar6 < param_3) {\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" (if "if") (parenthesized_expression "(iVar6 < param_3)" (( "(") (binary_expression "iVar6 < param_3" (identifier "iVar6") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );\n  }" ({ "{") (do_statement "do {\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    } while( true );" (do "do") (compound_statement "{\n      if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar4 = (byte *)piVar1[2];\n      if (param_4 == uVar2) goto LAB_003fcd70;\n      __n = (param_3 - iVar7) - 1;\n      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }\n      if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }\n      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);\n      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }\n      iVar7 = iVar7 + __n;\n      param_2 = param_2 + __n;\n      piVar1[2] = (int)pbVar3;\n      param_1[1] = iVar7;\n      if (pbVar5 <= pbVar3) goto LAB_003fccc0;\n      uVar2 = (uint)*pbVar3;\n      iVar6 = iVar7 + 1;\n      if (param_3 <= iVar6) break;\n    }" ({ "{") (if_statement "if (uVar2 == 0xffffffff) {\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0xffffffff)" (( "(") (binary_expression "uVar2 == 0xffffffff" (identifier "uVar2") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }\n        iVar7 = param_1[1];\n        goto LAB_003fcd20;\n      }" ({ "{") (labeled_statement "LAB_003fcd10:\n        if (0 < param_3) {\n          *param_2 = 0;\n        }" (statement_identifier "LAB_003fcd10") (: ":") (if_statement "if (0 < param_3) {\n          *param_2 = 0;\n        }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n          *param_2 = 0;\n        }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (goto_statement "goto LAB_003fcd20;" (goto "goto") (statement_identifier "LAB_003fcd20") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (param_4 == uVar2) goto LAB_003fcd70;" (if "if") (parenthesized_expression "(param_4 == uVar2)" (( "(") (binary_expression "param_4 == uVar2" (identifier "param_4") (== "==") (identifier "uVar2")) () ")")) (goto_statement "goto LAB_003fcd70;" (goto "goto") (statement_identifier "LAB_003fcd70") (; ";"))) (expression_statement "__n = (param_3 - iVar7) - 1;" (assignment_expression "__n = (param_3 - iVar7) - 1" (identifier "__n") (= "=") (binary_expression "(param_3 - iVar7) - 1" (parenthesized_expression "(param_3 - iVar7)" (( "(") (binary_expression "param_3 - iVar7" (identifier "param_3") (- "-") (identifier "iVar7")) () ")")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if ((int)pbVar5 - (int)pbVar4 < (int)__n) {\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" (if "if") (parenthesized_expression "((int)pbVar5 - (int)pbVar4 < (int)__n)" (( "(") (binary_expression "(int)pbVar5 - (int)pbVar4 < (int)__n" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (< "<") (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n"))) () ")")) (compound_statement "{\n        __n = (int)pbVar5 - (int)pbVar4;\n      }" ({ "{") (expression_statement "__n = (int)pbVar5 - (int)pbVar4;" (assignment_expression "__n = (int)pbVar5 - (int)pbVar4" (identifier "__n") (= "=") (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")))) (; ";")) (} "}"))) (if_statement "if ((int)__n < 2) {\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" (if "if") (parenthesized_expression "((int)__n < 2)" (( "(") (binary_expression "(int)__n < 2" (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        *param_2 = (char)uVar2;\n        param_2 = param_2 + 1;\n        pbVar5 = (byte *)piVar1[3];\n        param_1[1] = param_1[1] + 1;\n        if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }\n        goto LAB_003fcb71;\n      }" ({ "{") (expression_statement "*param_2 = (char)uVar2;" (assignment_expression "*param_2 = (char)uVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((byte *)piVar1[2] < pbVar5) {\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" (if "if") (parenthesized_expression "((byte *)piVar1[2] < pbVar5)" (( "(") (binary_expression "(byte *)piVar1[2] < pbVar5" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n          pbVar4 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar4;\n        }" ({ "{") (expression_statement "pbVar4 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar4 = (byte *)piVar1[2] + 1" (identifier "pbVar4") (= "=") (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)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (; ";")) (} "}")) (else_clause "else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" (else "else") (compound_statement "{\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_003fcd10;\n          pbVar4 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" ({ "{") (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar6") (= "=") (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 (iVar6 == -1) goto LAB_003fcd10;" (if "if") (parenthesized_expression "(iVar6 == -1)" (( "(") (binary_expression "iVar6 == -1" (identifier "iVar6") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_003fcd10;" (goto "goto") (statement_identifier "LAB_003fcd10") (; ";"))) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" (identifier "pbVar4") (= "=") (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 "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (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 (pbVar4 < pbVar5) {\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }\n        else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" (if "if") (parenthesized_expression "(pbVar4 < pbVar5)" (( "(") (binary_expression "pbVar4 < pbVar5" (identifier "pbVar4") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n          uVar2 = (uint)*pbVar4;\n          iVar7 = param_1[1];\n        }" ({ "{") (expression_statement "uVar2 = (uint)*pbVar4;" (assignment_expression "uVar2 = (uint)*pbVar4" (identifier "uVar2") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" (else "else") (compound_statement "{\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar7 = param_1[1];\n        }" ({ "{") (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar2") (= "=") (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") () ")")))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (goto_statement "goto LAB_003fcb71;" (goto "goto") (statement_identifier "LAB_003fcb71") (; ";")) (} "}"))) (expression_statement "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);" (assignment_expression "pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n)" (identifier "pbVar3") (= "=") (cast_expression "(byte *)memchr(pbVar4,(int)(char)param_4,__n)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "memchr(pbVar4,(int)(char)param_4,__n)" (identifier "memchr") (argument_list "(pbVar4,(int)(char)param_4,__n)" (( "(") (identifier "pbVar4") (, ",") (cast_expression "(int)(char)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)param_4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_4"))) (, ",") (identifier "__n") () ")"))))) (; ";")) (if_statement "if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" (if "if") (parenthesized_expression "((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0))" (( "(") (binary_expression "(pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)" (parenthesized_expression "(pbVar3 == (byte *)0x0)" (( "(") (binary_expression "pbVar3 == (byte *)0x0" (identifier "pbVar3") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(__n = (int)pbVar3 - (int)pbVar4, __n != 0)" (( "(") (comma_expression "__n = (int)pbVar3 - (int)pbVar4, __n != 0" (assignment_expression "__n = (int)pbVar3 - (int)pbVar4" (identifier "__n") (= "=") (binary_expression "(int)pbVar3 - (int)pbVar4" (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")) (- "-") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")))) (, ",") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        memcpy(param_2,pbVar4,__n);\n        iVar7 = param_1[1];\n        pbVar5 = (byte *)piVar1[3];\n        pbVar3 = (byte *)(piVar1[2] + __n);\n      }" ({ "{") (expression_statement "memcpy(param_2,pbVar4,__n);" (call_expression "memcpy(param_2,pbVar4,__n)" (identifier "memcpy") (argument_list "(param_2,pbVar4,__n)" (( "(") (identifier "param_2") (, ",") (identifier "pbVar4") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar3 = (byte *)(piVar1[2] + __n);" (assignment_expression "pbVar3 = (byte *)(piVar1[2] + __n)" (identifier "pbVar3") (= "=") (cast_expression "(byte *)(piVar1[2] + __n)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[2] + __n)" (( "(") (binary_expression "piVar1[2] + __n" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "__n")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" (identifier "iVar7") (= "=") (binary_expression "iVar7 + __n" (identifier "iVar7") (+ "+") (identifier "__n"))) (; ";")) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" (identifier "param_2") (= "=") (binary_expression "param_2 + __n" (identifier "param_2") (+ "+") (identifier "__n"))) (; ";")) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3"))) (; ";")) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (pbVar5 <= pbVar3) goto LAB_003fccc0;" (if "if") (parenthesized_expression "(pbVar5 <= pbVar3)" (( "(") (binary_expression "pbVar5 <= pbVar3" (identifier "pbVar5") (<= "<=") (identifier "pbVar3")) () ")")) (goto_statement "goto LAB_003fccc0;" (goto "goto") (statement_identifier "LAB_003fccc0") (; ";"))) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" (identifier "uVar2") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 <= iVar6) break;" (if "if") (parenthesized_expression "(param_3 <= iVar6)" (( "(") (binary_expression "param_3 <= iVar6" (identifier "param_3") (<= "<=") (identifier "iVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (if_statement "if (uVar2 == 0xffffffff) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0xffffffff)" (( "(") (binary_expression "uVar2 == 0xffffffff" (identifier "uVar2") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }\nLAB_003fcd20:\n    uVar2 = 2;\nLAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }\n    goto LAB_003fcb0d;\n  }" ({ "{") (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;\n      goto LAB_003fcb0d;\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2" (identifier "uVar2") (= "=") (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" (( "(") (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" (- "-") (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_003fcb0d;" (goto "goto") (statement_identifier "LAB_003fcb0d") (; ";")) (} "}"))) (labeled_statement "LAB_003fcd20:\n    uVar2 = 2;" (statement_identifier "LAB_003fcd20") (: ":") (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";"))) (labeled_statement "LAB_003fcd25:\n    if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" (statement_identifier "LAB_003fcd25") (: ":") (if_statement "if (iVar7 == 0) {\n      uVar2 = uVar2 | 4;\n    }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = uVar2 | 4;\n    }" ({ "{") (expression_statement "uVar2 = uVar2 | 4;" (assignment_expression "uVar2 = uVar2 | 4" (identifier "uVar2") (= "=") (binary_expression "uVar2 | 4" (identifier "uVar2") (| "|") (number_literal "4"))) (; ";")) (} "}")))) (goto_statement "goto LAB_003fcb0d;" (goto "goto") (statement_identifier "LAB_003fcb0d") (; ";")) (} "}"))) (if_statement "if (param_4 != uVar2) {\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" (if "if") (parenthesized_expression "(param_4 != uVar2)" (( "(") (binary_expression "param_4 != uVar2" (identifier "param_4") (!= "!=") (identifier "uVar2")) () ")")) (compound_statement "{\n    if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }\n    uVar2 = 4;\n    goto LAB_003fcd25;\n  }" ({ "{") (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      *param_2 = 0;\n      uVar2 = 4;\n      goto LAB_003fcb0d;\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_003fcb0d;" (goto "goto") (statement_identifier "LAB_003fcb0d") (; ";")) (} "}"))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_003fcd25;" (goto "goto") (statement_identifier "LAB_003fcd25") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar1[2];" (assignment_expression "pbVar4 = (byte *)piVar1[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (labeled_statement "LAB_003fcd70:\n  param_1[1] = iVar6;" (statement_identifier "LAB_003fcd70") (: ":") (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar6")) (; ";"))) (if_statement "if (pbVar4 < pbVar5) {\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }\n  else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" (if "if") (parenthesized_expression "(pbVar4 < pbVar5)" (( "(") (binary_expression "pbVar4 < pbVar5" (identifier "pbVar4") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n    piVar1[2] = (int)(pbVar4 + 1);\n    if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" ({ "{") (expression_statement "piVar1[2] = (int)(pbVar4 + 1);" (assignment_expression "piVar1[2] = (int)(pbVar4 + 1)" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(pbVar4 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar4 + 1)" (( "(") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (0 < param_3) {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" (else "else") (compound_statement "{\n                    \n    (**(code **)(*piVar1 + 0x28))(piVar1);\n    if (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }\n  }" ({ "{") (expression_statement "(**(code **)(*piVar1 + 0x28))(piVar1);" (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x28)" (* "*") (cast_expression "(code **)(*piVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "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 (param_3 < 1) {\n      iVar6 = param_1[1];\n    }\n    else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar6 = param_1[1];\n    }" ({ "{") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" (else "else") (compound_statement "{\n      *param_2 = 0;\n      iVar6 = param_1[1];\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}")))) (goto_statement "goto joined_r0x003fcd9c;" (goto "goto") (statement_identifier "joined_r0x003fcd9c") (; ";")) (labeled_statement "LAB_003fccc0:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (statement_identifier "LAB_003fccc0") (: ":") (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar2") (= "=") (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") () ")")))) (; ";"))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (goto_statement "goto LAB_003fcb71;" (goto "goto") (statement_identifier "LAB_003fcb71") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::istream::getline(char*, int, char) */

void std::istream::function_1(char *param_1,int param_2,char param_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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (labeled_statement label: (statement_identifier) (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))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (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)))) (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: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (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: (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))))) 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: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) (identifier)))))) (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: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (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: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_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: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement))) condition: (parenthesized_expression (true))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (number_literal))) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (labeled_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: (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (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: (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))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))))))) (goto_statement label: (statement_identifier)) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (goto_statement label: (statement_identifier)))))

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

int * MASKED(int *param_1,undefined1 *param_2,int param_3,byte param_4)

{
  int *piVar1;
  uint uVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte *pbVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  char local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x3fcabb;
  param_1[1] = 0;
  FUN_003d1970(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    if (param_3 < 1) {
      iVar6 = param_1[1];
    }
    else {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
joined_r0x003fcd9c:
    if (iVar6 != 0) {
      return param_1;
    }
    uVar2 = 4;
LAB_003fcb0d:
    iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;
    FUN_003d7ed0(iVar6,uVar2 | *(uint *)(iVar6 + 0x14));
    return param_1;
  }
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar2 = (uint)*(byte *)piVar1[2];
  }
  else {
                    /* try { // try from 003fcce9 to 003fcceb has its CatchHandler @ 003fce2a */
    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  iVar7 = param_1[1];
LAB_003fcb71:
  iVar6 = iVar7 + 1;
  if (iVar6 < param_3) {
    do {
      if (uVar2 == 0xffffffff) {
LAB_003fcd10:
        if (0 < param_3) {
          *param_2 = 0;
        }
        iVar7 = param_1[1];
        goto LAB_003fcd20;
      }
      pbVar5 = (byte *)piVar1[3];
      pbVar4 = (byte *)piVar1[2];
      if (param_4 == uVar2) goto LAB_003fcd70;
      __n = (param_3 - iVar7) - 1;
      if ((int)pbVar5 - (int)pbVar4 < (int)__n) {
        __n = (int)pbVar5 - (int)pbVar4;
      }
      if ((int)__n < 2) {
        *param_2 = (char)uVar2;
        param_2 = param_2 + 1;
        pbVar5 = (byte *)piVar1[3];
        param_1[1] = param_1[1] + 1;
        if ((byte *)piVar1[2] < pbVar5) {
          pbVar4 = (byte *)piVar1[2] + 1;
          piVar1[2] = (int)pbVar4;
        }
        else {
                    /* try { // try from 003fcd01 to 003fcd4b has its CatchHandler @ 003fce25 */
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar6 == -1) goto LAB_003fcd10;
          pbVar4 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
        }
        if (pbVar4 < pbVar5) {
          uVar2 = (uint)*pbVar4;
          iVar7 = param_1[1];
        }
        else {
          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
          iVar7 = param_1[1];
        }
        goto LAB_003fcb71;
      }
      pbVar3 = (byte *)memchr(pbVar4,(int)(char)param_4,__n);
      if ((pbVar3 == (byte *)0x0) || (__n = (int)pbVar3 - (int)pbVar4, __n != 0)) {
        memcpy(param_2,pbVar4,__n);
        iVar7 = param_1[1];
        pbVar5 = (byte *)piVar1[3];
        pbVar3 = (byte *)(piVar1[2] + __n);
      }
      iVar7 = iVar7 + __n;
      param_2 = param_2 + __n;
      piVar1[2] = (int)pbVar3;
      param_1[1] = iVar7;
      if (pbVar5 <= pbVar3) goto LAB_003fccc0;
      uVar2 = (uint)*pbVar3;
      iVar6 = iVar7 + 1;
      if (param_3 <= iVar6) break;
    } while( true );
  }
  if (uVar2 == 0xffffffff) {
    if (0 < param_3) {
      *param_2 = 0;
      uVar2 = (-(uint)(param_1[1] == 0) & 4) + 2;
      goto LAB_003fcb0d;
    }
LAB_003fcd20:
    uVar2 = 2;
LAB_003fcd25:
    if (iVar7 == 0) {
      uVar2 = uVar2 | 4;
    }
    goto LAB_003fcb0d;
  }
  if (param_4 != uVar2) {
    if (0 < param_3) {
      *param_2 = 0;
      uVar2 = 4;
      goto LAB_003fcb0d;
    }
    uVar2 = 4;
    goto LAB_003fcd25;
  }
  pbVar5 = (byte *)piVar1[3];
  pbVar4 = (byte *)piVar1[2];
LAB_003fcd70:
  param_1[1] = iVar6;
  if (pbVar4 < pbVar5) {
    piVar1[2] = (int)(pbVar4 + 1);
    if (0 < param_3) {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
  }
  else {
                    /* try { // try from 003fcdc1 to 003fcdc3 has its CatchHandler @ 003fce2f */
    (**(code **)(*piVar1 + 0x28))(piVar1);
    if (param_3 < 1) {
      iVar6 = param_1[1];
    }
    else {
      *param_2 = 0;
      iVar6 = param_1[1];
    }
  }
  goto joined_r0x003fcd9c;
LAB_003fccc0:
                    /* try { // try from 003fccc9 to 003fcccb has its CatchHandler @ 003fce34 */
  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  iVar7 = param_1[1];
  goto LAB_003fcb71;
}

