
/* std::string::at(unsigned long) const */

long __thiscall std::string::at(string *this,ulong param_1)

{
  if (param_1 < *(ulong *)(*(long *)this + -0x18)) {
    return *(long *)this + param_1;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}



long FUN_0030cd70(long *param_1,ulong param_2)

{
  if (param_2 < *(ulong *)(*param_1 + -0x18)) {
    return *param_1 + param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}


MOV RAX,qword ptr [RDI]
MOV RDX,qword ptr [RAX + -0x18]
CMP RSI,RDX
JNC 0x0030cd80
ADD RAX,RSI
RET
PUSH RAX
LEA RDI,[0x3910f0]
XOR EAX,EAX
CALL 0x00319620
(translation_unit "long FUN_0030cd70(long *param_1,ulong param_2)\n\n{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" (function_definition "long FUN_0030cd70(long *param_1,ulong param_2)\n\n{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0030cd70(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }" if (parenthesized_expression "(param_2 < *(ulong *)(*param_1 + -0x18))" ( (binary_expression "param_2 < *(ulong *)(*param_1 + -0x18)" identifier < (pointer_expression "*(ulong *)(*param_1 + -0x18)" * (cast_expression "(ulong *)(*param_1 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    return *param_1 + param_2;\n  }" { (return_statement "return *param_1 + param_2;" return (binary_expression "*param_1 + param_2" (pointer_expression "*param_1" * identifier) + identifier) ;) })) comment (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit "/* std::string::at(unsigned long) const */\n\nlong __thiscall std::string::at(string *this,ulong param_1)\n\n{\n  if (param_1 < *(ulong *)(*(long *)this + -0x18)) {\n    return *(long *)this + param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" comment (function_definition "long __thiscall std::string::at(string *this,ulong param_1)\n\n{\n  if (param_1 < *(ulong *)(*(long *)this + -0x18)) {\n    return *(long *)this + param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "at(string *this,ulong param_1)" identifier (parameter_list "(string *this,ulong param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 < *(ulong *)(*(long *)this + -0x18)) {\n    return *(long *)this + param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_1 < *(ulong *)(*(long *)this + -0x18)) {\n    return *(long *)this + param_1;\n  }" if (parenthesized_expression "(param_1 < *(ulong *)(*(long *)this + -0x18))" ( (binary_expression "param_1 < *(ulong *)(*(long *)this + -0x18)" identifier < (pointer_expression "*(ulong *)(*(long *)this + -0x18)" * (cast_expression "(ulong *)(*(long *)this + -0x18)" ( (type_descriptor "ulong *" type_identifier (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 *(long *)this + param_1;\n  }" { (return_statement "return *(long *)this + param_1;" return (binary_expression "*(long *)this + param_1" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ;) })) comment (expression_statement "__throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "__throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit "long FUN_0030cd70(long *param_1,ulong param_2)\n\n{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" (function_definition "long FUN_0030cd70(long *param_1,ulong param_2)\n\n{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0030cd70(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }" if (parenthesized_expression "(param_2 < *(ulong *)(*param_1 + -0x18))" ( (binary_expression "param_2 < *(ulong *)(*param_1 + -0x18)" identifier < (pointer_expression "*(ulong *)(*param_1 + -0x18)" * (cast_expression "(ulong *)(*param_1 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    return *param_1 + param_2;\n  }" { (return_statement "return *param_1 + param_2;" return (binary_expression "*param_1 + param_2" (pointer_expression "*param_1" * identifier) + identifier) ;) })) (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * IDENT) + IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "long FUN_0030cd70(long *param_1,ulong param_2)\n\n{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0030cd70(long *param_1,ulong param_2)" (identifier "FUN_0030cd70") (parameter_list "(long *param_1,ulong param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" ({ "{") (if_statement "if (param_2 < *(ulong *)(*param_1 + -0x18)) {\n    return *param_1 + param_2;\n  }" (if "if") (parenthesized_expression "(param_2 < *(ulong *)(*param_1 + -0x18))" (( "(") (binary_expression "param_2 < *(ulong *)(*param_1 + -0x18)" (identifier "param_2") (< "<") (pointer_expression "*(ulong *)(*param_1 + -0x18)" (* "*") (cast_expression "(ulong *)(*param_1 + -0x18)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (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 *param_1 + param_2;\n  }" ({ "{") (return_statement "return *param_1 + param_2;" (return "return") (binary_expression "*param_1 + param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" (identifier "FUN_00319620") (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" (( "(") (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" (" """) (string_content "basic_string::at: __n (which is %zu) >= this->size() (which is %zu)") (" """)) () ")"))) (; ";")) (} "}")))

/* std::string::at(unsigned long) const */

long __thiscall std::type_1::function_1(type_1 *this,type_2 var_1)

{
  if (var_1 < *(type_2 *)(*(long *)this + -0x18)) {
    return *(long *)this + var_1;
  }
                    /* WARNING: Subroutine does not return */
  var_2("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}


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

long MASKED(long *param_1,ulong param_2)

{
  if (param_2 < *(ulong *)(*param_1 + -0x18)) {
    return *param_1 + param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}

