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

bool __regparm3
gold::zlib_decompress
          (uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,
          ulong uncompressed_size)

{
  int iVar1;
  z_stream strm;
  
  strm.zalloc = (alloc_func)0x0;
  strm.zfree = (free_func)0x0;
  strm.opaque = (voidpf)0x0;
  strm.avail_out = uncompressed_size;
  strm.next_in = compressed_data;
  strm.avail_in = compressed_size;
  iVar1 = inflateInit_(&strm,"1.2.11",0x38);
  while( true ) {
    if (strm.avail_in == 0) {
      iVar1 = inflateEnd(&strm);
      return iVar1 == 0 && strm.avail_out == 0;
    }
    if (iVar1 != 0) break;
    strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out);
    iVar1 = inflate(&strm,4);
    if (iVar1 != 1) {
      return false;
    }
    iVar1 = inflateReset(&strm);
  }
  return false;
}



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

undefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)

{
  int iVar1;
  uint uVar2;
  undefined1 local_54 [4];
  int local_50;
  int local_48;
  uint local_44;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 uStack_14;
  
  uStack_14 = 0x14133b;
  local_34 = 0;
  local_30 = 0;
  local_2c = 0;
  local_44 = param_4;
  local_50 = param_2;
  iVar1 = inflateInit_(local_54,"1.2.11",0x38);
  while( true ) {
    if (local_50 == 0) {
      uVar2 = inflateEnd(local_54);
      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);
    }
    if (iVar1 != 0) break;
    local_48 = (param_4 - local_44) + param_3;
    iVar1 = inflate(local_54,4);
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = inflateReset(local_54);
  }
  return 0;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1c0cc5
