
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::wstring::shrink_to_fit() */

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

{
  uint uVar1;
  
  if (*(wstring **)this == this + 8) {
    uVar1 = 3;
  }
  else {
    uVar1 = *(uint *)(this + 8);
  }
  if (uVar1 <= *(uint *)(this + 4)) {
    return;
  }
                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */
  reserve(this,0);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_001eb770(int *param_1)

{
  uint uVar1;
  
  if ((int *)*param_1 == param_1 + 2) {
    uVar1 = 3;
  }
  else {
    uVar1 = param_1[2];
  }
  if (uVar1 <= (uint)param_1[1]) {
    return;
  }
                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */
  FUN_001eb660(param_1,0);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH ESI
CALL 0x000559ea
ADD ESI,0x1a3887
MOV EAX,dword ptr [EBP + 0x8]
PUSH EBX
LEA EDX,[EAX + 0x8]
CMP dword ptr [EAX],EDX
JZ 0x001eb7c0
MOV EDX,dword ptr [EAX + 0x8]
CMP dword ptr [EAX + 0x4],EDX
JC 0x001eb7a0
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
SUB ESP,0x8
MOV EBX,ESI
PUSH 0x0
PUSH EAX
CALL 0x001eb660
ADD ESP,0x10
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
MOV EDX,0x3
JMP 0x001eb78d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_001eb770(int *param_1)\n\n{\n  uint uVar1;\n  \n  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  FUN_001eb660(param_1,0);\n  return;\n}\n\n" comment (function_definition "void FUN_001eb770(int *param_1)\n\n{\n  uint uVar1;\n  \n  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  FUN_001eb660(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_001eb770(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  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  FUN_001eb660(param_1,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }" if (parenthesized_expression "((int *)*param_1 == param_1 + 2)" ( (binary_expression "(int *)*param_1 == param_1 + 2" (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = 3;\n  }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = param_1[2];\n  }" else (compound_statement "{\n    uVar1 = param_1[2];\n  }" { (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }" if (parenthesized_expression "(uVar1 <= (uint)param_1[1])" ( (binary_expression "uVar1 <= (uint)param_1[1]" identifier <= (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_001eb660(param_1,0);" (call_expression "FUN_001eb660(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::wstring::shrink_to_fit() */\n\nvoid __thiscall std::wstring::shrink_to_fit(wstring *this)\n\n{\n  uint uVar1;\n  \n  if (*(wstring **)this == this + 8) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = *(uint *)(this + 8);\n  }\n  if (uVar1 <= *(uint *)(this + 4)) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  reserve(this,0);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::shrink_to_fit(wstring *this)\n\n{\n  uint uVar1;\n  \n  if (*(wstring **)this == this + 8) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = *(uint *)(this + 8);\n  }\n  if (uVar1 <= *(uint *)(this + 4)) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  reserve(this,0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "shrink_to_fit(wstring *this)" identifier (parameter_list "(wstring *this)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (*(wstring **)this == this + 8) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = *(uint *)(this + 8);\n  }\n  if (uVar1 <= *(uint *)(this + 4)) {\n    return;\n  }\n                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */\n  reserve(this,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (*(wstring **)this == this + 8) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = *(uint *)(this + 8);\n  }" if (parenthesized_expression "(*(wstring **)this == this + 8)" ( (binary_expression "*(wstring **)this == this + 8" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) == (binary_expression "this + 8" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = 3;\n  }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(uint *)(this + 8);\n  }" else (compound_statement "{\n    uVar1 = *(uint *)(this + 8);\n  }" { (expression_statement "uVar1 = *(uint *)(this + 8);" (assignment_expression "uVar1 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar1 <= *(uint *)(this + 4)) {\n    return;\n  }" if (parenthesized_expression "(uVar1 <= *(uint *)(this + 4))" ( (binary_expression "uVar1 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "reserve(this,0);" (call_expression "reserve(this,0)" identifier (argument_list "(this,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001eb770(int *param_1)\n\n{\n  uint uVar1;\n  \n  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    \n  FUN_001eb660(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_001eb770(int *param_1)\n\n{\n  uint uVar1;\n  \n  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    \n  FUN_001eb660(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_001eb770(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  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    \n  FUN_001eb660(param_1,0);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }" if (parenthesized_expression "((int *)*param_1 == param_1 + 2)" ( (binary_expression "(int *)*param_1 == param_1 + 2" (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    uVar1 = 3;\n  }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = param_1[2];\n  }" else (compound_statement "{\n    uVar1 = param_1[2];\n  }" { (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }" if (parenthesized_expression "(uVar1 <= (uint)param_1[1])" ( (binary_expression "uVar1 <= (uint)param_1[1]" identifier <= (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_001eb660(param_1,0);" (call_expression "FUN_001eb660(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001eb770(int *param_1)\n\n{\n  uint uVar1;\n  \n  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    \n  FUN_001eb660(param_1,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001eb770(int *param_1)" (identifier "FUN_001eb770") (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  if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }\n  if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }\n                    \n  FUN_001eb660(param_1,0);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if ((int *)*param_1 == param_1 + 2) {\n    uVar1 = 3;\n  }\n  else {\n    uVar1 = param_1[2];\n  }" (if "if") (parenthesized_expression "((int *)*param_1 == param_1 + 2)" (( "(") (binary_expression "(int *)*param_1 == param_1 + 2" (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    uVar1 = 3;\n  }" ({ "{") (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" (identifier "uVar1") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = param_1[2];\n  }" (else "else") (compound_statement "{\n    uVar1 = param_1[2];\n  }" ({ "{") (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 <= (uint)param_1[1])" (( "(") (binary_expression "uVar1 <= (uint)param_1[1]" (identifier "uVar1") (<= "<=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001eb660(param_1,0);" (call_expression "FUN_001eb660(param_1,0)" (identifier "FUN_001eb660") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::wstring::shrink_to_fit() */

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

{
  type_2 var_2;
  
  if (*(type_1 **)var_1 == var_1 + 8) {
    var_2 = 3;
  }
  else {
    var_2 = *(type_2 *)(var_1 + 8);
  }
  if (var_2 <= *(type_2 *)(var_1 + 4)) {
    return;
  }
                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */
  var_3(var_1,0);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(int *param_1)

{
  uint uVar1;
  
  if ((int *)*param_1 == param_1 + 2) {
    uVar1 = 3;
  }
  else {
    uVar1 = param_1[2];
  }
  if (uVar1 <= (uint)param_1[1]) {
    return;
  }
                    /* try { // try from 001eb7a8 to 001eb7ac has its CatchHandler @ 001eb7c7 */
  FUN_001eb660(param_1,0);
  return;
}

