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

void png_write_pHYs(png_structrp png_ptr,png_uint_32 x_pixels_per_unit,png_uint_32 y_pixels_per_unit
                   ,int unit_type)

{
  int iVar1;
  int in_GS_OFFSET;
  png_byte buf [9];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (1 < unit_type) {
    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");
  }
  png_save_uint_32(buf,x_pixels_per_unit);
  png_save_uint_32(buf + 4,y_pixels_per_unit);
  buf[8] = (png_byte)unit_type;
  png_write_complete_chunk(png_ptr,0x70485973,buf,9);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int in_GS_OFFSET;
  undefined1 local_29 [4];
  undefined1 local_25 [4];
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x38e59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (1 < param_4) {
    png_warning(param_1,"Unrecognized unit type for pHYs chunk");
  }
  png_save_uint_32(local_29,param_2);
  png_save_uint_32(local_25,param_3);
  local_21 = (undefined1)param_4;
  FUN_000371c0(9);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003a600();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x14f27
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [ESP + 0x30]
CMP ESI,0x1
JLE 0x00038e8e
SUB ESP,0x8
LEA EAX,[EBX + 0xffff1a74]
PUSH EAX
PUSH EDI
CALL 0x000143a0
ADD ESP,0x10
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
LEA EBP,[ESP + 0xf]
PUSH EBP
CALL 0x00014500
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x40]
LEA EAX,[ESP + 0x13]
PUSH EAX
CALL 0x00014500
MOV EAX,ESI
MOV ECX,EBP
MOV EDX,0x70485973
MOV byte ptr [ESP + 0x1b],AL
MOV EAX,EDI
MOV dword ptr [ESP],0x9
CALL 0x000371c0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00038ee2
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0003a600
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003a600();\n}\n\n" comment (function_definition "void FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003a600();\n}" primitive_type (function_declarator "FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003a600();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_29 [4];" type_identifier (array_declarator "local_29 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_25 [4];" type_identifier (array_declarator "local_25 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38e59;" (assignment_expression "uStack_14 = 0x38e59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" if (parenthesized_expression "(1 < param_4)" ( (binary_expression "1 < param_4" number_literal < identifier) )) (compound_statement "{\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" { (expression_statement "png_warning(param_1,"Unrecognized unit type for pHYs chunk");" (call_expression "png_warning(param_1,"Unrecognized unit type for pHYs chunk")" identifier (argument_list "(param_1,"Unrecognized unit type for pHYs chunk")" ( identifier , (string_literal ""Unrecognized unit type for pHYs chunk"" " string_content ") ))) ;) })) (expression_statement "png_save_uint_32(local_29,param_2);" (call_expression "png_save_uint_32(local_29,param_2)" identifier (argument_list "(local_29,param_2)" ( identifier , identifier ))) ;) (expression_statement "png_save_uint_32(local_25,param_3);" (call_expression "png_save_uint_32(local_25,param_3)" identifier (argument_list "(local_25,param_3)" ( identifier , identifier ))) ;) (expression_statement "local_21 = (undefined1)param_4;" (assignment_expression "local_21 = (undefined1)param_4" identifier = (cast_expression "(undefined1)param_4" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "FUN_000371c0(9);" (call_expression "FUN_000371c0(9)" identifier (argument_list "(9)" ( number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid png_write_pHYs(png_structrp png_ptr,png_uint_32 x_pixels_per_unit,png_uint_32 y_pixels_per_unit\n                   ,int unit_type)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [9];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < unit_type) {\n    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(buf,x_pixels_per_unit);\n  png_save_uint_32(buf + 4,y_pixels_per_unit);\n  buf[8] = (png_byte)unit_type;\n  png_write_complete_chunk(png_ptr,0x70485973,buf,9);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void png_write_pHYs(png_structrp png_ptr,png_uint_32 x_pixels_per_unit,png_uint_32 y_pixels_per_unit\n                   ,int unit_type)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [9];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < unit_type) {\n    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(buf,x_pixels_per_unit);\n  png_save_uint_32(buf + 4,y_pixels_per_unit);\n  buf[8] = (png_byte)unit_type;\n  png_write_complete_chunk(png_ptr,0x70485973,buf,9);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "png_write_pHYs(png_structrp png_ptr,png_uint_32 x_pixels_per_unit,png_uint_32 y_pixels_per_unit\n                   ,int unit_type)" identifier (parameter_list "(png_structrp png_ptr,png_uint_32 x_pixels_per_unit,png_uint_32 y_pixels_per_unit\n                   ,int unit_type)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 x_pixels_per_unit" type_identifier identifier) , (parameter_declaration "png_uint_32 y_pixels_per_unit" type_identifier identifier) , (parameter_declaration "int unit_type" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [9];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < unit_type) {\n    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(buf,x_pixels_per_unit);\n  png_save_uint_32(buf + 4,y_pixels_per_unit);\n  buf[8] = (png_byte)unit_type;\n  png_write_complete_chunk(png_ptr,0x70485973,buf,9);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "png_byte buf [9];" type_identifier (array_declarator "buf [9]" identifier [ number_literal ]) ;) (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) ))))) ;) (if_statement "if (1 < unit_type) {\n    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");\n  }" if (parenthesized_expression "(1 < unit_type)" ( (binary_expression "1 < unit_type" number_literal < identifier) )) (compound_statement "{\n    png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");\n  }" { (expression_statement "png_warning(png_ptr,"Unrecognized unit type for pHYs chunk");" (call_expression "png_warning(png_ptr,"Unrecognized unit type for pHYs chunk")" identifier (argument_list "(png_ptr,"Unrecognized unit type for pHYs chunk")" ( identifier , (string_literal ""Unrecognized unit type for pHYs chunk"" " string_content ") ))) ;) })) (expression_statement "png_save_uint_32(buf,x_pixels_per_unit);" (call_expression "png_save_uint_32(buf,x_pixels_per_unit)" identifier (argument_list "(buf,x_pixels_per_unit)" ( identifier , identifier ))) ;) (expression_statement "png_save_uint_32(buf + 4,y_pixels_per_unit);" (call_expression "png_save_uint_32(buf + 4,y_pixels_per_unit)" identifier (argument_list "(buf + 4,y_pixels_per_unit)" ( (binary_expression "buf + 4" identifier + number_literal) , identifier ))) ;) (expression_statement "buf[8] = (png_byte)unit_type;" (assignment_expression "buf[8] = (png_byte)unit_type" (subscript_expression "buf[8]" identifier [ number_literal ]) = (cast_expression "(png_byte)unit_type" ( (type_descriptor "png_byte" type_identifier) ) identifier)) ;) (expression_statement "png_write_complete_chunk(png_ptr,0x70485973,buf,9);" (call_expression "png_write_complete_chunk(png_ptr,0x70485973,buf,9)" identifier (argument_list "(png_ptr,0x70485973,buf,9)" ( identifier , number_literal , identifier , number_literal ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}\n\n" (function_definition "void FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" primitive_type (function_declarator "FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_29 [4];" type_identifier (array_declarator "local_29 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_25 [4];" type_identifier (array_declarator "local_25 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38e59;" (assignment_expression "uStack_14 = 0x38e59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" if (parenthesized_expression "(1 < param_4)" ( (binary_expression "1 < param_4" number_literal < identifier) )) (compound_statement "{\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" { (expression_statement "png_warning(param_1,"Unrecognized unit type for pHYs chunk");" (call_expression "png_warning(param_1,"Unrecognized unit type for pHYs chunk")" identifier (argument_list "(param_1,"Unrecognized unit type for pHYs chunk")" ( identifier , (string_literal ""Unrecognized unit type for pHYs chunk"" " string_content ") ))) ;) })) (expression_statement "png_save_uint_32(local_29,param_2);" (call_expression "png_save_uint_32(local_29,param_2)" identifier (argument_list "(local_29,param_2)" ( identifier , identifier ))) ;) (expression_statement "png_save_uint_32(local_25,param_3);" (call_expression "png_save_uint_32(local_25,param_3)" identifier (argument_list "(local_25,param_3)" ( identifier , identifier ))) ;) (expression_statement "local_21 = (undefined1)param_4;" (assignment_expression "local_21 = (undefined1)param_4" identifier = (cast_expression "(undefined1)param_4" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "FUN_000371c0(9);" (call_expression "FUN_000371c0(9)" identifier (argument_list "(9)" ( number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" (primitive_type "void") (function_declarator "FUN_00038e50(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00038e50") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_29 [4];\n  undefined1 local_25 [4];\n  undefined1 local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38e59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }\n  png_save_uint_32(local_29,param_2);\n  png_save_uint_32(local_25,param_3);\n  local_21 = (undefined1)param_4;\n  FUN_000371c0(9);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_29 [4];" (type_identifier "undefined1") (array_declarator "local_29 [4]" (identifier "local_29") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_25 [4];" (type_identifier "undefined1") (array_declarator "local_25 [4]" (identifier "local_25") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x38e59;" (assignment_expression "uStack_14 = 0x38e59" (identifier "uStack_14") (= "=") (number_literal "0x38e59")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (1 < param_4) {\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" (if "if") (parenthesized_expression "(1 < param_4)" (( "(") (binary_expression "1 < param_4" (number_literal "1") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    png_warning(param_1,"Unrecognized unit type for pHYs chunk");\n  }" ({ "{") (expression_statement "png_warning(param_1,"Unrecognized unit type for pHYs chunk");" (call_expression "png_warning(param_1,"Unrecognized unit type for pHYs chunk")" (identifier "png_warning") (argument_list "(param_1,"Unrecognized unit type for pHYs chunk")" (( "(") (identifier "param_1") (, ",") (string_literal ""Unrecognized unit type for pHYs chunk"" (" """) (string_content "Unrecognized unit type for pHYs chunk") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "png_save_uint_32(local_29,param_2);" (call_expression "png_save_uint_32(local_29,param_2)" (identifier "png_save_uint_32") (argument_list "(local_29,param_2)" (( "(") (identifier "local_29") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "png_save_uint_32(local_25,param_3);" (call_expression "png_save_uint_32(local_25,param_3)" (identifier "png_save_uint_32") (argument_list "(local_25,param_3)" (( "(") (identifier "local_25") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "local_21 = (undefined1)param_4;" (assignment_expression "local_21 = (undefined1)param_4" (identifier "local_21") (= "=") (cast_expression "(undefined1)param_4" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "param_4"))) (; ";")) (expression_statement "FUN_000371c0(9);" (call_expression "FUN_000371c0(9)" (identifier "FUN_000371c0") (argument_list "(9)" (( "(") (number_literal "9") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" (identifier "FUN_0003a600") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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 x_pixels_per_unit,type_2 y_pixels_per_unit
                   ,int var_2)

{
  int var_7;
  int var_1;
  type_3 var_5 [9];
  
  var_7 = *(int *)(var_1 + 0x14);
  if (1 < var_2) {
    var_3(png_ptr,"Unrecognized unit type for pHYs chunk");
  }
  var_4(var_5,x_pixels_per_unit);
  var_4(var_5 + 4,y_pixels_per_unit);
  var_5[8] = (type_3)var_2;
  var_6(png_ptr,0x70485973,var_5,9);
  if (var_7 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int in_GS_OFFSET;
  undefined1 local_29 [4];
  undefined1 local_25 [4];
  undefined1 local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x38e59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (1 < param_4) {
    png_warning(param_1,"Unrecognized unit type for pHYs chunk");
  }
  png_save_uint_32(local_29,param_2);
  png_save_uint_32(local_25,param_3);
  local_21 = (undefined1)param_4;
  FUN_000371c0(9);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003a600();
}

