
int zipfileReadEOCD(ZipfileTab *pTab,u8 *aBlob,int nBlob,FILE *pFile,ZipfileEOCD *pEOCD)

{
  int iVar1;
  byte *pbVar2;
  char *pcVar3;
  uint nRead;
  u8 *puVar4;
  u8 *aRead;
  
  if (aBlob == (u8 *)0x0) {
    aRead = pTab->aBuffer;
    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);
    nRead = (*(code *)PTR_ftell_00190d68)(pFile);
    if (nRead == 0) {
      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);
      return 0;
    }
    if (((int)nRead < 0) || (nRead < 0x10000)) {
      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);
      if (iVar1 != 0) {
        return iVar1;
      }
      goto LAB_00028efc;
    }
    iVar1 = zipfileReadData(pFile,aRead,0x10000,
                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);
    if (iVar1 != 0) {
      return iVar1;
    }
    iVar1 = 0xffec;
  }
  else {
    nRead = 0x10000;
    if (nBlob < 0x10001) {
      nRead = nBlob;
    }
    aRead = aBlob + (nBlob - nRead);
LAB_00028efc:
    iVar1 = nRead - 0x14;
    if (iVar1 < 0) goto LAB_00029038;
  }
  puVar4 = aRead + iVar1;
  do {
    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')
       ) {
      pbVar2 = aRead + iVar1 + 4;
      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;
      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];
      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];
      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];
      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +
                     (uint)pbVar2[9] * 0x100;
      pEOCD->iOffset =
           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +
           (uint)pbVar2[0xd] * 0x100;
      return 0;
    }
    iVar1 = iVar1 + -1;
    puVar4 = puVar4 + -1;
  } while (iVar1 != -1);
LAB_00029038:
  pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);
  (pTab->base).zErrMsg = pcVar3;
  return 1;
}



int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)

{
  int iVar1;
  byte *pbVar2;
  undefined4 uVar3;
  uint uVar4;
  char *pcVar5;
  
  if (param_2 == 0) {
    param_2 = *(int *)(param_1 + 0x14);
    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);
    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);
    if (uVar4 == 0) {
      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);
      return 0;
    }
    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {
      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);
      if (iVar1 != 0) {
        return iVar1;
      }
      goto LAB_00028efc;
    }
    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,
                         uVar4 - 0x10000,param_1 + 8);
    if (iVar1 != 0) {
      return iVar1;
    }
    iVar1 = 0xffec;
  }
  else {
    uVar4 = 0x10000;
    if ((int)param_3 < 0x10001) {
      uVar4 = param_3;
    }
    param_2 = param_2 + (param_3 - uVar4);
LAB_00028efc:
    iVar1 = uVar4 - 0x14;
    if (iVar1 < 0) goto LAB_00029038;
  }
  pcVar5 = (char *)(param_2 + iVar1);
  do {
    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')
       ) {
      pbVar2 = (byte *)(param_2 + iVar1 + 4);
      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;
      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];
      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];
      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];
      *(uint *)(param_5 + 4) =
           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +
           (uint)pbVar2[9] * 0x100;
      *(uint *)(param_5 + 6) =
           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +
           (uint)pbVar2[0xd] * 0x100;
      return 0;
    }
    iVar1 = iVar1 + -1;
    pcVar5 = pcVar5 + -1;
  } while (iVar1 != -1);
LAB_00029038:
  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);
  *(undefined4 *)(param_1 + 8) = uVar3;
  return 1;
}


