
/* std::string::_M_leak() */

void __thiscall std::string::_M_leak(string *this)

{
  if (*(int *)(*(long *)this + -8) < 0) {
    return;
  }
  _M_leak_hard(this);
  return;
}



void FUN_0030de30(long *param_1)

{
  if (*(int *)(*param_1 + -8) < 0) {
    return;
  }
  FUN_0030ddd0();
  return;
}


MOV RAX,qword ptr [RDI]
MOV EAX,dword ptr [RAX + -0x8]
TEST EAX,EAX
JNS 0x0030de40
RET
JMP 0x0030ddd0
(translation_unit "void FUN_0030de30(long *param_1)\n\n{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}\n\n" (function_definition "void FUN_0030de30(long *param_1)\n\n{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" primitive_type (function_declarator "FUN_0030de30(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" { (if_statement "if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(*param_1 + -8) < 0)" ( (binary_expression "*(int *)(*param_1 + -8) < 0" (pointer_expression "*(int *)(*param_1 + -8)" * (cast_expression "(int *)(*param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0030ddd0();" (call_expression "FUN_0030ddd0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::_M_leak() */\n\nvoid __thiscall std::string::_M_leak(string *this)\n\n{\n  if (*(int *)(*(long *)this + -8) < 0) {\n    return;\n  }\n  _M_leak_hard(this);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::_M_leak(string *this)\n\n{\n  if (*(int *)(*(long *)this + -8) < 0) {\n    return;\n  }\n  _M_leak_hard(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_leak(string *this)" identifier (parameter_list "(string *this)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if (*(int *)(*(long *)this + -8) < 0) {\n    return;\n  }\n  _M_leak_hard(this);\n  return;\n}" { (if_statement "if (*(int *)(*(long *)this + -8) < 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(*(long *)this + -8) < 0)" ( (binary_expression "*(int *)(*(long *)this + -8) < 0" (pointer_expression "*(int *)(*(long *)this + -8)" * (cast_expression "(int *)(*(long *)this + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -8)" ( (binary_expression "*(long *)this + -8" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "_M_leak_hard(this);" (call_expression "_M_leak_hard(this)" identifier (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0030de30(long *param_1)\n\n{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}\n\n" (function_definition "void FUN_0030de30(long *param_1)\n\n{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" primitive_type (function_declarator "FUN_0030de30(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" { (if_statement "if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(*param_1 + -8) < 0)" ( (binary_expression "*(int *)(*param_1 + -8) < 0" (pointer_expression "*(int *)(*param_1 + -8)" * (cast_expression "(int *)(*param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0030ddd0();" (call_expression "FUN_0030ddd0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0030de30(long *param_1)\n\n{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0030de30(long *param_1)" (identifier "FUN_0030de30") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }\n  FUN_0030ddd0();\n  return;\n}" ({ "{") (if_statement "if (*(int *)(*param_1 + -8) < 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_1 + -8) < 0)" (( "(") (binary_expression "*(int *)(*param_1 + -8) < 0" (pointer_expression "*(int *)(*param_1 + -8)" (* "*") (cast_expression "(int *)(*param_1 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -8)" (( "(") (binary_expression "*param_1 + -8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-8")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0030ddd0();" (call_expression "FUN_0030ddd0()" (identifier "FUN_0030ddd0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::_M_leak() */

void __thiscall std::type_1::function_1(type_1 *this)

{
  if (*(int *)(*(long *)this + -8) < 0) {
    return;
  }
  var_1(this);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(long *param_1)

{
  if (*(int *)(*param_1 + -8) < 0) {
    return;
  }
  FUN_0030ddd0();
  return;
}

