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

char * SetLogName(char *name)

{
  if ((name != (char *)0x0) && (*name != '\0')) {
    CopyMagickString(log_name,name,0x1000);
    return log_name;
  }
  return log_name;
}



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

char * SetLogName(char *param_1)

{
  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {
    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);
    return s_Magick_003d9f00;
  }
  return s_Magick_003d9f00;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2e3be9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
LEA ESI,[EBX + 0xf00]
TEST EAX,EAX
JZ 0x000f5433
CMP byte ptr [EAX],0x0
JNZ 0x000f5440
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
SUB ESP,0x4
PUSH 0x1000
PUSH EAX
PUSH ESI
CALL 0x00030b70
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * SetLogName(char *param_1)\n\n{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}\n\n" comment (function_definition "char * SetLogName(char *param_1)\n\n{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" primitive_type (pointer_declarator "* SetLogName(char *param_1)" * (function_declarator "SetLogName(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" { (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" { (expression_statement "CopyMagickString(s_Magick_003d9f00,param_1,0x1000);" (call_expression "CopyMagickString(s_Magick_003d9f00,param_1,0x1000)" identifier (argument_list "(s_Magick_003d9f00,param_1,0x1000)" ( identifier , identifier , number_literal ))) ;) (return_statement "return s_Magick_003d9f00;" return identifier ;) })) (return_statement "return s_Magick_003d9f00;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * SetLogName(char *name)\n\n{\n  if ((name != (char *)0x0) && (*name != '\0')) {\n    CopyMagickString(log_name,name,0x1000);\n    return log_name;\n  }\n  return log_name;\n}\n\n" comment comment (function_definition "char * SetLogName(char *name)\n\n{\n  if ((name != (char *)0x0) && (*name != '\0')) {\n    CopyMagickString(log_name,name,0x1000);\n    return log_name;\n  }\n  return log_name;\n}" primitive_type (pointer_declarator "* SetLogName(char *name)" * (function_declarator "SetLogName(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  if ((name != (char *)0x0) && (*name != '\0')) {\n    CopyMagickString(log_name,name,0x1000);\n    return log_name;\n  }\n  return log_name;\n}" { (if_statement "if ((name != (char *)0x0) && (*name != '\0')) {\n    CopyMagickString(log_name,name,0x1000);\n    return log_name;\n  }" if (parenthesized_expression "((name != (char *)0x0) && (*name != '\0'))" ( (binary_expression "(name != (char *)0x0) && (*name != '\0')" (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*name != '\0')" ( (binary_expression "*name != '\0'" (pointer_expression "*name" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    CopyMagickString(log_name,name,0x1000);\n    return log_name;\n  }" { (expression_statement "CopyMagickString(log_name,name,0x1000);" (call_expression "CopyMagickString(log_name,name,0x1000)" identifier (argument_list "(log_name,name,0x1000)" ( identifier , identifier , number_literal ))) ;) (return_statement "return log_name;" return identifier ;) })) (return_statement "return log_name;" return identifier ;) })))
(translation_unit "char * SetLogName(char *param_1)\n\n{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}\n\n" (function_definition "char * SetLogName(char *param_1)\n\n{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" primitive_type (pointer_declarator "* SetLogName(char *param_1)" * (function_declarator "SetLogName(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" { (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" { (expression_statement "CopyMagickString(s_Magick_003d9f00,param_1,0x1000);" (call_expression "CopyMagickString(s_Magick_003d9f00,param_1,0x1000)" identifier (argument_list "(s_Magick_003d9f00,param_1,0x1000)" ( identifier , identifier , number_literal ))) ;) (return_statement "return s_Magick_003d9f00;" return identifier ;) })) (return_statement "return s_Magick_003d9f00;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "char * SetLogName(char *param_1)\n\n{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" (primitive_type "char") (pointer_declarator "* SetLogName(char *param_1)" (* "*") (function_declarator "SetLogName(char *param_1)" (identifier "SetLogName") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }\n  return s_Magick_003d9f00;\n}" ({ "{") (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" (if "if") (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" (( "(") (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);\n    return s_Magick_003d9f00;\n  }" ({ "{") (expression_statement "CopyMagickString(s_Magick_003d9f00,param_1,0x1000);" (call_expression "CopyMagickString(s_Magick_003d9f00,param_1,0x1000)" (identifier "CopyMagickString") (argument_list "(s_Magick_003d9f00,param_1,0x1000)" (( "(") (identifier "s_Magick_003d9f00") (, ",") (identifier "param_1") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (return_statement "return s_Magick_003d9f00;" (return "return") (identifier "s_Magick_003d9f00") (; ";")) (} "}"))) (return_statement "return s_Magick_003d9f00;" (return "return") (identifier "s_Magick_003d9f00") (; ";")) (} "}")))

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

char * function_1(char *var_1)

{
  if ((var_1 != (char *)0x0) && (*var_1 != '\0')) {
    var_2(log_name,var_1,0x1000);
    return log_name;
  }
  return log_name;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (return_statement (identifier)))) (return_statement (identifier)))))

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

char * MASKED(char *param_1)

{
  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {
    CopyMagickString(s_Magick_003d9f00,param_1,0x1000);
    return s_Magick_003d9f00;
  }
  return s_Magick_003d9f00;
}

