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

bfd_boolean __regparm3
uncompress_section_contents(uchar **buffer,dwarf_size_type uncompressed_size,dwarf_size_type *size)

{
  uchar *__ptr;
  uInt in_ECX;
  int iVar1;
  Bytef **ppBVar2;
  z_stream strm;
  
  strm.next_in = *buffer;
  strm.avail_in = *(uInt *)uncompressed_size;
  ppBVar2 = (Bytef **)&strm.total_in;
  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {
    *ppBVar2 = (Bytef *)0x0;
    ppBVar2 = ppBVar2 + 1;
  }
  strm.avail_out = (uInt)size;
  __ptr = (uchar *)xmalloc((size_t)size);
  iVar1 = inflateInit_(&strm,"1.2.11",0x38);
  while (strm.avail_in != 0) {
    if (iVar1 != 0) goto LAB_0001d747;
    strm.next_out = __ptr + ((int)size - strm.avail_out);
    iVar1 = inflate(&strm,4);
    if (iVar1 != 1) goto LAB_0001d747;
    iVar1 = inflateReset(&strm);
  }
  iVar1 = inflateEnd(&strm);
  if (iVar1 == 0 && strm.avail_out == 0) {
    *buffer = __ptr;
    *(uInt *)uncompressed_size = (uInt)size;
    ((uInt *)uncompressed_size)[1] = in_ECX;
    return 1;
  }
LAB_0001d747:
  free(__ptr);
  *buffer = (uchar *)0x0;
  return 0;
}



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

undefined4 __regparm3 FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)

{
  void *__ptr;
  int iVar1;
  int *piVar2;
  undefined4 local_54;
  int local_50;
  int local_4c [14];
  undefined4 uStack_14;
  
  uStack_14 = 0x1d69b;
  local_54 = *param_1;
  local_50 = *param_4;
  piVar2 = local_4c;
  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {
    *piVar2 = 0;
    piVar2 = piVar2 + 1;
  }
  local_4c[2] = param_2;
  __ptr = (void *)FUN_0006b190(param_2);
  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);
  while (local_50 != 0) {
    if (iVar1 != 0) goto LAB_0001d747;
    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;
    iVar1 = inflate(&local_54,4);
    if (iVar1 != 1) goto LAB_0001d747;
    iVar1 = inflateReset(&local_54);
  }
  iVar1 = inflateEnd(&local_54);
  if (iVar1 == 0 && local_4c[2] == 0) {
    *param_1 = __ptr;
    *param_4 = param_2;
    param_4[1] = param_3;
    return 1;
  }
LAB_0001d747:
  free(__ptr);
  *param_1 = 0;
  return 0;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x96965
