
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void zipfileFinal(sqlite3_context *pCtx)

{
  int iVar1;
  int *piVar2;
  int n;
  void *__dest;
  int in_GS_OFFSET;
  ZipfileEOCD eocd;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c);
  if (piVar2 != (int *)0x0) {
    if (0 < *piVar2) {
      eocd.iDisk = 0;
      eocd.iFirstDisk = 0;
      eocd.nEntryTotal = (u16)*piVar2;
      eocd.nEntry = (u16)*piVar2;
      eocd.nSize = piVar2[5];
      eocd.iOffset = piVar2[2];
      n = eocd.nSize + piVar2[2] + 0x16;
      __dest = sqlite3_malloc64((longlong)n);
      if (__dest == (void *)0x0) {
        sqlite3_result_error_nomem(pCtx);
      }
      else {
        memcpy(__dest,(void *)piVar2[1],piVar2[2]);
        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);
        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));
        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);
      }
    }
    sqlite3_free((void *)piVar2[1]);
    sqlite3_free((void *)piVar2[4]);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_00024110(undefined4 param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  void *__dest;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  piVar2 = (int *)FUN_000627a0(param_1,0x1c);
  if (piVar2 != (int *)0x0) {
    if (0 < *piVar2) {
      iVar3 = piVar2[5] + piVar2[2] + 0x16;
      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);
      if (__dest == (void *)0x0) {
        FUN_00045190(param_1);
      }
      else {
        memcpy(__dest,(void *)piVar2[1],piVar2[2]);
        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);
        FUN_0001b600();
        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);
      }
    }
    FUN_00042800(piVar2[1]);
    FUN_00042800(piVar2[4]);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017230
