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

void SetCustomStreamData(CustomStreamInfo *custom_stream,void *data)

{
  if (custom_stream == (CustomStreamInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,
                  "SetCustomStreamData");
  }
  if (custom_stream->signature == 0xabacadab) {
    custom_stream->data = data;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,
                "SetCustomStreamData");
}



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

void SetCustomStreamData(int param_1,undefined4 param_2)

{
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,
                  "SetCustomStreamData");
  }
  if (*(int *)(param_1 + 0x14) == -0x54535255) {
    *(undefined4 *)(param_1 + 0x10) = param_2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,
                "SetCustomStreamData");
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x39404a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00044fdc
CMP dword ptr [EAX + 0x14],0xabacadab
JNZ 0x00044ffb
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX + 0x10],EDX
ADD ESP,0x8
POP EBX
RET
LEA EAX,[EBX + 0xffec6ec0]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x1478
PUSH EAX
LEA EAX,[EBX + 0xffec6a90]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6ec0]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x1479
PUSH EAX
LEA EAX,[EBX + 0xffec6ac8]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid SetCustomStreamData(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}\n\n" comment (function_definition "void SetCustomStreamData(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" primitive_type (function_declarator "SetCustomStreamData(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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" { (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" { comment (expression_statement "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" identifier (argument_list "("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" ( (string_literal ""custom_stream != (CustomStreamInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x14) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" identifier (argument_list "("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" ( (string_literal ""custom_stream->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid SetCustomStreamData(CustomStreamInfo *custom_stream,void *data)\n\n{\n  if (custom_stream == (CustomStreamInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (custom_stream->signature == 0xabacadab) {\n    custom_stream->data = data;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}\n\n" comment comment (function_definition "void SetCustomStreamData(CustomStreamInfo *custom_stream,void *data)\n\n{\n  if (custom_stream == (CustomStreamInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (custom_stream->signature == 0xabacadab) {\n    custom_stream->data = data;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" primitive_type (function_declarator "SetCustomStreamData(CustomStreamInfo *custom_stream,void *data)" identifier (parameter_list "(CustomStreamInfo *custom_stream,void *data)" ( (parameter_declaration "CustomStreamInfo *custom_stream" type_identifier (pointer_declarator "*custom_stream" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  if (custom_stream == (CustomStreamInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (custom_stream->signature == 0xabacadab) {\n    custom_stream->data = data;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" { (if_statement "if (custom_stream == (CustomStreamInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" if (parenthesized_expression "(custom_stream == (CustomStreamInfo *)0x0)" ( (binary_expression "custom_stream == (CustomStreamInfo *)0x0" identifier == (cast_expression "(CustomStreamInfo *)0x0" ( (type_descriptor "CustomStreamInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" { comment (expression_statement "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" identifier (argument_list "("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" ( (string_literal ""custom_stream != (CustomStreamInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " string_content ") ))) ;) })) (if_statement "if (custom_stream->signature == 0xabacadab) {\n    custom_stream->data = data;\n    return;\n  }" if (parenthesized_expression "(custom_stream->signature == 0xabacadab)" ( (binary_expression "custom_stream->signature == 0xabacadab" (field_expression "custom_stream->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    custom_stream->data = data;\n    return;\n  }" { (expression_statement "custom_stream->data = data;" (assignment_expression "custom_stream->data = data" (field_expression "custom_stream->data" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" identifier (argument_list "("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" ( (string_literal ""custom_stream->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " string_content ") ))) ;) })))
(translation_unit "void SetCustomStreamData(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    \n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}\n\n" (function_definition "void SetCustomStreamData(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    \n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" primitive_type (function_declarator "SetCustomStreamData(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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    \n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" { (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" { (expression_statement "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" identifier (argument_list "("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" ( (string_literal ""custom_stream != (CustomStreamInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x14) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" identifier (argument_list "("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" ( (string_literal ""custom_stream->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""SetCustomStreamData"" " 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 { (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 SetCustomStreamData(int param_1,undefined4 param_2)\n\n{\n  if (param_1 == 0) {\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    \n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" (primitive_type "void") (function_declarator "SetCustomStreamData(int param_1,undefined4 param_2)" (identifier "SetCustomStreamData") (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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }\n  if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }\n                    \n  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");\n}" ({ "{") (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");\n  }" ({ "{") (expression_statement "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" (identifier "__assert_fail") (argument_list "("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,\n                  "SetCustomStreamData")" (( "(") (string_literal ""custom_stream != (CustomStreamInfo *) NULL"" (" """) (string_content "custom_stream != (CustomStreamInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x1478") (, ",") (string_literal ""SetCustomStreamData"" (" """) (string_content "SetCustomStreamData") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x14) == -0x54535255) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    return;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData");" (call_expression "__assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" (identifier "__assert_fail") (argument_list "("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,\n                "SetCustomStreamData")" (( "(") (string_literal ""custom_stream->signature == MagickCoreSignature"" (" """) (string_content "custom_stream->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x1479") (, ",") (string_literal ""SetCustomStreamData"" (" """) (string_content "SetCustomStreamData") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *var_1,void *data)

{
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,
                  "SetCustomStreamData");
  }
  if (var_1->signature == 0xabacadab) {
    var_1->data = data;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,
                "SetCustomStreamData");
}


(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 (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("custom_stream != (CustomStreamInfo *) NULL","MagickCore/blob.c",0x1478,
                  "MASKED");
  }
  if (*(int *)(param_1 + 0x14) == -0x54535255) {
    *(undefined4 *)(param_1 + 0x10) = param_2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("custom_stream->signature == MagickCoreSignature","MagickCore/blob.c",0x1479,
                "MASKED");
}