SUB ESP,0x5c
MOV EDX,dword ptr [ESP + 0x70]
MOV dword ptr [ESP + 0x8],EAX
LEA ESI,[ESP + 0x18]
MOV dword ptr [ESP + 0xc],ECX
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [EDX]
LEA EDX,[ESP + 0x20]
SUB ESP,0xc
MOV dword ptr [ESP + 0xc],EAX
MOV EDI,EDX
XOR EAX,EAX
MOV dword ptr [ESP + 0x10],ECX
MOV ECX,0xc
STOSD.REP ES:EDI
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x34],EBP
MOV dword ptr [ESP + 0x28],ECX
MOV dword ptr [ESP + 0x24],EAX
PUSH EBP
CALL 0x0006b190
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc28b7]
PUSH 0x38
PUSH EAX
PUSH ESI
CALL 0x00013300
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
TEST ECX,ECX
JNZ 0x0001d743
JMP 0x0001d770
MOV EAX,EBP
SUB EAX,dword ptr [ESP + 0x28]
SUB ESP,0x8
ADD EAX,EDI
MOV dword ptr [ESP + 0x2c],EAX
PUSH 0x4
PUSH ESI
CALL 0x00013080
ADD ESP,0x10
CMP EAX,0x1
JNZ 0x0001d747
SUB ESP,0xc
PUSH ESI
CALL 0x00013380
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x0001d770
TEST EAX,EAX
JZ 0x0001d710
SUB ESP,0xc
PUSH EDI
CALL 0x000130a0
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EAX],0x0
ADD ESP,0x5c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00013210
ADD ESP,0x10
OR EAX,dword ptr [ESP + 0x28]
JNZ 0x0001d747
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [ESP + 0x70]
MOV dword ptr [EAX],EBP
MOV dword ptr [EAX + 0x4],EDX
ADD ESP,0x5c
MOV EAX,0x1
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_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)\n\n{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)\n\n{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_4c [14];" primitive_type (array_declarator "local_4c [14]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d69b;" (assignment_expression "uStack_14 = 0x1d69b" identifier = number_literal) ;) (expression_statement "local_54 = *param_1;" (assignment_expression "local_54 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_50 = *param_4;" (assignment_expression "local_50 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "piVar2 = local_4c;" (assignment_expression "piVar2 = local_4c" identifier = identifier) ;) (for_statement "for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0xc" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "local_4c[2] = param_2;" (assignment_expression "local_4c[2] = param_2" (subscript_expression "local_4c[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr = (void *)FUN_0006b190(param_2);" (assignment_expression "__ptr = (void *)FUN_0006b190(param_2)" identifier = (cast_expression "(void *)FUN_0006b190(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(param_2)" identifier (argument_list "(param_2)" ( 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)" ( (pointer_expression "&local_54" & identifier) , (string_literal ""1.2.11"" " string_content ") , number_literal )))) ;) (while_statement "while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" while (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" { (if_statement "if (iVar1 != 0) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;" (assignment_expression "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr" (subscript_expression "local_4c[1]" identifier [ number_literal ]) = (binary_expression "(param_2 - local_4c[2]) + (int)__ptr" (parenthesized_expression "(param_2 - local_4c[2])" ( (binary_expression "param_2 - local_4c[2]" identifier - (subscript_expression "local_4c[2]" identifier [ number_literal ])) )) + (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) 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)" ( (pointer_expression "&local_54" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 1) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "iVar1 = inflateReset(&local_54);" (assignment_expression "iVar1 = inflateReset(&local_54)" identifier = (call_expression "inflateReset(&local_54)" identifier (argument_list "(&local_54)" ( (pointer_expression "&local_54" & identifier) )))) ;) })) (expression_statement "iVar1 = inflateEnd(&local_54);" (assignment_expression "iVar1 = inflateEnd(&local_54)" identifier = (call_expression "inflateEnd(&local_54)" identifier (argument_list "(&local_54)" ( (pointer_expression "&local_54" & identifier) )))) ;) (if_statement "if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0 && local_4c[2] == 0)" ( (binary_expression "iVar1 == 0 && local_4c[2] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "local_4c[2] == 0" (subscript_expression "local_4c[2]" identifier [ number_literal ]) == number_literal)) )) (compound_statement "{\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" { (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_4 = param_2;" (assignment_expression "*param_4 = param_2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = param_3;" (assignment_expression "param_4[1] = param_3" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_0001d747:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nuncompress_section_contents(uchar **buffer,dwarf_size_type uncompressed_size,dwarf_size_type *size)\n\n{\n  uchar *__ptr;\n  uInt in_ECX;\n  int iVar1;\n  Bytef **ppBVar2;\n  z_stream strm;\n  \n  strm.next_in = *buffer;\n  strm.avail_in = *(uInt *)uncompressed_size;\n  ppBVar2 = (Bytef **)&strm.total_in;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *ppBVar2 = (Bytef *)0x0;\n    ppBVar2 = ppBVar2 + 1;\n  }\n  strm.avail_out = (uInt)size;\n  __ptr = (uchar *)xmalloc((size_t)size);\n  iVar1 = inflateInit_(&strm,"1.2.11",0x38);\n  while (strm.avail_in != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    strm.next_out = __ptr + ((int)size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&strm);\n  }\n  iVar1 = inflateEnd(&strm);\n  if (iVar1 == 0 && strm.avail_out == 0) {\n    *buffer = __ptr;\n    *(uInt *)uncompressed_size = (uInt)size;\n    ((uInt *)uncompressed_size)[1] = in_ECX;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *buffer = (uchar *)0x0;\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nuncompress_section_contents(uchar **buffer,dwarf_size_type uncompressed_size,dwarf_size_type *size)\n\n{\n  uchar *__ptr;\n  uInt in_ECX;\n  int iVar1;\n  Bytef **ppBVar2;\n  z_stream strm;\n  \n  strm.next_in = *buffer;\n  strm.avail_in = *(uInt *)uncompressed_size;\n  ppBVar2 = (Bytef **)&strm.total_in;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *ppBVar2 = (Bytef *)0x0;\n    ppBVar2 = ppBVar2 + 1;\n  }\n  strm.avail_out = (uInt)size;\n  __ptr = (uchar *)xmalloc((size_t)size);\n  iVar1 = inflateInit_(&strm,"1.2.11",0x38);\n  while (strm.avail_in != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    strm.next_out = __ptr + ((int)size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&strm);\n  }\n  iVar1 = inflateEnd(&strm);\n  if (iVar1 == 0 && strm.avail_out == 0) {\n    *buffer = __ptr;\n    *(uInt *)uncompressed_size = (uInt)size;\n    ((uInt *)uncompressed_size)[1] = in_ECX;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *buffer = (uchar *)0x0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "uncompress_section_contents(uchar **buffer,dwarf_size_type uncompressed_size,dwarf_size_type *size)" identifier (parameter_list "(uchar **buffer,dwarf_size_type uncompressed_size,dwarf_size_type *size)" ( (parameter_declaration "uchar **buffer" type_identifier (pointer_declarator "**buffer" * (pointer_declarator "*buffer" * identifier))) , (parameter_declaration "dwarf_size_type uncompressed_size" type_identifier identifier) , (parameter_declaration "dwarf_size_type *size" type_identifier (pointer_declarator "*size" * identifier)) ))) (compound_statement "{\n  uchar *__ptr;\n  uInt in_ECX;\n  int iVar1;\n  Bytef **ppBVar2;\n  z_stream strm;\n  \n  strm.next_in = *buffer;\n  strm.avail_in = *(uInt *)uncompressed_size;\n  ppBVar2 = (Bytef **)&strm.total_in;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *ppBVar2 = (Bytef *)0x0;\n    ppBVar2 = ppBVar2 + 1;\n  }\n  strm.avail_out = (uInt)size;\n  __ptr = (uchar *)xmalloc((size_t)size);\n  iVar1 = inflateInit_(&strm,"1.2.11",0x38);\n  while (strm.avail_in != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    strm.next_out = __ptr + ((int)size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&strm);\n  }\n  iVar1 = inflateEnd(&strm);\n  if (iVar1 == 0 && strm.avail_out == 0) {\n    *buffer = __ptr;\n    *(uInt *)uncompressed_size = (uInt)size;\n    ((uInt *)uncompressed_size)[1] = in_ECX;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *buffer = (uchar *)0x0;\n  return 0;\n}" { (declaration "uchar *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "uInt in_ECX;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "Bytef **ppBVar2;" type_identifier (pointer_declarator "**ppBVar2" * (pointer_declarator "*ppBVar2" * identifier)) ;) (declaration "z_stream strm;" type_identifier identifier ;) (expression_statement "strm.next_in = *buffer;" (assignment_expression "strm.next_in = *buffer" (field_expression "strm.next_in" identifier . field_identifier) = (pointer_expression "*buffer" * identifier)) ;) (expression_statement "strm.avail_in = *(uInt *)uncompressed_size;" (assignment_expression "strm.avail_in = *(uInt *)uncompressed_size" (field_expression "strm.avail_in" identifier . field_identifier) = (pointer_expression "*(uInt *)uncompressed_size" * (cast_expression "(uInt *)uncompressed_size" ( (type_descriptor "uInt *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "ppBVar2 = (Bytef **)&strm.total_in;" (assignment_expression "ppBVar2 = (Bytef **)&strm.total_in" identifier = (cast_expression "(Bytef **)&strm.total_in" ( (type_descriptor "Bytef **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&strm.total_in" & (field_expression "strm.total_in" identifier . field_identifier)))) ;) (for_statement "for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *ppBVar2 = (Bytef *)0x0;\n    ppBVar2 = ppBVar2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0xc" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *ppBVar2 = (Bytef *)0x0;\n    ppBVar2 = ppBVar2 + 1;\n  }" { (expression_statement "*ppBVar2 = (Bytef *)0x0;" (assignment_expression "*ppBVar2 = (Bytef *)0x0" (pointer_expression "*ppBVar2" * identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppBVar2 = ppBVar2 + 1;" (assignment_expression "ppBVar2 = ppBVar2 + 1" identifier = (binary_expression "ppBVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "strm.avail_out = (uInt)size;" (assignment_expression "strm.avail_out = (uInt)size" (field_expression "strm.avail_out" identifier . field_identifier) = (cast_expression "(uInt)size" ( (type_descriptor "uInt" type_identifier) ) identifier)) ;) (expression_statement "__ptr = (uchar *)xmalloc((size_t)size);" (assignment_expression "__ptr = (uchar *)xmalloc((size_t)size)" identifier = (cast_expression "(uchar *)xmalloc((size_t)size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc((size_t)size)" identifier (argument_list "((size_t)size)" ( (cast_expression "(size_t)size" ( (type_descriptor "size_t" primitive_type) ) 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 (strm.avail_in != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    strm.next_out = __ptr + ((int)size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&strm);\n  }" while (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    if (iVar1 != 0) goto LAB_0001d747;\n    strm.next_out = __ptr + ((int)size - strm.avail_out);\n    iVar1 = inflate(&strm,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&strm);\n  }" { (if_statement "if (iVar1 != 0) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "strm.next_out = __ptr + ((int)size - strm.avail_out);" (assignment_expression "strm.next_out = __ptr + ((int)size - strm.avail_out)" (field_expression "strm.next_out" identifier . field_identifier) = (binary_expression "__ptr + ((int)size - strm.avail_out)" identifier + (parenthesized_expression "((int)size - strm.avail_out)" ( (binary_expression "(int)size - strm.avail_out" (cast_expression "(int)size" ( (type_descriptor "int" primitive_type) ) 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) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "iVar1 = inflateReset(&strm);" (assignment_expression "iVar1 = inflateReset(&strm)" identifier = (call_expression "inflateReset(&strm)" identifier (argument_list "(&strm)" ( (pointer_expression "&strm" & identifier) )))) ;) })) (expression_statement "iVar1 = inflateEnd(&strm);" (assignment_expression "iVar1 = inflateEnd(&strm)" identifier = (call_expression "inflateEnd(&strm)" identifier (argument_list "(&strm)" ( (pointer_expression "&strm" & identifier) )))) ;) (if_statement "if (iVar1 == 0 && strm.avail_out == 0) {\n    *buffer = __ptr;\n    *(uInt *)uncompressed_size = (uInt)size;\n    ((uInt *)uncompressed_size)[1] = in_ECX;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0 && strm.avail_out == 0)" ( (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)) )) (compound_statement "{\n    *buffer = __ptr;\n    *(uInt *)uncompressed_size = (uInt)size;\n    ((uInt *)uncompressed_size)[1] = in_ECX;\n    return 1;\n  }" { (expression_statement "*buffer = __ptr;" (assignment_expression "*buffer = __ptr" (pointer_expression "*buffer" * identifier) = identifier) ;) (expression_statement "*(uInt *)uncompressed_size = (uInt)size;" (assignment_expression "*(uInt *)uncompressed_size = (uInt)size" (pointer_expression "*(uInt *)uncompressed_size" * (cast_expression "(uInt *)uncompressed_size" ( (type_descriptor "uInt *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(uInt)size" ( (type_descriptor "uInt" type_identifier) ) identifier)) ;) (expression_statement "((uInt *)uncompressed_size)[1] = in_ECX;" (assignment_expression "((uInt *)uncompressed_size)[1] = in_ECX" (subscript_expression "((uInt *)uncompressed_size)[1]" (parenthesized_expression "((uInt *)uncompressed_size)" ( (cast_expression "(uInt *)uncompressed_size" ( (type_descriptor "uInt *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_0001d747:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (expression_statement "*buffer = (uchar *)0x0;" (assignment_expression "*buffer = (uchar *)0x0" (pointer_expression "*buffer" * identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)\n\n{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)\n\n{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_4c [14];" primitive_type (array_declarator "local_4c [14]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d69b;" (assignment_expression "uStack_14 = 0x1d69b" identifier = number_literal) ;) (expression_statement "local_54 = *param_1;" (assignment_expression "local_54 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_50 = *param_4;" (assignment_expression "local_50 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "piVar2 = local_4c;" (assignment_expression "piVar2 = local_4c" identifier = identifier) ;) (for_statement "for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0xc" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "local_4c[2] = param_2;" (assignment_expression "local_4c[2] = param_2" (subscript_expression "local_4c[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr = (void *)FUN_0006b190(param_2);" (assignment_expression "__ptr = (void *)FUN_0006b190(param_2)" identifier = (cast_expression "(void *)FUN_0006b190(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(param_2)" identifier (argument_list "(param_2)" ( 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)" ( (pointer_expression "&local_54" & identifier) , (string_literal ""1.2.11"" " string_content ") , number_literal )))) ;) (while_statement "while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" while (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" { (if_statement "if (iVar1 != 0) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;" (assignment_expression "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr" (subscript_expression "local_4c[1]" identifier [ number_literal ]) = (binary_expression "(param_2 - local_4c[2]) + (int)__ptr" (parenthesized_expression "(param_2 - local_4c[2])" ( (binary_expression "param_2 - local_4c[2]" identifier - (subscript_expression "local_4c[2]" identifier [ number_literal ])) )) + (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) 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)" ( (pointer_expression "&local_54" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 1) goto LAB_0001d747;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_0001d747;" goto statement_identifier ;)) (expression_statement "iVar1 = inflateReset(&local_54);" (assignment_expression "iVar1 = inflateReset(&local_54)" identifier = (call_expression "inflateReset(&local_54)" identifier (argument_list "(&local_54)" ( (pointer_expression "&local_54" & identifier) )))) ;) })) (expression_statement "iVar1 = inflateEnd(&local_54);" (assignment_expression "iVar1 = inflateEnd(&local_54)" identifier = (call_expression "inflateEnd(&local_54)" identifier (argument_list "(&local_54)" ( (pointer_expression "&local_54" & identifier) )))) ;) (if_statement "if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0 && local_4c[2] == 0)" ( (binary_expression "iVar1 == 0 && local_4c[2] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "local_4c[2] == 0" (subscript_expression "local_4c[2]" identifier [ number_literal ]) == number_literal)) )) (compound_statement "{\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" { (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_4 = param_2;" (assignment_expression "*param_4 = param_2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = param_3;" (assignment_expression "param_4[1] = param_3" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_0001d747:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , LIT )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) )) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)\n\n{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001d690(undefined4 *param_1,int param_2,int param_3,int *param_4)" (identifier "FUN_0001d690") (parameter_list "(undefined4 *param_1,int param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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 "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  int *piVar2;\n  undefined4 local_54;\n  int local_50;\n  int local_4c [14];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d69b;\n  local_54 = *param_1;\n  local_50 = *param_4;\n  piVar2 = local_4c;\n  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }\n  local_4c[2] = param_2;\n  __ptr = (void *)FUN_0006b190(param_2);\n  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);\n  while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }\n  iVar1 = inflateEnd(&local_54);\n  if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }\nLAB_0001d747:\n  free(__ptr);\n  *param_1 = 0;\n  return 0;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 local_54;" (type_identifier "undefined4") (identifier "local_54") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "int local_4c [14];" (primitive_type "int") (array_declarator "local_4c [14]" (identifier "local_4c") ([ "[") (number_literal "14") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1d69b;" (assignment_expression "uStack_14 = 0x1d69b" (identifier "uStack_14") (= "=") (number_literal "0x1d69b")) (; ";")) (expression_statement "local_54 = *param_1;" (assignment_expression "local_54 = *param_1" (identifier "local_54") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "local_50 = *param_4;" (assignment_expression "local_50 = *param_4" (identifier "local_50") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "piVar2 = local_4c;" (assignment_expression "piVar2 = local_4c" (identifier "piVar2") (= "=") (identifier "local_4c")) (; ";")) (for_statement "for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar1 = 0xc" (identifier "iVar1") (= "=") (number_literal "0xc")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *piVar2 = 0;\n    piVar2 = piVar2 + 1;\n  }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_4c[2] = param_2;" (assignment_expression "local_4c[2] = param_2" (subscript_expression "local_4c[2]" (identifier "local_4c") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "__ptr = (void *)FUN_0006b190(param_2);" (assignment_expression "__ptr = (void *)FUN_0006b190(param_2)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0006b190(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0006b190(param_2)" (identifier "FUN_0006b190") (argument_list "(param_2)" (( "(") (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)" (( "(") (pointer_expression "&local_54" (& "&") (identifier "local_54")) (, ",") (string_literal ""1.2.11"" (" """) (string_content "1.2.11") (" """)) (, ",") (number_literal "0x38") () ")")))) (; ";")) (while_statement "while (local_50 != 0) {\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" (while "while") (parenthesized_expression "(local_50 != 0)" (( "(") (binary_expression "local_50 != 0" (identifier "local_50") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar1 != 0) goto LAB_0001d747;\n    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;\n    iVar1 = inflate(&local_54,4);\n    if (iVar1 != 1) goto LAB_0001d747;\n    iVar1 = inflateReset(&local_54);\n  }" ({ "{") (if_statement "if (iVar1 != 0) goto LAB_0001d747;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001d747;" (goto "goto") (statement_identifier "LAB_0001d747") (; ";"))) (expression_statement "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;" (assignment_expression "local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr" (subscript_expression "local_4c[1]" (identifier "local_4c") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(param_2 - local_4c[2]) + (int)__ptr" (parenthesized_expression "(param_2 - local_4c[2])" (( "(") (binary_expression "param_2 - local_4c[2]" (identifier "param_2") (- "-") (subscript_expression "local_4c[2]" (identifier "local_4c") ([ "[") (number_literal "2") (] "]"))) () ")")) (+ "+") (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")))) (; ";")) (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)" (( "(") (pointer_expression "&local_54" (& "&") (identifier "local_54")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar1 != 1) goto LAB_0001d747;" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_0001d747;" (goto "goto") (statement_identifier "LAB_0001d747") (; ";"))) (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)" (( "(") (pointer_expression "&local_54" (& "&") (identifier "local_54")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar1 = inflateEnd(&local_54);" (assignment_expression "iVar1 = inflateEnd(&local_54)" (identifier "iVar1") (= "=") (call_expression "inflateEnd(&local_54)" (identifier "inflateEnd") (argument_list "(&local_54)" (( "(") (pointer_expression "&local_54" (& "&") (identifier "local_54")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0 && local_4c[2] == 0) {\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0 && local_4c[2] == 0)" (( "(") (binary_expression "iVar1 == 0 && local_4c[2] == 0" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "local_4c[2] == 0" (subscript_expression "local_4c[2]" (identifier "local_4c") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    *param_1 = __ptr;\n    *param_4 = param_2;\n    param_4[1] = param_3;\n    return 1;\n  }" ({ "{") (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "*param_4 = param_2;" (assignment_expression "*param_4 = param_2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_4[1] = param_3;" (assignment_expression "param_4[1] = param_3" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (labeled_statement "LAB_0001d747:\n  free(__ptr);" (statement_identifier "LAB_0001d747") (: ":") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 **buffer,type_3 uncompressed_size,type_3 *size)

{
  type_2 *var_5;
  type_4 in_ECX;
  int var_1;
  type_5 **var_2;
  type_6 strm;
  
  strm.next_in = *buffer;
  strm.avail_in = *(type_4 *)uncompressed_size;
  var_2 = (type_5 **)&strm.total_in;
  for (var_1 = 0xc; var_1 != 0; var_1 = var_1 + -1) {
    *var_2 = (type_5 *)0x0;
    var_2 = var_2 + 1;
  }
  strm.avail_out = (type_4)size;
  var_5 = (type_2 *)var_3((size_t)size);
  var_1 = var_4(&strm,"1.2.11",0x38);
  while (strm.avail_in != 0) {
    if (var_1 != 0) goto LAB_0001d747;
    strm.next_out = var_5 + ((int)size - strm.avail_out);
    var_1 = var_6(&strm,4);
    if (var_1 != 1) goto LAB_0001d747;
    var_1 = var_7(&strm);
  }
  var_1 = var_8(&strm);
  if (var_1 == 0 && strm.avail_out == 0) {
    *buffer = var_5;
    *(type_4 *)uncompressed_size = (type_4)size;
    ((type_4 *)uncompressed_size)[1] = in_ECX;
    return 1;
  }
LAB_0001d747:
  var_9(var_5);
  *buffer = (type_2 *)0x0;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (number_literal))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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 (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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,int *param_4)

{
  void *__ptr;
  int iVar1;
  int *piVar2;
  undefined4 local_54;
  int local_50;
  int local_4c [14];
  undefined4 uStack_14;
  
  uStack_14 = 0x1d69b;
  local_54 = *param_1;
  local_50 = *param_4;
  piVar2 = local_4c;
  for (iVar1 = 0xc; iVar1 != 0; iVar1 = iVar1 + -1) {
    *piVar2 = 0;
    piVar2 = piVar2 + 1;
  }
  local_4c[2] = param_2;
  __ptr = (void *)FUN_0006b190(param_2);
  iVar1 = inflateInit_(&local_54,"1.2.11",0x38);
  while (local_50 != 0) {
    if (iVar1 != 0) goto LAB_0001d747;
    local_4c[1] = (param_2 - local_4c[2]) + (int)__ptr;
    iVar1 = inflate(&local_54,4);
    if (iVar1 != 1) goto LAB_0001d747;
    iVar1 = inflateReset(&local_54);
  }
  iVar1 = inflateEnd(&local_54);
  if (iVar1 == 0 && local_4c[2] == 0) {
    *param_1 = __ptr;
    *param_4 = param_2;
    param_4[1] = param_3;
    return 1;
  }
LAB_0001d747:
  free(__ptr);
  *param_1 = 0;
  return 0;
}