ADD EBX,0x157d0f
SUB ESP,0x44
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x34],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x58]
PUSH 0x1c
PUSH EDI
CALL 0x000627a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024160
MOV EDX,dword ptr [EAX]
MOV ESI,EAX
TEST EDX,EDX
JG 0x00024180
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x00042800
POP EAX
PUSH dword ptr [ESI + 0x10]
CALL 0x00042800
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00024249
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESP + 0x1c]
MOV dword ptr [ESP + 0x20],0x0
SUB ESP,0x8
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESI]
MOV word ptr [ESP + 0x28],AX
MOV EAX,dword ptr [ESI]
MOV word ptr [ESP + 0x2a],AX
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [ESP + 0x2c],EAX
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0x30],EDX
ADD EAX,dword ptr [ESI + 0x8]
ADD EAX,0x16
MOV dword ptr [ESP + 0x10],EAX
CDQ
PUSH EDX
PUSH EAX
CALL 0x0005d080
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00024238
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x4
PUSH dword ptr [ESI + 0x8]
PUSH EAX
PUSH EBP
CALL 0x00015130
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0x10]
ADD ESP,0xc
PUSH dword ptr [ESI + 0x14]
ADD EAX,EBP
PUSH EDX
PUSH EAX
CALL 0x00015130
MOV EDX,dword ptr [ESI + 0x14]
MOV EAX,dword ptr [ESP + 0x1c]
ADD EDX,EBP
ADD EDX,dword ptr [ESI + 0x8]
CALL 0x0001b600
LEA EAX,[EBX + 0xffe9fb78]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
PUSH EDI
CALL 0x00064520
ADD ESP,0x20
JMP 0x00024149
SUB ESP,0xc
PUSH EDI
CALL 0x00045190
ADD ESP,0x10
JMP 0x00024149
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00024110(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" comment (function_definition "void FUN_00024110(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_00024110(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)FUN_000627a0(param_1,0x1c);" (assignment_expression "piVar2 = (int *)FUN_000627a0(param_1,0x1c)" identifier = (cast_expression "(int *)FUN_000627a0(param_1,0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000627a0(param_1,0x1c)" identifier (argument_list "(param_1,0x1c)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" { (if_statement "if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" if (parenthesized_expression "(0 < *piVar2)" ( (binary_expression "0 < *piVar2" number_literal < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" { (expression_statement "iVar3 = piVar2[5] + piVar2[2] + 0x16;" (assignment_expression "iVar3 = piVar2[5] + piVar2[2] + 0x16" identifier = (binary_expression "piVar2[5] + piVar2[2] + 0x16" (binary_expression "piVar2[5] + piVar2[2]" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (subscript_expression "piVar2[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);" (assignment_expression "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" identifier = (cast_expression "(void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005d080(iVar3,iVar3 >> 0x1f)" identifier (argument_list "(iVar3,iVar3 >> 0x1f)" ( identifier , (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) ))))) ;) (if_statement "if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00045190(param_1);\n      }" { (expression_statement "FUN_00045190(param_1);" (call_expression "FUN_00045190(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" else (compound_statement "{\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" { (expression_statement "memcpy(__dest,(void *)piVar2[1],piVar2[2]);" (call_expression "memcpy(__dest,(void *)piVar2[1],piVar2[2])" identifier (argument_list "(__dest,(void *)piVar2[1],piVar2[2])" ( identifier , (cast_expression "(void *)piVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) , (subscript_expression "piVar2[2]" identifier [ number_literal ]) ))) ;) (expression_statement "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);" (call_expression "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" identifier (argument_list "((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" ( (cast_expression "(void *)(piVar2[2] + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[2] + (int)__dest)" ( (binary_expression "piVar2[2] + (int)__dest" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (cast_expression "(void *)piVar2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) , (subscript_expression "piVar2[5]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001b600();" (call_expression "FUN_0001b600()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);" (call_expression "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0)" identifier (argument_list "(param_1,__dest,iVar3,FUN_0001b9a0)" ( identifier , identifier , identifier , identifier ))) ;) }))) })) (expression_statement "FUN_00042800(piVar2[1]);" (call_expression "FUN_00042800(piVar2[1])" identifier (argument_list "(piVar2[1])" ( (subscript_expression "piVar2[1]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00042800(piVar2[4]);" (call_expression "FUN_00042800(piVar2[4])" identifier (argument_list "(piVar2[4])" ( (subscript_expression "piVar2[4]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid zipfileFinal(sqlite3_context *pCtx)\n\n{\n  int iVar1;\n  int *piVar2;\n  int n;\n  void *__dest;\n  int in_GS_OFFSET;\n  ZipfileEOCD eocd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }\n    sqlite3_free((void *)piVar2[1]);\n    sqlite3_free((void *)piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void zipfileFinal(sqlite3_context *pCtx)\n\n{\n  int iVar1;\n  int *piVar2;\n  int n;\n  void *__dest;\n  int in_GS_OFFSET;\n  ZipfileEOCD eocd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }\n    sqlite3_free((void *)piVar2[1]);\n    sqlite3_free((void *)piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "zipfileFinal(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int n;\n  void *__dest;\n  int in_GS_OFFSET;\n  ZipfileEOCD eocd;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }\n    sqlite3_free((void *)piVar2[1]);\n    sqlite3_free((void *)piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int n;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ZipfileEOCD eocd;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c);" (assignment_expression "piVar2 = (int *)sqlite3_aggregate_context(pCtx,0x1c)" identifier = (cast_expression "(int *)sqlite3_aggregate_context(pCtx,0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,0x1c)" identifier (argument_list "(pCtx,0x1c)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }\n    sqlite3_free((void *)piVar2[1]);\n    sqlite3_free((void *)piVar2[4]);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }\n    sqlite3_free((void *)piVar2[1]);\n    sqlite3_free((void *)piVar2[4]);\n  }" { (if_statement "if (0 < *piVar2) {\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }" if (parenthesized_expression "(0 < *piVar2)" ( (binary_expression "0 < *piVar2" number_literal < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n      eocd.iDisk = 0;\n      eocd.iFirstDisk = 0;\n      eocd.nEntryTotal = (u16)*piVar2;\n      eocd.nEntry = (u16)*piVar2;\n      eocd.nSize = piVar2[5];\n      eocd.iOffset = piVar2[2];\n      n = eocd.nSize + piVar2[2] + 0x16;\n      __dest = sqlite3_malloc64((longlong)n);\n      if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }\n    }" { (expression_statement "eocd.iDisk = 0;" (assignment_expression "eocd.iDisk = 0" (field_expression "eocd.iDisk" identifier . field_identifier) = number_literal) ;) (expression_statement "eocd.iFirstDisk = 0;" (assignment_expression "eocd.iFirstDisk = 0" (field_expression "eocd.iFirstDisk" identifier . field_identifier) = number_literal) ;) (expression_statement "eocd.nEntryTotal = (u16)*piVar2;" (assignment_expression "eocd.nEntryTotal = (u16)*piVar2" (field_expression "eocd.nEntryTotal" identifier . field_identifier) = (binary_expression "(u16)*piVar2" (parenthesized_expression "(u16)" ( identifier )) * identifier)) ;) (expression_statement "eocd.nEntry = (u16)*piVar2;" (assignment_expression "eocd.nEntry = (u16)*piVar2" (field_expression "eocd.nEntry" identifier . field_identifier) = (binary_expression "(u16)*piVar2" (parenthesized_expression "(u16)" ( identifier )) * identifier)) ;) (expression_statement "eocd.nSize = piVar2[5];" (assignment_expression "eocd.nSize = piVar2[5]" (field_expression "eocd.nSize" identifier . field_identifier) = (subscript_expression "piVar2[5]" identifier [ number_literal ])) ;) (expression_statement "eocd.iOffset = piVar2[2];" (assignment_expression "eocd.iOffset = piVar2[2]" (field_expression "eocd.iOffset" identifier . field_identifier) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "n = eocd.nSize + piVar2[2] + 0x16;" (assignment_expression "n = eocd.nSize + piVar2[2] + 0x16" identifier = (binary_expression "eocd.nSize + piVar2[2] + 0x16" (binary_expression "eocd.nSize + piVar2[2]" (field_expression "eocd.nSize" identifier . field_identifier) + (subscript_expression "piVar2[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "__dest = sqlite3_malloc64((longlong)n);" (assignment_expression "__dest = sqlite3_malloc64((longlong)n)" identifier = (call_expression "sqlite3_malloc64((longlong)n)" identifier (argument_list "((longlong)n)" ( (cast_expression "(longlong)n" ( (type_descriptor "longlong" type_identifier) ) identifier) )))) ;) (if_statement "if (__dest == (void *)0x0) {\n        sqlite3_result_error_nomem(pCtx);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3_result_error_nomem(pCtx);\n      }" { (expression_statement "sqlite3_result_error_nomem(pCtx);" (call_expression "sqlite3_result_error_nomem(pCtx)" identifier (argument_list "(pCtx)" ( identifier ))) ;) }) (else_clause "else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }" else (compound_statement "{\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));\n        sqlite3_result_blob(pCtx,__dest,n,zipfileFree);\n      }" { (expression_statement "memcpy(__dest,(void *)piVar2[1],piVar2[2]);" (call_expression "memcpy(__dest,(void *)piVar2[1],piVar2[2])" identifier (argument_list "(__dest,(void *)piVar2[1],piVar2[2])" ( identifier , (cast_expression "(void *)piVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) , (subscript_expression "piVar2[2]" identifier [ number_literal ]) ))) ;) (expression_statement "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);" (call_expression "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" identifier (argument_list "((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" ( (cast_expression "(void *)(piVar2[2] + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[2] + (int)__dest)" ( (binary_expression "piVar2[2] + (int)__dest" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (cast_expression "(void *)piVar2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) , (subscript_expression "piVar2[5]" identifier [ number_literal ]) ))) ;) (expression_statement "zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]));" (call_expression "zipfileSerializeEOCD(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]))" identifier (argument_list "(&eocd,(u8 *)((int)__dest + piVar2[2] + piVar2[5]))" ( (pointer_expression "&eocd" & identifier) , (cast_expression "(u8 *)((int)__dest + piVar2[2] + piVar2[5])" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + piVar2[2] + piVar2[5])" ( (binary_expression "(int)__dest + piVar2[2] + piVar2[5]" (binary_expression "(int)__dest + piVar2[2]" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "piVar2[2]" identifier [ number_literal ])) + (subscript_expression "piVar2[5]" identifier [ number_literal ])) ))) ))) ;) (expression_statement "sqlite3_result_blob(pCtx,__dest,n,zipfileFree);" (call_expression "sqlite3_result_blob(pCtx,__dest,n,zipfileFree)" identifier (argument_list "(pCtx,__dest,n,zipfileFree)" ( identifier , identifier , identifier , identifier ))) ;) }))) })) (expression_statement "sqlite3_free((void *)piVar2[1]);" (call_expression "sqlite3_free((void *)piVar2[1])" identifier (argument_list "((void *)piVar2[1])" ( (cast_expression "(void *)piVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) ))) ;) (expression_statement "sqlite3_free((void *)piVar2[4]);" (call_expression "sqlite3_free((void *)piVar2[4])" identifier (argument_list "((void *)piVar2[4])" ( (cast_expression "(void *)piVar2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00024110(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "void FUN_00024110(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_00024110(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)FUN_000627a0(param_1,0x1c);" (assignment_expression "piVar2 = (int *)FUN_000627a0(param_1,0x1c)" identifier = (cast_expression "(int *)FUN_000627a0(param_1,0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000627a0(param_1,0x1c)" identifier (argument_list "(param_1,0x1c)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" { (if_statement "if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" if (parenthesized_expression "(0 < *piVar2)" ( (binary_expression "0 < *piVar2" number_literal < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" { (expression_statement "iVar3 = piVar2[5] + piVar2[2] + 0x16;" (assignment_expression "iVar3 = piVar2[5] + piVar2[2] + 0x16" identifier = (binary_expression "piVar2[5] + piVar2[2] + 0x16" (binary_expression "piVar2[5] + piVar2[2]" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (subscript_expression "piVar2[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);" (assignment_expression "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" identifier = (cast_expression "(void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005d080(iVar3,iVar3 >> 0x1f)" identifier (argument_list "(iVar3,iVar3 >> 0x1f)" ( identifier , (binary_expression "iVar3 >> 0x1f" identifier >> number_literal) ))))) ;) (if_statement "if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_00045190(param_1);\n      }" { (expression_statement "FUN_00045190(param_1);" (call_expression "FUN_00045190(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" else (compound_statement "{\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" { (expression_statement "memcpy(__dest,(void *)piVar2[1],piVar2[2]);" (call_expression "memcpy(__dest,(void *)piVar2[1],piVar2[2])" identifier (argument_list "(__dest,(void *)piVar2[1],piVar2[2])" ( identifier , (cast_expression "(void *)piVar2[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) , (subscript_expression "piVar2[2]" identifier [ number_literal ]) ))) ;) (expression_statement "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);" (call_expression "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" identifier (argument_list "((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" ( (cast_expression "(void *)(piVar2[2] + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[2] + (int)__dest)" ( (binary_expression "piVar2[2] + (int)__dest" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (cast_expression "(void *)piVar2[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) , (subscript_expression "piVar2[5]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001b600();" (call_expression "FUN_0001b600()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);" (call_expression "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0)" identifier (argument_list "(param_1,__dest,iVar3,FUN_0001b9a0)" ( identifier , identifier , identifier , identifier ))) ;) }))) })) (expression_statement "FUN_00042800(piVar2[1]);" (call_expression "FUN_00042800(piVar2[1])" identifier (argument_list "(piVar2[1])" ( (subscript_expression "piVar2[1]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00042800(piVar2[4]);" (call_expression "FUN_00042800(piVar2[4])" identifier (argument_list "(piVar2[4])" ( (subscript_expression "piVar2[4]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT >> LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00024110(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "void") (function_declarator "FUN_00024110(undefined4 param_1)" (identifier "FUN_00024110") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  void *__dest;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar2 = (int *)FUN_000627a0(param_1,0x1c);\n  if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)FUN_000627a0(param_1,0x1c);" (assignment_expression "piVar2 = (int *)FUN_000627a0(param_1,0x1c)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_000627a0(param_1,0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000627a0(param_1,0x1c)" (identifier "FUN_000627a0") (argument_list "(param_1,0x1c)" (( "(") (identifier "param_1") (, ",") (number_literal "0x1c") () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }\n    FUN_00042800(piVar2[1]);\n    FUN_00042800(piVar2[4]);\n  }" ({ "{") (if_statement "if (0 < *piVar2) {\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" (if "if") (parenthesized_expression "(0 < *piVar2)" (( "(") (binary_expression "0 < *piVar2" (number_literal "0") (< "<") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")")) (compound_statement "{\n      iVar3 = piVar2[5] + piVar2[2] + 0x16;\n      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);\n      if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }\n    }" ({ "{") (expression_statement "iVar3 = piVar2[5] + piVar2[2] + 0x16;" (assignment_expression "iVar3 = piVar2[5] + piVar2[2] + 0x16" (identifier "iVar3") (= "=") (binary_expression "piVar2[5] + piVar2[2] + 0x16" (binary_expression "piVar2[5] + piVar2[2]" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (+ "+") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "0x16"))) (; ";")) (expression_statement "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);" (assignment_expression "__dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0005d080(iVar3,iVar3 >> 0x1f)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005d080(iVar3,iVar3 >> 0x1f)" (identifier "FUN_0005d080") (argument_list "(iVar3,iVar3 >> 0x1f)" (( "(") (identifier "iVar3") (, ",") (binary_expression "iVar3 >> 0x1f" (identifier "iVar3") (>> ">>") (number_literal "0x1f")) () ")"))))) (; ";")) (if_statement "if (__dest == (void *)0x0) {\n        FUN_00045190(param_1);\n      }\n      else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" (if "if") (parenthesized_expression "(__dest == (void *)0x0)" (( "(") (binary_expression "__dest == (void *)0x0" (identifier "__dest") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_00045190(param_1);\n      }" ({ "{") (expression_statement "FUN_00045190(param_1);" (call_expression "FUN_00045190(param_1)" (identifier "FUN_00045190") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" (else "else") (compound_statement "{\n        memcpy(__dest,(void *)piVar2[1],piVar2[2]);\n        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);\n        FUN_0001b600();\n        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);\n      }" ({ "{") (expression_statement "memcpy(__dest,(void *)piVar2[1],piVar2[2]);" (call_expression "memcpy(__dest,(void *)piVar2[1],piVar2[2])" (identifier "memcpy") (argument_list "(__dest,(void *)piVar2[1],piVar2[2])" (( "(") (identifier "__dest") (, ",") (cast_expression "(void *)piVar2[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (, ",") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);" (call_expression "memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" (identifier "memcpy") (argument_list "((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5])" (( "(") (cast_expression "(void *)(piVar2[2] + (int)__dest)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2[2] + (int)__dest)" (( "(") (binary_expression "piVar2[2] + (int)__dest" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) () ")"))) (, ",") (cast_expression "(void *)piVar2[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]"))) (, ",") (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001b600();" (call_expression "FUN_0001b600()" (identifier "FUN_0001b600") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);" (call_expression "FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0)" (identifier "FUN_00064520") (argument_list "(param_1,__dest,iVar3,FUN_0001b9a0)" (( "(") (identifier "param_1") (, ",") (identifier "__dest") (, ",") (identifier "iVar3") (, ",") (identifier "FUN_0001b9a0") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_00042800(piVar2[1]);" (call_expression "FUN_00042800(piVar2[1])" (identifier "FUN_00042800") (argument_list "(piVar2[1])" (( "(") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_00042800(piVar2[4]);" (call_expression "FUN_00042800(piVar2[4])" (identifier "FUN_00042800") (argument_list "(piVar2[4])" (( "(") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *pCtx)

{
  int var_11;
  int *var_3;
  int n;
  void *var_5;
  int var_1;
  type_2 eocd;
  
  var_11 = *(int *)(var_1 + 0x14);
  var_3 = (int *)var_2(pCtx,0x1c);
  if (var_3 != (int *)0x0) {
    if (0 < *var_3) {
      eocd.iDisk = 0;
      eocd.iFirstDisk = 0;
      eocd.nEntryTotal = (u16)*var_3;
      eocd.nEntry = (u16)*var_3;
      eocd.nSize = var_3[5];
      eocd.iOffset = var_3[2];
      n = eocd.nSize + var_3[2] + 0x16;
      var_5 = var_4((type_3)n);
      if (var_5 == (void *)0x0) {
        var_6(pCtx);
      }
      else {
        var_7(var_5,(void *)var_3[1],var_3[2]);
        var_7((void *)(var_3[2] + (int)var_5),(void *)var_3[4],var_3[5]);
        var_8(&eocd,(type_4 *)((int)var_5 + var_3[2] + var_3[5]));
        var_9(pCtx,var_5,n,zipfileFree);
      }
    }
    var_10((void *)var_3[1]);
    var_10((void *)var_3[4]);
  }
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  void *__dest;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  piVar2 = (int *)FUN_000627a0(param_1,0x1c);
  if (piVar2 != (int *)0x0) {
    if (0 < *piVar2) {
      iVar3 = piVar2[5] + piVar2[2] + 0x16;
      __dest = (void *)FUN_0005d080(iVar3,iVar3 >> 0x1f);
      if (__dest == (void *)0x0) {
        FUN_00045190(param_1);
      }
      else {
        memcpy(__dest,(void *)piVar2[1],piVar2[2]);
        memcpy((void *)(piVar2[2] + (int)__dest),(void *)piVar2[4],piVar2[5]);
        FUN_0001b600();
        FUN_00064520(param_1,__dest,iVar3,FUN_0001b9a0);
      }
    }
    FUN_00042800(piVar2[1]);
    FUN_00042800(piVar2[4]);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

