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

void png_destroy_write_struct(png_structpp png_ptr_ptr,png_infopp info_ptr_ptr)

{
  png_const_structrp png_ptr;
  
  if ((png_ptr_ptr != (png_structpp)0x0) &&
     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)) {
    png_destroy_info_struct(png_ptr,info_ptr_ptr);
    *png_ptr_ptr = (png_struct *)0x0;
    if ((png_ptr->flags & 2) != 0) {
      deflateEnd(&png_ptr->zstream);
    }
    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);
    png_free(png_ptr,png_ptr->row_buf);
    png_ptr->row_buf = (png_bytep)0x0;
    png_free(png_ptr,png_ptr->prev_row);
    png_free(png_ptr,png_ptr->try_row);
    png_free(png_ptr,png_ptr->tst_row);
    png_ptr->prev_row = (png_bytep)0x0;
    png_ptr->try_row = (png_bytep)0x0;
    png_ptr->tst_row = (png_bytep)0x0;
    png_free(png_ptr,png_ptr->chunk_list);
    png_ptr->chunk_list = (png_bytep)0x0;
    png_destroy_png_struct(png_ptr);
  }
  return;
}



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

void png_destroy_write_struct(int *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {
    png_destroy_info_struct(iVar1,param_2);
    *param_1 = 0;
    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {
      deflateEnd(iVar1 + 0xe0);
    }
    FUN_00037240(iVar1,iVar1 + 0x118);
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));
    *(undefined4 *)(iVar1 + 0x180) = 0;
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));
    *(undefined4 *)(iVar1 + 0x17c) = 0;
    *(undefined4 *)(iVar1 + 0x184) = 0;
    *(undefined4 *)(iVar1 + 0x188) = 0;
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));
    *(undefined4 *)(iVar1 + 0x2a0) = 0;
    FUN_0001c270(iVar1);
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00014970
ADD EBX,0x19234
TEST EDI,EDI
JZ 0x00034c1a
MOV ESI,dword ptr [EDI]
TEST ESI,ESI
JZ 0x00034c1a
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x000145b0
MOV dword ptr [EDI],0x0
ADD ESP,0x10
TEST byte ptr [ESI + 0xd4],0x2
JNZ 0x00034c20
SUB ESP,0x8
LEA EAX,[ESI + 0x118]
PUSH EAX
PUSH ESI
CALL 0x00037240
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x180]
PUSH ESI
CALL 0x000147f0
MOV dword ptr [ESI + 0x180],0x0
POP ECX
POP EDI
PUSH dword ptr [ESI + 0x17c]
PUSH ESI
CALL 0x000147f0
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x184]
PUSH ESI
CALL 0x000147f0
POP ECX
POP EDI
PUSH dword ptr [ESI + 0x188]
PUSH ESI
CALL 0x000147f0
MOV dword ptr [ESI + 0x17c],0x0
MOV dword ptr [ESI + 0x184],0x0
MOV dword ptr [ESI + 0x188],0x0
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x2a0]
PUSH ESI
CALL 0x000147f0
MOV dword ptr [ESI + 0x2a0],0x0
MOV dword ptr [ESP],ESI
CALL 0x0001c270
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
LEA EAX,[ESI + 0xe0]
PUSH EAX
CALL 0x000146c0
ADD ESP,0x10
JMP 0x00034b87
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid png_destroy_write_struct(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}\n\n" comment (function_definition "void png_destroy_write_struct(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "png_destroy_write_struct(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0))" ( (binary_expression "(param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)" (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = *param_1, iVar1 != 0)" ( (comma_expression "iVar1 = *param_1, iVar1 != 0" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" { (expression_statement "png_destroy_info_struct(iVar1,param_2);" (call_expression "png_destroy_info_struct(iVar1,param_2)" identifier (argument_list "(iVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }" if (parenthesized_expression "((*(byte *)(iVar1 + 0xd4) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0xd4) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xd4) & 2)" ( (binary_expression "*(byte *)(iVar1 + 0xd4) & 2" (pointer_expression "*(byte *)(iVar1 + 0xd4)" * (cast_expression "(byte *)(iVar1 + 0xd4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xd4)" ( (binary_expression "iVar1 + 0xd4" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      deflateEnd(iVar1 + 0xe0);\n    }" { (expression_statement "deflateEnd(iVar1 + 0xe0);" (call_expression "deflateEnd(iVar1 + 0xe0)" identifier (argument_list "(iVar1 + 0xe0)" ( (binary_expression "iVar1 + 0xe0" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00037240(iVar1,iVar1 + 0x118);" (call_expression "FUN_00037240(iVar1,iVar1 + 0x118)" identifier (argument_list "(iVar1,iVar1 + 0x118)" ( identifier , (binary_expression "iVar1 + 0x118" identifier + number_literal) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x180))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" * (cast_expression "(undefined4 *)(iVar1 + 0x180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x180)" ( (binary_expression "iVar1 + 0x180" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x180) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x180) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" * (cast_expression "(undefined4 *)(iVar1 + 0x180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x180)" ( (binary_expression "iVar1 + 0x180" identifier + number_literal) )))) = number_literal) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x17c))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" * (cast_expression "(undefined4 *)(iVar1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x17c)" ( (binary_expression "iVar1 + 0x17c" identifier + number_literal) )))) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x184))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" * (cast_expression "(undefined4 *)(iVar1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x184)" ( (binary_expression "iVar1 + 0x184" identifier + number_literal) )))) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x188))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" * (cast_expression "(undefined4 *)(iVar1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x188)" ( (binary_expression "iVar1 + 0x188" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" * (cast_expression "(undefined4 *)(iVar1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x17c)" ( (binary_expression "iVar1 + 0x17c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x184) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x184) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" * (cast_expression "(undefined4 *)(iVar1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x184)" ( (binary_expression "iVar1 + 0x184" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" * (cast_expression "(undefined4 *)(iVar1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x188)" ( (binary_expression "iVar1 + 0x188" identifier + number_literal) )))) = number_literal) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" * (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a0)" ( (binary_expression "iVar1 + 0x2a0" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x2a0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2a0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" * (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a0)" ( (binary_expression "iVar1 + 0x2a0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0001c270(iVar1);" (call_expression "FUN_0001c270(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid png_destroy_write_struct(png_structpp png_ptr_ptr,png_infopp info_ptr_ptr)\n\n{\n  png_const_structrp png_ptr;\n  \n  if ((png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)) {\n    png_destroy_info_struct(png_ptr,info_ptr_ptr);\n    *png_ptr_ptr = (png_struct *)0x0;\n    if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }\n    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);\n    png_free(png_ptr,png_ptr->row_buf);\n    png_ptr->row_buf = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->prev_row);\n    png_free(png_ptr,png_ptr->try_row);\n    png_free(png_ptr,png_ptr->tst_row);\n    png_ptr->prev_row = (png_bytep)0x0;\n    png_ptr->try_row = (png_bytep)0x0;\n    png_ptr->tst_row = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->chunk_list);\n    png_ptr->chunk_list = (png_bytep)0x0;\n    png_destroy_png_struct(png_ptr);\n  }\n  return;\n}\n\n" comment comment (function_definition "void png_destroy_write_struct(png_structpp png_ptr_ptr,png_infopp info_ptr_ptr)\n\n{\n  png_const_structrp png_ptr;\n  \n  if ((png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)) {\n    png_destroy_info_struct(png_ptr,info_ptr_ptr);\n    *png_ptr_ptr = (png_struct *)0x0;\n    if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }\n    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);\n    png_free(png_ptr,png_ptr->row_buf);\n    png_ptr->row_buf = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->prev_row);\n    png_free(png_ptr,png_ptr->try_row);\n    png_free(png_ptr,png_ptr->tst_row);\n    png_ptr->prev_row = (png_bytep)0x0;\n    png_ptr->try_row = (png_bytep)0x0;\n    png_ptr->tst_row = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->chunk_list);\n    png_ptr->chunk_list = (png_bytep)0x0;\n    png_destroy_png_struct(png_ptr);\n  }\n  return;\n}" primitive_type (function_declarator "png_destroy_write_struct(png_structpp png_ptr_ptr,png_infopp info_ptr_ptr)" identifier (parameter_list "(png_structpp png_ptr_ptr,png_infopp info_ptr_ptr)" ( (parameter_declaration "png_structpp png_ptr_ptr" type_identifier identifier) , (parameter_declaration "png_infopp info_ptr_ptr" type_identifier identifier) ))) (compound_statement "{\n  png_const_structrp png_ptr;\n  \n  if ((png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)) {\n    png_destroy_info_struct(png_ptr,info_ptr_ptr);\n    *png_ptr_ptr = (png_struct *)0x0;\n    if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }\n    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);\n    png_free(png_ptr,png_ptr->row_buf);\n    png_ptr->row_buf = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->prev_row);\n    png_free(png_ptr,png_ptr->try_row);\n    png_free(png_ptr,png_ptr->tst_row);\n    png_ptr->prev_row = (png_bytep)0x0;\n    png_ptr->try_row = (png_bytep)0x0;\n    png_ptr->tst_row = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->chunk_list);\n    png_ptr->chunk_list = (png_bytep)0x0;\n    png_destroy_png_struct(png_ptr);\n  }\n  return;\n}" { (declaration "png_const_structrp png_ptr;" type_identifier identifier ;) (if_statement "if ((png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)) {\n    png_destroy_info_struct(png_ptr,info_ptr_ptr);\n    *png_ptr_ptr = (png_struct *)0x0;\n    if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }\n    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);\n    png_free(png_ptr,png_ptr->row_buf);\n    png_ptr->row_buf = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->prev_row);\n    png_free(png_ptr,png_ptr->try_row);\n    png_free(png_ptr,png_ptr->tst_row);\n    png_ptr->prev_row = (png_bytep)0x0;\n    png_ptr->try_row = (png_bytep)0x0;\n    png_ptr->tst_row = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->chunk_list);\n    png_ptr->chunk_list = (png_bytep)0x0;\n    png_destroy_png_struct(png_ptr);\n  }" if (parenthesized_expression "((png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0))" ( (binary_expression "(png_ptr_ptr != (png_structpp)0x0) &&\n     (png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)" (parenthesized_expression "(png_ptr_ptr != (png_structpp)0x0)" ( (binary_expression "png_ptr_ptr != (png_structpp)0x0" identifier != (cast_expression "(png_structpp)0x0" ( (type_descriptor "png_structpp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0)" ( (comma_expression "png_ptr = *png_ptr_ptr, png_ptr != (png_const_structrp)0x0" (assignment_expression "png_ptr = *png_ptr_ptr" identifier = (pointer_expression "*png_ptr_ptr" * identifier)) , (binary_expression "png_ptr != (png_const_structrp)0x0" identifier != (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal))) ))) )) (compound_statement "{\n    png_destroy_info_struct(png_ptr,info_ptr_ptr);\n    *png_ptr_ptr = (png_struct *)0x0;\n    if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }\n    png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);\n    png_free(png_ptr,png_ptr->row_buf);\n    png_ptr->row_buf = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->prev_row);\n    png_free(png_ptr,png_ptr->try_row);\n    png_free(png_ptr,png_ptr->tst_row);\n    png_ptr->prev_row = (png_bytep)0x0;\n    png_ptr->try_row = (png_bytep)0x0;\n    png_ptr->tst_row = (png_bytep)0x0;\n    png_free(png_ptr,png_ptr->chunk_list);\n    png_ptr->chunk_list = (png_bytep)0x0;\n    png_destroy_png_struct(png_ptr);\n  }" { (expression_statement "png_destroy_info_struct(png_ptr,info_ptr_ptr);" (call_expression "png_destroy_info_struct(png_ptr,info_ptr_ptr)" identifier (argument_list "(png_ptr,info_ptr_ptr)" ( identifier , identifier ))) ;) (expression_statement "*png_ptr_ptr = (png_struct *)0x0;" (assignment_expression "*png_ptr_ptr = (png_struct *)0x0" (pointer_expression "*png_ptr_ptr" * identifier) = (cast_expression "(png_struct *)0x0" ( (type_descriptor "png_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((png_ptr->flags & 2) != 0) {\n      deflateEnd(&png_ptr->zstream);\n    }" if (parenthesized_expression "((png_ptr->flags & 2) != 0)" ( (binary_expression "(png_ptr->flags & 2) != 0" (parenthesized_expression "(png_ptr->flags & 2)" ( (binary_expression "png_ptr->flags & 2" (field_expression "png_ptr->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      deflateEnd(&png_ptr->zstream);\n    }" { (expression_statement "deflateEnd(&png_ptr->zstream);" (call_expression "deflateEnd(&png_ptr->zstream)" identifier (argument_list "(&png_ptr->zstream)" ( (pointer_expression "&png_ptr->zstream" & (field_expression "png_ptr->zstream" identifier -> field_identifier)) ))) ;) })) (expression_statement "png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list);" (call_expression "png_free_buffer_list(png_ptr,&png_ptr->zbuffer_list)" identifier (argument_list "(png_ptr,&png_ptr->zbuffer_list)" ( identifier , (pointer_expression "&png_ptr->zbuffer_list" & (field_expression "png_ptr->zbuffer_list" identifier -> field_identifier)) ))) ;) (expression_statement "png_free(png_ptr,png_ptr->row_buf);" (call_expression "png_free(png_ptr,png_ptr->row_buf)" identifier (argument_list "(png_ptr,png_ptr->row_buf)" ( identifier , (field_expression "png_ptr->row_buf" identifier -> field_identifier) ))) ;) (expression_statement "png_ptr->row_buf = (png_bytep)0x0;" (assignment_expression "png_ptr->row_buf = (png_bytep)0x0" (field_expression "png_ptr->row_buf" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_free(png_ptr,png_ptr->prev_row);" (call_expression "png_free(png_ptr,png_ptr->prev_row)" identifier (argument_list "(png_ptr,png_ptr->prev_row)" ( identifier , (field_expression "png_ptr->prev_row" identifier -> field_identifier) ))) ;) (expression_statement "png_free(png_ptr,png_ptr->try_row);" (call_expression "png_free(png_ptr,png_ptr->try_row)" identifier (argument_list "(png_ptr,png_ptr->try_row)" ( identifier , (field_expression "png_ptr->try_row" identifier -> field_identifier) ))) ;) (expression_statement "png_free(png_ptr,png_ptr->tst_row);" (call_expression "png_free(png_ptr,png_ptr->tst_row)" identifier (argument_list "(png_ptr,png_ptr->tst_row)" ( identifier , (field_expression "png_ptr->tst_row" identifier -> field_identifier) ))) ;) (expression_statement "png_ptr->prev_row = (png_bytep)0x0;" (assignment_expression "png_ptr->prev_row = (png_bytep)0x0" (field_expression "png_ptr->prev_row" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_ptr->try_row = (png_bytep)0x0;" (assignment_expression "png_ptr->try_row = (png_bytep)0x0" (field_expression "png_ptr->try_row" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_ptr->tst_row = (png_bytep)0x0;" (assignment_expression "png_ptr->tst_row = (png_bytep)0x0" (field_expression "png_ptr->tst_row" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_free(png_ptr,png_ptr->chunk_list);" (call_expression "png_free(png_ptr,png_ptr->chunk_list)" identifier (argument_list "(png_ptr,png_ptr->chunk_list)" ( identifier , (field_expression "png_ptr->chunk_list" identifier -> field_identifier) ))) ;) (expression_statement "png_ptr->chunk_list = (png_bytep)0x0;" (assignment_expression "png_ptr->chunk_list = (png_bytep)0x0" (field_expression "png_ptr->chunk_list" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) (expression_statement "png_destroy_png_struct(png_ptr);" (call_expression "png_destroy_png_struct(png_ptr)" identifier (argument_list "(png_ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_destroy_write_struct(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}\n\n" (function_definition "void png_destroy_write_struct(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "png_destroy_write_struct(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0))" ( (binary_expression "(param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)" (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = *param_1, iVar1 != 0)" ( (comma_expression "iVar1 = *param_1, iVar1 != 0" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" { (expression_statement "png_destroy_info_struct(iVar1,param_2);" (call_expression "png_destroy_info_struct(iVar1,param_2)" identifier (argument_list "(iVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }" if (parenthesized_expression "((*(byte *)(iVar1 + 0xd4) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0xd4) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xd4) & 2)" ( (binary_expression "*(byte *)(iVar1 + 0xd4) & 2" (pointer_expression "*(byte *)(iVar1 + 0xd4)" * (cast_expression "(byte *)(iVar1 + 0xd4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xd4)" ( (binary_expression "iVar1 + 0xd4" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      deflateEnd(iVar1 + 0xe0);\n    }" { (expression_statement "deflateEnd(iVar1 + 0xe0);" (call_expression "deflateEnd(iVar1 + 0xe0)" identifier (argument_list "(iVar1 + 0xe0)" ( (binary_expression "iVar1 + 0xe0" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00037240(iVar1,iVar1 + 0x118);" (call_expression "FUN_00037240(iVar1,iVar1 + 0x118)" identifier (argument_list "(iVar1,iVar1 + 0x118)" ( identifier , (binary_expression "iVar1 + 0x118" identifier + number_literal) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x180))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" * (cast_expression "(undefined4 *)(iVar1 + 0x180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x180)" ( (binary_expression "iVar1 + 0x180" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x180) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x180) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" * (cast_expression "(undefined4 *)(iVar1 + 0x180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x180)" ( (binary_expression "iVar1 + 0x180" identifier + number_literal) )))) = number_literal) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x17c))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" * (cast_expression "(undefined4 *)(iVar1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x17c)" ( (binary_expression "iVar1 + 0x17c" identifier + number_literal) )))) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x184))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" * (cast_expression "(undefined4 *)(iVar1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x184)" ( (binary_expression "iVar1 + 0x184" identifier + number_literal) )))) ))) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x188))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" * (cast_expression "(undefined4 *)(iVar1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x188)" ( (binary_expression "iVar1 + 0x188" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" * (cast_expression "(undefined4 *)(iVar1 + 0x17c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x17c)" ( (binary_expression "iVar1 + 0x17c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x184) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x184) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" * (cast_expression "(undefined4 *)(iVar1 + 0x184)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x184)" ( (binary_expression "iVar1 + 0x184" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" * (cast_expression "(undefined4 *)(iVar1 + 0x188)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x188)" ( (binary_expression "iVar1 + 0x188" identifier + number_literal) )))) = number_literal) ;) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" identifier (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" ( identifier , (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" * (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a0)" ( (binary_expression "iVar1 + 0x2a0" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x2a0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2a0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" * (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a0)" ( (binary_expression "iVar1 + 0x2a0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0001c270(iVar1);" (call_expression "FUN_0001c270(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void png_destroy_write_struct(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_destroy_write_struct(int *param_1,undefined4 param_2)" (identifier "png_destroy_write_struct") (parameter_list "(int *param_1,undefined4 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" (if "if") (parenthesized_expression "((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0))" (( "(") (binary_expression "(param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)" (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = *param_1, iVar1 != 0)" (( "(") (comma_expression "iVar1 = *param_1, iVar1 != 0" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    png_destroy_info_struct(iVar1,param_2);\n    *param_1 = 0;\n    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }\n    FUN_00037240(iVar1,iVar1 + 0x118);\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));\n    *(undefined4 *)(iVar1 + 0x180) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));\n    *(undefined4 *)(iVar1 + 0x17c) = 0;\n    *(undefined4 *)(iVar1 + 0x184) = 0;\n    *(undefined4 *)(iVar1 + 0x188) = 0;\n    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));\n    *(undefined4 *)(iVar1 + 0x2a0) = 0;\n    FUN_0001c270(iVar1);\n  }" ({ "{") (expression_statement "png_destroy_info_struct(iVar1,param_2);" (call_expression "png_destroy_info_struct(iVar1,param_2)" (identifier "png_destroy_info_struct") (argument_list "(iVar1,param_2)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {\n      deflateEnd(iVar1 + 0xe0);\n    }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0xd4) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0xd4) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xd4) & 2)" (( "(") (binary_expression "*(byte *)(iVar1 + 0xd4) & 2" (pointer_expression "*(byte *)(iVar1 + 0xd4)" (* "*") (cast_expression "(byte *)(iVar1 + 0xd4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xd4)" (( "(") (binary_expression "iVar1 + 0xd4" (identifier "iVar1") (+ "+") (number_literal "0xd4")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      deflateEnd(iVar1 + 0xe0);\n    }" ({ "{") (expression_statement "deflateEnd(iVar1 + 0xe0);" (call_expression "deflateEnd(iVar1 + 0xe0)" (identifier "deflateEnd") (argument_list "(iVar1 + 0xe0)" (( "(") (binary_expression "iVar1 + 0xe0" (identifier "iVar1") (+ "+") (number_literal "0xe0")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00037240(iVar1,iVar1 + 0x118);" (call_expression "FUN_00037240(iVar1,iVar1 + 0x118)" (identifier "FUN_00037240") (argument_list "(iVar1,iVar1 + 0x118)" (( "(") (identifier "iVar1") (, ",") (binary_expression "iVar1 + 0x118" (identifier "iVar1") (+ "+") (number_literal "0x118")) () ")"))) (; ";")) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x180))" (identifier "png_free") (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x180))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x180)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x180)" (( "(") (binary_expression "iVar1 + 0x180" (identifier "iVar1") (+ "+") (number_literal "0x180")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x180) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x180) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x180)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x180)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x180)" (( "(") (binary_expression "iVar1 + 0x180" (identifier "iVar1") (+ "+") (number_literal "0x180")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c))" (identifier "png_free") (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x17c))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x17c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x17c)" (( "(") (binary_expression "iVar1 + 0x17c" (identifier "iVar1") (+ "+") (number_literal "0x17c")) () ")")))) () ")"))) (; ";")) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x184))" (identifier "png_free") (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x184))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x184)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x184)" (( "(") (binary_expression "iVar1 + 0x184" (identifier "iVar1") (+ "+") (number_literal "0x184")) () ")")))) () ")"))) (; ";")) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x188))" (identifier "png_free") (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x188))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x188)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x188)" (( "(") (binary_expression "iVar1 + 0x188" (identifier "iVar1") (+ "+") (number_literal "0x188")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x17c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x17c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x17c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x17c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x17c)" (( "(") (binary_expression "iVar1 + 0x17c" (identifier "iVar1") (+ "+") (number_literal "0x17c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x184) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x184) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x184)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x184)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x184)" (( "(") (binary_expression "iVar1 + 0x184" (identifier "iVar1") (+ "+") (number_literal "0x184")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x188) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x188) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x188)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x188)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x188)" (( "(") (binary_expression "iVar1 + 0x188" (identifier "iVar1") (+ "+") (number_literal "0x188")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));" (call_expression "png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" (identifier "png_free") (argument_list "(iVar1,*(undefined4 *)(iVar1 + 0x2a0))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2a0)" (( "(") (binary_expression "iVar1 + 0x2a0" (identifier "iVar1") (+ "+") (number_literal "0x2a0")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x2a0) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x2a0) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x2a0)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x2a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2a0)" (( "(") (binary_expression "iVar1 + 0x2a0" (identifier "iVar1") (+ "+") (number_literal "0x2a0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0001c270(iVar1);" (call_expression "FUN_0001c270(iVar1)" (identifier "FUN_0001c270") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 var_1,type_2 info_ptr_ptr)

{
  type_3 var_2;
  
  if ((var_1 != (type_1)0x0) &&
     (var_2 = *var_1, var_2 != (type_3)0x0)) {
    var_3(var_2,info_ptr_ptr);
    *var_1 = (type_4 *)0x0;
    if ((var_2->flags & 2) != 0) {
      var_4(&var_2->zstream);
    }
    var_5(var_2,&var_2->zbuffer_list);
    var_6(var_2,var_2->row_buf);
    var_2->row_buf = (type_5)0x0;
    var_6(var_2,var_2->prev_row);
    var_6(var_2,var_2->try_row);
    var_6(var_2,var_2->tst_row);
    var_2->prev_row = (type_5)0x0;
    var_2->try_row = (type_5)0x0;
    var_2->tst_row = (type_5)0x0;
    var_6(var_2,var_2->chunk_list);
    var_2->chunk_list = (type_5)0x0;
    var_7(var_2);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

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

void MASKED(int *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 != (int *)0x0) && (iVar1 = *param_1, iVar1 != 0)) {
    png_destroy_info_struct(iVar1,param_2);
    *param_1 = 0;
    if ((*(byte *)(iVar1 + 0xd4) & 2) != 0) {
      deflateEnd(iVar1 + 0xe0);
    }
    FUN_00037240(iVar1,iVar1 + 0x118);
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x180));
    *(undefined4 *)(iVar1 + 0x180) = 0;
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x17c));
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x184));
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x188));
    *(undefined4 *)(iVar1 + 0x17c) = 0;
    *(undefined4 *)(iVar1 + 0x184) = 0;
    *(undefined4 *)(iVar1 + 0x188) = 0;
    png_free(iVar1,*(undefined4 *)(iVar1 + 0x2a0));
    *(undefined4 *)(iVar1 + 0x2a0) = 0;
    FUN_0001c270(iVar1);
  }
  return;
}

