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

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

{
  if (*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)) {
    return;
  }
                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */
  reserve(this,0);
  return;
}



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

void FUN_0021fb20(int *param_1)

{
  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {
    return;
  }
                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */
  FUN_0021fa60(param_1,0);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH ESI
CALL 0x000559ea
ADD ESI,0x16f4d7
MOV EDX,dword ptr [EBP + 0x8]
PUSH EBX
MOV EAX,dword ptr [EDX]
MOV ECX,dword ptr [EAX + -0x8]
CMP dword ptr [EAX + -0xc],ECX
JC 0x0021fb48
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
SUB ESP,0x8
MOV EBX,ESI
PUSH 0x0
PUSH EDX
CALL 0x0021fa60
ADD ESP,0x10
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_0021fb20(int *param_1)\n\n{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  FUN_0021fa60(param_1,0);\n  return;\n}\n\n" comment (function_definition "void FUN_0021fb20(int *param_1)\n\n{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  FUN_0021fa60(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_0021fb20(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  FUN_0021fa60(param_1,0);\n  return;\n}" { (if_statement "if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }" if (parenthesized_expression "(*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)" (pointer_expression "*(uint *)(*param_1 + -8)" * (cast_expression "(uint *)(*param_1 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= (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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0021fa60(param_1,0);" (call_expression "FUN_0021fa60(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::string::shrink_to_fit() */\n\nvoid __thiscall std::string::shrink_to_fit(string *this)\n\n{\n  if (*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  reserve(this,0);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::string::shrink_to_fit(string *this)\n\n{\n  if (*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  reserve(this,0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "shrink_to_fit(string *this)" identifier (parameter_list "(string *this)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if (*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)) {\n    return;\n  }\n                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */\n  reserve(this,0);\n  return;\n}" { (if_statement "if (*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)) {\n    return;\n  }" if (parenthesized_expression "(*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "*(uint *)(*(int *)this + -8) <= *(uint *)(*(int *)this + -0xc)" (pointer_expression "*(uint *)(*(int *)this + -8)" * (cast_expression "(uint *)(*(int *)this + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -8)" ( (binary_expression "*(int *)this + -8" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) <= (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    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_0021fb20(int *param_1)\n\n{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    \n  FUN_0021fa60(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_0021fb20(int *param_1)\n\n{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    \n  FUN_0021fa60(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_0021fb20(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    \n  FUN_0021fa60(param_1,0);\n  return;\n}" { (if_statement "if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }" if (parenthesized_expression "(*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc))" ( (binary_expression "*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)" (pointer_expression "*(uint *)(*param_1 + -8)" * (cast_expression "(uint *)(*param_1 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -8)" ( (binary_expression "*param_1 + -8" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= (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    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0021fa60(param_1,0);" (call_expression "FUN_0021fa60(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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0021fb20(int *param_1)\n\n{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    \n  FUN_0021fa60(param_1,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0021fb20(int *param_1)" (identifier "FUN_0021fb20") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }\n                    \n  FUN_0021fa60(param_1,0);\n  return;\n}" ({ "{") (if_statement "if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc))" (( "(") (binary_expression "*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)" (pointer_expression "*(uint *)(*param_1 + -8)" (* "*") (cast_expression "(uint *)(*param_1 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -8)" (( "(") (binary_expression "*param_1 + -8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-8")) () ")")))) (<= "<=") (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    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0021fa60(param_1,0);" (call_expression "FUN_0021fa60(param_1,0)" (identifier "FUN_0021fa60") (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::string::shrink_to_fit() */

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

{
  if (*(type_2 *)(*(int *)this + -8) <= *(type_2 *)(*(int *)this + -0xc)) {
    return;
  }
                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */
  var_1(this,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 (if_statement condition: (parenthesized_expression (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: (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))) (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)

{
  if (*(uint *)(*param_1 + -8) <= *(uint *)(*param_1 + -0xc)) {
    return;
  }
                    /* try { // try from 0021fb50 to 0021fb54 has its CatchHandler @ 0021fb5f */
  FUN_0021fa60(param_1,0);
  return;
}

