
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::pop_back() */

void __thiscall std::wstring::pop_back(wstring *this)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc) - 1;
  if (uVar1 <= *(uint *)(*(int *)this + -0xc)) {
    _M_mutate(this,uVar1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
             0xffffffff,0);
}



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

void FUN_0026ac90(int *param_1)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*param_1 + -0xc) - 1;
  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {
    FUN_00269ee0(param_1,uVar1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
               0xffffffff,0);
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x12436a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX]
MOV EAX,dword ptr [EAX + -0xc]
LEA ECX,[EAX + -0x1]
CMP ECX,EAX
JA 0x0026acbf
PUSH 0x0
PUSH 0x1
PUSH ECX
PUSH EDX
CALL 0x00269ee0
ADD ESP,0x18
POP EBX
RET
LEA EAX,[EBX + 0xfff0b59e]
PUSH 0x0
PUSH -0x1
PUSH EAX
LEA EAX,[EBX + 0xffefbec4]
PUSH EAX
CALL 0x0022c840
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0026ac90(int *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}\n\n" comment (function_definition "void FUN_0026ac90(int *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" primitive_type (function_declarator "FUN_0026ac90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*param_1 + -0xc) - 1;" (assignment_expression "uVar1 = *(uint *)(*param_1 + -0xc) - 1" identifier = (binary_expression "*(uint *)(*param_1 + -0xc) - 1" (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) - number_literal)) ;) (if_statement "if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "uVar1 <= *(uint *)(*param_1 + -0xc)" identifier <= (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" { (expression_statement "FUN_00269ee0(param_1,uVar1,1,0);" (call_expression "FUN_00269ee0(param_1,uVar1,1,0)" identifier (argument_list "(param_1,uVar1,1,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);" (call_expression "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::pop_back() */\n\nvoid __thiscall std::wstring::pop_back(wstring *this)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_mutate(this,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0);\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::pop_back(wstring *this)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_mutate(this,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "pop_back(wstring *this)" identifier (parameter_list "(wstring *this)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_mutate(this,uVar1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc) - 1;" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc) - 1" identifier = (binary_expression "*(uint *)(*(int *)this + -0xc) - 1" (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) - number_literal)) ;) (if_statement "if (uVar1 <= *(uint *)(*(int *)this + -0xc)) {\n    _M_mutate(this,uVar1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "uVar1 <= *(uint *)(*(int *)this + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    _M_mutate(this,uVar1,1,0);\n    return;\n  }" { (expression_statement "_M_mutate(this,uVar1,1,0);" (call_expression "_M_mutate(this,uVar1,1,0)" identifier (argument_list "(this,uVar1,1,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0);" (call_expression "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffff,0)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal ))) ;) })))
(translation_unit "void FUN_0026ac90(int *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    \n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}\n\n" (function_definition "void FUN_0026ac90(int *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    \n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" primitive_type (function_declarator "FUN_0026ac90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    \n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*param_1 + -0xc) - 1;" (assignment_expression "uVar1 = *(uint *)(*param_1 + -0xc) - 1" identifier = (binary_expression "*(uint *)(*param_1 + -0xc) - 1" (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) - number_literal)) ;) (if_statement "if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "uVar1 <= *(uint *)(*param_1 + -0xc)" identifier <= (pointer_expression "*(uint *)(*param_1 + -0xc)" * (cast_expression "(uint *)(*param_1 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (compound_statement "{\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" { (expression_statement "FUN_00269ee0(param_1,uVar1,1,0);" (call_expression "FUN_00269ee0(param_1,uVar1,1,0)" identifier (argument_list "(param_1,uVar1,1,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);" (call_expression "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) - LIT)) ;) (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 { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT ))) ;) })))
(function_definition "void FUN_0026ac90(int *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    \n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" (primitive_type "void") (function_declarator "FUN_0026ac90(int *param_1)" (identifier "FUN_0026ac90") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*param_1 + -0xc) - 1;\n  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }\n                    \n  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(uint *)(*param_1 + -0xc) - 1;" (assignment_expression "uVar1 = *(uint *)(*param_1 + -0xc) - 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(*param_1 + -0xc) - 1" (pointer_expression "*(uint *)(*param_1 + -0xc)" (* "*") (cast_expression "(uint *)(*param_1 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 <= *(uint *)(*param_1 + -0xc)) {\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 <= *(uint *)(*param_1 + -0xc))" (( "(") (binary_expression "uVar1 <= *(uint *)(*param_1 + -0xc)" (identifier "uVar1") (<= "<=") (pointer_expression "*(uint *)(*param_1 + -0xc)" (* "*") (cast_expression "(uint *)(*param_1 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")) (compound_statement "{\n    FUN_00269ee0(param_1,uVar1,1,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_00269ee0(param_1,uVar1,1,0);" (call_expression "FUN_00269ee0(param_1,uVar1,1,0)" (identifier "FUN_00269ee0") (argument_list "(param_1,uVar1,1,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0);" (call_expression "FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" (identifier "FUN_0022c840") (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffff,0)" (( "(") (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" (" """) (string_content "%s: __pos (which is %zu) > this->size() (which is %zu)") (" """)) (, ",") (string_literal ""basic_string::erase"" (" """) (string_content "basic_string::erase") (" """)) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::pop_back() */

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

{
  type_2 var_1;
  
  var_1 = *(type_2 *)(*(int *)this + -0xc) - 1;
  if (var_1 <= *(type_2 *)(*(int *)this + -0xc)) {
    var_2(this,var_1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
             0xffffffff,0);
}


(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 (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))))) right: (number_literal)))) (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal)))))))

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

void MASKED(int *param_1)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*param_1 + -0xc) - 1;
  if (uVar1 <= *(uint *)(*param_1 + -0xc)) {
    FUN_00269ee0(param_1,uVar1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c840("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
               0xffffffff,0);
}

