
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int png_safe_execute(png_imagep image_in,_func_int_png_voidp *function,png_voidp arg)

{
  int iVar1;
  png_voidp pvVar2;
  int iVar3;
  int in_GS_OFFSET;
  png_imagep image;
  int result;
  png_voidp saved_error_buf;
  jmp_buf safe_jmpbuf;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pvVar2 = image_in->opaque->error_buf;
  iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf);
  result = (int)(iVar3 == 0);
  if (result != 0) {
    image_in->opaque->error_buf = safe_jmpbuf;
    result = (*function)(arg);
  }
  image_in->opaque->error_buf = pvVar2;
  if (result == 0) {
    png_image_free(image_in);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return result;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)

{
  undefined4 uVar1;
  int iVar2;
  int in_GS_OFFSET;
  uint local_b4;
  __jmp_buf_tag local_ac;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(undefined4 *)(*param_1 + 8);
  iVar2 = _setjmp(&local_ac);
  local_b4 = (uint)(iVar2 == 0);
  if (local_b4 != 0) {
    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;
    local_b4 = (*param_2)(param_3);
  }
  *(undefined4 *)(*param_1 + 8) = uVar1;
  if (local_b4 == 0) {
    png_image_free(param_1);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_b4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003f340();
}


CALL 0x00014aa5
ADD EDX,0x3882b
PUSH EBX
SUB ESP,0xd4
MOV EAX,dword ptr [ESP + 0xe0]
MOV ECX,dword ptr [ESP + 0xe4]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0xdc]
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x14],ECX
MOV EBX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc8],EBX
XOR EBX,EBX
MOV dword ptr [ESP + 0x20],EAX
MOV EBX,EDX
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
CALL 0x00014130
ADD ESP,0x10
TEST EAX,EAX
SETZ AL
MOVZX EAX,AL
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x0001b5e8
MOV EAX,dword ptr [ESP + 0x14]
LEA EDX,[ESP + 0x20]
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
MOV dword ptr [EAX + 0x8],EDX
PUSH dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x14]
CALL EAX
ADD ESP,0x10
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EAX + 0x8],EDX
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x0001b620
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0xbc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0001b636
ADD ESP,0xc8
POP EBX
RET
MOV EAX,dword ptr [ESP + 0x14]
SUB ESP,0xc
PUSH EAX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00014050
ADD ESP,0x10
JMP 0x0001b5fd
CALL 0x0003f340
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nuint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003f340();\n}\n\n" comment (function_definition "uint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003f340();\n}" type_identifier (function_declarator "FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003f340();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_b4;" type_identifier identifier ;) (declaration "__jmp_buf_tag local_ac;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(*param_1 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(*param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(*param_1 + 8)" * (cast_expression "(undefined4 *)(*param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = _setjmp(&local_ac);" (assignment_expression "iVar2 = _setjmp(&local_ac)" identifier = (call_expression "_setjmp(&local_ac)" identifier (argument_list "(&local_ac)" ( (pointer_expression "&local_ac" & identifier) )))) ;) (expression_statement "local_b4 = (uint)(iVar2 == 0);" (assignment_expression "local_b4 = (uint)(iVar2 == 0)" identifier = (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) (if_statement "if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" if (parenthesized_expression "(local_b4 != 0)" ( (binary_expression "local_b4 != 0" identifier != number_literal) )) (compound_statement "{\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" { (expression_statement "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;" (assignment_expression "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac" (pointer_expression "*(__jmp_buf_tag **)(*param_1 + 8)" * (cast_expression "(__jmp_buf_tag **)(*param_1 + 8)" ( (type_descriptor "__jmp_buf_tag **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (pointer_expression "&local_ac" & identifier)) ;) (expression_statement "local_b4 = (*param_2)(param_3);" (assignment_expression "local_b4 = (*param_2)(param_3)" identifier = (call_expression "(*param_2)(param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "*(undefined4 *)(*param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*param_1 + 8)" * (cast_expression "(undefined4 *)(*param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) (if_statement "if (local_b4 == 0) {\n    png_image_free(param_1);\n  }" if (parenthesized_expression "(local_b4 == 0)" ( (binary_expression "local_b4 == 0" identifier == number_literal) )) (compound_statement "{\n    png_image_free(param_1);\n  }" { (expression_statement "png_image_free(param_1);" (call_expression "png_image_free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_b4;\n  }" { (return_statement "return local_b4;" return identifier ;) })) comment (expression_statement "FUN_0003f340();" (call_expression "FUN_0003f340()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nint png_safe_execute(png_imagep image_in,_func_int_png_voidp *function,png_voidp arg)\n\n{\n  int iVar1;\n  png_voidp pvVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  png_imagep image;\n  int result;\n  png_voidp saved_error_buf;\n  jmp_buf safe_jmpbuf;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = image_in->opaque->error_buf;\n  iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf);\n  result = (int)(iVar3 == 0);\n  if (result != 0) {\n    image_in->opaque->error_buf = safe_jmpbuf;\n    result = (*function)(arg);\n  }\n  image_in->opaque->error_buf = pvVar2;\n  if (result == 0) {\n    png_image_free(image_in);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return result;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int png_safe_execute(png_imagep image_in,_func_int_png_voidp *function,png_voidp arg)\n\n{\n  int iVar1;\n  png_voidp pvVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  png_imagep image;\n  int result;\n  png_voidp saved_error_buf;\n  jmp_buf safe_jmpbuf;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = image_in->opaque->error_buf;\n  iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf);\n  result = (int)(iVar3 == 0);\n  if (result != 0) {\n    image_in->opaque->error_buf = safe_jmpbuf;\n    result = (*function)(arg);\n  }\n  image_in->opaque->error_buf = pvVar2;\n  if (result == 0) {\n    png_image_free(image_in);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return result;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "png_safe_execute(png_imagep image_in,_func_int_png_voidp *function,png_voidp arg)" identifier (parameter_list "(png_imagep image_in,_func_int_png_voidp *function,png_voidp arg)" ( (parameter_declaration "png_imagep image_in" type_identifier identifier) , (parameter_declaration "_func_int_png_voidp *function" type_identifier (pointer_declarator "*function" * identifier)) , (parameter_declaration "png_voidp arg" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  png_voidp pvVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  png_imagep image;\n  int result;\n  png_voidp saved_error_buf;\n  jmp_buf safe_jmpbuf;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = image_in->opaque->error_buf;\n  iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf);\n  result = (int)(iVar3 == 0);\n  if (result != 0) {\n    image_in->opaque->error_buf = safe_jmpbuf;\n    result = (*function)(arg);\n  }\n  image_in->opaque->error_buf = pvVar2;\n  if (result == 0) {\n    png_image_free(image_in);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return result;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "png_voidp pvVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "png_imagep image;" type_identifier identifier ;) (declaration "int result;" primitive_type identifier ;) (declaration "png_voidp saved_error_buf;" type_identifier identifier ;) (declaration "jmp_buf safe_jmpbuf;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pvVar2 = image_in->opaque->error_buf;" (assignment_expression "pvVar2 = image_in->opaque->error_buf" identifier = (field_expression "image_in->opaque->error_buf" (field_expression "image_in->opaque" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf);" (assignment_expression "iVar3 = _setjmp((__jmp_buf_tag *)safe_jmpbuf)" identifier = (call_expression "_setjmp((__jmp_buf_tag *)safe_jmpbuf)" identifier (argument_list "((__jmp_buf_tag *)safe_jmpbuf)" ( (cast_expression "(__jmp_buf_tag *)safe_jmpbuf" ( (type_descriptor "__jmp_buf_tag *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "result = (int)(iVar3 == 0);" (assignment_expression "result = (int)(iVar3 == 0)" identifier = (cast_expression "(int)(iVar3 == 0)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )))) ;) (if_statement "if (result != 0) {\n    image_in->opaque->error_buf = safe_jmpbuf;\n    result = (*function)(arg);\n  }" if (parenthesized_expression "(result != 0)" ( (binary_expression "result != 0" identifier != number_literal) )) (compound_statement "{\n    image_in->opaque->error_buf = safe_jmpbuf;\n    result = (*function)(arg);\n  }" { (expression_statement "image_in->opaque->error_buf = safe_jmpbuf;" (assignment_expression "image_in->opaque->error_buf = safe_jmpbuf" (field_expression "image_in->opaque->error_buf" (field_expression "image_in->opaque" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "result = (*function)(arg);" (assignment_expression "result = (*function)(arg)" identifier = (call_expression "(*function)(arg)" (parenthesized_expression "(*function)" ( (pointer_expression "*function" * identifier) )) (argument_list "(arg)" ( identifier )))) ;) })) (expression_statement "image_in->opaque->error_buf = pvVar2;" (assignment_expression "image_in->opaque->error_buf = pvVar2" (field_expression "image_in->opaque->error_buf" (field_expression "image_in->opaque" identifier -> field_identifier) -> field_identifier) = identifier) ;) (if_statement "if (result == 0) {\n    png_image_free(image_in);\n  }" if (parenthesized_expression "(result == 0)" ( (binary_expression "result == 0" identifier == number_literal) )) (compound_statement "{\n    png_image_free(image_in);\n  }" { (expression_statement "png_image_free(image_in);" (call_expression "png_image_free(image_in)" identifier (argument_list "(image_in)" ( identifier ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return result;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return result;\n  }" { (return_statement "return result;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "uint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    \n  FUN_0003f340();\n}\n\n" (function_definition "uint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    \n  FUN_0003f340();\n}" type_identifier (function_declarator "FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    \n  FUN_0003f340();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_b4;" type_identifier identifier ;) (declaration "__jmp_buf_tag local_ac;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(*param_1 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(*param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(*param_1 + 8)" * (cast_expression "(undefined4 *)(*param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = _setjmp(&local_ac);" (assignment_expression "iVar2 = _setjmp(&local_ac)" identifier = (call_expression "_setjmp(&local_ac)" identifier (argument_list "(&local_ac)" ( (pointer_expression "&local_ac" & identifier) )))) ;) (expression_statement "local_b4 = (uint)(iVar2 == 0);" (assignment_expression "local_b4 = (uint)(iVar2 == 0)" identifier = (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) (if_statement "if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" if (parenthesized_expression "(local_b4 != 0)" ( (binary_expression "local_b4 != 0" identifier != number_literal) )) (compound_statement "{\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" { (expression_statement "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;" (assignment_expression "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac" (pointer_expression "*(__jmp_buf_tag **)(*param_1 + 8)" * (cast_expression "(__jmp_buf_tag **)(*param_1 + 8)" ( (type_descriptor "__jmp_buf_tag **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (pointer_expression "&local_ac" & identifier)) ;) (expression_statement "local_b4 = (*param_2)(param_3);" (assignment_expression "local_b4 = (*param_2)(param_3)" identifier = (call_expression "(*param_2)(param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "*(undefined4 *)(*param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*param_1 + 8)" * (cast_expression "(undefined4 *)(*param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) (if_statement "if (local_b4 == 0) {\n    png_image_free(param_1);\n  }" if (parenthesized_expression "(local_b4 == 0)" ( (binary_expression "local_b4 == 0" identifier == number_literal) )) (compound_statement "{\n    png_image_free(param_1);\n  }" { (expression_statement "png_image_free(param_1);" (call_expression "png_image_free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_b4;\n  }" { (return_statement "return local_b4;" return identifier ;) })) (expression_statement "FUN_0003f340();" (call_expression "FUN_0003f340()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "uint FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    \n  FUN_0003f340();\n}" (type_identifier "uint") (function_declarator "FUN_0001b550(int *param_1,code *param_2,undefined4 param_3)" (identifier "FUN_0001b550") (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uint local_b4;\n  __jmp_buf_tag local_ac;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(undefined4 *)(*param_1 + 8);\n  iVar2 = _setjmp(&local_ac);\n  local_b4 = (uint)(iVar2 == 0);\n  if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }\n  *(undefined4 *)(*param_1 + 8) = uVar1;\n  if (local_b4 == 0) {\n    png_image_free(param_1);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }\n                    \n  FUN_0003f340();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_b4;" (type_identifier "uint") (identifier "local_b4") (; ";")) (declaration "__jmp_buf_tag local_ac;" (type_identifier "__jmp_buf_tag") (identifier "local_ac") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(*param_1 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(*param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar2 = _setjmp(&local_ac);" (assignment_expression "iVar2 = _setjmp(&local_ac)" (identifier "iVar2") (= "=") (call_expression "_setjmp(&local_ac)" (identifier "_setjmp") (argument_list "(&local_ac)" (( "(") (pointer_expression "&local_ac" (& "&") (identifier "local_ac")) () ")")))) (; ";")) (expression_statement "local_b4 = (uint)(iVar2 == 0);" (assignment_expression "local_b4 = (uint)(iVar2 == 0)" (identifier "local_b4") (= "=") (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")))) (; ";")) (if_statement "if (local_b4 != 0) {\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" (if "if") (parenthesized_expression "(local_b4 != 0)" (( "(") (binary_expression "local_b4 != 0" (identifier "local_b4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;\n    local_b4 = (*param_2)(param_3);\n  }" ({ "{") (expression_statement "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;" (assignment_expression "*(__jmp_buf_tag **)(*param_1 + 8) = &local_ac" (pointer_expression "*(__jmp_buf_tag **)(*param_1 + 8)" (* "*") (cast_expression "(__jmp_buf_tag **)(*param_1 + 8)" (( "(") (type_descriptor "__jmp_buf_tag **" (type_identifier "__jmp_buf_tag") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "&local_ac" (& "&") (identifier "local_ac"))) (; ";")) (expression_statement "local_b4 = (*param_2)(param_3);" (assignment_expression "local_b4 = (*param_2)(param_3)" (identifier "local_b4") (= "=") (call_expression "(*param_2)(param_3)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(*param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(*param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(*param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (local_b4 == 0) {\n    png_image_free(param_1);\n  }" (if "if") (parenthesized_expression "(local_b4 == 0)" (( "(") (binary_expression "local_b4 == 0" (identifier "local_b4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    png_image_free(param_1);\n  }" ({ "{") (expression_statement "png_image_free(param_1);" (call_expression "png_image_free(param_1)" (identifier "png_image_free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_b4;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return local_b4;\n  }" ({ "{") (return_statement "return local_b4;" (return "return") (identifier "local_b4") (; ";")) (} "}"))) (expression_statement "FUN_0003f340();" (call_expression "FUN_0003f340()" (identifier "FUN_0003f340") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int function_1(type_1 image_in,type_2 *function,type_3 arg)

{
  int var_6;
  type_3 pvVar2;
  int var_3;
  int var_1;
  type_1 image;
  int var_4;
  type_3 saved_error_buf;
  type_4 safe_jmpbuf;
  
  var_6 = *(int *)(var_1 + 0x14);
  pvVar2 = image_in->opaque->error_buf;
  var_3 = var_2((type_5 *)safe_jmpbuf);
  var_4 = (int)(var_3 == 0);
  if (var_4 != 0) {
    image_in->opaque->error_buf = safe_jmpbuf;
    var_4 = (*function)(arg);
  }
  image_in->opaque->error_buf = pvVar2;
  if (var_4 == 0) {
    var_5(image_in);
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier))))))) (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint MASKED(int *param_1,code *param_2,undefined4 param_3)

{
  undefined4 uVar1;
  int iVar2;
  int in_GS_OFFSET;
  uint local_b4;
  __jmp_buf_tag local_ac;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(undefined4 *)(*param_1 + 8);
  iVar2 = _setjmp(&local_ac);
  local_b4 = (uint)(iVar2 == 0);
  if (local_b4 != 0) {
    *(__jmp_buf_tag **)(*param_1 + 8) = &local_ac;
    local_b4 = (*param_2)(param_3);
  }
  *(undefined4 *)(*param_1 + 8) = uVar1;
  if (local_b4 == 0) {
    png_image_free(param_1);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_b4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003f340();
}

