
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00014120 */
/* WARNING: Unknown calling convention */

png_voidp png_malloc_warn(png_const_structrp png_ptr,png_alloc_size_t size)

{
  png_voidp pvVar1;
  
  pvVar1 = (png_voidp)0x0;
  if ((png_ptr != (png_const_structrp)0x0) &&
     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)) {
    png_warning(png_ptr,"Out of memory");
    return (png_voidp)0x0;
  }
  return pvVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00014120 */

int png_malloc_warn(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {
    png_warning(param_1,"Out of memory");
    return 0;
  }
  return iVar1;
}


JMP dword ptr [EBX + 0x44]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00014120 */\n\nint png_malloc_warn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int png_malloc_warn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "png_malloc_warn(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0))" ( (binary_expression "(param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001cf00(param_1,param_2)" identifier = (call_expression "FUN_0001cf00(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" { (expression_statement "png_warning(param_1,"Out of memory");" (call_expression "png_warning(param_1,"Out of memory")" identifier (argument_list "(param_1,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00014120 */\n/* WARNING: Unknown calling convention */\n\npng_voidp png_malloc_warn(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp pvVar1;\n  \n  pvVar1 = (png_voidp)0x0;\n  if ((png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)) {\n    png_warning(png_ptr,"Out of memory");\n    return (png_voidp)0x0;\n  }\n  return pvVar1;\n}\n\n" comment comment comment (function_definition "png_voidp png_malloc_warn(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp pvVar1;\n  \n  pvVar1 = (png_voidp)0x0;\n  if ((png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)) {\n    png_warning(png_ptr,"Out of memory");\n    return (png_voidp)0x0;\n  }\n  return pvVar1;\n}" type_identifier (function_declarator "png_malloc_warn(png_const_structrp png_ptr,png_alloc_size_t size)" identifier (parameter_list "(png_const_structrp png_ptr,png_alloc_size_t size)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_alloc_size_t size" type_identifier identifier) ))) (compound_statement "{\n  png_voidp pvVar1;\n  \n  pvVar1 = (png_voidp)0x0;\n  if ((png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)) {\n    png_warning(png_ptr,"Out of memory");\n    return (png_voidp)0x0;\n  }\n  return pvVar1;\n}" { (declaration "png_voidp pvVar1;" type_identifier identifier ;) (expression_statement "pvVar1 = (png_voidp)0x0;" (assignment_expression "pvVar1 = (png_voidp)0x0" identifier = (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal)) ;) (if_statement "if ((png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)) {\n    png_warning(png_ptr,"Out of memory");\n    return (png_voidp)0x0;\n  }" if (parenthesized_expression "((png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0))" ( (binary_expression "(png_ptr != (png_const_structrp)0x0) &&\n     (pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)" (parenthesized_expression "(png_ptr != (png_const_structrp)0x0)" ( (binary_expression "png_ptr != (png_const_structrp)0x0" identifier != (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0)" ( (comma_expression "pvVar1 = png_malloc_base(png_ptr,size), pvVar1 == (png_voidp)0x0" (assignment_expression "pvVar1 = png_malloc_base(png_ptr,size)" identifier = (call_expression "png_malloc_base(png_ptr,size)" identifier (argument_list "(png_ptr,size)" ( identifier , identifier )))) , (binary_expression "pvVar1 == (png_voidp)0x0" identifier == (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal))) ))) )) (compound_statement "{\n    png_warning(png_ptr,"Out of memory");\n    return (png_voidp)0x0;\n  }" { (expression_statement "png_warning(png_ptr,"Out of memory");" (call_expression "png_warning(png_ptr,"Out of memory")" identifier (argument_list "(png_ptr,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) (return_statement "return (png_voidp)0x0;" return (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int png_malloc_warn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int png_malloc_warn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "png_malloc_warn(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0))" ( (binary_expression "(param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001cf00(param_1,param_2)" identifier = (call_expression "FUN_0001cf00(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" { (expression_statement "png_warning(param_1,"Out of memory");" (call_expression "png_warning(param_1,"Out of memory")" identifier (argument_list "(param_1,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (return_statement return LIT ;) })) (return_statement return IDENT ;) })))
(function_definition "int png_malloc_warn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "png_malloc_warn(int param_1,undefined4 param_2)" (identifier "png_malloc_warn") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0))" (( "(") (binary_expression "(param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001cf00(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_0001cf00(param_1,param_2)" (identifier "FUN_0001cf00") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    png_warning(param_1,"Out of memory");\n    return 0;\n  }" ({ "{") (expression_statement "png_warning(param_1,"Out of memory");" (call_expression "png_warning(param_1,"Out of memory")" (identifier "png_warning") (argument_list "(param_1,"Out of memory")" (( "(") (identifier "param_1") (, ",") (string_literal ""Out of memory"" (" """) (string_content "Out of memory") (" """)) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00014120 */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_1,type_3 size)

{
  type_1 var_3;
  
  var_3 = (type_1)0x0;
  if ((var_1 != (type_2)0x0) &&
     (var_3 = var_2(var_1,size), var_3 == (type_1)0x0)) {
    var_4(var_1,"Out of memory");
    return (type_1)0x0;
  }
  return var_3;
}


(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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) (return_statement (number_literal)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00014120 */

int MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1 != 0) && (iVar1 = FUN_0001cf00(param_1,param_2), iVar1 == 0)) {
    png_warning(param_1,"Out of memory");
    return 0;
  }
  return iVar1;
}

