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

void * ResetMagickMemory(void *memory,int byte,size_t size)

{
  void *pvVar1;
  
  if (memory != (void *)0x0) {
    pvVar1 = memset(memory,byte,size);
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");
}



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

void ResetMagickMemory(void *param_1,int param_2,size_t param_3)

{
  if (param_1 != (void *)0x0) {
    memset(param_1,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x2deb7a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x000fa4ad
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x000310a0
ADD ESP,0x18
POP EBX
RET
LEA EAX,[EBX + 0xffee0ee8]
PUSH EAX
LEA EAX,[EBX + 0xffee0e64]
PUSH 0x4ef
PUSH EAX
LEA EAX,[EBX + 0xffee0eaa]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ResetMagickMemory(void *param_1,int param_2,size_t param_3)\n\n{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}\n\n" comment (function_definition "void ResetMagickMemory(void *param_1,int param_2,size_t param_3)\n\n{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" primitive_type (function_declarator "ResetMagickMemory(void *param_1,int param_2,size_t param_3)" identifier (parameter_list "(void *param_1,int param_2,size_t param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(param_1,param_2,param_3);\n    return;\n  }" { (expression_statement "memset(param_1,param_2,param_3);" (call_expression "memset(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");" (call_expression "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" identifier (argument_list "("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" ( (string_literal ""memory != (void *) NULL"" " string_content ") , (string_literal ""MagickCore/memory.c"" " string_content ") , number_literal , (string_literal ""ResetMagickMemory"" " 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 * ResetMagickMemory(void *memory,int byte,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (memory != (void *)0x0) {\n    pvVar1 = memset(memory,byte,size);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}\n\n" comment comment (function_definition "void * ResetMagickMemory(void *memory,int byte,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (memory != (void *)0x0) {\n    pvVar1 = memset(memory,byte,size);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" primitive_type (pointer_declarator "* ResetMagickMemory(void *memory,int byte,size_t size)" * (function_declarator "ResetMagickMemory(void *memory,int byte,size_t size)" identifier (parameter_list "(void *memory,int byte,size_t size)" ( (parameter_declaration "void *memory" primitive_type (pointer_declarator "*memory" * identifier)) , (parameter_declaration "int byte" primitive_type identifier) , (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if (memory != (void *)0x0) {\n    pvVar1 = memset(memory,byte,size);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (memory != (void *)0x0) {\n    pvVar1 = memset(memory,byte,size);\n    return pvVar1;\n  }" if (parenthesized_expression "(memory != (void *)0x0)" ( (binary_expression "memory != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = memset(memory,byte,size);\n    return pvVar1;\n  }" { (expression_statement "pvVar1 = memset(memory,byte,size);" (assignment_expression "pvVar1 = memset(memory,byte,size)" identifier = (call_expression "memset(memory,byte,size)" identifier (argument_list "(memory,byte,size)" ( identifier , identifier , identifier )))) ;) (return_statement "return pvVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");" (call_expression "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" identifier (argument_list "("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" ( (string_literal ""memory != (void *) NULL"" " string_content ") , (string_literal ""MagickCore/memory.c"" " string_content ") , number_literal , (string_literal ""ResetMagickMemory"" " string_content ") ))) ;) })))
(translation_unit "void ResetMagickMemory(void *param_1,int param_2,size_t param_3)\n\n{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    \n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}\n\n" (function_definition "void ResetMagickMemory(void *param_1,int param_2,size_t param_3)\n\n{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    \n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" primitive_type (function_declarator "ResetMagickMemory(void *param_1,int param_2,size_t param_3)" identifier (parameter_list "(void *param_1,int param_2,size_t param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    \n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(param_1,param_2,param_3);\n    return;\n  }" { (expression_statement "memset(param_1,param_2,param_3);" (call_expression "memset(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");" (call_expression "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" identifier (argument_list "("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" ( (string_literal ""memory != (void *) NULL"" " string_content ") , (string_literal ""MagickCore/memory.c"" " string_content ") , number_literal , (string_literal ""ResetMagickMemory"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , 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 ResetMagickMemory(void *param_1,int param_2,size_t param_3)\n\n{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    \n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" (primitive_type "void") (function_declarator "ResetMagickMemory(void *param_1,int param_2,size_t param_3)" (identifier "ResetMagickMemory") (parameter_list "(void *param_1,int param_2,size_t param_3)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }\n                    \n  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");\n}" ({ "{") (if_statement "if (param_1 != (void *)0x0) {\n    memset(param_1,param_2,param_3);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (void *)0x0)" (( "(") (binary_expression "param_1 != (void *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    memset(param_1,param_2,param_3);\n    return;\n  }" ({ "{") (expression_statement "memset(param_1,param_2,param_3);" (call_expression "memset(param_1,param_2,param_3)" (identifier "memset") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");" (call_expression "__assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" (identifier "__assert_fail") (argument_list "("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory")" (( "(") (string_literal ""memory != (void *) NULL"" (" """) (string_content "memory != (void *) NULL") (" """)) (, ",") (string_literal ""MagickCore/memory.c"" (" """) (string_content "MagickCore/memory.c") (" """)) (, ",") (number_literal "0x4ef") (, ",") (string_literal ""ResetMagickMemory"" (" """) (string_content "ResetMagickMemory") (" """)) () ")"))) (; ";")) (} "}")))

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

void * function_1(void *var_1,int byte,size_t size)

{
  void *pvVar1;
  
  if (var_1 != (void *)0x0) {
    pvVar1 = var_2(var_1,byte,size);
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_3("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"ResetMagickMemory");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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(void *param_1,int param_2,size_t param_3)

{
  if (param_1 != (void *)0x0) {
    memset(param_1,param_2,param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("memory != (void *) NULL","MagickCore/memory.c",0x4ef,"MASKED");
}

