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

void sqlarUncompressFunc(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  uLongf uVar1;
  void *pvVar2;
  void *z;
  int iVar3;
  int in_GS_OFFSET;
  uLongf sz;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e669;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  sz = sqlite3_value_int(argv[1]);
  if (sz != 0) {
    uVar1 = sqlite3_value_bytes(*argv);
    if (sz != uVar1) {
      pvVar2 = sqlite3_value_blob(*argv);
      z = sqlite3_malloc(sz);
      iVar3 = uncompress(z,&sz,pvVar2,uVar1);
      if (iVar3 == 0) {
        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);
      }
      else {
        sqlite3_result_error(context,"error in uncompress()",-1);
      }
      sqlite3_free(z);
      goto LAB_0001e6bc;
    }
  }
  sqlite3_result_value(context,*argv);
LAB_0001e6bc:
  if (local_20 == *(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_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e669;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = FUN_00054580(param_3[1]);
  if (local_24 != 0) {
    iVar1 = FUN_0007f5a0(*param_3);
    if (local_24 != iVar1) {
      uVar2 = FUN_0007f710(*param_3);
      uVar3 = FUN_00069440(local_24);
      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);
      if (iVar1 == 0) {
        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);
      }
      else {
        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);
      }
      FUN_00044000(uVar3);
      goto LAB_0001e6bc;
    }
  }
  FUN_0006eab0(param_1,*param_3);
