
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<char>::~ctype() */

void __thiscall std::ctype<char>::~ctype(ctype<char> *this)

{
  *(undefined ***)this = &PTR__ctype_003a864c;
  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));
  if ((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)) {
    operator_delete__(*(void **)(this + 0x18));
  }
  locale::facet::~facet((facet *)this);
  return;
}



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

void FUN_00242c80(undefined4 *param_1)

{
  *param_1 = &PTR_FUN_003a864c;
  FUN_002454e0(param_1 + 2);
  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {
    FUN_001fcfc0(param_1[6]);
  }
  FUN_001feeb0(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x167379
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xffffe644]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x002454e0
ADD ESP,0x10
CMP byte ptr [ESI + 0xc],0x0
JZ 0x00242cc4
MOV EAX,dword ptr [ESI + 0x18]
TEST EAX,EAX
JZ 0x00242cc4
SUB ESP,0xc
PUSH EAX
CALL 0x001fcfc0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x001feeb0
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00242c80(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00242c80(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00242c80(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_003a864c;" (assignment_expression "*param_1 = &PTR_FUN_003a864c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003a864c" & identifier)) ;) (expression_statement "FUN_002454e0(param_1 + 2);" (call_expression "FUN_002454e0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (if_statement "if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }" if (parenthesized_expression "((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0))" ( (binary_expression "(*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)" (parenthesized_expression "(*(char *)(param_1 + 3) != '\0')" ( (binary_expression "*(char *)(param_1 + 3) != '\0'" (pointer_expression "*(char *)(param_1 + 3)" * (cast_expression "(char *)(param_1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    FUN_001fcfc0(param_1[6]);\n  }" { (expression_statement "FUN_001fcfc0(param_1[6]);" (call_expression "FUN_001fcfc0(param_1[6])" identifier (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_001feeb0(param_1);" (call_expression "FUN_001feeb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ctype<char>::~ctype() */\n\nvoid __thiscall std::ctype<char>::~ctype(ctype<char> *this)\n\n{\n  *(undefined ***)this = &PTR__ctype_003a864c;\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n  if ((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)) {\n    operator_delete__(*(void **)(this + 0x18));\n  }\n  locale::facet::~facet((facet *)this);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ctype<char>::~ctype(ctype<char> *this)\n\n{\n  *(undefined ***)this = &PTR__ctype_003a864c;\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n  if ((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)) {\n    operator_delete__(*(void **)(this + 0x18));\n  }\n  locale::facet::~facet((facet *)this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<char>::~" identifier : : identifier < primitive_type > : : ~) (function_declarator "ctype(ctype<char> *this)" identifier (parameter_list "(ctype<char> *this)" ( (parameter_declaration "ctype<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined ***)this = &PTR__ctype_003a864c;\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n  if ((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)) {\n    operator_delete__(*(void **)(this + 0x18));\n  }\n  locale::facet::~facet((facet *)this);\n  return;\n}" { (expression_statement "*(undefined ***)this = &PTR__ctype_003a864c;" (assignment_expression "*(undefined ***)this = &PTR__ctype_003a864c" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__ctype_003a864c" & identifier)) ;) (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 8));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 8))" identifier (argument_list "((__locale_struct **)(this + 8))" ( (cast_expression "(__locale_struct **)(this + 8)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;))) (if_statement "if ((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)) {\n    operator_delete__(*(void **)(this + 0x18));\n  }" if (parenthesized_expression "((this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0))" ( (parenthesized_expression "(this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0))" ( (binary_expression "this[0xc] != (ctype<char>)0x0) && (*(void **)(this + 0x18) != (void *)0x0)" (binary_expression "this[0xc] != (ctype<char>)0x0)" (subscript_expression "this[0xc]" identifier [ number_literal ]) != (parenthesized_expression "(ctype<char>)0x0)" ( (binary_expression "ctype<char>)0x0" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) && (parenthesized_expression "(*(void **)(this + 0x18) != (void *)0x0)" ( (binary_expression "*(void **)(this + 0x18) != (void *)0x0" (pointer_expression "*(void **)(this + 0x18)" * (cast_expression "(void **)(this + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) )) (compound_statement "{\n    operator_delete__(*(void **)(this + 0x18));\n  }" { (expression_statement "operator_delete__(*(void **)(this + 0x18));" (call_expression "operator_delete__(*(void **)(this + 0x18))" identifier (argument_list "(*(void **)(this + 0x18))" ( (pointer_expression "*(void **)(this + 0x18)" * (cast_expression "(void **)(this + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) ))) ;) })) (labeled_statement "locale::facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (expression_statement "~facet((facet *)this);" (unary_expression "~facet((facet *)this)" ~ (call_expression "facet((facet *)this)" identifier (argument_list "((facet *)this)" ( (cast_expression "(facet *)this" ( (type_descriptor "facet *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00242c80(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00242c80(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00242c80(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_003a864c;" (assignment_expression "*param_1 = &PTR_FUN_003a864c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003a864c" & identifier)) ;) (expression_statement "FUN_002454e0(param_1 + 2);" (call_expression "FUN_002454e0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (if_statement "if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }" if (parenthesized_expression "((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0))" ( (binary_expression "(*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)" (parenthesized_expression "(*(char *)(param_1 + 3) != '\0')" ( (binary_expression "*(char *)(param_1 + 3) != '\0'" (pointer_expression "*(char *)(param_1 + 3)" * (cast_expression "(char *)(param_1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    FUN_001fcfc0(param_1[6]);\n  }" { (expression_statement "FUN_001fcfc0(param_1[6]);" (call_expression "FUN_001fcfc0(param_1[6])" identifier (argument_list "(param_1[6])" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_001feeb0(param_1);" (call_expression "FUN_001feeb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00242c80(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00242c80(undefined4 *param_1)" (identifier "FUN_00242c80") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  *param_1 = &PTR_FUN_003a864c;\n  FUN_002454e0(param_1 + 2);\n  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }\n  FUN_001feeb0(param_1);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &PTR_FUN_003a864c;" (assignment_expression "*param_1 = &PTR_FUN_003a864c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003a864c" (& "&") (identifier "PTR_FUN_003a864c"))) (; ";")) (expression_statement "FUN_002454e0(param_1 + 2);" (call_expression "FUN_002454e0(param_1 + 2)" (identifier "FUN_002454e0") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (if_statement "if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {\n    FUN_001fcfc0(param_1[6]);\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0))" (( "(") (binary_expression "(*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)" (parenthesized_expression "(*(char *)(param_1 + 3) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 3) != '\0'" (pointer_expression "*(char *)(param_1 + 3)" (* "*") (cast_expression "(char *)(param_1 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[6] != 0)" (( "(") (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_001fcfc0(param_1[6]);\n  }" ({ "{") (expression_statement "FUN_001fcfc0(param_1[6]);" (call_expression "FUN_001fcfc0(param_1[6])" (identifier "FUN_001fcfc0") (argument_list "(param_1[6])" (( "(") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001feeb0(param_1);" (call_expression "FUN_001feeb0(param_1)" (identifier "FUN_001feeb0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<char>::~ctype() */

void __thiscall std::function_1<char>::~function_1(function_1<char> *var_2)

{
  *(type_1 ***)var_2 = &PTR__ctype_003a864c;
  locale::facet::var_1((type_2 **)(var_2 + 8));
  if ((var_2[0xc] != (function_1<var_3>)0x0) && (*(void **)(var_2 + 0x18) != (void *)0x0)) {
    var_4(*(void **)(var_2 + 0x18));
  }
  locale::facet::~var_5((var_5 *)var_2);
  return;
}


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

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

void MASKED(undefined4 *param_1)

{
  *param_1 = &PTR_FUN_003a864c;
  FUN_002454e0(param_1 + 2);
  if ((*(char *)(param_1 + 3) != '\0') && (param_1[6] != 0)) {
    FUN_001fcfc0(param_1[6]);
  }
  FUN_001feeb0(param_1);
  return;
}

