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

void png_read_finish_IDAT(png_structrp png_ptr)

{
  uint uVar1;
  png_uint_32 pVar2;
  
  if ((png_ptr->flags & 8) == 0) {
    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);
    uVar1 = png_ptr->flags;
    (png_ptr->zstream).next_out = (Bytef *)0x0;
    if ((uVar1 & 8) == 0) {
      png_ptr->mode = png_ptr->mode | 8;
      pVar2 = png_ptr->zowner;
      png_ptr->flags = uVar1 | 8;
      goto joined_r0x0003208e;
    }
  }
  pVar2 = png_ptr->zowner;
joined_r0x0003208e:
  if (pVar2 != 0x49444154) {
    return;
  }
  (png_ptr->zstream).next_in = (Bytef *)0x0;
  (png_ptr->zstream).avail_in = 0;
  png_ptr->zowner = 0;
  png_crc_finish(png_ptr,png_ptr->idat_size);
  return;
}



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

void FUN_00032020(int param_1)

{
  int iVar1;
  
  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {
    FUN_00031cd0(param_1,0,0);
    *(undefined4 *)(param_1 + 0xec) = 0;
    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {
      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;
      iVar1 = *(int *)(param_1 + 0xdc);
      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;
      goto joined_r0x0003208e;
    }
  }
  iVar1 = *(int *)(param_1 + 0xdc);
joined_r0x0003208e:
  if (iVar1 != 0x49444154) {
    return;
  }
  *(undefined4 *)(param_1 + 0xe0) = 0;
  *(undefined4 *)(param_1 + 0xe4) = 0;
  *(undefined4 *)(param_1 + 0xdc) = 0;
  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x21d59
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST byte ptr [ESI + 0xd4],0x8
JZ 0x00032050
CMP dword ptr [ESI + 0xdc],0x49444154
JZ 0x00032090
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH ESI
CALL 0x00031cd0
MOV EAX,dword ptr [ESI + 0xd4]
ADD ESP,0x10
MOV dword ptr [ESI + 0xec],0x0
TEST AL,0x8
JNZ 0x0003203d
OR EAX,0x8
OR dword ptr [ESI + 0xd0],0x8
CMP dword ptr [ESI + 0xdc],0x49444154
MOV dword ptr [ESI + 0xd4],EAX
JNZ 0x00032049
MOV dword ptr [ESI + 0xe0],0x0
SUB ESP,0x8
MOV dword ptr [ESI + 0xe4],0x0
MOV dword ptr [ESI + 0xdc],0x0
PUSH dword ptr [ESI + 0x190]
PUSH ESI
CALL 0x0002c990
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00032020(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}\n\n" comment (function_definition "void FUN_00032020(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" primitive_type (function_declarator "FUN_00032020(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd4) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd4) & 8)" ( (binary_expression "*(byte *)(param_1 + 0xd4) & 8" (pointer_expression "*(byte *)(param_1 + 0xd4)" * (cast_expression "(byte *)(param_1 + 0xd4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" { (expression_statement "FUN_00031cd0(param_1,0,0);" (call_expression "FUN_00031cd0(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xec) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xec) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xec)" * (cast_expression "(undefined4 *)(param_1 + 0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0xd4) & 8) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xd4) & 8)" ( (binary_expression "*(uint *)(param_1 + 0xd4) & 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" { (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) | number_literal)) ;) (goto_statement "goto joined_r0x0003208e;" goto statement_identifier ;) })) })) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar1 != 0x49444154) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0x49444154)" ( (binary_expression "iVar1 != 0x49444154" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0xe0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe0)" * (cast_expression "(undefined4 *)(param_1 + 0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" * (cast_expression "(undefined4 *)(param_1 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe4)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xdc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xdc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xdc)" * (cast_expression "(undefined4 *)(param_1 + 0xdc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));" (call_expression "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400))" identifier (argument_list "(param_1,*(undefined4 *)(param_1 + 400))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 400)" * (cast_expression "(undefined4 *)(param_1 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) ))) ;) (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_read_finish_IDAT(png_structrp png_ptr)\n\n{\n  uint uVar1;\n  png_uint_32 pVar2;\n  \n  if ((png_ptr->flags & 8) == 0) {\n    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);\n    uVar1 = png_ptr->flags;\n    (png_ptr->zstream).next_out = (Bytef *)0x0;\n    if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  pVar2 = png_ptr->zowner;\njoined_r0x0003208e:\n  if (pVar2 != 0x49444154) {\n    return;\n  }\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  png_ptr->zowner = 0;\n  png_crc_finish(png_ptr,png_ptr->idat_size);\n  return;\n}\n\n" comment comment (function_definition "void png_read_finish_IDAT(png_structrp png_ptr)\n\n{\n  uint uVar1;\n  png_uint_32 pVar2;\n  \n  if ((png_ptr->flags & 8) == 0) {\n    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);\n    uVar1 = png_ptr->flags;\n    (png_ptr->zstream).next_out = (Bytef *)0x0;\n    if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  pVar2 = png_ptr->zowner;\njoined_r0x0003208e:\n  if (pVar2 != 0x49444154) {\n    return;\n  }\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  png_ptr->zowner = 0;\n  png_crc_finish(png_ptr,png_ptr->idat_size);\n  return;\n}" primitive_type (function_declarator "png_read_finish_IDAT(png_structrp png_ptr)" identifier (parameter_list "(png_structrp png_ptr)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  png_uint_32 pVar2;\n  \n  if ((png_ptr->flags & 8) == 0) {\n    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);\n    uVar1 = png_ptr->flags;\n    (png_ptr->zstream).next_out = (Bytef *)0x0;\n    if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  pVar2 = png_ptr->zowner;\njoined_r0x0003208e:\n  if (pVar2 != 0x49444154) {\n    return;\n  }\n  (png_ptr->zstream).next_in = (Bytef *)0x0;\n  (png_ptr->zstream).avail_in = 0;\n  png_ptr->zowner = 0;\n  png_crc_finish(png_ptr,png_ptr->idat_size);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "png_uint_32 pVar2;" type_identifier identifier ;) (if_statement "if ((png_ptr->flags & 8) == 0) {\n    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);\n    uVar1 = png_ptr->flags;\n    (png_ptr->zstream).next_out = (Bytef *)0x0;\n    if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }\n  }" if (parenthesized_expression "((png_ptr->flags & 8) == 0)" ( (binary_expression "(png_ptr->flags & 8) == 0" (parenthesized_expression "(png_ptr->flags & 8)" ( (binary_expression "png_ptr->flags & 8" (field_expression "png_ptr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);\n    uVar1 = png_ptr->flags;\n    (png_ptr->zstream).next_out = (Bytef *)0x0;\n    if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }\n  }" { (expression_statement "png_read_IDAT_data(png_ptr,(png_bytep)0x0,0);" (call_expression "png_read_IDAT_data(png_ptr,(png_bytep)0x0,0)" identifier (argument_list "(png_ptr,(png_bytep)0x0,0)" ( identifier , (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal) , number_literal ))) ;) (expression_statement "uVar1 = png_ptr->flags;" (assignment_expression "uVar1 = png_ptr->flags" identifier = (field_expression "png_ptr->flags" identifier -> field_identifier)) ;) (expression_statement "(png_ptr->zstream).next_out = (Bytef *)0x0;" (assignment_expression "(png_ptr->zstream).next_out = (Bytef *)0x0" (field_expression "(png_ptr->zstream).next_out" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((uVar1 & 8) == 0) {\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }" if (parenthesized_expression "((uVar1 & 8) == 0)" ( (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      png_ptr->mode = png_ptr->mode | 8;\n      pVar2 = png_ptr->zowner;\n      png_ptr->flags = uVar1 | 8;\n      goto joined_r0x0003208e;\n    }" { (expression_statement "png_ptr->mode = png_ptr->mode | 8;" (assignment_expression "png_ptr->mode = png_ptr->mode | 8" (field_expression "png_ptr->mode" identifier -> field_identifier) = (binary_expression "png_ptr->mode | 8" (field_expression "png_ptr->mode" identifier -> field_identifier) | number_literal)) ;) (expression_statement "pVar2 = png_ptr->zowner;" (assignment_expression "pVar2 = png_ptr->zowner" identifier = (field_expression "png_ptr->zowner" identifier -> field_identifier)) ;) (expression_statement "png_ptr->flags = uVar1 | 8;" (assignment_expression "png_ptr->flags = uVar1 | 8" (field_expression "png_ptr->flags" identifier -> field_identifier) = (binary_expression "uVar1 | 8" identifier | number_literal)) ;) (goto_statement "goto joined_r0x0003208e;" goto statement_identifier ;) })) })) (expression_statement "pVar2 = png_ptr->zowner;" (assignment_expression "pVar2 = png_ptr->zowner" identifier = (field_expression "png_ptr->zowner" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x0003208e:\n  if (pVar2 != 0x49444154) {\n    return;\n  }" statement_identifier : (if_statement "if (pVar2 != 0x49444154) {\n    return;\n  }" if (parenthesized_expression "(pVar2 != 0x49444154)" ( (binary_expression "pVar2 != 0x49444154" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "(png_ptr->zstream).next_in = (Bytef *)0x0;" (assignment_expression "(png_ptr->zstream).next_in = (Bytef *)0x0" (field_expression "(png_ptr->zstream).next_in" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(png_ptr->zstream).avail_in = 0;" (assignment_expression "(png_ptr->zstream).avail_in = 0" (field_expression "(png_ptr->zstream).avail_in" (parenthesized_expression "(png_ptr->zstream)" ( (field_expression "png_ptr->zstream" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "png_ptr->zowner = 0;" (assignment_expression "png_ptr->zowner = 0" (field_expression "png_ptr->zowner" identifier -> field_identifier) = number_literal) ;) (expression_statement "png_crc_finish(png_ptr,png_ptr->idat_size);" (call_expression "png_crc_finish(png_ptr,png_ptr->idat_size)" identifier (argument_list "(png_ptr,png_ptr->idat_size)" ( identifier , (field_expression "png_ptr->idat_size" identifier -> field_identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00032020(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}\n\n" (function_definition "void FUN_00032020(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" primitive_type (function_declarator "FUN_00032020(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd4) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd4) & 8)" ( (binary_expression "*(byte *)(param_1 + 0xd4) & 8" (pointer_expression "*(byte *)(param_1 + 0xd4)" * (cast_expression "(byte *)(param_1 + 0xd4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" { (expression_statement "FUN_00031cd0(param_1,0,0);" (call_expression "FUN_00031cd0(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xec) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xec) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xec)" * (cast_expression "(undefined4 *)(param_1 + 0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0xd4) & 8) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xd4) & 8)" ( (binary_expression "*(uint *)(param_1 + 0xd4) & 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" { (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) | number_literal)) ;) (goto_statement "goto joined_r0x0003208e;" goto statement_identifier ;) })) })) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" identifier = (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar1 != 0x49444154) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0x49444154)" ( (binary_expression "iVar1 != 0x49444154" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0xe0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe0)" * (cast_expression "(undefined4 *)(param_1 + 0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xe4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" * (cast_expression "(undefined4 *)(param_1 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe4)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xdc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xdc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xdc)" * (cast_expression "(undefined4 *)(param_1 + 0xdc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));" (call_expression "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400))" identifier (argument_list "(param_1,*(undefined4 *)(param_1 + 400))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 400)" * (cast_expression "(undefined4 *)(param_1 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) }))) (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) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00032020(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00032020(int param_1)" (identifier "FUN_00032020") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }\n  iVar1 = *(int *)(param_1 + 0xdc);\njoined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0xe0) = 0;\n  *(undefined4 *)(param_1 + 0xe4) = 0;\n  *(undefined4 *)(param_1 + 0xdc) = 0;\n  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0xd4) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd4) & 8)" (( "(") (binary_expression "*(byte *)(param_1 + 0xd4) & 8" (pointer_expression "*(byte *)(param_1 + 0xd4)" (* "*") (cast_expression "(byte *)(param_1 + 0xd4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00031cd0(param_1,0,0);\n    *(undefined4 *)(param_1 + 0xec) = 0;\n    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }\n  }" ({ "{") (expression_statement "FUN_00031cd0(param_1,0,0);" (call_expression "FUN_00031cd0(param_1,0,0)" (identifier "FUN_00031cd0") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xec) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xec) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xec)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xec)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec)" (( "(") (binary_expression "param_1 + 0xec" (identifier "param_1") (+ "+") (number_literal "0xec")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0xd4) & 8) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0xd4) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0xd4) & 8)" (( "(") (binary_expression "*(uint *)(param_1 + 0xd4) & 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n      iVar1 = *(int *)(param_1 + 0xdc);\n      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;\n      goto joined_r0x0003208e;\n    }" ({ "{") (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" (* "*") (cast_expression "(uint *)(param_1 + 0xd0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (pointer_expression "*(uint *)(param_1 + 0xd0)" (* "*") (cast_expression "(uint *)(param_1 + 0xd0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xdc)" (* "*") (cast_expression "(int *)(param_1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")"))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0xd4) | 8" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (goto_statement "goto joined_r0x0003208e;" (goto "goto") (statement_identifier "joined_r0x0003208e") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0xdc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xdc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xdc)" (* "*") (cast_expression "(int *)(param_1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")"))))) (; ";")) (labeled_statement "joined_r0x0003208e:\n  if (iVar1 != 0x49444154) {\n    return;\n  }" (statement_identifier "joined_r0x0003208e") (: ":") (if_statement "if (iVar1 != 0x49444154) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0x49444154)" (( "(") (binary_expression "iVar1 != 0x49444154" (identifier "iVar1") (!= "!=") (number_literal "0x49444154")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0xe0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xe4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe4)" (( "(") (binary_expression "param_1 + 0xe4" (identifier "param_1") (+ "+") (number_literal "0xe4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xdc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xdc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xdc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xdc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));" (call_expression "FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400))" (identifier "FUN_0002c990") (argument_list "(param_1,*(undefined4 *)(param_1 + 400))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 400)" (* "*") (cast_expression "(undefined4 *)(param_1 + 400)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 400)" (( "(") (binary_expression "param_1 + 400" (identifier "param_1") (+ "+") (number_literal "400")) () ")")))) () ")"))) (; ";")) (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 png_ptr)

{
  type_2 var_2;
  type_3 var_3;
  
  if ((png_ptr->flags & 8) == 0) {
    var_1(png_ptr,(type_4)0x0,0);
    var_2 = png_ptr->flags;
    (png_ptr->zstream).next_out = (type_5 *)0x0;
    if ((var_2 & 8) == 0) {
      png_ptr->mode = png_ptr->mode | 8;
      var_3 = png_ptr->zowner;
      png_ptr->flags = var_2 | 8;
      goto joined_r0x0003208e;
    }
  }
  var_3 = png_ptr->zowner;
joined_r0x0003208e:
  if (var_3 != 0x49444154) {
    return;
  }
  (png_ptr->zstream).next_in = (type_5 *)0x0;
  (png_ptr->zstream).avail_in = 0;
  png_ptr->zowner = 0;
  var_4(png_ptr,png_ptr->idat_size);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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 (identifier) (number_literal) (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))) (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 (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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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: (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)))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))) (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)))))))) (return_statement))))

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

void MASKED(int param_1)

{
  int iVar1;
  
  if ((*(byte *)(param_1 + 0xd4) & 8) == 0) {
    FUN_00031cd0(param_1,0,0);
    *(undefined4 *)(param_1 + 0xec) = 0;
    if ((*(uint *)(param_1 + 0xd4) & 8) == 0) {
      *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;
      iVar1 = *(int *)(param_1 + 0xdc);
      *(uint *)(param_1 + 0xd4) = *(uint *)(param_1 + 0xd4) | 8;
      goto joined_r0x0003208e;
    }
  }
  iVar1 = *(int *)(param_1 + 0xdc);
joined_r0x0003208e:
  if (iVar1 != 0x49444154) {
    return;
  }
  *(undefined4 *)(param_1 + 0xe0) = 0;
  *(undefined4 *)(param_1 + 0xe4) = 0;
  *(undefined4 *)(param_1 + 0xdc) = 0;
  FUN_0002c990(param_1,*(undefined4 *)(param_1 + 400));
  return;
}

