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

int compress_data(z_stream_s *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)

{
  int iVar1;
  
  strm->next_in = (Bytef *)*next_in;
  strm->avail_in = *avail_in;
  strm->next_out = (Bytef *)*next_out;
  strm->avail_out = *avail_out;
  iVar1 = deflate(strm,0);
  if (iVar1 == 0) {
    iVar1 = *avail_out - strm->avail_out;
    *next_in = (char *)strm->next_in;
    *avail_in = strm->avail_in;
    *next_out = (char *)strm->next_out;
    *avail_out = strm->avail_out;
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}



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

int FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,
                int *param_5)

{
  int iVar1;
  
  *param_1 = *param_2;
  param_1[1] = *param_3;
  param_1[3] = *param_4;
  param_1[4] = *param_5;
  iVar1 = deflate(param_1,0);
  if (iVar1 == 0) {
    iVar1 = *param_5 - param_1[4];
    *param_2 = *param_1;
    *param_3 = param_1[1];
    *param_4 = param_1[3];
    *param_5 = param_1[4];
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015040
ADD EBX,0x54af7
SUB ESP,0x14
MOV EBP,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EBP]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESI]
MOV dword ptr [EDI + 0x10],EAX
PUSH 0x0
PUSH EDI
CALL 0x00013240
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017578
MOV EBX,dword ptr [EDI]
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [ESP + 0x28]
SUB EAX,dword ptr [EDI + 0x10]
MOV dword ptr [EBP],EBX
MOV EBX,dword ptr [EDI + 0x4]
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ECX],EBX
MOV EBX,dword ptr [EDI + 0xc]
MOV dword ptr [EDX],EBX
MOV EDX,dword ptr [EDI + 0x10]
MOV dword ptr [ESI],EDX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0xffffffff
JMP 0x0001756a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)\n\n{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)\n\n{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[1] = *param_3;" (assignment_expression "param_1[1] = *param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_1[3] = *param_4;" (assignment_expression "param_1[3] = *param_4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "param_1[4] = *param_5;" (assignment_expression "param_1[4] = *param_5" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "iVar1 = deflate(param_1,0);" (assignment_expression "iVar1 = deflate(param_1,0)" identifier = (call_expression "deflate(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }" { (expression_statement "iVar1 = *param_5 - param_1[4];" (assignment_expression "iVar1 = *param_5 - param_1[4]" identifier = (binary_expression "*param_5 - param_1[4]" (pointer_expression "*param_5" * identifier) - (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_3 = param_1[1];" (assignment_expression "*param_3 = param_1[1]" (pointer_expression "*param_3" * identifier) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_4 = param_1[3];" (assignment_expression "*param_4 = param_1[3]" (pointer_expression "*param_4" * identifier) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*param_5 = param_1[4];" (assignment_expression "*param_5 = param_1[4]" (pointer_expression "*param_5" * identifier) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint compress_data(z_stream_s *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)\n\n{\n  int iVar1;\n  \n  strm->next_in = (Bytef *)*next_in;\n  strm->avail_in = *avail_in;\n  strm->next_out = (Bytef *)*next_out;\n  strm->avail_out = *avail_out;\n  iVar1 = deflate(strm,0);\n  if (iVar1 == 0) {\n    iVar1 = *avail_out - strm->avail_out;\n    *next_in = (char *)strm->next_in;\n    *avail_in = strm->avail_in;\n    *next_out = (char *)strm->next_out;\n    *avail_out = strm->avail_out;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int compress_data(z_stream_s *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)\n\n{\n  int iVar1;\n  \n  strm->next_in = (Bytef *)*next_in;\n  strm->avail_in = *avail_in;\n  strm->next_out = (Bytef *)*next_out;\n  strm->avail_out = *avail_out;\n  iVar1 = deflate(strm,0);\n  if (iVar1 == 0) {\n    iVar1 = *avail_out - strm->avail_out;\n    *next_in = (char *)strm->next_in;\n    *avail_in = strm->avail_in;\n    *next_out = (char *)strm->next_out;\n    *avail_out = strm->avail_out;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "compress_data(z_stream_s *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)" identifier (parameter_list "(z_stream_s *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)" ( (parameter_declaration "z_stream_s *strm" type_identifier (pointer_declarator "*strm" * identifier)) , (parameter_declaration "char **next_in" primitive_type (pointer_declarator "**next_in" * (pointer_declarator "*next_in" * identifier))) , (parameter_declaration "int *avail_in" primitive_type (pointer_declarator "*avail_in" * identifier)) , (parameter_declaration "char **next_out" primitive_type (pointer_declarator "**next_out" * (pointer_declarator "*next_out" * identifier))) , (parameter_declaration "int *avail_out" primitive_type (pointer_declarator "*avail_out" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  strm->next_in = (Bytef *)*next_in;\n  strm->avail_in = *avail_in;\n  strm->next_out = (Bytef *)*next_out;\n  strm->avail_out = *avail_out;\n  iVar1 = deflate(strm,0);\n  if (iVar1 == 0) {\n    iVar1 = *avail_out - strm->avail_out;\n    *next_in = (char *)strm->next_in;\n    *avail_in = strm->avail_in;\n    *next_out = (char *)strm->next_out;\n    *avail_out = strm->avail_out;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "strm->next_in = (Bytef *)*next_in;" (assignment_expression "strm->next_in = (Bytef *)*next_in" (field_expression "strm->next_in" identifier -> field_identifier) = (cast_expression "(Bytef *)*next_in" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*next_in" * identifier))) ;) (expression_statement "strm->avail_in = *avail_in;" (assignment_expression "strm->avail_in = *avail_in" (field_expression "strm->avail_in" identifier -> field_identifier) = (pointer_expression "*avail_in" * identifier)) ;) (expression_statement "strm->next_out = (Bytef *)*next_out;" (assignment_expression "strm->next_out = (Bytef *)*next_out" (field_expression "strm->next_out" identifier -> field_identifier) = (cast_expression "(Bytef *)*next_out" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*next_out" * identifier))) ;) (expression_statement "strm->avail_out = *avail_out;" (assignment_expression "strm->avail_out = *avail_out" (field_expression "strm->avail_out" identifier -> field_identifier) = (pointer_expression "*avail_out" * identifier)) ;) (expression_statement "iVar1 = deflate(strm,0);" (assignment_expression "iVar1 = deflate(strm,0)" identifier = (call_expression "deflate(strm,0)" identifier (argument_list "(strm,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *avail_out - strm->avail_out;\n    *next_in = (char *)strm->next_in;\n    *avail_in = strm->avail_in;\n    *next_out = (char *)strm->next_out;\n    *avail_out = strm->avail_out;\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *avail_out - strm->avail_out;\n    *next_in = (char *)strm->next_in;\n    *avail_in = strm->avail_in;\n    *next_out = (char *)strm->next_out;\n    *avail_out = strm->avail_out;\n  }" { (expression_statement "iVar1 = *avail_out - strm->avail_out;" (assignment_expression "iVar1 = *avail_out - strm->avail_out" identifier = (binary_expression "*avail_out - strm->avail_out" (pointer_expression "*avail_out" * identifier) - (field_expression "strm->avail_out" identifier -> field_identifier))) ;) (expression_statement "*next_in = (char *)strm->next_in;" (assignment_expression "*next_in = (char *)strm->next_in" (pointer_expression "*next_in" * identifier) = (cast_expression "(char *)strm->next_in" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "strm->next_in" identifier -> field_identifier))) ;) (expression_statement "*avail_in = strm->avail_in;" (assignment_expression "*avail_in = strm->avail_in" (pointer_expression "*avail_in" * identifier) = (field_expression "strm->avail_in" identifier -> field_identifier)) ;) (expression_statement "*next_out = (char *)strm->next_out;" (assignment_expression "*next_out = (char *)strm->next_out" (pointer_expression "*next_out" * identifier) = (cast_expression "(char *)strm->next_out" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "strm->next_out" identifier -> field_identifier))) ;) (expression_statement "*avail_out = strm->avail_out;" (assignment_expression "*avail_out = strm->avail_out" (pointer_expression "*avail_out" * identifier) = (field_expression "strm->avail_out" identifier -> field_identifier)) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)\n\n{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)\n\n{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1[1] = *param_3;" (assignment_expression "param_1[1] = *param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_1[3] = *param_4;" (assignment_expression "param_1[3] = *param_4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "param_1[4] = *param_5;" (assignment_expression "param_1[4] = *param_5" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "iVar1 = deflate(param_1,0);" (assignment_expression "iVar1 = deflate(param_1,0)" identifier = (call_expression "deflate(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }" { (expression_statement "iVar1 = *param_5 - param_1[4];" (assignment_expression "iVar1 = *param_5 - param_1[4]" identifier = (binary_expression "*param_5 - param_1[4]" (pointer_expression "*param_5" * identifier) - (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_3 = param_1[1];" (assignment_expression "*param_3 = param_1[1]" (pointer_expression "*param_3" * identifier) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_4 = param_1[3];" (assignment_expression "*param_4 = param_1[3]" (pointer_expression "*param_4" * identifier) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*param_5 = param_1[4];" (assignment_expression "*param_5 = param_1[4]" (pointer_expression "*param_5" * identifier) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)\n\n{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00017500(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" (identifier "FUN_00017500") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4,\n                int *param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  *param_1 = *param_2;\n  param_1[1] = *param_3;\n  param_1[3] = *param_4;\n  param_1[4] = *param_5;\n  iVar1 = deflate(param_1,0);\n  if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_1[1] = *param_3;" (assignment_expression "param_1[1] = *param_3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "param_1[3] = *param_4;" (assignment_expression "param_1[3] = *param_4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "param_1[4] = *param_5;" (assignment_expression "param_1[4] = *param_5" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "iVar1 = deflate(param_1,0);" (assignment_expression "iVar1 = deflate(param_1,0)" (identifier "iVar1") (= "=") (call_expression "deflate(param_1,0)" (identifier "deflate") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }\n  else {\n    iVar1 = -1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *param_5 - param_1[4];\n    *param_2 = *param_1;\n    *param_3 = param_1[1];\n    *param_4 = param_1[3];\n    *param_5 = param_1[4];\n  }" ({ "{") (expression_statement "iVar1 = *param_5 - param_1[4];" (assignment_expression "iVar1 = *param_5 - param_1[4]" (identifier "iVar1") (= "=") (binary_expression "*param_5 - param_1[4]" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (- "-") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_3 = param_1[1];" (assignment_expression "*param_3 = param_1[1]" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_4 = param_1[3];" (assignment_expression "*param_4 = param_1[3]" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*param_5 = param_1[4];" (assignment_expression "*param_5 = param_1[4]" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = -1;\n  }" (else "else") (compound_statement "{\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int function_1(type_1 *strm,char **next_in,int *avail_in,char **next_out,int *avail_out)

{
  int var_2;
  
  strm->next_in = (type_2 *)*next_in;
  strm->avail_in = *avail_in;
  strm->next_out = (type_2 *)*next_out;
  strm->avail_out = *avail_out;
  var_2 = var_1(strm,0);
  if (var_2 == 0) {
    var_2 = *avail_out - strm->avail_out;
    *next_in = (char *)strm->next_in;
    *avail_in = strm->avail_in;
    *next_out = (char *)strm->next_out;
    *avail_out = strm->avail_out;
  }
  else {
    var_2 = -1;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

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

{
  int iVar1;
  
  *param_1 = *param_2;
  param_1[1] = *param_3;
  param_1[3] = *param_4;
  param_1[4] = *param_5;
  iVar1 = deflate(param_1,0);
  if (iVar1 == 0) {
    iVar1 = *param_5 - param_1[4];
    *param_2 = *param_1;
    *param_3 = param_1[1];
    *param_4 = param_1[3];
    *param_5 = param_1[4];
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}

