
/* std::wstring::append(wchar_t const*, unsigned long) */

void __thiscall std::wstring::append(wstring *this,wchar_t *param_1,ulong param_2)

{
  if (param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)) {
    _M_append(this,param_1,param_2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error("basic_string::append");
}



void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)

{
  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {
    FUN_002a7e20();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002e12b0("basic_string::append");
}


MOV RAX,0x1fffffffffffffff
SUB RAX,qword ptr [RDI + 0x8]
CMP RDX,RAX
JA 0x002a7f28
JMP 0x002a7e20
PUSH RAX
LEA RDI,[0x33f22b]
CALL 0x002e12b0
(translation_unit "void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)\n\n{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e12b0("basic_string::append");\n}\n\n" (function_definition "void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)\n\n{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e12b0("basic_string::append");\n}" primitive_type (function_declarator "FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e12b0("basic_string::append");\n}" { (if_statement "if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }" if (parenthesized_expression "(param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8))" ( (binary_expression "param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)" identifier <= (binary_expression "0x1fffffffffffffffU - *(long *)(param_1 + 8)" number_literal - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    FUN_002a7e20();\n    return;\n  }" { (expression_statement "FUN_002a7e20();" (call_expression "FUN_002a7e20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "/* std::wstring::append(wchar_t const*, unsigned long) */\n\nvoid __thiscall std::wstring::append(wstring *this,wchar_t *param_1,ulong param_2)\n\n{\n  if (param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}\n\n" comment (function_definition "void __thiscall std::wstring::append(wstring *this,wchar_t *param_1,ulong param_2)\n\n{\n  if (param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "append(wstring *this,wchar_t *param_1,ulong param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,ulong param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" { (if_statement "if (param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)) {\n    _M_append(this,param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8))" ( (binary_expression "param_2 <= 0x1fffffffffffffffU - *(long *)(this + 8)" identifier <= (binary_expression "0x1fffffffffffffffU - *(long *)(this + 8)" number_literal - (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    _M_append(this,param_1,param_2);\n    return;\n  }" { (expression_statement "_M_append(this,param_1,param_2);" (call_expression "_M_append(this,param_1,param_2)" identifier (argument_list "(this,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)\n\n{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    \n  FUN_002e12b0("basic_string::append");\n}\n\n" (function_definition "void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)\n\n{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    \n  FUN_002e12b0("basic_string::append");\n}" primitive_type (function_declarator "FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    \n  FUN_002e12b0("basic_string::append");\n}" { (if_statement "if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }" if (parenthesized_expression "(param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8))" ( (binary_expression "param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)" identifier <= (binary_expression "0x1fffffffffffffffU - *(long *)(param_1 + 8)" number_literal - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) )) (compound_statement "{\n    FUN_002a7e20();\n    return;\n  }" { (expression_statement "FUN_002a7e20();" (call_expression "FUN_002a7e20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 <= (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)\n\n{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    \n  FUN_002e12b0("basic_string::append");\n}" (primitive_type "void") (function_declarator "FUN_002a7f10(long param_1,undefined8 param_2,ulong param_3)" (identifier "FUN_002a7f10") (parameter_list "(long param_1,undefined8 param_2,ulong param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }\n                    \n  FUN_002e12b0("basic_string::append");\n}" ({ "{") (if_statement "if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {\n    FUN_002a7e20();\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8))" (( "(") (binary_expression "param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)" (identifier "param_3") (<= "<=") (binary_expression "0x1fffffffffffffffU - *(long *)(param_1 + 8)" (number_literal "0x1fffffffffffffffU") (- "-") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))))) () ")")) (compound_statement "{\n    FUN_002a7e20();\n    return;\n  }" ({ "{") (expression_statement "FUN_002a7e20();" (call_expression "FUN_002a7e20()" (identifier "FUN_002a7e20") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" (identifier "FUN_002e12b0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}")))

/* std::wstring::append(wchar_t const*, unsigned long) */

void __thiscall std::type_1::function_1(type_1 *var_2,type_2 *param_1,type_3 var_1)

{
  if (var_1 <= 0x1fffffffffffffffU - *(long *)(var_2 + 8)) {
    var_3(var_2,param_1,var_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4("basic_string::append");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (binary_expression left: (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: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

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

{
  if (param_3 <= 0x1fffffffffffffffU - *(long *)(param_1 + 8)) {
    FUN_002a7e20();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002e12b0("basic_string::append");
}