LAB_0001e6bc:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00153870();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000172e0
ADD EBX,0x19c7bf
SUB ESP,0x38
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [ESP + 0x4c]
PUSH dword ptr [ESI + 0x4]
CALL 0x00054580
MOV dword ptr [ESP + 0x28],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e6ae
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x0007f5a0
ADD ESP,0x10
MOV EBP,EAX
CMP dword ptr [ESP + 0x18],EAX
JNZ 0x0001e6d8
SUB ESP,0x8
PUSH dword ptr [ESI]
PUSH EDI
CALL 0x0006eab0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001e747
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x0007f710
MOV dword ptr [ESP + 0x1c],EAX
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x00069440
PUSH EBP
MOV EDX,dword ptr [ESP + 0x20]
MOV ESI,EAX
PUSH EDX
LEA EAX,[ESP + 0x30]
PUSH EAX
PUSH ESI
CALL 0x000151b0
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0001e730
PUSH -0x1
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
PUSH EDI
CALL 0x00071f20
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00044000
ADD ESP,0x10
JMP 0x0001e6bc
SUB ESP,0x4
LEA EAX,[EBX + 0xfff9ec51]
PUSH -0x1
PUSH EAX
PUSH EDI
CALL 0x000718b0
ADD ESP,0x10
JMP 0x0001e71a
CALL 0x00153870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}\n\n" comment (function_definition "void FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}" primitive_type (function_declarator "FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00153870();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e669;" (assignment_expression "uStack_14 = 0x1e669" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "local_24 = FUN_00054580(param_3[1]);" (assignment_expression "local_24 = FUN_00054580(param_3[1])" identifier = (call_expression "FUN_00054580(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" { (expression_statement "iVar1 = FUN_0007f5a0(*param_3);" (assignment_expression "iVar1 = FUN_0007f5a0(*param_3)" identifier = (call_expression "FUN_0007f5a0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" if (parenthesized_expression "(local_24 != iVar1)" ( (binary_expression "local_24 != iVar1" identifier != identifier) )) (compound_statement "{\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" { (expression_statement "uVar2 = FUN_0007f710(*param_3);" (assignment_expression "uVar2 = FUN_0007f710(*param_3)" identifier = (call_expression "FUN_0007f710(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00069440(local_24);" (assignment_expression "uVar3 = FUN_00069440(local_24)" identifier = (call_expression "FUN_00069440(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);" (assignment_expression "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1)" identifier = (call_expression "uncompress(uVar3,&local_24,uVar2,iVar1)" identifier (argument_list "(uVar3,&local_24,uVar2,iVar1)" ( identifier , (pointer_expression "&local_24" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }" { (expression_statement "FUN_00071f20(param_1,uVar3,local_24,0xffffffff);" (call_expression "FUN_00071f20(param_1,uVar3,local_24,0xffffffff)" identifier (argument_list "(param_1,uVar3,local_24,0xffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) }) (else_clause "else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" else (compound_statement "{\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" { (expression_statement "FUN_000718b0(param_1,"error in uncompress()",0xffffffff);" (call_expression "FUN_000718b0(param_1,"error in uncompress()",0xffffffff)" identifier (argument_list "(param_1,"error in uncompress()",0xffffffff)" ( identifier , (string_literal ""error in uncompress()"" " string_content ") , number_literal ))) ;) }))) (expression_statement "FUN_00044000(uVar3);" (call_expression "FUN_00044000(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0001e6bc;" goto statement_identifier ;) })) })) (expression_statement "FUN_0006eab0(param_1,*param_3);" (call_expression "FUN_0006eab0(param_1,*param_3)" identifier (argument_list "(param_1,*param_3)" ( identifier , (pointer_expression "*param_3" * identifier) ))) ;) (labeled_statement "LAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_00153870();" (call_expression "FUN_00153870()" 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 sqlarUncompressFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  uLongf uVar1;\n  void *pvVar2;\n  void *z;\n  int iVar3;\n  int in_GS_OFFSET;\n  uLongf sz;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sz = sqlite3_value_int(argv[1]);\n  if (sz != 0) {\n    uVar1 = sqlite3_value_bytes(*argv);\n    if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }\n  }\n  sqlite3_result_value(context,*argv);\nLAB_0001e6bc:\n  if (local_20 == *(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 sqlarUncompressFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  uLongf uVar1;\n  void *pvVar2;\n  void *z;\n  int iVar3;\n  int in_GS_OFFSET;\n  uLongf sz;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sz = sqlite3_value_int(argv[1]);\n  if (sz != 0) {\n    uVar1 = sqlite3_value_bytes(*argv);\n    if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }\n  }\n  sqlite3_result_value(context,*argv);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "sqlarUncompressFunc(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  uLongf uVar1;\n  void *pvVar2;\n  void *z;\n  int iVar3;\n  int in_GS_OFFSET;\n  uLongf sz;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  sz = sqlite3_value_int(argv[1]);\n  if (sz != 0) {\n    uVar1 = sqlite3_value_bytes(*argv);\n    if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }\n  }\n  sqlite3_result_value(context,*argv);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uLongf uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "void *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uLongf sz;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e669;" (assignment_expression "uStack_14 = 0x1e669" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "sz = sqlite3_value_int(argv[1]);" (assignment_expression "sz = sqlite3_value_int(argv[1])" identifier = (call_expression "sqlite3_value_int(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (sz != 0) {\n    uVar1 = sqlite3_value_bytes(*argv);\n    if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }\n  }" if (parenthesized_expression "(sz != 0)" ( (binary_expression "sz != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = sqlite3_value_bytes(*argv);\n    if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }\n  }" { (expression_statement "uVar1 = sqlite3_value_bytes(*argv);" (assignment_expression "uVar1 = sqlite3_value_bytes(*argv)" identifier = (call_expression "sqlite3_value_bytes(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (if_statement "if (sz != uVar1) {\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }" if (parenthesized_expression "(sz != uVar1)" ( (binary_expression "sz != uVar1" identifier != identifier) )) (compound_statement "{\n      pvVar2 = sqlite3_value_blob(*argv);\n      z = sqlite3_malloc(sz);\n      iVar3 = uncompress(z,&sz,pvVar2,uVar1);\n      if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }\n      sqlite3_free(z);\n      goto LAB_0001e6bc;\n    }" { (expression_statement "pvVar2 = sqlite3_value_blob(*argv);" (assignment_expression "pvVar2 = sqlite3_value_blob(*argv)" identifier = (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "z = sqlite3_malloc(sz);" (assignment_expression "z = sqlite3_malloc(sz)" identifier = (call_expression "sqlite3_malloc(sz)" identifier (argument_list "(sz)" ( identifier )))) ;) (expression_statement "iVar3 = uncompress(z,&sz,pvVar2,uVar1);" (assignment_expression "iVar3 = uncompress(z,&sz,pvVar2,uVar1)" identifier = (call_expression "uncompress(z,&sz,pvVar2,uVar1)" identifier (argument_list "(z,&sz,pvVar2,uVar1)" ( identifier , (pointer_expression "&sz" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }\n      else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);\n      }" { (expression_statement "sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "sqlite3_result_blob(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(context,z,sz,(_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , identifier , identifier , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) }) (else_clause "else {\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }" else (compound_statement "{\n        sqlite3_result_error(context,"error in uncompress()",-1);\n      }" { (expression_statement "sqlite3_result_error(context,"error in uncompress()",-1);" (call_expression "sqlite3_result_error(context,"error in uncompress()",-1)" identifier (argument_list "(context,"error in uncompress()",-1)" ( identifier , (string_literal ""error in uncompress()"" " string_content ") , number_literal ))) ;) }))) (expression_statement "sqlite3_free(z);" (call_expression "sqlite3_free(z)" identifier (argument_list "(z)" ( identifier ))) ;) (goto_statement "goto LAB_0001e6bc;" goto statement_identifier ;) })) })) (expression_statement "sqlite3_result_value(context,*argv);" (call_expression "sqlite3_result_value(context,*argv)" identifier (argument_list "(context,*argv)" ( identifier , (pointer_expression "*argv" * identifier) ))) ;) (labeled_statement "LAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}\n\n" (function_definition "void FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" primitive_type (function_declarator "FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e669;" (assignment_expression "uStack_14 = 0x1e669" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "local_24 = FUN_00054580(param_3[1]);" (assignment_expression "local_24 = FUN_00054580(param_3[1])" identifier = (call_expression "FUN_00054580(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" { (expression_statement "iVar1 = FUN_0007f5a0(*param_3);" (assignment_expression "iVar1 = FUN_0007f5a0(*param_3)" identifier = (call_expression "FUN_0007f5a0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" if (parenthesized_expression "(local_24 != iVar1)" ( (binary_expression "local_24 != iVar1" identifier != identifier) )) (compound_statement "{\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" { (expression_statement "uVar2 = FUN_0007f710(*param_3);" (assignment_expression "uVar2 = FUN_0007f710(*param_3)" identifier = (call_expression "FUN_0007f710(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00069440(local_24);" (assignment_expression "uVar3 = FUN_00069440(local_24)" identifier = (call_expression "FUN_00069440(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);" (assignment_expression "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1)" identifier = (call_expression "uncompress(uVar3,&local_24,uVar2,iVar1)" identifier (argument_list "(uVar3,&local_24,uVar2,iVar1)" ( identifier , (pointer_expression "&local_24" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }" { (expression_statement "FUN_00071f20(param_1,uVar3,local_24,0xffffffff);" (call_expression "FUN_00071f20(param_1,uVar3,local_24,0xffffffff)" identifier (argument_list "(param_1,uVar3,local_24,0xffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) }) (else_clause "else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" else (compound_statement "{\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" { (expression_statement "FUN_000718b0(param_1,"error in uncompress()",0xffffffff);" (call_expression "FUN_000718b0(param_1,"error in uncompress()",0xffffffff)" identifier (argument_list "(param_1,"error in uncompress()",0xffffffff)" ( identifier , (string_literal ""error in uncompress()"" " string_content ") , number_literal ))) ;) }))) (expression_statement "FUN_00044000(uVar3);" (call_expression "FUN_00044000(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0001e6bc;" goto statement_identifier ;) })) })) (expression_statement "FUN_0006eab0(param_1,*param_3);" (call_expression "FUN_0006eab0(param_1,*param_3)" identifier (argument_list "(param_1,*param_3)" ( identifier , (pointer_expression "*param_3" * identifier) ))) ;) (labeled_statement "LAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) (labeled_statement statement_identifier : (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_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" (primitive_type "void") (function_declarator "FUN_0001e660(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0001e660") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e669;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = FUN_00054580(param_3[1]);\n  if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }\n  FUN_0006eab0(param_1,*param_3);\nLAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00153870();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e669;" (assignment_expression "uStack_14 = 0x1e669" (identifier "uStack_14") (= "=") (number_literal "0x1e669")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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 "local_24 = FUN_00054580(param_3[1]);" (assignment_expression "local_24 = FUN_00054580(param_3[1])" (identifier "local_24") (= "=") (call_expression "FUN_00054580(param_3[1])" (identifier "FUN_00054580") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (local_24 != 0) {\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0007f5a0(*param_3);\n    if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0007f5a0(*param_3);" (assignment_expression "iVar1 = FUN_0007f5a0(*param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0007f5a0(*param_3)" (identifier "FUN_0007f5a0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (if_statement "if (local_24 != iVar1) {\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" (if "if") (parenthesized_expression "(local_24 != iVar1)" (( "(") (binary_expression "local_24 != iVar1" (identifier "local_24") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      uVar2 = FUN_0007f710(*param_3);\n      uVar3 = FUN_00069440(local_24);\n      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);\n      if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }\n      FUN_00044000(uVar3);\n      goto LAB_0001e6bc;\n    }" ({ "{") (expression_statement "uVar2 = FUN_0007f710(*param_3);" (assignment_expression "uVar2 = FUN_0007f710(*param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_0007f710(*param_3)" (identifier "FUN_0007f710") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00069440(local_24);" (assignment_expression "uVar3 = FUN_00069440(local_24)" (identifier "uVar3") (= "=") (call_expression "FUN_00069440(local_24)" (identifier "FUN_00069440") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (expression_statement "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);" (assignment_expression "iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1)" (identifier "iVar1") (= "=") (call_expression "uncompress(uVar3,&local_24,uVar2,iVar1)" (identifier "uncompress") (argument_list "(uVar3,&local_24,uVar2,iVar1)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }\n      else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);\n      }" ({ "{") (expression_statement "FUN_00071f20(param_1,uVar3,local_24,0xffffffff);" (call_expression "FUN_00071f20(param_1,uVar3,local_24,0xffffffff)" (identifier "FUN_00071f20") (argument_list "(param_1,uVar3,local_24,0xffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "local_24") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" (else "else") (compound_statement "{\n        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);\n      }" ({ "{") (expression_statement "FUN_000718b0(param_1,"error in uncompress()",0xffffffff);" (call_expression "FUN_000718b0(param_1,"error in uncompress()",0xffffffff)" (identifier "FUN_000718b0") (argument_list "(param_1,"error in uncompress()",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""error in uncompress()"" (" """) (string_content "error in uncompress()") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00044000(uVar3);" (call_expression "FUN_00044000(uVar3)" (identifier "FUN_00044000") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (goto_statement "goto LAB_0001e6bc;" (goto "goto") (statement_identifier "LAB_0001e6bc") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0006eab0(param_1,*param_3);" (call_expression "FUN_0006eab0(param_1,*param_3)" (identifier "FUN_0006eab0") (argument_list "(param_1,*param_3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))) (; ";")) (labeled_statement "LAB_0001e6bc:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (statement_identifier "LAB_0001e6bc") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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_00153870();" (call_expression "FUN_00153870()" (identifier "FUN_00153870") (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 *context,int argc,type_2 **argv)

{
  type_3 var_5;
  void *pvVar2;
  void *z;
  int var_9;
  int var_1;
  type_3 var_3;
  int var_14;
  type_4 uStack_14;
  
  uStack_14 = 0x1e669;
  var_14 = *(int *)(var_1 + 0x14);
  var_3 = var_2(argv[1]);
  if (var_3 != 0) {
    var_5 = var_4(*argv);
    if (var_3 != var_5) {
      pvVar2 = var_6(*argv);
      z = var_7(var_3);
      var_9 = var_8(z,&var_3,pvVar2,var_5);
      if (var_9 == 0) {
        var_10(context,z,var_3,(type_5 *)&DAT_ffffffff);
      }
      else {
        var_11(context,"error in uncompress()",-1);
      }
      var_12(z);
      goto LAB_0001e6bc;
    }
  }
  var_13(context,*argv);
LAB_0001e6bc:
  if (var_14 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (labeled_statement label: (statement_identifier) (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,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e669;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = FUN_00054580(param_3[1]);
  if (local_24 != 0) {
    iVar1 = FUN_0007f5a0(*param_3);
    if (local_24 != iVar1) {
      uVar2 = FUN_0007f710(*param_3);
      uVar3 = FUN_00069440(local_24);
      iVar1 = uncompress(uVar3,&local_24,uVar2,iVar1);
      if (iVar1 == 0) {
        FUN_00071f20(param_1,uVar3,local_24,0xffffffff);
      }
      else {
        FUN_000718b0(param_1,"error in uncompress()",0xffffffff);
      }
      FUN_00044000(uVar3);
      goto LAB_0001e6bc;
    }
  }
  FUN_0006eab0(param_1,*param_3);
LAB_0001e6bc:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00153870();
}

