
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

void SetImageInfoCustomStream(ImageInfo *image_info,CustomStreamInfo *custom_stream)

{
  if (image_info == (ImageInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,
                  "SetImageInfoCustomStream");
  }
  if (image_info->signature == 0xabacadab) {
    if (image_info->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",
                     image_info->filename);
    }
    image_info->custom_stream = custom_stream;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,
                "SetImageInfoCustomStream");
}



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

void SetImageInfoCustomStream(int param_1,undefined4 param_2)

{
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,
                  "SetImageInfoCustomStream");
  }
  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {
    if (*(int *)(param_1 + 0x31f0) != 0) {
      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,
                     param_1 + 0x21f0);
    }
    *(undefined4 *)(param_1 + 0x31f8) = param_2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,
                "SetImageInfoCustomStream");
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2f5f29
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000e315e
CMP dword ptr [ESI + 0x31f4],0xabacadab
JNZ 0x000e313f
MOV EAX,dword ptr [ESI + 0x31f0]
TEST EAX,EAX
JZ 0x000e312f
LEA EAX,[ESI + 0x21f0]
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffedde4e]
PUSH EAX
LEA EAX,[EBX + 0xffede8e0]
PUSH 0xc1f
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH EAX
PUSH 0x8000
CALL 0x000323b0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x31f8],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xffede8fc]
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH 0xc1d
PUSH EAX
LEA EAX,[EBX + 0xffec5b28]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffede8fc]
PUSH EAX
LEA EAX,[EBX + 0xffede4fb]
PUSH 0xc1c
PUSH EAX
LEA EAX,[EBX + 0xffec6a18]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid SetImageInfoCustomStream(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}\n\n" comment (function_definition "void SetImageInfoCustomStream(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" primitive_type (function_declarator "SetImageInfoCustomStream(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  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" { (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" { comment (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" identifier (argument_list "(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" ( number_literal , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""SetImageInfoCustomStream"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x31f8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x31f8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x31f8)" * (cast_expression "(undefined4 *)(param_1 + 0x31f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f8)" ( (binary_expression "param_1 + 0x31f8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nvoid SetImageInfoCustomStream(ImageInfo *image_info,CustomStreamInfo *custom_stream)\n\n{\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (image_info->signature == 0xabacadab) {\n    if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }\n    image_info->custom_stream = custom_stream;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}\n\n" comment comment comment comment comment comment comment (function_definition "void SetImageInfoCustomStream(ImageInfo *image_info,CustomStreamInfo *custom_stream)\n\n{\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (image_info->signature == 0xabacadab) {\n    if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }\n    image_info->custom_stream = custom_stream;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" primitive_type (function_declarator "SetImageInfoCustomStream(ImageInfo *image_info,CustomStreamInfo *custom_stream)" identifier (parameter_list "(ImageInfo *image_info,CustomStreamInfo *custom_stream)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) , (parameter_declaration "CustomStreamInfo *custom_stream" type_identifier (pointer_declarator "*custom_stream" * identifier)) ))) (compound_statement "{\n  if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (image_info->signature == 0xabacadab) {\n    if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }\n    image_info->custom_stream = custom_stream;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" { (if_statement "if (image_info == (ImageInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" if (parenthesized_expression "(image_info == (ImageInfo *)0x0)" ( (binary_expression "image_info == (ImageInfo *)0x0" identifier == (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" { comment (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })) (if_statement "if (image_info->signature == 0xabacadab) {\n    if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }\n    image_info->custom_stream = custom_stream;\n    return;\n  }" if (parenthesized_expression "(image_info->signature == 0xabacadab)" ( (binary_expression "image_info->signature == 0xabacadab" (field_expression "image_info->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }\n    image_info->custom_stream = custom_stream;\n    return;\n  }" { (if_statement "if (image_info->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }" if (parenthesized_expression "(image_info->debug != MagickFalse)" ( (binary_expression "image_info->debug != MagickFalse" (field_expression "image_info->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename)" identifier (argument_list "(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",\n                     image_info->filename)" ( identifier , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""SetImageInfoCustomStream"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image_info->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "image_info->custom_stream = custom_stream;" (assignment_expression "image_info->custom_stream = custom_stream" (field_expression "image_info->custom_stream" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })))
(translation_unit "void SetImageInfoCustomStream(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    \n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}\n\n" (function_definition "void SetImageInfoCustomStream(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    \n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" primitive_type (function_declarator "SetImageInfoCustomStream(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  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    \n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" { (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" { (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" identifier (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" ( (string_literal ""image_info != (ImageInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f4) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x31f4) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" * (cast_expression "(int *)(param_1 + 0x31f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f4)" ( (binary_expression "param_1 + 0x31f4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" ( (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" * (cast_expression "(int *)(param_1 + 0x31f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f0)" ( (binary_expression "param_1 + 0x31f0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" identifier (argument_list "(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" ( number_literal , (string_literal ""MagickCore/image.c"" " string_content ") , (string_literal ""SetImageInfoCustomStream"" " string_content ") , number_literal , (pointer_expression "&DAT_002b6e4e" & identifier) , (binary_expression "param_1 + 0x21f0" identifier + number_literal) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x31f8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x31f8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x31f8)" * (cast_expression "(undefined4 *)(param_1 + 0x31f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31f8)" ( (binary_expression "param_1 + 0x31f8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" identifier (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" ( (string_literal ""image_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/image.c"" " string_content ") , number_literal , (string_literal ""SetImageInfoCustomStream"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (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) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void SetImageInfoCustomStream(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    \n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" (primitive_type "void") (function_declarator "SetImageInfoCustomStream(int param_1,undefined4 param_2)" (identifier "SetImageInfoCustomStream") (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  if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }\n  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }\n                    \n  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");\n}" ({ "{") (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");\n  }" ({ "{") (expression_statement "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" (identifier "__assert_fail") (argument_list "("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,\n                  "SetImageInfoCustomStream")" (( "(") (string_literal ""image_info != (ImageInfo *) NULL"" (" """) (string_content "image_info != (ImageInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (number_literal "0xc1c") (, ",") (string_literal ""SetImageInfoCustomStream"" (" """) (string_content "SetImageInfoCustomStream") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x31f4) == -0x54535255) {\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f4) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f4) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x31f4)" (* "*") (cast_expression "(int *)(param_1 + 0x31f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f4)" (( "(") (binary_expression "param_1 + 0x31f4" (identifier "param_1") (+ "+") (number_literal "0x31f4")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }\n    *(undefined4 *)(param_1 + 0x31f8) = param_2;\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x31f0) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x31f0) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x31f0) != 0" (pointer_expression "*(int *)(param_1 + 0x31f0)" (* "*") (cast_expression "(int *)(param_1 + 0x31f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f0)" (( "(") (binary_expression "param_1 + 0x31f0" (identifier "param_1") (+ "+") (number_literal "0x31f0")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0);" (call_expression "LogMagickEvent(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,&DAT_002b6e4e,\n                     param_1 + 0x21f0)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (string_literal ""SetImageInfoCustomStream"" (" """) (string_content "SetImageInfoCustomStream") (" """)) (, ",") (number_literal "0xc1f") (, ",") (pointer_expression "&DAT_002b6e4e" (& "&") (identifier "DAT_002b6e4e")) (, ",") (binary_expression "param_1 + 0x21f0" (identifier "param_1") (+ "+") (number_literal "0x21f0")) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x31f8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x31f8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x31f8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x31f8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31f8)" (( "(") (binary_expression "param_1 + 0x31f8" (identifier "param_1") (+ "+") (number_literal "0x31f8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream");" (call_expression "__assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" (identifier "__assert_fail") (argument_list "("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,\n                "SetImageInfoCustomStream")" (( "(") (string_literal ""image_info->signature == MagickCoreSignature"" (" """) (string_content "image_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/image.c"" (" """) (string_content "MagickCore/image.c") (" """)) (, ",") (number_literal "0xc1d") (, ",") (string_literal ""SetImageInfoCustomStream"" (" """) (string_content "SetImageInfoCustomStream") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

void function_1(type_1 *var_1,type_2 *custom_stream)

{
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,
                  "SetImageInfoCustomStream");
  }
  if (var_1->signature == 0xabacadab) {
    if (var_1->debug != var_3) {
      var_4(TraceEvent,"MagickCore/image.c","SetImageInfoCustomStream",0xc1f,"%s",
                     var_1->filename);
    }
    var_1->custom_stream = custom_stream;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,
                "SetImageInfoCustomStream");
}


(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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

void MASKED(int param_1,undefined4 param_2)

{
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image_info != (ImageInfo *) NULL","MagickCore/image.c",0xc1c,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x31f4) == -0x54535255) {
    if (*(int *)(param_1 + 0x31f0) != 0) {
      LogMagickEvent(0x8000,"MagickCore/image.c","MASKED",0xc1f,&DAT_002b6e4e,
                     param_1 + 0x21f0);
    }
    *(undefined4 *)(param_1 + 0x31f8) = param_2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image_info->signature == MagickCoreSignature","MagickCore/image.c",0xc1d,
                "MASKED");
}

