
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfilebuf::overflow(unsigned int) */

void std::wfilebuf::overflow(uint param_1)

{
}



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

int FUN_003dcef0(int param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  int *piVar4;
  uint *puVar5;
  uint local_20;
  uint local_1c [3];
  undefined4 uStack_10;
  
  uStack_10 = 0x3dcef8;
  puVar5 = local_1c;
  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {
    if (*(char *)(param_1 + 0x65) != '\0') {
      if (*(char *)(param_1 + 0x74) != '\0') {
        *(undefined1 *)(param_1 + 0x74) = 0;
        iVar3 = *(int *)(param_1 + 0x6c) +
                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;
        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);
        *(int *)(param_1 + 0x6c) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);
      }
      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);
      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),
                   *(undefined4 *)(param_1 + 0x58));
      puVar5 = &local_20;
      if ((local_1c[0] & local_20) == 0xffffffff) {
        return -1;
      }
    }
    piVar1 = *(int **)(param_1 + 0x10);
    piVar4 = *(int **)(param_1 + 0x14);
    if (piVar1 < piVar4) {
      if (param_2 != -1) {
        *piVar4 = param_2;
        piVar4 = piVar4 + 1;
        *(int **)(param_1 + 0x14) = piVar4;
      }
      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;
      ((int *)puVar5)[-3] = (int)piVar1;
      ((int *)puVar5)[-4] = param_1;
      ((int *)puVar5)[-5] = 0x3dcfa2;
      cVar2 = FUN_003dcb10();
      if (cVar2 != '\0') {
        iVar3 = *(int *)(param_1 + 0x5c);
        *(int *)(param_1 + 4) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(int *)(param_1 + 0xc) = iVar3;
        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||
           (*(uint *)(param_1 + 0x60) < 2)) {
          *(undefined4 *)(param_1 + 0x14) = 0;
          *(undefined4 *)(param_1 + 0x10) = 0;
          *(undefined4 *)(param_1 + 0x18) = 0;
        }
        else {
          *(int *)(param_1 + 0x14) = iVar3;
          *(int *)(param_1 + 0x10) = iVar3;
          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;
        }
        if (param_2 != -1) {
          return param_2;
        }
        return 0;
      }
    }
    else {
      if (1 < *(uint *)(param_1 + 0x60)) {
        iVar3 = *(int *)(param_1 + 0x5c);
        *(int *)(param_1 + 4) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(int *)(param_1 + 0xc) = iVar3;
        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {
          *(undefined4 *)(param_1 + 0x14) = 0;
          *(undefined4 *)(param_1 + 0x10) = 0;
          *(undefined4 *)(param_1 + 0x18) = 0;
        }
        else {
          *(int *)(param_1 + 0x14) = iVar3;
          *(int *)(param_1 + 0x10) = iVar3;
          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;
        }
        *(undefined1 *)(param_1 + 0x66) = 1;
        if (param_2 != -1) {
          piVar1 = *(int **)(param_1 + 0x14);
          *piVar1 = param_2;
          *(int **)(param_1 + 0x14) = piVar1 + 1;
          return param_2;
        }
        return 0;
      }
      *puVar5 = param_2;
      if (param_2 == -1) {
        *(undefined1 *)(param_1 + 0x66) = 1;
        return 0;
      }
      ((int *)puVar5)[-2] = 1;
      ((int *)puVar5)[-3] = (int)puVar5;
      ((int *)puVar5)[-4] = param_1;
      ((int *)puVar5)[-5] = 0x3dcff0;
      cVar2 = FUN_003dcb10();
      if (cVar2 != '\0') {
        *(undefined1 *)(param_1 + 0x66) = 1;
        return param_2;
      }
    }
  }
  return -1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x20d108
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
TEST byte ptr [ESI + 0x40],0x11
JZ 0x003dcfa9
CMP byte ptr [ESI + 0x65],0x0
JZ 0x003dcf7b
CMP byte ptr [ESI + 0x74],0x0
JZ 0x003dcf46
MOV EAX,dword ptr [ESI + 0x4]
XOR EDX,EDX
CMP dword ptr [ESI + 0x8],EAX
MOV byte ptr [ESI + 0x74],0x0
MOV EAX,dword ptr [ESI + 0x6c]
SETNZ DL
MOV ECX,dword ptr [ESI + 0x5c]
LEA EAX,[EAX + EDX*0x4]
MOV EDX,dword ptr [ESI + 0x70]
MOV dword ptr [ESI + 0x4],ECX
MOV dword ptr [ESI + 0x6c],EAX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EDX
SUB ESP,0x8
LEA EAX,[ESI + 0x54]
PUSH EAX
PUSH ESI
CALL 0x003dcc70
LEA ECX,[ESP + 0x10]
ADD ESP,0xc
PUSH dword ptr [ESI + 0x58]
CDQ
PUSH dword ptr [ESI + 0x54]
PUSH 0x1
PUSH EDX
PUSH EAX
PUSH ESI
PUSH ECX
CALL 0x003dce10
ADD ESP,0x1c
MOV EAX,dword ptr [ESP + 0x4]
AND EAX,dword ptr [ESP]
CMP EAX,-0x1
JZ 0x003dcfa9
MOV EDX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [ESI + 0x14]
CMP EDX,EAX
JNC 0x003dcfb8
CMP EDI,-0x1
JZ 0x003dcf92
MOV dword ptr [EAX],EDI
ADD EAX,0x4
MOV dword ptr [ESI + 0x14],EAX
SUB EAX,EDX
SUB ESP,0x4
SAR EAX,0x2
PUSH EAX
PUSH EDX
PUSH ESI
CALL 0x003dcb10
ADD ESP,0x10
TEST AL,AL
JNZ 0x003dd000
MOV EAX,0xffffffff
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDX,dword ptr [ESI + 0x60]
CMP EDX,0x1
JA 0x003dd058
MOV dword ptr [ESP],EDI
CMP EDI,-0x1
JNZ 0x003dcfe0
MOV byte ptr [ESI + 0x66],0x1
ADD ESP,0x10
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
PUSH 0x1
LEA EAX,[ESP + 0x8]
PUSH EAX
PUSH ESI
CALL 0x003dcb10
ADD ESP,0x10
TEST AL,AL
JZ 0x003dcfa9
MOV byte ptr [ESI + 0x66],0x1
MOV EAX,EDI
JMP 0x003dcfae
MOV EAX,dword ptr [ESI + 0x5c]
MOV EDX,dword ptr [ESI + 0x40]
MOV dword ptr [ESI + 0x4],EAX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EAX
TEST DL,0x10
JNZ 0x003dd019
AND EDX,0x1
JZ 0x003dd030
MOV EDX,dword ptr [ESI + 0x60]
CMP EDX,0x1
JBE 0x003dd030
MOV dword ptr [ESI + 0x14],EAX
MOV dword ptr [ESI + 0x10],EAX
LEA EAX,[EAX + EDX*0x4 + -0x4]
MOV dword ptr [ESI + 0x18],EAX
JMP 0x003dd045
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x18],0x0
MOV EAX,EDI
CMP EDI,-0x1
JZ 0x003dcfd0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x5c]
MOV ECX,dword ptr [ESI + 0x40]
MOV dword ptr [ESI + 0x4],EAX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EAX
TEST CL,0x10
JZ 0x003dd0a0
MOV dword ptr [ESI + 0x14],EAX
MOV dword ptr [ESI + 0x10],EAX
LEA EAX,[EAX + EDX*0x4 + -0x4]
MOV dword ptr [ESI + 0x18],EAX
MOV byte ptr [ESI + 0x66],0x1
CMP EDI,-0x1
JZ 0x003dcfd0
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [EAX],EDI
ADD EAX,0x4
MOV dword ptr [ESI + 0x14],EAX
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
AND ECX,0x1
JNZ 0x003dd06c
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x18],0x0
JMP 0x003dd079
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_003dcef0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}\n\n" comment (function_definition "int FUN_003dcef0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_003dcef0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "uint local_1c [3];" type_identifier (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x3dcef8;" (assignment_expression "uStack_10 = 0x3dcef8" identifier = number_literal) ;) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" identifier = identifier) ;) (if_statement "if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x40) & 0x11) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x40) & 0x11)" ( (binary_expression "*(byte *)(param_1 + 0x40) & 0x11" (pointer_expression "*(byte *)(param_1 + 0x40)" * (cast_expression "(byte *)(param_1 + 0x40)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x65) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x65) != '\0'" (pointer_expression "*(char *)(param_1 + 0x65)" * (cast_expression "(char *)(param_1 + 0x65)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x65)" ( (binary_expression "param_1 + 0x65" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x74) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x74) != '\0'" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" * (cast_expression "(undefined1 *)(param_1 + 0x74)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" identifier = (binary_expression "*(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + (binary_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (call_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_1 + 8) != *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x6c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) })) (expression_statement "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);" (assignment_expression "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54)" identifier = (call_expression "FUN_003dcc70(param_1,param_1 + 0x54)" identifier (argument_list "(param_1,param_1 + 0x54)" ( identifier , (binary_expression "param_1 + 0x54" identifier + number_literal) )))) ;) (expression_statement "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));" (call_expression "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" ( identifier , identifier , identifier , (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "puVar5 = &local_20;" (assignment_expression "puVar5 = &local_20" identifier = (pointer_expression "&local_20" & identifier)) ;) (if_statement "if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }" if (parenthesized_expression "((local_1c[0] & local_20) == 0xffffffff)" ( (binary_expression "(local_1c[0] & local_20) == 0xffffffff" (parenthesized_expression "(local_1c[0] & local_20)" ( (binary_expression "local_1c[0] & local_20" (subscript_expression "local_1c[0]" identifier [ number_literal ]) & identifier) )) == number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) })) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" if (parenthesized_expression "(piVar1 < piVar4)" ( (binary_expression "piVar1 < piVar4" identifier < identifier) )) (compound_statement "{\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }" { (if_statement "if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" { (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(int **)(param_1 + 0x14) = piVar4;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar4" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;" (assignment_expression "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (binary_expression "(int)piVar4 - (int)piVar1 >> 2" (binary_expression "(int)piVar4 - (int)piVar1" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "((int *)puVar5)[-3] = (int)piVar1;" (assignment_expression "((int *)puVar5)[-3] = (int)piVar1" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "((int *)puVar5)[-5] = 0x3dcfa2;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcfa2" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" identifier = (call_expression "FUN_003dcb10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" if (parenthesized_expression "((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2))" ( (binary_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)" (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(*(uint *)(param_1 + 0x60) < 2)" ( (binary_expression "*(uint *)(param_1 + 0x60) < 2" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) * number_literal))) ;) }))) (if_statement "if (param_2 != -1) {\n          return param_2;\n        }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" else (compound_statement "{\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" { (if_statement "if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" if (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" ( (binary_expression "1 < *(uint *)(param_1 + 0x60)" number_literal < (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) * number_literal))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x14) = piVar1 + 1;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar1 + 1" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (return_statement "return param_2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar5 = param_2;" (assignment_expression "*puVar5 = param_2" (pointer_expression "*puVar5" * identifier) = identifier) ;) (if_statement "if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "((int *)puVar5)[-2] = 1;" (assignment_expression "((int *)puVar5)[-2] = 1" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "((int *)puVar5)[-3] = (int)puVar5;" (assignment_expression "((int *)puVar5)[-3] = (int)puVar5" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "((int *)puVar5)[-5] = 0x3dcff0;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcff0" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" identifier = (call_expression "FUN_003dcb10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_2;" return identifier ;) })) }))) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wfilebuf::overflow(unsigned int) */\n\nvoid std::wfilebuf::overflow(uint param_1)\n\n{\n}\n\n" comment comment (function_definition "void std::wfilebuf::overflow(uint param_1)\n\n{\n}" primitive_type (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "overflow(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int FUN_003dcef0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_003dcef0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_003dcef0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "uint local_1c [3];" type_identifier (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x3dcef8;" (assignment_expression "uStack_10 = 0x3dcef8" identifier = number_literal) ;) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" identifier = identifier) ;) (if_statement "if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x40) & 0x11) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x40) & 0x11)" ( (binary_expression "*(byte *)(param_1 + 0x40) & 0x11" (pointer_expression "*(byte *)(param_1 + 0x40)" * (cast_expression "(byte *)(param_1 + 0x40)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x65) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x65) != '\0'" (pointer_expression "*(char *)(param_1 + 0x65)" * (cast_expression "(char *)(param_1 + 0x65)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x65)" ( (binary_expression "param_1 + 0x65" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x74) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x74) != '\0'" (pointer_expression "*(char *)(param_1 + 0x74)" * (cast_expression "(char *)(param_1 + 0x74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" * (cast_expression "(undefined1 *)(param_1 + 0x74)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" identifier = (binary_expression "*(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + (binary_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (call_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_1 + 8) != *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x6c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) })) (expression_statement "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);" (assignment_expression "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54)" identifier = (call_expression "FUN_003dcc70(param_1,param_1 + 0x54)" identifier (argument_list "(param_1,param_1 + 0x54)" ( identifier , (binary_expression "param_1 + 0x54" identifier + number_literal) )))) ;) (expression_statement "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));" (call_expression "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" ( identifier , identifier , identifier , (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "puVar5 = &local_20;" (assignment_expression "puVar5 = &local_20" identifier = (pointer_expression "&local_20" & identifier)) ;) (if_statement "if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }" if (parenthesized_expression "((local_1c[0] & local_20) == 0xffffffff)" ( (binary_expression "(local_1c[0] & local_20) == 0xffffffff" (parenthesized_expression "(local_1c[0] & local_20)" ( (binary_expression "local_1c[0] & local_20" (subscript_expression "local_1c[0]" identifier [ number_literal ]) & identifier) )) == number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) })) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" identifier = (pointer_expression "*(int **)(param_1 + 0x10)" * (cast_expression "(int **)(param_1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" if (parenthesized_expression "(piVar1 < piVar4)" ( (binary_expression "piVar1 < piVar4" identifier < identifier) )) (compound_statement "{\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }" { (if_statement "if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" { (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(int **)(param_1 + 0x14) = piVar4;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar4" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;" (assignment_expression "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (binary_expression "(int)piVar4 - (int)piVar1 >> 2" (binary_expression "(int)piVar4 - (int)piVar1" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "((int *)puVar5)[-3] = (int)piVar1;" (assignment_expression "((int *)puVar5)[-3] = (int)piVar1" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "((int *)puVar5)[-5] = 0x3dcfa2;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcfa2" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" identifier = (call_expression "FUN_003dcb10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" if (parenthesized_expression "((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2))" ( (binary_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)" (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(*(uint *)(param_1 + 0x60) < 2)" ( (binary_expression "*(uint *)(param_1 + 0x60) < 2" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) * number_literal))) ;) }))) (if_statement "if (param_2 != -1) {\n          return param_2;\n        }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" else (compound_statement "{\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" { (if_statement "if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" if (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" ( (binary_expression "1 < *(uint *)(param_1 + 0x60)" number_literal < (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" identifier + number_literal) + (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) * number_literal))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x14) = piVar1 + 1;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar1 + 1" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (return_statement "return param_2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar5 = param_2;" (assignment_expression "*puVar5 = param_2" (pointer_expression "*puVar5" * identifier) = identifier) ;) (if_statement "if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "((int *)puVar5)[-2] = 1;" (assignment_expression "((int *)puVar5)[-2] = 1" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "((int *)puVar5)[-3] = (int)puVar5;" (assignment_expression "((int *)puVar5)[-3] = (int)puVar5" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = identifier) ;) (expression_statement "((int *)puVar5)[-5] = 0x3dcff0;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcff0" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" ( (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" identifier = (call_expression "FUN_003dcb10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" * (cast_expression "(undefined1 *)(param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x66)" ( (binary_expression "param_1 + 0x66" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_2;" return identifier ;) })) }))) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT >> LIT) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & IDENT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "int FUN_003dcef0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_003dcef0(int param_1,int param_2)" (identifier "FUN_003dcef0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint local_20;\n  uint local_1c [3];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3dcef8;\n  puVar5 = local_1c;\n  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }\n  return -1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint local_20;" (type_identifier "uint") (identifier "local_20") (; ";")) (declaration "uint local_1c [3];" (type_identifier "uint") (array_declarator "local_1c [3]" (identifier "local_1c") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x3dcef8;" (assignment_expression "uStack_10 = 0x3dcef8" (identifier "uStack_10") (= "=") (number_literal "0x3dcef8")) (; ";")) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" (identifier "puVar5") (= "=") (identifier "local_1c")) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x40) & 0x11) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x40) & 0x11)" (( "(") (binary_expression "*(byte *)(param_1 + 0x40) & 0x11" (pointer_expression "*(byte *)(param_1 + 0x40)" (* "*") (cast_expression "(byte *)(param_1 + 0x40)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "0x11")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }\n    piVar1 = *(int **)(param_1 + 0x10);\n    piVar4 = *(int **)(param_1 + 0x14);\n    if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x65) != '\0') {\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x65) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x65) != '\0'" (pointer_expression "*(char *)(param_1 + 0x65)" (* "*") (cast_expression "(char *)(param_1 + 0x65)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x65)" (( "(") (binary_expression "param_1 + 0x65" (identifier "param_1") (+ "+") (number_literal "0x65")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }\n      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);\n      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));\n      puVar5 = &local_20;\n      if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x74) != '\0') {\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x74) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x74) != '\0'" (pointer_expression "*(char *)(param_1 + 0x74)" (* "*") (cast_expression "(char *)(param_1 + 0x74)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x74) = 0;\n        iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);\n        *(int *)(param_1 + 0x6c) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x6c) +\n                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (binary_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4" (call_expression "(uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 8) != *(int *)(param_1 + 4))" (( "(") (binary_expression "*(int *)(param_1 + 8) != *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))) (* "*") (number_literal "4")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c)" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x6c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);" (assignment_expression "iVar3 = FUN_003dcc70(param_1,param_1 + 0x54)" (identifier "iVar3") (= "=") (call_expression "FUN_003dcc70(param_1,param_1 + 0x54)" (identifier "FUN_003dcc70") (argument_list "(param_1,param_1 + 0x54)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (; ";")) (expression_statement "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58));" (call_expression "FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" (identifier "FUN_003dce10") (argument_list "(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),\n                   *(undefined4 *)(param_1 + 0x58))" (( "(") (identifier "local_1c") (, ",") (identifier "param_1") (, ",") (identifier "iVar3") (, ",") (binary_expression "iVar3 >> 0x1f" (identifier "iVar3") (>> ">>") (number_literal "0x1f")) (, ",") (number_literal "1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar5 = &local_20;" (assignment_expression "puVar5 = &local_20" (identifier "puVar5") (= "=") (pointer_expression "&local_20" (& "&") (identifier "local_20"))) (; ";")) (if_statement "if ((local_1c[0] & local_20) == 0xffffffff) {\n        return -1;\n      }" (if "if") (parenthesized_expression "((local_1c[0] & local_20) == 0xffffffff)" (( "(") (binary_expression "(local_1c[0] & local_20) == 0xffffffff" (parenthesized_expression "(local_1c[0] & local_20)" (( "(") (binary_expression "local_1c[0] & local_20" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (& "&") (identifier "local_20")) () ")")) (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        return -1;\n      }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x10)" (* "*") (cast_expression "(int **)(param_1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "piVar4 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (piVar1 < piVar4) {\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }\n    else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" (if "if") (parenthesized_expression "(piVar1 < piVar4)" (( "(") (binary_expression "piVar1 < piVar4" (identifier "piVar1") (< "<") (identifier "piVar4")) () ")")) (compound_statement "{\n      if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }\n      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;\n      ((int *)puVar5)[-3] = (int)piVar1;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcfa2;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (param_2 != -1) {\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        *piVar4 = param_2;\n        piVar4 = piVar4 + 1;\n        *(int **)(param_1 + 0x14) = piVar4;\n      }" ({ "{") (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int **)(param_1 + 0x14) = piVar4;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar4" (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "piVar4")) (; ";")) (} "}"))) (expression_statement "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;" (assignment_expression "((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-2") (] "]")) (= "=") (binary_expression "(int)piVar4 - (int)piVar1 >> 2" (binary_expression "(int)piVar4 - (int)piVar1" (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4")) (- "-") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "((int *)puVar5)[-3] = (int)piVar1;" (assignment_expression "((int *)puVar5)[-3] = (int)piVar1" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-3") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-4") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "((int *)puVar5)[-5] = 0x3dcfa2;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcfa2" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-5") (] "]")) (= "=") (number_literal "0x3dcfa2")) (; ";")) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" (identifier "cVar2") (= "=") (call_expression "FUN_003dcb10()" (identifier "FUN_003dcb10") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        if (param_2 != -1) {\n          return param_2;\n        }\n        return 0;\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" (if "if") (parenthesized_expression "((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2))" (( "(") (binary_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||\n           (*(uint *)(param_1 + 0x60) < 2)" (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" (( "(") (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(uint *)(param_1 + 0x60) < 2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x60) < 2" (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (< "<") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" (else "else") (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" ({ "{") (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (* "*") (number_literal "4")))) (; ";")) (} "}")))) (if_statement "if (param_2 != -1) {\n          return param_2;\n        }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          return param_2;\n        }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" (else "else") (compound_statement "{\n      if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }\n      *puVar5 = param_2;\n      if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }\n      ((int *)puVar5)[-2] = 1;\n      ((int *)puVar5)[-3] = (int)puVar5;\n      ((int *)puVar5)[-4] = param_1;\n      ((int *)puVar5)[-5] = 0x3dcff0;\n      cVar2 = FUN_003dcb10();\n      if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }\n    }" ({ "{") (if_statement "if (1 < *(uint *)(param_1 + 0x60)) {\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" (if "if") (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" (( "(") (binary_expression "1 < *(uint *)(param_1 + 0x60)" (number_literal "1") (< "<") (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) () ")")) (compound_statement "{\n        iVar3 = *(int *)(param_1 + 0x5c);\n        *(int *)(param_1 + 4) = iVar3;\n        *(int *)(param_1 + 8) = iVar3;\n        *(int *)(param_1 + 0xc) = iVar3;\n        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }\n        return 0;\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x5c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar3;" (assignment_expression "*(int *)(param_1 + 8) = iVar3" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar3" (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" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }\n        else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" (if "if") (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0))" (( "(") (binary_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x10) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x10)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 1" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 0x14) = 0;\n          *(undefined4 *)(param_1 + 0x10) = 0;\n          *(undefined4 *)(param_1 + 0x18) = 0;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" (else "else") (compound_statement "{\n          *(int *)(param_1 + 0x14) = iVar3;\n          *(int *)(param_1 + 0x10) = iVar3;\n          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;\n        }" ({ "{") (expression_statement "*(int *)(param_1 + 0x14) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar3" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar3" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4" (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) (+ "+") (binary_expression "*(uint *)(param_1 + 0x60) * 4" (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (* "*") (number_literal "4")))) (; ";")) (} "}")))) (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x66)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x66)" (( "(") (binary_expression "param_1 + 0x66" (identifier "param_1") (+ "+") (number_literal "0x66")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_2 != -1) {\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          piVar1 = *(int **)(param_1 + 0x14);\n          *piVar1 = param_2;\n          *(int **)(param_1 + 0x14) = piVar1 + 1;\n          return param_2;\n        }" ({ "{") (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int **)(param_1 + 0x14) = piVar1 + 1;" (assignment_expression "*(int **)(param_1 + 0x14) = piVar1 + 1" (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar5 = param_2;" (assignment_expression "*puVar5 = param_2" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 == -1) {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return 0;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x66)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x66)" (( "(") (binary_expression "param_1 + 0x66" (identifier "param_1") (+ "+") (number_literal "0x66")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "((int *)puVar5)[-2] = 1;" (assignment_expression "((int *)puVar5)[-2] = 1" (subscript_expression "((int *)puVar5)[-2]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "((int *)puVar5)[-3] = (int)puVar5;" (assignment_expression "((int *)puVar5)[-3] = (int)puVar5" (subscript_expression "((int *)puVar5)[-3]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-3") (] "]")) (= "=") (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5"))) (; ";")) (expression_statement "((int *)puVar5)[-4] = param_1;" (assignment_expression "((int *)puVar5)[-4] = param_1" (subscript_expression "((int *)puVar5)[-4]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-4") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "((int *)puVar5)[-5] = 0x3dcff0;" (assignment_expression "((int *)puVar5)[-5] = 0x3dcff0" (subscript_expression "((int *)puVar5)[-5]" (parenthesized_expression "((int *)puVar5)" (( "(") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")) () ")")) ([ "[") (number_literal "-5") (] "]")) (= "=") (number_literal "0x3dcff0")) (; ";")) (expression_statement "cVar2 = FUN_003dcb10();" (assignment_expression "cVar2 = FUN_003dcb10()" (identifier "cVar2") (= "=") (call_expression "FUN_003dcb10()" (identifier "FUN_003dcb10") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar2 != '\0') {\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x66) = 1;\n        return param_2;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x66) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x66) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x66)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x66)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x66)" (( "(") (binary_expression "param_1 + 0x66" (identifier "param_1") (+ "+") (number_literal "0x66")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfilebuf::overflow(unsigned int) */

void std::wfilebuf::function_1(type_1 param_1)

{
}


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

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

int MASKED(int param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  int *piVar4;
  uint *puVar5;
  uint local_20;
  uint local_1c [3];
  undefined4 uStack_10;
  
  uStack_10 = 0x3dcef8;
  puVar5 = local_1c;
  if ((*(byte *)(param_1 + 0x40) & 0x11) != 0) {
    if (*(char *)(param_1 + 0x65) != '\0') {
      if (*(char *)(param_1 + 0x74) != '\0') {
        *(undefined1 *)(param_1 + 0x74) = 0;
        iVar3 = *(int *)(param_1 + 0x6c) +
                (uint)(*(int *)(param_1 + 8) != *(int *)(param_1 + 4)) * 4;
        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x5c);
        *(int *)(param_1 + 0x6c) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_1 + 0x70);
      }
      iVar3 = FUN_003dcc70(param_1,param_1 + 0x54);
      FUN_003dce10(local_1c,param_1,iVar3,iVar3 >> 0x1f,1,*(undefined4 *)(param_1 + 0x54),
                   *(undefined4 *)(param_1 + 0x58));
      puVar5 = &local_20;
      if ((local_1c[0] & local_20) == 0xffffffff) {
        return -1;
      }
    }
    piVar1 = *(int **)(param_1 + 0x10);
    piVar4 = *(int **)(param_1 + 0x14);
    if (piVar1 < piVar4) {
      if (param_2 != -1) {
        *piVar4 = param_2;
        piVar4 = piVar4 + 1;
        *(int **)(param_1 + 0x14) = piVar4;
      }
      ((int *)puVar5)[-2] = (int)piVar4 - (int)piVar1 >> 2;
      ((int *)puVar5)[-3] = (int)piVar1;
      ((int *)puVar5)[-4] = param_1;
      ((int *)puVar5)[-5] = 0x3dcfa2;
      cVar2 = FUN_003dcb10();
      if (cVar2 != '\0') {
        iVar3 = *(int *)(param_1 + 0x5c);
        *(int *)(param_1 + 4) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(int *)(param_1 + 0xc) = iVar3;
        if ((((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) ||
           (*(uint *)(param_1 + 0x60) < 2)) {
          *(undefined4 *)(param_1 + 0x14) = 0;
          *(undefined4 *)(param_1 + 0x10) = 0;
          *(undefined4 *)(param_1 + 0x18) = 0;
        }
        else {
          *(int *)(param_1 + 0x14) = iVar3;
          *(int *)(param_1 + 0x10) = iVar3;
          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;
        }
        if (param_2 != -1) {
          return param_2;
        }
        return 0;
      }
    }
    else {
      if (1 < *(uint *)(param_1 + 0x60)) {
        iVar3 = *(int *)(param_1 + 0x5c);
        *(int *)(param_1 + 4) = iVar3;
        *(int *)(param_1 + 8) = iVar3;
        *(int *)(param_1 + 0xc) = iVar3;
        if (((*(uint *)(param_1 + 0x40) & 0x10) == 0) && ((*(uint *)(param_1 + 0x40) & 1) == 0)) {
          *(undefined4 *)(param_1 + 0x14) = 0;
          *(undefined4 *)(param_1 + 0x10) = 0;
          *(undefined4 *)(param_1 + 0x18) = 0;
        }
        else {
          *(int *)(param_1 + 0x14) = iVar3;
          *(int *)(param_1 + 0x10) = iVar3;
          *(uint *)(param_1 + 0x18) = iVar3 + -4 + *(uint *)(param_1 + 0x60) * 4;
        }
        *(undefined1 *)(param_1 + 0x66) = 1;
        if (param_2 != -1) {
          piVar1 = *(int **)(param_1 + 0x14);
          *piVar1 = param_2;
          *(int **)(param_1 + 0x14) = piVar1 + 1;
          return param_2;
        }
        return 0;
      }
      *puVar5 = param_2;
      if (param_2 == -1) {
        *(undefined1 *)(param_1 + 0x66) = 1;
        return 0;
      }
      ((int *)puVar5)[-2] = 1;
      ((int *)puVar5)[-3] = (int)puVar5;
      ((int *)puVar5)[-4] = param_1;
      ((int *)puVar5)[-5] = 0x3dcff0;
      cVar2 = FUN_003dcb10();
      if (cVar2 != '\0') {
        *(undefined1 *)(param_1 + 0x66) = 1;
        return param_2;
      }
    }
  }
  return -1;
}