SUB ESP,0x50
MOV EDI,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x0
LEA EAX,[EBX + 0xfff32a4f]
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x1c],EDI
PUSH 0x38
PUSH EAX
LEA ESI,[ESP + 0x14]
PUSH ESI
CALL 0x00026870
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JNZ 0x001413c3
JMP 0x001413d8
MOV EAX,EDI
SUB EAX,dword ptr [ESP + 0x18]
SUB ESP,0x8
ADD EAX,EBP
MOV dword ptr [ESP + 0x1c],EAX
PUSH 0x4
PUSH ESI
CALL 0x000263e0
ADD ESP,0x10
CMP EAX,0x1
JNZ 0x001413c7
SUB ESP,0xc
PUSH ESI
CALL 0x000260f0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x001413d8
TEST EAX,EAX
JZ 0x00141390
ADD ESP,0x4c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00026150
ADD ESP,0x10
OR EAX,dword ptr [ESP + 0x18]
SETZ AL
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 local_54 [4];" type_identifier (array_declarator "local_54 [4]" identifier [ number_literal ]) ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x14133b;" (assignment_expression "uStack_14 = 0x14133b" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_44 = param_4;" (assignment_expression "local_44 = param_4" identifier = identifier) ;) (expression_statement "local_50 = param_2;" (assignment_expression "local_50 = param_2" identifier = identifier) ;) (expression_statement "iVar1 = inflateInit_(local_54,"1.2.11",0x38);" (assignment_expression "iVar1 = inflateInit_(local_54,"1.2.11",0x38)" identifier = (call_expression "inflateInit_(local_54,"1.2.11",0x38)" identifier (argument_list "(local_54,"1.2.11",0x38)" ( identifier , (string_literal ""1.2.11"" " string_content ") , number_literal )))) ;) (while_statement "while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" { (if_statement "if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" if (parenthesized_expression "(local_50 == 0)" ( (binary_expression "local_50 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" { (expression_statement "uVar2 = inflateEnd(local_54);" (assignment_expression "uVar2 = inflateEnd(local_54)" identifier = (call_expression "inflateEnd(local_54)" identifier (argument_list "(local_54)" ( identifier )))) ;) (return_statement "return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);" return (call_expression "CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" identifier (argument_list "((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" ( (call_expression "(int3)((uVar2 | local_44) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uVar2 | local_44) >> 8)" ( (binary_expression "(uVar2 | local_44) >> 8" (parenthesized_expression "(uVar2 | local_44)" ( (binary_expression "uVar2 | local_44" identifier | identifier) )) >> number_literal) ))) , (binary_expression "(uVar2 | local_44) == 0" (parenthesized_expression "(uVar2 | local_44)" ( (binary_expression "uVar2 | local_44" identifier | identifier) )) == number_literal) ))) ;) })) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_48 = (param_4 - local_44) + param_3;" (assignment_expression "local_48 = (param_4 - local_44) + param_3" identifier = (binary_expression "(param_4 - local_44) + param_3" (parenthesized_expression "(param_4 - local_44)" ( (binary_expression "param_4 - local_44" identifier - identifier) )) + identifier)) ;) (expression_statement "iVar1 = inflate(local_54,4);" (assignment_expression "iVar1 = inflate(local_54,4)" identifier = (call_expression "inflate(local_54,4)" identifier (argument_list "(local_54,4)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = inflateReset(local_54);" (assignment_expression "iVar1 = inflateReset(local_54)" identifier = (call_expression "inflateReset(local_54)" identifier (argument_list "(local_54)" ( identifier )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3\ngold::zlib_decompress\n          (uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size)\n\n{\n  int iVar1;\n  z_stream strm;\n  \n  strm.zalloc = (alloc_func)0x0;\n  strm.zfree = (free_func)0x0;\n  strm.opaque = (voidpf)0x0;\n  strm.avail_out = uncompressed_size;\n  strm.next_in = compressed_data;\n  strm.avail_in = compressed_size;\n  iVar1 = inflateInit_(&strm,"1.2.11",0x38);\n  while( true ) {\n    if (strm.avail_in == 0) {\n      iVar1 = inflateEnd(&strm);\n      return iVar1 == 0 && strm.avail_out == 0;\n    }\n    if (iVar1 != 0) break;\n    strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) {\n      return false;\n    }\n    iVar1 = inflateReset(&strm);\n  }\n  return false;\n}\n\n" comment (declaration "bool __regparm3" primitive_type identifier ;) (labeled_statement "gold::zlib_decompress\n          (uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size)\n\n{\n  int iVar1;" statement_identifier : (ERROR ":zlib_decompress\n          (uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size)\n\n{" : (call_expression "zlib_decompress\n          (uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size)" identifier (argument_list "(uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size)" ( (binary_expression "uchar *compressed_data" identifier * identifier) , (ERROR "ulong" identifier) identifier , (binary_expression "uchar *uncompressed_data" identifier * identifier) , (ERROR "ulong" identifier) identifier ))) {) (declaration "int iVar1;" primitive_type identifier ;)) (declaration "z_stream strm;" type_identifier identifier ;) (expression_statement "strm.zalloc = (alloc_func)0x0;" (assignment_expression "strm.zalloc = (alloc_func)0x0" (field_expression "strm.zalloc" identifier . field_identifier) = (cast_expression "(alloc_func)0x0" ( (type_descriptor "alloc_func" type_identifier) ) number_literal)) ;) (expression_statement "strm.zfree = (free_func)0x0;" (assignment_expression "strm.zfree = (free_func)0x0" (field_expression "strm.zfree" identifier . field_identifier) = (cast_expression "(free_func)0x0" ( (type_descriptor "free_func" type_identifier) ) number_literal)) ;) (expression_statement "strm.opaque = (voidpf)0x0;" (assignment_expression "strm.opaque = (voidpf)0x0" (field_expression "strm.opaque" identifier . field_identifier) = (cast_expression "(voidpf)0x0" ( (type_descriptor "voidpf" type_identifier) ) number_literal)) ;) (expression_statement "strm.avail_out = uncompressed_size;" (assignment_expression "strm.avail_out = uncompressed_size" (field_expression "strm.avail_out" identifier . field_identifier) = identifier) ;) (expression_statement "strm.next_in = compressed_data;" (assignment_expression "strm.next_in = compressed_data" (field_expression "strm.next_in" identifier . field_identifier) = identifier) ;) (expression_statement "strm.avail_in = compressed_size;" (assignment_expression "strm.avail_in = compressed_size" (field_expression "strm.avail_in" identifier . field_identifier) = identifier) ;) (expression_statement "iVar1 = inflateInit_(&strm,"1.2.11",0x38);" (assignment_expression "iVar1 = inflateInit_(&strm,"1.2.11",0x38)" identifier = (call_expression "inflateInit_(&strm,"1.2.11",0x38)" identifier (argument_list "(&strm,"1.2.11",0x38)" ( (pointer_expression "&strm" & identifier) , (string_literal ""1.2.11"" " string_content ") , number_literal )))) ;) (while_statement "while( true ) {\n    if (strm.avail_in == 0) {\n      iVar1 = inflateEnd(&strm);\n      return iVar1 == 0 && strm.avail_out == 0;\n    }\n    if (iVar1 != 0) break;\n    strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) {\n      return false;\n    }\n    iVar1 = inflateReset(&strm);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (strm.avail_in == 0) {\n      iVar1 = inflateEnd(&strm);\n      return iVar1 == 0 && strm.avail_out == 0;\n    }\n    if (iVar1 != 0) break;\n    strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) {\n      return false;\n    }\n    iVar1 = inflateReset(&strm);\n  }" { (if_statement "if (strm.avail_in == 0) {\n      iVar1 = inflateEnd(&strm);\n      return iVar1 == 0 && strm.avail_out == 0;\n    }" if (parenthesized_expression "(strm.avail_in == 0)" ( (binary_expression "strm.avail_in == 0" (field_expression "strm.avail_in" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      iVar1 = inflateEnd(&strm);\n      return iVar1 == 0 && strm.avail_out == 0;\n    }" { (expression_statement "iVar1 = inflateEnd(&strm);" (assignment_expression "iVar1 = inflateEnd(&strm)" identifier = (call_expression "inflateEnd(&strm)" identifier (argument_list "(&strm)" ( (pointer_expression "&strm" & identifier) )))) ;) (return_statement "return iVar1 == 0 && strm.avail_out == 0;" return (binary_expression "iVar1 == 0 && strm.avail_out == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "strm.avail_out == 0" (field_expression "strm.avail_out" identifier . field_identifier) == number_literal)) ;) })) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out);" (assignment_expression "strm.next_out = uncompressed_data + (uncompressed_size - strm.avail_out)" (field_expression "strm.next_out" identifier . field_identifier) = (binary_expression "uncompressed_data + (uncompressed_size - strm.avail_out)" identifier + (parenthesized_expression "(uncompressed_size - strm.avail_out)" ( (binary_expression "uncompressed_size - strm.avail_out" identifier - (field_expression "strm.avail_out" identifier . field_identifier)) )))) ;) (expression_statement "iVar1 = inflate(&strm,4);" (assignment_expression "iVar1 = inflate(&strm,4)" identifier = (call_expression "inflate(&strm,4)" identifier (argument_list "(&strm,4)" ( (pointer_expression "&strm" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 1) {\n      return false;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = inflateReset(&strm);" (assignment_expression "iVar1 = inflateReset(&strm)" identifier = (call_expression "inflateReset(&strm)" identifier (argument_list "(&strm)" ( (pointer_expression "&strm" & identifier) )))) ;) })) (return_statement "return false;" return false ;) (ERROR "}" }))
(translation_unit "undefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 local_54 [4];" type_identifier (array_declarator "local_54 [4]" identifier [ number_literal ]) ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x14133b;" (assignment_expression "uStack_14 = 0x14133b" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_44 = param_4;" (assignment_expression "local_44 = param_4" identifier = identifier) ;) (expression_statement "local_50 = param_2;" (assignment_expression "local_50 = param_2" identifier = identifier) ;) (expression_statement "iVar1 = inflateInit_(local_54,"1.2.11",0x38);" (assignment_expression "iVar1 = inflateInit_(local_54,"1.2.11",0x38)" identifier = (call_expression "inflateInit_(local_54,"1.2.11",0x38)" identifier (argument_list "(local_54,"1.2.11",0x38)" ( identifier , (string_literal ""1.2.11"" " string_content ") , number_literal )))) ;) (while_statement "while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" { (if_statement "if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" if (parenthesized_expression "(local_50 == 0)" ( (binary_expression "local_50 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" { (expression_statement "uVar2 = inflateEnd(local_54);" (assignment_expression "uVar2 = inflateEnd(local_54)" identifier = (call_expression "inflateEnd(local_54)" identifier (argument_list "(local_54)" ( identifier )))) ;) (return_statement "return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);" return (call_expression "CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" identifier (argument_list "((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" ( (call_expression "(int3)((uVar2 | local_44) >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uVar2 | local_44) >> 8)" ( (binary_expression "(uVar2 | local_44) >> 8" (parenthesized_expression "(uVar2 | local_44)" ( (binary_expression "uVar2 | local_44" identifier | identifier) )) >> number_literal) ))) , (binary_expression "(uVar2 | local_44) == 0" (parenthesized_expression "(uVar2 | local_44)" ( (binary_expression "uVar2 | local_44" identifier | identifier) )) == number_literal) ))) ;) })) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_48 = (param_4 - local_44) + param_3;" (assignment_expression "local_48 = (param_4 - local_44) + param_3" identifier = (binary_expression "(param_4 - local_44) + param_3" (parenthesized_expression "(param_4 - local_44)" ( (binary_expression "param_4 - local_44" identifier - identifier) )) + identifier)) ;) (expression_statement "iVar1 = inflate(local_54,4);" (assignment_expression "iVar1 = inflate(local_54,4)" identifier = (call_expression "inflate(local_54,4)" identifier (argument_list "(local_54,4)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = inflateReset(local_54);" (assignment_expression "iVar1 = inflateReset(local_54)" identifier = (call_expression "inflateReset(local_54)" identifier (argument_list "(local_54)" ( identifier )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT | IDENT) )) >> LIT) ))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT | IDENT) )) == LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00141330(undefined4 param_1,int param_2,int param_3,uint param_4)" (identifier "FUN_00141330") (parameter_list "(undefined4 param_1,int param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined1 local_54 [4];\n  int local_50;\n  int local_48;\n  uint local_44;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14133b;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_44 = param_4;\n  local_50 = param_2;\n  iVar1 = inflateInit_(local_54,"1.2.11",0x38);\n  while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined1 local_54 [4];" (type_identifier "undefined1") (array_declarator "local_54 [4]" (identifier "local_54") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "uint local_44;" (type_identifier "uint") (identifier "local_44") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x14133b;" (assignment_expression "uStack_14 = 0x14133b" (identifier "uStack_14") (= "=") (number_literal "0x14133b")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = param_4;" (assignment_expression "local_44 = param_4" (identifier "local_44") (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_50 = param_2;" (assignment_expression "local_50 = param_2" (identifier "local_50") (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar1 = inflateInit_(local_54,"1.2.11",0x38);" (assignment_expression "iVar1 = inflateInit_(local_54,"1.2.11",0x38)" (identifier "iVar1") (= "=") (call_expression "inflateInit_(local_54,"1.2.11",0x38)" (identifier "inflateInit_") (argument_list "(local_54,"1.2.11",0x38)" (( "(") (identifier "local_54") (, ",") (string_literal ""1.2.11"" (" """) (string_content "1.2.11") (" """)) (, ",") (number_literal "0x38") () ")")))) (; ";")) (while_statement "while( true ) {\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }\n    if (iVar1 != 0) break;\n    local_48 = (param_4 - local_44) + param_3;\n    iVar1 = inflate(local_54,4);\n    if (iVar1 != 1) {\n      return 0;\n    }\n    iVar1 = inflateReset(local_54);\n  }" ({ "{") (if_statement "if (local_50 == 0) {\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" (if "if") (parenthesized_expression "(local_50 == 0)" (( "(") (binary_expression "local_50 == 0" (identifier "local_50") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = inflateEnd(local_54);\n      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);\n    }" ({ "{") (expression_statement "uVar2 = inflateEnd(local_54);" (assignment_expression "uVar2 = inflateEnd(local_54)" (identifier "uVar2") (= "=") (call_expression "inflateEnd(local_54)" (identifier "inflateEnd") (argument_list "(local_54)" (( "(") (identifier "local_54") () ")")))) (; ";")) (return_statement "return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);" (return "return") (call_expression "CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" (identifier "CONCAT31") (argument_list "((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0)" (( "(") (call_expression "(int3)((uVar2 | local_44) >> 8)" (parenthesized_expression "(int3)" (( "(") (identifier "int3") () ")")) (argument_list "((uVar2 | local_44) >> 8)" (( "(") (binary_expression "(uVar2 | local_44) >> 8" (parenthesized_expression "(uVar2 | local_44)" (( "(") (binary_expression "uVar2 | local_44" (identifier "uVar2") (| "|") (identifier "local_44")) () ")")) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "(uVar2 | local_44) == 0" (parenthesized_expression "(uVar2 | local_44)" (( "(") (binary_expression "uVar2 | local_44" (identifier "uVar2") (| "|") (identifier "local_44")) () ")")) (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 != 0) break;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_48 = (param_4 - local_44) + param_3;" (assignment_expression "local_48 = (param_4 - local_44) + param_3" (identifier "local_48") (= "=") (binary_expression "(param_4 - local_44) + param_3" (parenthesized_expression "(param_4 - local_44)" (( "(") (binary_expression "param_4 - local_44" (identifier "param_4") (- "-") (identifier "local_44")) () ")")) (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "iVar1 = inflate(local_54,4);" (assignment_expression "iVar1 = inflate(local_54,4)" (identifier "iVar1") (= "=") (call_expression "inflate(local_54,4)" (identifier "inflate") (argument_list "(local_54,4)" (( "(") (identifier "local_54") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar1 != 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = inflateReset(local_54);" (assignment_expression "iVar1 = inflateReset(local_54)" (identifier "iVar1") (= "=") (call_expression "inflateReset(local_54)" (identifier "inflateReset") (argument_list "(local_54)" (( "(") (identifier "local_54") () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

bool __regparm3
gold::zlib_decompress
          (uchar *compressed_data,ulong compressed_size,uchar *var_4,
          ulong var_5)

{
  int var_3;
  type_1 strm;
  
  strm.zalloc = (type_2)0x0;
  strm.zfree = (type_3)0x0;
  strm.opaque = (type_4)0x0;
  strm.avail_out = var_5;
  strm.next_in = compressed_data;
  strm.avail_in = compressed_size;
  var_3 = var_1(&strm,"1.2.11",0x38);
  while( true ) {
    if (strm.avail_in == 0) {
      var_3 = var_2(&strm);
      return var_3 == 0 && strm.avail_out == 0;
    }
    if (var_3 != 0) break;
    strm.next_out = var_4 + (var_5 - strm.avail_out);
    var_3 = var_6(&strm,4);
    if (var_3 != 1) {
      return false;
    }
    var_3 = var_7(&strm);
  }
  return false;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (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 (identifier))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (return_statement (number_literal)))))

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

undefined4 __regparm3 MASKED(undefined4 param_1,int param_2,int param_3,uint param_4)

{
  int iVar1;
  uint uVar2;
  undefined1 local_54 [4];
  int local_50;
  int local_48;
  uint local_44;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 uStack_14;
  
  uStack_14 = 0x14133b;
  local_34 = 0;
  local_30 = 0;
  local_2c = 0;
  local_44 = param_4;
  local_50 = param_2;
  iVar1 = inflateInit_(local_54,"1.2.11",0x38);
  while( true ) {
    if (local_50 == 0) {
      uVar2 = inflateEnd(local_54);
      return CONCAT31((int3)((uVar2 | local_44) >> 8),(uVar2 | local_44) == 0);
    }
    if (iVar1 != 0) break;
    local_48 = (param_4 - local_44) + param_3;
    iVar1 = inflate(local_54,4);
    if (iVar1 != 1) {
      return 0;
    }
    iVar1 = inflateReset(local_54);
  }
  return 0;
}