lui gp,0x17
addiu gp,gp,-0x58c
addu gp,gp,t9
addiu sp,sp,-0x40
sw gp,0x20(sp)
sw s3,0x38(sp)
or s3,a0,zero
sw s1,0x30(sp)
sw ra,0x3c(sp)
sw s2,0x34(sp)
sw s0,0x2c(sp)
beq a1,zero,0x0002906c
_lw s1,0x50(sp)
lui s0,0x1
addiu v0,s0,0x1
slt v0,a2,v0
movn s0,a2,v0
subu a2,a2,s0
addu s2,a1,a2
addiu v0,s0,-0x14
bltz v0,0x00029038
_lw a0,-0x7fc8(gp)
addu v1,s2,v0
li a2,0x50
li t0,0x4b
li a1,0x5
li t1,0x6
b 0x00028f2c
_li a3,-0x1
addiu v0,v0,-0x1
beq v0,a3,0x00029034
_addiu v1,v1,-0x1
lbu a0,0x0(v1)
bne a0,a2,0x00028f20
_nop
lbu a0,0x1(v1)
bne a0,t0,0x00028f20
_nop
lbu a0,0x2(v1)
bne a0,a1,0x00028f20
_nop
lbu a0,0x3(v1)
bne a0,t1,0x00028f24
_addiu v0,v0,-0x1
addiu v0,v0,0x1
addiu v0,v0,0x4
or a0,zero,zero
addu v0,s2,v0
lbu v1,0x1(v0)
lbu a1,0x0(v0)
sll v1,v1,0x8
addu v1,v1,a1
sh v1,0x0(s1)
lbu v1,0x3(v0)
lbu a1,0x2(v0)
sll v1,v1,0x8
addu v1,v1,a1
sh v1,0x2(s1)
lbu v1,0x5(v0)
lbu a1,0x4(v0)
sll v1,v1,0x8
addu v1,v1,a1
sh v1,0x4(s1)
lbu v1,0x7(v0)
lbu a1,0x6(v0)
sll v1,v1,0x8
addu v1,v1,a1
sh v1,0x6(s1)
lbu v1,0xb(v0)
lbu a2,0xa(v0)
lbu a3,0x8(v0)
sll v1,v1,0x18
lbu a1,0x9(v0)
sll a2,a2,0x10
addu v1,v1,a2
sll a1,a1,0x8
addu v1,v1,a3
addu v1,v1,a1
sw v1,0x8(s1)
lbu v1,0xf(v0)
lbu a2,0xe(v0)
lbu a3,0xc(v0)
lbu a1,0xd(v0)
sll v1,v1,0x18
sll v0,a2,0x10
addu v0,v1,v0
sll v1,a1,0x8
addu v0,v0,a3
addu v0,v0,v1
sw v0,0xc(s1)
or v0,a0,zero
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw a0,-0x7fc8(gp)
lw t9,-0x7fbc(gp)
jalr t9
_addiu a0,a0,0x1a68
li a0,0x1
sw v0,0x8(s3)
lw ra,0x3c(sp)
or v0,a0,zero
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7b54(gp)
li a2,0x2
or a0,a3,zero
lw s2,0x14(s3)
jalr t9
_sw a3,0x4c(sp)
lw gp,0x20(sp)
lw a3,0x4c(sp)
lw t9,-0x7bb8(gp)
jalr t9
_or a0,a3,zero
or s0,v0,zero
lw gp,0x20(sp)
sra v0,v0,0x1f
or v1,v0,s0
beq v1,zero,0x00029148
_lw a3,0x4c(sp)
bne v0,zero,0x00029108
_addiu a0,s3,0x8
lui v1,0x1
sltu v0,s0,v1
bne v0,zero,0x0002910c
_lw t9,-0x7ed0(gp)
subu v1,s0,v1
lui a2,0x1
sw a0,0x18(sp)
sltu v0,v1,s0
sw v1,0x14(sp)
addiu v0,v0,-0x1
addiu t9,t9,-0x7210
or a0,a3,zero
sw v0,0x10(sp)
bal 0x00028df0
_or a1,s2,zero
lw gp,0x20(sp)
bne v0,zero,0x0002904c
_or a0,v0,zero
b 0x00028f04
_ori v0,zero,0xffec
lw t9,-0x7ed0(gp)
or v1,zero,zero
or v0,zero,zero
sw a0,0x18(sp)
sw v1,0x14(sp)
or a0,a3,zero
addiu t9,t9,-0x7210
sw v0,0x10(sp)
or a2,s0,zero
bal 0x00028df0
_or a1,s2,zero
lw gp,0x20(sp)
bne v0,zero,0x0002904c
_or a0,v0,zero
b 0x00028efc
_addiu v0,s0,-0x14
lw t9,-0x7bc8(gp)
li a2,0x10
or a1,zero,zero
jalr t9
_or a0,s1,zero
b 0x0002904c
_or a0,zero,zero
(translation_unit "int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}\n\n" (function_definition "int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" primitive_type (function_declarator "FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "short *param_5" (sized_type_specifier "short" short) (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }" { (expression_statement "param_2 = *(int *)(param_1 + 0x14);" (assignment_expression "param_2 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_fseek_00190dcc)(param_4,0,2);" (call_expression "(*(code *)PTR_fseek_00190dcc)(param_4,0,2)" (parenthesized_expression "(*(code *)PTR_fseek_00190dcc)" ( (pointer_expression "*(code *)PTR_fseek_00190dcc" * (cast_expression "(code *)PTR_fseek_00190dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,0,2)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);" (assignment_expression "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4)" identifier = (call_expression "(*(code *)PTR_ftell_00190d68)(param_4)" (parenthesized_expression "(*(code *)PTR_ftell_00190d68)" ( (pointer_expression "*(code *)PTR_ftell_00190d68" * (cast_expression "(code *)PTR_ftell_00190d68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(param_5,0,0x10);" (call_expression "(*(code *)PTR_memset_00190d58)(param_5,0,0x10)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5,0,0x10)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" if (parenthesized_expression "(((int)uVar4 < 0) || (uVar4 < 0x10000))" ( (binary_expression "((int)uVar4 < 0) || (uVar4 < 0x10000)" (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar4 < 0x10000)" ( (binary_expression "uVar4 < 0x10000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" { (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" identifier = (call_expression "FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" identifier (argument_list "(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" ( identifier , identifier , identifier , identifier , number_literal , number_literal , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00028efc;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" identifier = (call_expression "FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" identifier (argument_list "(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" ( identifier , identifier , number_literal , identifier , (binary_expression "(uVar4 - 0x10000 < uVar4) - 1" (parenthesized_expression "(uVar4 - 0x10000 < uVar4)" ( (binary_expression "uVar4 - 0x10000 < uVar4" (binary_expression "uVar4 - 0x10000" identifier - number_literal) < identifier) )) - number_literal) , (binary_expression "uVar4 - 0x10000" identifier - number_literal) , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = 0xffec;" (assignment_expression "iVar1 = 0xffec" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" else (compound_statement "{\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" { (expression_statement "uVar4 = 0x10000;" (assignment_expression "uVar4 = 0x10000" identifier = number_literal) ;) (if_statement "if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }" if (parenthesized_expression "((int)param_3 < 0x10001)" ( (binary_expression "(int)param_3 < 0x10001" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar4 = param_3;\n    }" { (expression_statement "uVar4 = param_3;" (assignment_expression "uVar4 = param_3" identifier = identifier) ;) })) (expression_statement "param_2 = param_2 + (param_3 - uVar4);" (assignment_expression "param_2 = param_2 + (param_3 - uVar4)" identifier = (binary_expression "param_2 + (param_3 - uVar4)" identifier + (parenthesized_expression "(param_3 - uVar4)" ( (binary_expression "param_3 - uVar4" identifier - identifier) )))) ;) (labeled_statement "LAB_00028efc:\n    iVar1 = uVar4 - 0x14;" statement_identifier : (expression_statement "iVar1 = uVar4 - 0x14;" (assignment_expression "iVar1 = uVar4 - 0x14" identifier = (binary_expression "uVar4 - 0x14" identifier - number_literal)) ;)) (if_statement "if (iVar1 < 0) goto LAB_00029038;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00029038;" goto statement_identifier ;)) }))) (expression_statement "pcVar5 = (char *)(param_2 + iVar1);" (assignment_expression "pcVar5 = (char *)(param_2 + iVar1)" identifier = (cast_expression "(char *)(param_2 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1)" ( (binary_expression "param_2 + iVar1" identifier + identifier) )))) ;) (do_statement "do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);" do (compound_statement "{\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  }" { (if_statement "if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" if (parenthesized_expression "((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       )" ( (binary_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')" (parenthesized_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05'))" ( (binary_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')" (parenthesized_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K'))" ( (binary_expression "(*pcVar5 == 'P') && (pcVar5[1] == 'K')" (parenthesized_expression "(*pcVar5 == 'P')" ( (binary_expression "*pcVar5 == 'P'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'P'" ' character ')) )) && (parenthesized_expression "(pcVar5[1] == 'K')" ( (binary_expression "pcVar5[1] == 'K'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) == (char_literal "'K'" ' character ')) ))) )) && (parenthesized_expression "(pcVar5[2] == '\x05')" ( (binary_expression "pcVar5[2] == '\x05'" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) == (char_literal "'\x05'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar5[3] == '\x06')" ( (binary_expression "pcVar5[3] == '\x06'" (subscript_expression "pcVar5[3]" identifier [ number_literal ]) == (char_literal "'\x06'" ' escape_sequence ')) ))) )) (compound_statement "{\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" { (expression_statement "pbVar2 = (byte *)(param_2 + iVar1 + 4);" (assignment_expression "pbVar2 = (byte *)(param_2 + iVar1 + 4)" identifier = (cast_expression "(byte *)(param_2 + iVar1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 + 4)" ( (binary_expression "param_2 + iVar1 + 4" (binary_expression "param_2 + iVar1" identifier + identifier) + number_literal) )))) ;) (expression_statement "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;" (assignment_expression "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (pointer_expression "*param_5" * identifier) = (binary_expression "(ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (binary_expression "(ushort)pbVar2[1] * 0x100" (cast_expression "(ushort)pbVar2[1]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(ushort)*pbVar2" (parenthesized_expression "(ushort)" ( identifier )) * identifier))) ;) (expression_statement "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];" (assignment_expression "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (binary_expression "(ushort)pbVar2[3] * 0x100" (cast_expression "(ushort)pbVar2[3]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[2]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])))) ;) (expression_statement "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];" (assignment_expression "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (binary_expression "(ushort)pbVar2[5] * 0x100" (cast_expression "(ushort)pbVar2[5]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[5]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[4]" identifier [ number_literal ])))) ;) (expression_statement "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];" (assignment_expression "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (subscript_expression "param_5[3]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (binary_expression "(ushort)pbVar2[7] * 0x100" (cast_expression "(ushort)pbVar2[7]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[7]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[6]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[6]" identifier [ number_literal ])))) ;) (expression_statement "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;" (assignment_expression "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (pointer_expression "*(uint *)(param_5 + 4)" * (cast_expression "(uint *)(param_5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))) = (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8]" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000" (binary_expression "(uint)pbVar2[0xb] * 0x1000000" (cast_expression "(uint)pbVar2[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xb]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[10] * 0x10000" (cast_expression "(uint)pbVar2[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[10]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[8]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[9] * 0x100" (cast_expression "(uint)pbVar2[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[9]" identifier [ number_literal ])) * number_literal))) ;) (expression_statement "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;" (assignment_expression "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (pointer_expression "*(uint *)(param_5 + 6)" * (cast_expression "(uint *)(param_5 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 6)" ( (binary_expression "param_5 + 6" identifier + number_literal) )))) = (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc]" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000" (binary_expression "(uint)pbVar2[0xf] * 0x1000000" (cast_expression "(uint)pbVar2[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xf]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[0xe] * 0x10000" (cast_expression "(uint)pbVar2[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xe]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xc]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[0xd] * 0x100" (cast_expression "(uint)pbVar2[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xd]" identifier [ number_literal ])) * number_literal))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" identifier = (binary_expression "pcVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) ;) (labeled_statement "LAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" statement_identifier : (expression_statement "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" identifier = (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" ( (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" * (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x1a68)" ( (binary_expression "PTR_LAB_00190958 + 0x1a68" identifier + number_literal) )))) ;)) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int zipfileReadEOCD(ZipfileTab *pTab,u8 *aBlob,int nBlob,FILE *pFile,ZipfileEOCD *pEOCD)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  uint nRead;\n  u8 *puVar4;\n  u8 *aRead;\n  \n  if (aBlob == (u8 *)0x0) {\n    aRead = pTab->aBuffer;\n    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);\n    nRead = (*(code *)PTR_ftell_00190d68)(pFile);\n    if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }\n    if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  puVar4 = aRead + iVar1;\n  do {\n    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    puVar4 = puVar4 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  (pTab->base).zErrMsg = pcVar3;\n  return 1;\n}\n\n" (function_definition "int zipfileReadEOCD(ZipfileTab *pTab,u8 *aBlob,int nBlob,FILE *pFile,ZipfileEOCD *pEOCD)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  uint nRead;\n  u8 *puVar4;\n  u8 *aRead;\n  \n  if (aBlob == (u8 *)0x0) {\n    aRead = pTab->aBuffer;\n    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);\n    nRead = (*(code *)PTR_ftell_00190d68)(pFile);\n    if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }\n    if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  puVar4 = aRead + iVar1;\n  do {\n    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    puVar4 = puVar4 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  (pTab->base).zErrMsg = pcVar3;\n  return 1;\n}" primitive_type (function_declarator "zipfileReadEOCD(ZipfileTab *pTab,u8 *aBlob,int nBlob,FILE *pFile,ZipfileEOCD *pEOCD)" identifier (parameter_list "(ZipfileTab *pTab,u8 *aBlob,int nBlob,FILE *pFile,ZipfileEOCD *pEOCD)" ( (parameter_declaration "ZipfileTab *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "u8 *aBlob" type_identifier (pointer_declarator "*aBlob" * identifier)) , (parameter_declaration "int nBlob" primitive_type identifier) , (parameter_declaration "FILE *pFile" type_identifier (pointer_declarator "*pFile" * identifier)) , (parameter_declaration "ZipfileEOCD *pEOCD" type_identifier (pointer_declarator "*pEOCD" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  uint nRead;\n  u8 *puVar4;\n  u8 *aRead;\n  \n  if (aBlob == (u8 *)0x0) {\n    aRead = pTab->aBuffer;\n    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);\n    nRead = (*(code *)PTR_ftell_00190d68)(pFile);\n    if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }\n    if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  puVar4 = aRead + iVar1;\n  do {\n    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    puVar4 = puVar4 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  (pTab->base).zErrMsg = pcVar3;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint nRead;" type_identifier identifier ;) (declaration "u8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "u8 *aRead;" type_identifier (pointer_declarator "*aRead" * identifier) ;) (if_statement "if (aBlob == (u8 *)0x0) {\n    aRead = pTab->aBuffer;\n    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);\n    nRead = (*(code *)PTR_ftell_00190d68)(pFile);\n    if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }\n    if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" if (parenthesized_expression "(aBlob == (u8 *)0x0)" ( (binary_expression "aBlob == (u8 *)0x0" identifier == (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aRead = pTab->aBuffer;\n    (*(code *)PTR_fseek_00190dcc)(pFile,0,2);\n    nRead = (*(code *)PTR_ftell_00190d68)(pFile);\n    if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }\n    if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }" { (expression_statement "aRead = pTab->aBuffer;" (assignment_expression "aRead = pTab->aBuffer" identifier = (field_expression "pTab->aBuffer" identifier -> field_identifier)) ;) (expression_statement "(*(code *)PTR_fseek_00190dcc)(pFile,0,2);" (call_expression "(*(code *)PTR_fseek_00190dcc)(pFile,0,2)" (parenthesized_expression "(*(code *)PTR_fseek_00190dcc)" ( (pointer_expression "*(code *)PTR_fseek_00190dcc" * (cast_expression "(code *)PTR_fseek_00190dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pFile,0,2)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "nRead = (*(code *)PTR_ftell_00190d68)(pFile);" (assignment_expression "nRead = (*(code *)PTR_ftell_00190d68)(pFile)" identifier = (call_expression "(*(code *)PTR_ftell_00190d68)(pFile)" (parenthesized_expression "(*(code *)PTR_ftell_00190d68)" ( (pointer_expression "*(code *)PTR_ftell_00190d68" * (cast_expression "(code *)PTR_ftell_00190d68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pFile)" ( identifier )))) ;) (if_statement "if (nRead == 0) {\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }" if (parenthesized_expression "(nRead == 0)" ( (binary_expression "nRead == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);\n      return 0;\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(pEOCD,0,0x10);" (call_expression "(*(code *)PTR_memset_00190d58)(pEOCD,0,0x10)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pEOCD,0,0x10)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((int)nRead < 0) || (nRead < 0x10000)) {\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" if (parenthesized_expression "(((int)nRead < 0) || (nRead < 0x10000))" ( (binary_expression "((int)nRead < 0) || (nRead < 0x10000)" (parenthesized_expression "((int)nRead < 0)" ( (binary_expression "(int)nRead < 0" (cast_expression "(int)nRead" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(nRead < 0x10000)" ( (binary_expression "nRead < 0x10000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" { (expression_statement "iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile);" (assignment_expression "iVar1 = zipfileReadData(pFile,aRead,nRead,0,(char **)pFile)" identifier = (call_expression "zipfileReadData(pFile,aRead,nRead,0,(char **)pFile)" identifier (argument_list "(pFile,aRead,nRead,0,(char **)pFile)" ( identifier , identifier , identifier , number_literal , (cast_expression "(char **)pFile" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00028efc;" goto statement_identifier ;) })) (expression_statement "iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile);" (assignment_expression "iVar1 = zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile)" identifier = (call_expression "zipfileReadData(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile)" identifier (argument_list "(pFile,aRead,0x10000,\n                            CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000),(char **)pFile)" ( identifier , identifier , number_literal , (call_expression "CONCAT44((nRead - 0x10000 < nRead) - 1,nRead - 0x10000)" identifier (argument_list "((nRead - 0x10000 < nRead) - 1,nRead - 0x10000)" ( (binary_expression "(nRead - 0x10000 < nRead) - 1" (parenthesized_expression "(nRead - 0x10000 < nRead)" ( (binary_expression "nRead - 0x10000 < nRead" (binary_expression "nRead - 0x10000" identifier - number_literal) < identifier) )) - number_literal) , (binary_expression "nRead - 0x10000" identifier - number_literal) ))) , (cast_expression "(char **)pFile" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = 0xffec;" (assignment_expression "iVar1 = 0xffec" identifier = number_literal) ;) }) (else_clause "else {\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" else (compound_statement "{\n    nRead = 0x10000;\n    if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }\n    aRead = aBlob + (nBlob - nRead);\nLAB_00028efc:\n    iVar1 = nRead - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" { (expression_statement "nRead = 0x10000;" (assignment_expression "nRead = 0x10000" identifier = number_literal) ;) (if_statement "if (nBlob < 0x10001) {\n      nRead = nBlob;\n    }" if (parenthesized_expression "(nBlob < 0x10001)" ( (binary_expression "nBlob < 0x10001" identifier < number_literal) )) (compound_statement "{\n      nRead = nBlob;\n    }" { (expression_statement "nRead = nBlob;" (assignment_expression "nRead = nBlob" identifier = identifier) ;) })) (expression_statement "aRead = aBlob + (nBlob - nRead);" (assignment_expression "aRead = aBlob + (nBlob - nRead)" identifier = (binary_expression "aBlob + (nBlob - nRead)" identifier + (parenthesized_expression "(nBlob - nRead)" ( (binary_expression "nBlob - nRead" identifier - identifier) )))) ;) (labeled_statement "LAB_00028efc:\n    iVar1 = nRead - 0x14;" statement_identifier : (expression_statement "iVar1 = nRead - 0x14;" (assignment_expression "iVar1 = nRead - 0x14" identifier = (binary_expression "nRead - 0x14" identifier - number_literal)) ;)) (if_statement "if (iVar1 < 0) goto LAB_00029038;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00029038;" goto statement_identifier ;)) }))) (expression_statement "puVar4 = aRead + iVar1;" (assignment_expression "puVar4 = aRead + iVar1" identifier = (binary_expression "aRead + iVar1" identifier + identifier)) ;) (do_statement "do {\n    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    puVar4 = puVar4 + -1;\n  } while (iVar1 != -1);" do (compound_statement "{\n    if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    puVar4 = puVar4 + -1;\n  }" { (if_statement "if ((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       ) {\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" if (parenthesized_expression "((((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')\n       )" ( (binary_expression "(((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')) && (puVar4[3] == '\x06')" (parenthesized_expression "(((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05'))" ( (binary_expression "((*puVar4 == 'P') && (puVar4[1] == 'K')) && (puVar4[2] == '\x05')" (parenthesized_expression "((*puVar4 == 'P') && (puVar4[1] == 'K'))" ( (binary_expression "(*puVar4 == 'P') && (puVar4[1] == 'K')" (parenthesized_expression "(*puVar4 == 'P')" ( (binary_expression "*puVar4 == 'P'" (pointer_expression "*puVar4" * identifier) == (char_literal "'P'" ' character ')) )) && (parenthesized_expression "(puVar4[1] == 'K')" ( (binary_expression "puVar4[1] == 'K'" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == (char_literal "'K'" ' character ')) ))) )) && (parenthesized_expression "(puVar4[2] == '\x05')" ( (binary_expression "puVar4[2] == '\x05'" (subscript_expression "puVar4[2]" identifier [ number_literal ]) == (char_literal "'\x05'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(puVar4[3] == '\x06')" ( (binary_expression "puVar4[3] == '\x06'" (subscript_expression "puVar4[3]" identifier [ number_literal ]) == (char_literal "'\x06'" ' escape_sequence ')) ))) )) (compound_statement "{\n      pbVar2 = aRead + iVar1 + 4;\n      pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;\n      pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" { (expression_statement "pbVar2 = aRead + iVar1 + 4;" (assignment_expression "pbVar2 = aRead + iVar1 + 4" identifier = (binary_expression "aRead + iVar1 + 4" (binary_expression "aRead + iVar1" identifier + identifier) + number_literal)) ;) (expression_statement "pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;" (assignment_expression "pEOCD->iDisk = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (field_expression "pEOCD->iDisk" identifier -> field_identifier) = (binary_expression "(ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (binary_expression "(ushort)pbVar2[1] * 0x100" (cast_expression "(ushort)pbVar2[1]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(ushort)*pbVar2" (parenthesized_expression "(ushort)" ( identifier )) * identifier))) ;) (expression_statement "pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];" (assignment_expression "pEOCD->iFirstDisk = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (field_expression "pEOCD->iFirstDisk" identifier -> field_identifier) = (binary_expression "(ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (binary_expression "(ushort)pbVar2[3] * 0x100" (cast_expression "(ushort)pbVar2[3]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[2]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])))) ;) (expression_statement "pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];" (assignment_expression "pEOCD->nEntry = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (field_expression "pEOCD->nEntry" identifier -> field_identifier) = (binary_expression "(ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (binary_expression "(ushort)pbVar2[5] * 0x100" (cast_expression "(ushort)pbVar2[5]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[5]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[4]" identifier [ number_literal ])))) ;) (expression_statement "pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];" (assignment_expression "pEOCD->nEntryTotal = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (field_expression "pEOCD->nEntryTotal" identifier -> field_identifier) = (binary_expression "(ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (binary_expression "(ushort)pbVar2[7] * 0x100" (cast_expression "(ushort)pbVar2[7]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[7]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[6]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[6]" identifier [ number_literal ])))) ;) (expression_statement "pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100;" (assignment_expression "pEOCD->nSize = (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100" (field_expression "pEOCD->nSize" identifier -> field_identifier) = (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n                     (uint)pbVar2[9] * 0x100" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8]" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000" (binary_expression "(uint)pbVar2[0xb] * 0x1000000" (cast_expression "(uint)pbVar2[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xb]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[10] * 0x10000" (cast_expression "(uint)pbVar2[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[10]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[8]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[9] * 0x100" (cast_expression "(uint)pbVar2[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[9]" identifier [ number_literal ])) * number_literal))) ;) (expression_statement "pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;" (assignment_expression "pEOCD->iOffset =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (field_expression "pEOCD->iOffset" identifier -> field_identifier) = (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc]" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000" (binary_expression "(uint)pbVar2[0xf] * 0x1000000" (cast_expression "(uint)pbVar2[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xf]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[0xe] * 0x10000" (cast_expression "(uint)pbVar2[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xe]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xc]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[0xd] * 0x100" (cast_expression "(uint)pbVar2[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xd]" identifier [ number_literal ])) * number_literal))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" identifier = (binary_expression "puVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) ;) (labeled_statement "LAB_00029038:\n  pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" statement_identifier : (expression_statement "pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" identifier = (cast_expression "(char *)(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" ( (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" * (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x1a68)" ( (binary_expression "PTR_LAB_00190958 + 0x1a68" identifier + number_literal) ))))) ;)) (expression_statement "(pTab->base).zErrMsg = pcVar3;" (assignment_expression "(pTab->base).zErrMsg = pcVar3" (field_expression "(pTab->base).zErrMsg" (parenthesized_expression "(pTab->base)" ( (field_expression "pTab->base" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}\n\n" (function_definition "int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" primitive_type (function_declarator "FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "short *param_5" (sized_type_specifier "short" short) (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }" { (expression_statement "param_2 = *(int *)(param_1 + 0x14);" (assignment_expression "param_2 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_fseek_00190dcc)(param_4,0,2);" (call_expression "(*(code *)PTR_fseek_00190dcc)(param_4,0,2)" (parenthesized_expression "(*(code *)PTR_fseek_00190dcc)" ( (pointer_expression "*(code *)PTR_fseek_00190dcc" * (cast_expression "(code *)PTR_fseek_00190dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,0,2)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);" (assignment_expression "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4)" identifier = (call_expression "(*(code *)PTR_ftell_00190d68)(param_4)" (parenthesized_expression "(*(code *)PTR_ftell_00190d68)" ( (pointer_expression "*(code *)PTR_ftell_00190d68" * (cast_expression "(code *)PTR_ftell_00190d68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" { (expression_statement "(*(code *)PTR_memset_00190d58)(param_5,0,0x10);" (call_expression "(*(code *)PTR_memset_00190d58)(param_5,0,0x10)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5,0,0x10)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" if (parenthesized_expression "(((int)uVar4 < 0) || (uVar4 < 0x10000))" ( (binary_expression "((int)uVar4 < 0) || (uVar4 < 0x10000)" (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar4 < 0x10000)" ( (binary_expression "uVar4 < 0x10000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" { (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" identifier = (call_expression "FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" identifier (argument_list "(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" ( identifier , identifier , identifier , identifier , number_literal , number_literal , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00028efc;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" identifier = (call_expression "FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" identifier (argument_list "(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" ( identifier , identifier , number_literal , identifier , (binary_expression "(uVar4 - 0x10000 < uVar4) - 1" (parenthesized_expression "(uVar4 - 0x10000 < uVar4)" ( (binary_expression "uVar4 - 0x10000 < uVar4" (binary_expression "uVar4 - 0x10000" identifier - number_literal) < identifier) )) - number_literal) , (binary_expression "uVar4 - 0x10000" identifier - number_literal) , (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = 0xffec;" (assignment_expression "iVar1 = 0xffec" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" else (compound_statement "{\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" { (expression_statement "uVar4 = 0x10000;" (assignment_expression "uVar4 = 0x10000" identifier = number_literal) ;) (if_statement "if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }" if (parenthesized_expression "((int)param_3 < 0x10001)" ( (binary_expression "(int)param_3 < 0x10001" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar4 = param_3;\n    }" { (expression_statement "uVar4 = param_3;" (assignment_expression "uVar4 = param_3" identifier = identifier) ;) })) (expression_statement "param_2 = param_2 + (param_3 - uVar4);" (assignment_expression "param_2 = param_2 + (param_3 - uVar4)" identifier = (binary_expression "param_2 + (param_3 - uVar4)" identifier + (parenthesized_expression "(param_3 - uVar4)" ( (binary_expression "param_3 - uVar4" identifier - identifier) )))) ;) (labeled_statement "LAB_00028efc:\n    iVar1 = uVar4 - 0x14;" statement_identifier : (expression_statement "iVar1 = uVar4 - 0x14;" (assignment_expression "iVar1 = uVar4 - 0x14" identifier = (binary_expression "uVar4 - 0x14" identifier - number_literal)) ;)) (if_statement "if (iVar1 < 0) goto LAB_00029038;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00029038;" goto statement_identifier ;)) }))) (expression_statement "pcVar5 = (char *)(param_2 + iVar1);" (assignment_expression "pcVar5 = (char *)(param_2 + iVar1)" identifier = (cast_expression "(char *)(param_2 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1)" ( (binary_expression "param_2 + iVar1" identifier + identifier) )))) ;) (do_statement "do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);" do (compound_statement "{\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  }" { (if_statement "if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" if (parenthesized_expression "((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       )" ( (binary_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')" (parenthesized_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05'))" ( (binary_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')" (parenthesized_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K'))" ( (binary_expression "(*pcVar5 == 'P') && (pcVar5[1] == 'K')" (parenthesized_expression "(*pcVar5 == 'P')" ( (binary_expression "*pcVar5 == 'P'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'P'" ' character ')) )) && (parenthesized_expression "(pcVar5[1] == 'K')" ( (binary_expression "pcVar5[1] == 'K'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) == (char_literal "'K'" ' character ')) ))) )) && (parenthesized_expression "(pcVar5[2] == '\x05')" ( (binary_expression "pcVar5[2] == '\x05'" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) == (char_literal "'\x05'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar5[3] == '\x06')" ( (binary_expression "pcVar5[3] == '\x06'" (subscript_expression "pcVar5[3]" identifier [ number_literal ]) == (char_literal "'\x06'" ' escape_sequence ')) ))) )) (compound_statement "{\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" { (expression_statement "pbVar2 = (byte *)(param_2 + iVar1 + 4);" (assignment_expression "pbVar2 = (byte *)(param_2 + iVar1 + 4)" identifier = (cast_expression "(byte *)(param_2 + iVar1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 + 4)" ( (binary_expression "param_2 + iVar1 + 4" (binary_expression "param_2 + iVar1" identifier + identifier) + number_literal) )))) ;) (expression_statement "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;" (assignment_expression "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (pointer_expression "*param_5" * identifier) = (binary_expression "(ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (binary_expression "(ushort)pbVar2[1] * 0x100" (cast_expression "(ushort)pbVar2[1]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(ushort)*pbVar2" (parenthesized_expression "(ushort)" ( identifier )) * identifier))) ;) (expression_statement "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];" (assignment_expression "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (binary_expression "(ushort)pbVar2[3] * 0x100" (cast_expression "(ushort)pbVar2[3]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[2]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])))) ;) (expression_statement "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];" (assignment_expression "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (binary_expression "(ushort)pbVar2[5] * 0x100" (cast_expression "(ushort)pbVar2[5]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[5]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[4]" identifier [ number_literal ])))) ;) (expression_statement "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];" (assignment_expression "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (subscript_expression "param_5[3]" identifier [ number_literal ]) = (binary_expression "(ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (binary_expression "(ushort)pbVar2[7] * 0x100" (cast_expression "(ushort)pbVar2[7]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[7]" identifier [ number_literal ])) * number_literal) + (cast_expression "(ushort)pbVar2[6]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "pbVar2[6]" identifier [ number_literal ])))) ;) (expression_statement "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;" (assignment_expression "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (pointer_expression "*(uint *)(param_5 + 4)" * (cast_expression "(uint *)(param_5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))) = (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8]" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000" (binary_expression "(uint)pbVar2[0xb] * 0x1000000" (cast_expression "(uint)pbVar2[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xb]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[10] * 0x10000" (cast_expression "(uint)pbVar2[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[10]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[8]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[9] * 0x100" (cast_expression "(uint)pbVar2[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[9]" identifier [ number_literal ])) * number_literal))) ;) (expression_statement "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;" (assignment_expression "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (pointer_expression "*(uint *)(param_5 + 6)" * (cast_expression "(uint *)(param_5 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 6)" ( (binary_expression "param_5 + 6" identifier + number_literal) )))) = (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc]" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000" (binary_expression "(uint)pbVar2[0xf] * 0x1000000" (cast_expression "(uint)pbVar2[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xf]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar2[0xe] * 0x10000" (cast_expression "(uint)pbVar2[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xe]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar2[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xc]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar2[0xd] * 0x100" (cast_expression "(uint)pbVar2[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[0xd]" identifier [ number_literal ])) * number_literal))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" identifier = (binary_expression "pcVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) ;) (labeled_statement "LAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" statement_identifier : (expression_statement "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" identifier = (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" ( (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" * (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00190958 + 0x1a68)" ( (binary_expression "PTR_LAB_00190958 + 0x1a68" identifier + number_literal) )))) ;)) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = 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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT , LIT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < IDENT) )) - LIT) , (binary_expression IDENT - LIT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (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) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" (primitive_type "int") (function_declarator "FUN_00028eac(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" (identifier "FUN_00028eac") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,short *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "short *param_5" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  char *pcVar5;\n  \n  if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }\n  pcVar5 = (char *)(param_2 + iVar1);\n  do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);\nLAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);\n  *(undefined4 *)(param_1 + 8) = uVar3;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }\n  else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = *(int *)(param_1 + 0x14);\n    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);\n    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);\n    if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }\n    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }\n    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    iVar1 = 0xffec;\n  }" ({ "{") (expression_statement "param_2 = *(int *)(param_1 + 0x14);" (assignment_expression "param_2 = *(int *)(param_1 + 0x14)" (identifier "param_2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_fseek_00190dcc)(param_4,0,2);" (call_expression "(*(code *)PTR_fseek_00190dcc)(param_4,0,2)" (parenthesized_expression "(*(code *)PTR_fseek_00190dcc)" (( "(") (pointer_expression "*(code *)PTR_fseek_00190dcc" (* "*") (cast_expression "(code *)PTR_fseek_00190dcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fseek_00190dcc"))) () ")")) (argument_list "(param_4,0,2)" (( "(") (identifier "param_4") (, ",") (number_literal "0") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);" (assignment_expression "uVar4 = (*(code *)PTR_ftell_00190d68)(param_4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_ftell_00190d68)(param_4)" (parenthesized_expression "(*(code *)PTR_ftell_00190d68)" (( "(") (pointer_expression "*(code *)PTR_ftell_00190d68" (* "*") (cast_expression "(code *)PTR_ftell_00190d68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ftell_00190d68"))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (uVar4 == 0) {\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);\n      return 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memset_00190d58)(param_5,0,0x10);" (call_expression "(*(code *)PTR_memset_00190d58)(param_5,0,0x10)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" (( "(") (pointer_expression "*(code *)PTR_memset_00190d58" (* "*") (cast_expression "(code *)PTR_memset_00190d58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00190d58"))) () ")")) (argument_list "(param_5,0,0x10)" (( "(") (identifier "param_5") (, ",") (number_literal "0") (, ",") (number_literal "0x10") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" (if "if") (parenthesized_expression "(((int)uVar4 < 0) || (uVar4 < 0x10000))" (( "(") (binary_expression "((int)uVar4 < 0) || (uVar4 < 0x10000)" (parenthesized_expression "((int)uVar4 < 0)" (( "(") (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar4 < 0x10000)" (( "(") (binary_expression "uVar4 < 0x10000" (identifier "uVar4") (< "<") (number_literal "0x10000")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);\n      if (iVar1 != 0) {\n        return iVar1;\n      }\n      goto LAB_00028efc;\n    }" ({ "{") (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" (identifier "iVar1") (= "=") (call_expression "FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" (identifier "FUN_00028df0") (argument_list "(param_4,param_2,uVar4,param_4,0,0,param_1 + 8)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (identifier "uVar4") (, ",") (identifier "param_4") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar1;\n      }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (goto_statement "goto LAB_00028efc;" (goto "goto") (statement_identifier "LAB_00028efc") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8);" (assignment_expression "iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" (identifier "iVar1") (= "=") (call_expression "FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" (identifier "FUN_00028df0") (argument_list "(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,\n                         uVar4 - 0x10000,param_1 + 8)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (number_literal "0x10000") (, ",") (identifier "param_4") (, ",") (binary_expression "(uVar4 - 0x10000 < uVar4) - 1" (parenthesized_expression "(uVar4 - 0x10000 < uVar4)" (( "(") (binary_expression "uVar4 - 0x10000 < uVar4" (binary_expression "uVar4 - 0x10000" (identifier "uVar4") (- "-") (number_literal "0x10000")) (< "<") (identifier "uVar4")) () ")")) (- "-") (number_literal "1")) (, ",") (binary_expression "uVar4 - 0x10000" (identifier "uVar4") (- "-") (number_literal "0x10000")) (, ",") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = 0xffec;" (assignment_expression "iVar1 = 0xffec" (identifier "iVar1") (= "=") (number_literal "0xffec")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" (else "else") (compound_statement "{\n    uVar4 = 0x10000;\n    if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }\n    param_2 = param_2 + (param_3 - uVar4);\nLAB_00028efc:\n    iVar1 = uVar4 - 0x14;\n    if (iVar1 < 0) goto LAB_00029038;\n  }" ({ "{") (expression_statement "uVar4 = 0x10000;" (assignment_expression "uVar4 = 0x10000" (identifier "uVar4") (= "=") (number_literal "0x10000")) (; ";")) (if_statement "if ((int)param_3 < 0x10001) {\n      uVar4 = param_3;\n    }" (if "if") (parenthesized_expression "((int)param_3 < 0x10001)" (( "(") (binary_expression "(int)param_3 < 0x10001" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0x10001")) () ")")) (compound_statement "{\n      uVar4 = param_3;\n    }" ({ "{") (expression_statement "uVar4 = param_3;" (assignment_expression "uVar4 = param_3" (identifier "uVar4") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "param_2 = param_2 + (param_3 - uVar4);" (assignment_expression "param_2 = param_2 + (param_3 - uVar4)" (identifier "param_2") (= "=") (binary_expression "param_2 + (param_3 - uVar4)" (identifier "param_2") (+ "+") (parenthesized_expression "(param_3 - uVar4)" (( "(") (binary_expression "param_3 - uVar4" (identifier "param_3") (- "-") (identifier "uVar4")) () ")")))) (; ";")) (labeled_statement "LAB_00028efc:\n    iVar1 = uVar4 - 0x14;" (statement_identifier "LAB_00028efc") (: ":") (expression_statement "iVar1 = uVar4 - 0x14;" (assignment_expression "iVar1 = uVar4 - 0x14" (identifier "iVar1") (= "=") (binary_expression "uVar4 - 0x14" (identifier "uVar4") (- "-") (number_literal "0x14"))) (; ";"))) (if_statement "if (iVar1 < 0) goto LAB_00029038;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00029038;" (goto "goto") (statement_identifier "LAB_00029038") (; ";"))) (} "}")))) (expression_statement "pcVar5 = (char *)(param_2 + iVar1);" (assignment_expression "pcVar5 = (char *)(param_2 + iVar1)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(param_2 + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar1)" (( "(") (binary_expression "param_2 + iVar1" (identifier "param_2") (+ "+") (identifier "iVar1")) () ")")))) (; ";")) (do_statement "do {\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  } while (iVar1 != -1);" (do "do") (compound_statement "{\n    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }\n    iVar1 = iVar1 + -1;\n    pcVar5 = pcVar5 + -1;\n  }" ({ "{") (if_statement "if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       ) {\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" (if "if") (parenthesized_expression "((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')\n       )" (( "(") (binary_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')" (parenthesized_expression "(((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05'))" (( "(") (binary_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')" (parenthesized_expression "((*pcVar5 == 'P') && (pcVar5[1] == 'K'))" (( "(") (binary_expression "(*pcVar5 == 'P') && (pcVar5[1] == 'K')" (parenthesized_expression "(*pcVar5 == 'P')" (( "(") (binary_expression "*pcVar5 == 'P'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (== "==") (char_literal "'P'" (' "'") (character "P") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5[1] == 'K')" (( "(") (binary_expression "pcVar5[1] == 'K'" (subscript_expression "pcVar5[1]" (identifier "pcVar5") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'K'" (' "'") (character "K") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5[2] == '\x05')" (( "(") (binary_expression "pcVar5[2] == '\x05'" (subscript_expression "pcVar5[2]" (identifier "pcVar5") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5[3] == '\x06')" (( "(") (binary_expression "pcVar5[3] == '\x06'" (subscript_expression "pcVar5[3]" (identifier "pcVar5") ([ "[") (number_literal "3") (] "]")) (== "==") (char_literal "'\x06'" (' "'") (escape_sequence "\x06") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pbVar2 = (byte *)(param_2 + iVar1 + 4);\n      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;\n      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];\n      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];\n      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];\n      *(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;\n      *(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;\n      return 0;\n    }" ({ "{") (expression_statement "pbVar2 = (byte *)(param_2 + iVar1 + 4);" (assignment_expression "pbVar2 = (byte *)(param_2 + iVar1 + 4)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(param_2 + iVar1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar1 + 4)" (( "(") (binary_expression "param_2 + iVar1 + 4" (binary_expression "param_2 + iVar1" (identifier "param_2") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;" (assignment_expression "*param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "(ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2" (binary_expression "(ushort)pbVar2[1] * 0x100" (cast_expression "(ushort)pbVar2[1]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (binary_expression "(ushort)*pbVar2" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (* "*") (identifier "pbVar2")))) (; ";")) (expression_statement "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];" (assignment_expression "param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2]" (binary_expression "(ushort)pbVar2[3] * 0x100" (cast_expression "(ushort)pbVar2[3]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[3]" (identifier "pbVar2") ([ "[") (number_literal "3") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(ushort)pbVar2[2]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[2]" (identifier "pbVar2") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (expression_statement "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];" (assignment_expression "param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4]" (binary_expression "(ushort)pbVar2[5] * 0x100" (cast_expression "(ushort)pbVar2[5]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[5]" (identifier "pbVar2") ([ "[") (number_literal "5") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(ushort)pbVar2[4]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[4]" (identifier "pbVar2") ([ "[") (number_literal "4") (] "]"))))) (; ";")) (expression_statement "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];" (assignment_expression "param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (subscript_expression "param_5[3]" (identifier "param_5") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "(ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6]" (binary_expression "(ushort)pbVar2[7] * 0x100" (cast_expression "(ushort)pbVar2[7]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[7]" (identifier "pbVar2") ([ "[") (number_literal "7") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(ushort)pbVar2[6]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "pbVar2[6]" (identifier "pbVar2") ([ "[") (number_literal "6") (] "]"))))) (; ";")) (expression_statement "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100;" (assignment_expression "*(uint *)(param_5 + 4) =\n           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (pointer_expression "*(uint *)(param_5 + 4)" (* "*") (cast_expression "(uint *)(param_5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 4)" (( "(") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +\n           (uint)pbVar2[9] * 0x100" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8]" (binary_expression "(uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000" (binary_expression "(uint)pbVar2[0xb] * 0x1000000" (cast_expression "(uint)pbVar2[0xb]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[0xb]" (identifier "pbVar2") ([ "[") (number_literal "0xb") (] "]"))) (* "*") (number_literal "0x1000000")) (+ "+") (binary_expression "(uint)pbVar2[10] * 0x10000" (cast_expression "(uint)pbVar2[10]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[10]" (identifier "pbVar2") ([ "[") (number_literal "10") (] "]"))) (* "*") (number_literal "0x10000"))) (+ "+") (cast_expression "(uint)pbVar2[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[8]" (identifier "pbVar2") ([ "[") (number_literal "8") (] "]")))) (+ "+") (binary_expression "(uint)pbVar2[9] * 0x100" (cast_expression "(uint)pbVar2[9]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[9]" (identifier "pbVar2") ([ "[") (number_literal "9") (] "]"))) (* "*") (number_literal "0x100")))) (; ";")) (expression_statement "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100;" (assignment_expression "*(uint *)(param_5 + 6) =\n           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (pointer_expression "*(uint *)(param_5 + 6)" (* "*") (cast_expression "(uint *)(param_5 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 6)" (( "(") (binary_expression "param_5 + 6" (identifier "param_5") (+ "+") (number_literal "6")) () ")")))) (= "=") (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +\n           (uint)pbVar2[0xd] * 0x100" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc]" (binary_expression "(uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000" (binary_expression "(uint)pbVar2[0xf] * 0x1000000" (cast_expression "(uint)pbVar2[0xf]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[0xf]" (identifier "pbVar2") ([ "[") (number_literal "0xf") (] "]"))) (* "*") (number_literal "0x1000000")) (+ "+") (binary_expression "(uint)pbVar2[0xe] * 0x10000" (cast_expression "(uint)pbVar2[0xe]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[0xe]" (identifier "pbVar2") ([ "[") (number_literal "0xe") (] "]"))) (* "*") (number_literal "0x10000"))) (+ "+") (cast_expression "(uint)pbVar2[0xc]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[0xc]" (identifier "pbVar2") ([ "[") (number_literal "0xc") (] "]")))) (+ "+") (binary_expression "(uint)pbVar2[0xd] * 0x100" (cast_expression "(uint)pbVar2[0xd]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar2[0xd]" (identifier "pbVar2") ([ "[") (number_literal "0xd") (] "]"))) (* "*") (number_literal "0x100")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -1" (identifier "pcVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (labeled_statement "LAB_00029038:\n  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" (statement_identifier "LAB_00029038") (: ":") (expression_statement "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68)" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" (* "*") (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mprintf_00190964"))) () ")")) (argument_list "(PTR_LAB_00190958 + 0x1a68)" (( "(") (binary_expression "PTR_LAB_00190958 + 0x1a68" (identifier "PTR_LAB_00190958") (+ "+") (number_literal "0x1a68")) () ")")))) (; ";"))) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "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)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (do_statement body: (compound_statement (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: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (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: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (number_literal)))))

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

{
  int iVar1;
  byte *pbVar2;
  undefined4 uVar3;
  uint uVar4;
  char *pcVar5;
  
  if (param_2 == 0) {
    param_2 = *(int *)(param_1 + 0x14);
    (*(code *)PTR_fseek_00190dcc)(param_4,0,2);
    uVar4 = (*(code *)PTR_ftell_00190d68)(param_4);
    if (uVar4 == 0) {
      (*(code *)PTR_memset_00190d58)(param_5,0,0x10);
      return 0;
    }
    if (((int)uVar4 < 0) || (uVar4 < 0x10000)) {
      iVar1 = FUN_00028df0(param_4,param_2,uVar4,param_4,0,0,param_1 + 8);
      if (iVar1 != 0) {
        return iVar1;
      }
      goto LAB_00028efc;
    }
    iVar1 = FUN_00028df0(param_4,param_2,0x10000,param_4,(uVar4 - 0x10000 < uVar4) - 1,
                         uVar4 - 0x10000,param_1 + 8);
    if (iVar1 != 0) {
      return iVar1;
    }
    iVar1 = 0xffec;
  }
  else {
    uVar4 = 0x10000;
    if ((int)param_3 < 0x10001) {
      uVar4 = param_3;
    }
    param_2 = param_2 + (param_3 - uVar4);
LAB_00028efc:
    iVar1 = uVar4 - 0x14;
    if (iVar1 < 0) goto LAB_00029038;
  }
  pcVar5 = (char *)(param_2 + iVar1);
  do {
    if ((((*pcVar5 == 'P') && (pcVar5[1] == 'K')) && (pcVar5[2] == '\x05')) && (pcVar5[3] == '\x06')
       ) {
      pbVar2 = (byte *)(param_2 + iVar1 + 4);
      *param_5 = (ushort)pbVar2[1] * 0x100 + (ushort)*pbVar2;
      param_5[1] = (ushort)pbVar2[3] * 0x100 + (ushort)pbVar2[2];
      param_5[2] = (ushort)pbVar2[5] * 0x100 + (ushort)pbVar2[4];
      param_5[3] = (ushort)pbVar2[7] * 0x100 + (ushort)pbVar2[6];
      *(uint *)(param_5 + 4) =
           (uint)pbVar2[0xb] * 0x1000000 + (uint)pbVar2[10] * 0x10000 + (uint)pbVar2[8] +
           (uint)pbVar2[9] * 0x100;
      *(uint *)(param_5 + 6) =
           (uint)pbVar2[0xf] * 0x1000000 + (uint)pbVar2[0xe] * 0x10000 + (uint)pbVar2[0xc] +
           (uint)pbVar2[0xd] * 0x100;
      return 0;
    }
    iVar1 = iVar1 + -1;
    pcVar5 = pcVar5 + -1;
  } while (iVar1 != -1);
LAB_00029038:
  uVar3 = (*(code *)PTR_sqlite3_mprintf_00190964)(PTR_LAB_00190958 + 0x1a68);
  *(undefined4 *)(param_1 + 8) = uVar3;
  return 1;
}

