
/* std::string::_M_check_length(unsigned long, unsigned long, char const*) const */

void __thiscall std::string::_M_check_length(string *this,ulong param_1,ulong param_2,char *param_3)

{
  if (param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error(param_3);
}



void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)

{
  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00330790(param_4);
}


MOV RAX,0x3ffffffffffffff9
ADD RSI,RAX
MOV RAX,qword ptr [RDI]
SUB RSI,qword ptr [RAX + -0x18]
CMP RSI,RDX
JC 0x00323cda
RET
PUSH RAX
MOV RDI,RCX
CALL 0x00330790
(translation_unit "void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)\n\n{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00330790(param_4);\n}\n\n" (function_definition "void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)\n\n{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00330790(param_4);\n}" primitive_type (function_declarator "FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)" identifier (parameter_list "(long *param_1,long param_2,ulong param_3,undefined8 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00330790(param_4);\n}" { (if_statement "if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)))" ( (binary_expression "param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" identifier <= (call_expression "(ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" ( (binary_expression "(param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)" (parenthesized_expression "(param_2 + 0x3ffffffffffffff9)" ( (binary_expression "param_2 + 0x3ffffffffffffff9" identifier + number_literal) )) - (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00330790(param_4);" (call_expression "FUN_00330790(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })))
(translation_unit "/* std::string::_M_check_length(unsigned long, unsigned long, char const*) const */\n\nvoid __thiscall std::string::_M_check_length(string *this,ulong param_1,ulong param_2,char *param_3)\n\n{\n  if (param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}\n\n" comment (function_definition "void __thiscall std::string::_M_check_length(string *this,ulong param_1,ulong param_2,char *param_3)\n\n{\n  if (param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_check_length(string *this,ulong param_1,ulong param_2,char *param_3)" identifier (parameter_list "(string *this,ulong param_1,ulong param_2,char *param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if (param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error(param_3);\n}" { (if_statement "if (param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18))" ( (binary_expression "param_2 <= (param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)" identifier <= (binary_expression "(param_1 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)" (parenthesized_expression "(param_1 + 0x3ffffffffffffff9)" ( (binary_expression "param_1 + 0x3ffffffffffffff9" identifier + number_literal) )) - (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error(param_3);" (call_expression "__throw_length_error(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) })))
(translation_unit "void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)\n\n{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    \n  FUN_00330790(param_4);\n}\n\n" (function_definition "void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)\n\n{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    \n  FUN_00330790(param_4);\n}" primitive_type (function_declarator "FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)" identifier (parameter_list "(long *param_1,long param_2,ulong param_3,undefined8 param_4)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    \n  FUN_00330790(param_4);\n}" { (if_statement "if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)))" ( (binary_expression "param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" identifier <= (call_expression "(ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" ( (binary_expression "(param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)" (parenthesized_expression "(param_2 + 0x3ffffffffffffff9)" ( (binary_expression "param_2 + 0x3ffffffffffffff9" identifier + number_literal) )) - (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00330790(param_4);" (call_expression "FUN_00330790(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))
(function_definition "void FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)\n\n{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    \n  FUN_00330790(param_4);\n}" (primitive_type "void") (function_declarator "FUN_00323cc0(long *param_1,long param_2,ulong param_3,undefined8 param_4)" (identifier "FUN_00323cc0") (parameter_list "(long *param_1,long param_2,ulong param_3,undefined8 param_4)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }\n                    \n  FUN_00330790(param_4);\n}" ({ "{") (if_statement "if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)))" (( "(") (binary_expression "param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" (identifier "param_3") (<= "<=") (call_expression "(ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))" (( "(") (binary_expression "(param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18)" (parenthesized_expression "(param_2 + 0x3ffffffffffffff9)" (( "(") (binary_expression "param_2 + 0x3ffffffffffffff9" (identifier "param_2") (+ "+") (number_literal "0x3ffffffffffffff9")) () ")")) (- "-") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00330790(param_4);" (call_expression "FUN_00330790(param_4)" (identifier "FUN_00330790") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (} "}")))

/* std::string::_M_check_length(unsigned long, unsigned long, char const*) const */

void __thiscall std::type_1::function_1(type_1 *this,type_2 var_2,type_2 var_1,char *param_3)

{
  if (var_1 <= (var_2 + 0x3ffffffffffffff9) - *(long *)(*(long *)this + -0x18)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3(param_3);
}


(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))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))

void MASKED(long *param_1,long param_2,ulong param_3,undefined8 param_4)

{
  if (param_3 <= (ulong)((param_2 + 0x3ffffffffffffff9) - *(long *)(*param_1 + -0x18))) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00330790(param_4);
}

