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

void safefree(void *ptr)

{
  if (ptr != (void *)0x0) {
    free(ptr);
  }
  return;
}



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

void FUN_0002f010(void *param_1)

{
  if (param_1 != (void *)0x0) {
    free(param_1);
  }
  return;
}


PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xe173a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0002f033
SUB ESP,0xc
PUSH EAX
CALL 0x0001b400
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002f010(void *param_1)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002f010(void *param_1)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002f010(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\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    free(param_1);\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid safefree(void *ptr)\n\n{\n  if (ptr != (void *)0x0) {\n    free(ptr);\n  }\n  return;\n}\n\n" comment comment (function_definition "void safefree(void *ptr)\n\n{\n  if (ptr != (void *)0x0) {\n    free(ptr);\n  }\n  return;\n}" primitive_type (function_declarator "safefree(void *ptr)" identifier (parameter_list "(void *ptr)" ( (parameter_declaration "void *ptr" primitive_type (pointer_declarator "*ptr" * identifier)) ))) (compound_statement "{\n  if (ptr != (void *)0x0) {\n    free(ptr);\n  }\n  return;\n}" { (if_statement "if (ptr != (void *)0x0) {\n    free(ptr);\n  }" if (parenthesized_expression "(ptr != (void *)0x0)" ( (binary_expression "ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(ptr);\n  }" { (expression_statement "free(ptr);" (call_expression "free(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002f010(void *param_1)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002f010(void *param_1)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002f010(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\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    free(param_1);\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002f010(void *param_1)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002f010(void *param_1)" (identifier "FUN_0002f010") (parameter_list "(void *param_1)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\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    free(param_1);\n  }" ({ "{") (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *var_1)

{
  if (var_1 != (void *)0x0) {
    var_2(var_1);
  }
  return;
}


(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))))) 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)))))) (return_statement))))

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

void MASKED(void *param_1)

{
  if (param_1 != (void *)0x0) {
    free(param_1);
  }
  return;
}

