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

void png_write_acTL(png_structp png_ptr,png_uint_32 num_frames,png_uint_32 num_plays)

{
  int iVar1;
  int in_GS_OFFSET;
  png_byte buf [8];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  png_ptr->num_frames_to_write = num_frames;
  png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0));
  png_save_uint_32(buf + 4,num_plays);
  png_write_complete_chunk(png_ptr,0x6163544c,buf,8);
  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_00038fb0(int param_1,int param_2,undefined4 param_3)

{
  int in_GS_OFFSET;
  undefined1 local_18 [4];
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  *(int *)(param_1 + 0x2d0) = param_2;
  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));
  png_save_uint_32(local_14,param_3);
  FUN_000371c0(8);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003a600();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x14dc8
SUB ESP,0x18
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x14],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x2c]
MOV EAX,dword ptr [ESI + 0x2b4]
MOV dword ptr [ESI + 0x2d0],EDX
AND EAX,0x1
CMP EAX,0x1
ADC EDX,-0x1
PUSH EDX
LEA EDI,[ESP + 0x10]
PUSH EDI
CALL 0x00014500
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x30]
LEA EAX,[ESP + 0x14]
PUSH EAX
CALL 0x00014500
MOV EAX,ESI
MOV ECX,EDI
MOV EDX,0x6163544c
MOV dword ptr [ESP],0x8
CALL 0x000371c0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00039031
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x0003a600
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038fb0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(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_00038fb0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0003a600();\n}" primitive_type (function_declarator "FUN_00038fb0(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(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_18 [4];" type_identifier (array_declarator "local_18 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (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 "*(int *)(param_1 + 0x2d0) = param_2;" (assignment_expression "*(int *)(param_1 + 0x2d0) = param_2" (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) = identifier) ;) (expression_statement "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));" (call_expression "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" identifier (argument_list "(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" ( identifier , (binary_expression "param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (binary_expression "param_2 + -1" identifier + number_literal) + (call_expression "(uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((*(uint *)(param_1 + 0x2b4) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2b4) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2b4) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x2b4) & 1" (pointer_expression "*(uint *)(param_1 + 0x2b4)" * (cast_expression "(uint *)(param_1 + 0x2b4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2b4)" ( (binary_expression "param_1 + 0x2b4" identifier + number_literal) )))) & number_literal) )) == number_literal) )))) ))) ;) (expression_statement "png_save_uint_32(local_14,param_3);" (call_expression "png_save_uint_32(local_14,param_3)" identifier (argument_list "(local_14,param_3)" ( identifier , identifier ))) ;) (expression_statement "FUN_000371c0(8);" (call_expression "FUN_000371c0(8)" identifier (argument_list "(8)" ( number_literal ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\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\nvoid png_write_acTL(png_structp png_ptr,png_uint_32 num_frames,png_uint_32 num_plays)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [8];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  png_ptr->num_frames_to_write = num_frames;\n  png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0));\n  png_save_uint_32(buf + 4,num_plays);\n  png_write_complete_chunk(png_ptr,0x6163544c,buf,8);\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 (function_definition "void png_write_acTL(png_structp png_ptr,png_uint_32 num_frames,png_uint_32 num_plays)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [8];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  png_ptr->num_frames_to_write = num_frames;\n  png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0));\n  png_save_uint_32(buf + 4,num_plays);\n  png_write_complete_chunk(png_ptr,0x6163544c,buf,8);\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_acTL(png_structp png_ptr,png_uint_32 num_frames,png_uint_32 num_plays)" identifier (parameter_list "(png_structp png_ptr,png_uint_32 num_frames,png_uint_32 num_plays)" ( (parameter_declaration "png_structp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 num_frames" type_identifier identifier) , (parameter_declaration "png_uint_32 num_plays" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  png_byte buf [8];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  png_ptr->num_frames_to_write = num_frames;\n  png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0));\n  png_save_uint_32(buf + 4,num_plays);\n  png_write_complete_chunk(png_ptr,0x6163544c,buf,8);\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 [8];" type_identifier (array_declarator "buf [8]" 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) ))))) ;) (expression_statement "png_ptr->num_frames_to_write = num_frames;" (assignment_expression "png_ptr->num_frames_to_write = num_frames" (field_expression "png_ptr->num_frames_to_write" identifier -> field_identifier) = identifier) ;) (expression_statement "png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0));" (call_expression "png_save_uint_32(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0))" identifier (argument_list "(buf,(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0))" ( identifier , (binary_expression "(num_frames - 1) + (uint)((png_ptr->apng_flags & 1) == 0)" (parenthesized_expression "(num_frames - 1)" ( (binary_expression "num_frames - 1" identifier - number_literal) )) + (call_expression "(uint)((png_ptr->apng_flags & 1) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((png_ptr->apng_flags & 1) == 0)" ( (binary_expression "(png_ptr->apng_flags & 1) == 0" (parenthesized_expression "(png_ptr->apng_flags & 1)" ( (binary_expression "png_ptr->apng_flags & 1" (field_expression "png_ptr->apng_flags" identifier -> field_identifier) & number_literal) )) == number_literal) )))) ))) ;) (expression_statement "png_save_uint_32(buf + 4,num_plays);" (call_expression "png_save_uint_32(buf + 4,num_plays)" identifier (argument_list "(buf + 4,num_plays)" ( (binary_expression "buf + 4" identifier + number_literal) , identifier ))) ;) (expression_statement "png_write_complete_chunk(png_ptr,0x6163544c,buf,8);" (call_expression "png_write_complete_chunk(png_ptr,0x6163544c,buf,8)" identifier (argument_list "(png_ptr,0x6163544c,buf,8)" ( 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_00038fb0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}\n\n" (function_definition "void FUN_00038fb0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" primitive_type (function_declarator "FUN_00038fb0(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_18 [4];" type_identifier (array_declarator "local_18 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (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 "*(int *)(param_1 + 0x2d0) = param_2;" (assignment_expression "*(int *)(param_1 + 0x2d0) = param_2" (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) = identifier) ;) (expression_statement "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));" (call_expression "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" identifier (argument_list "(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" ( identifier , (binary_expression "param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (binary_expression "param_2 + -1" identifier + number_literal) + (call_expression "(uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((*(uint *)(param_1 + 0x2b4) & 1) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2b4) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2b4) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x2b4) & 1" (pointer_expression "*(uint *)(param_1 + 0x2b4)" * (cast_expression "(uint *)(param_1 + 0x2b4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2b4)" ( (binary_expression "param_1 + 0x2b4" identifier + number_literal) )))) & number_literal) )) == number_literal) )))) ))) ;) (expression_statement "png_save_uint_32(local_14,param_3);" (call_expression "png_save_uint_32(local_14,param_3)" identifier (argument_list "(local_14,param_3)" ( identifier , identifier ))) ;) (expression_statement "FUN_000371c0(8);" (call_expression "FUN_000371c0(8)" identifier (argument_list "(8)" ( number_literal ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , 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_00038fb0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0003a600();\n}" (primitive_type "void") (function_declarator "FUN_00038fb0(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00038fb0") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_18 [4];\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  *(int *)(param_1 + 0x2d0) = param_2;\n  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));\n  png_save_uint_32(local_14,param_3);\n  FUN_000371c0(8);\n  if (local_10 == *(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_18 [4];" (type_identifier "undefined1") (array_declarator "local_18 [4]" (identifier "local_18") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_14 [4];" (type_identifier "undefined1") (array_declarator "local_14 [4]" (identifier "local_14") ([ "[") (number_literal "4") (] "]")) (; ";")) (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 "*(int *)(param_1 + 0x2d0) = param_2;" (assignment_expression "*(int *)(param_1 + 0x2d0) = param_2" (pointer_expression "*(int *)(param_1 + 0x2d0)" (* "*") (cast_expression "(int *)(param_1 + 0x2d0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d0)" (( "(") (binary_expression "param_1 + 0x2d0" (identifier "param_1") (+ "+") (number_literal "0x2d0")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));" (call_expression "png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" (identifier "png_save_uint_32") (argument_list "(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0))" (( "(") (identifier "local_18") (, ",") (binary_expression "param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) (+ "+") (call_expression "(uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((*(uint *)(param_1 + 0x2b4) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x2b4) & 1) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2b4) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x2b4) & 1" (pointer_expression "*(uint *)(param_1 + 0x2b4)" (* "*") (cast_expression "(uint *)(param_1 + 0x2b4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2b4)" (( "(") (binary_expression "param_1 + 0x2b4" (identifier "param_1") (+ "+") (number_literal "0x2b4")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")))) () ")"))) (; ";")) (expression_statement "png_save_uint_32(local_14,param_3);" (call_expression "png_save_uint_32(local_14,param_3)" (identifier "png_save_uint_32") (argument_list "(local_14,param_3)" (( "(") (identifier "local_14") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_000371c0(8);" (call_expression "FUN_000371c0(8)" (identifier "FUN_000371c0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\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 */

void function_1(type_1 png_ptr,type_2 var_3,type_2 num_plays)

{
  int var_6;
  int var_1;
  type_3 var_4 [8];
  
  var_6 = *(int *)(var_1 + 0x14);
  png_ptr->num_frames_to_write = var_3;
  var_2(var_4,(var_3 - 1) + (uint)((png_ptr->apng_flags & 1) == 0));
  var_2(var_4 + 4,num_plays);
  var_5(png_ptr,0x6163544c,var_4,8);
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (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: (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))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (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)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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(int param_1,int param_2,undefined4 param_3)

{
  int in_GS_OFFSET;
  undefined1 local_18 [4];
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  *(int *)(param_1 + 0x2d0) = param_2;
  png_save_uint_32(local_18,param_2 + -1 + (uint)((*(uint *)(param_1 + 0x2b4) & 1) == 0));
  png_save_uint_32(local_14,param_3);
  FUN_000371c0(8);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0003a600();
}

