
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::codecvt<wchar_t, char, __mbstate_t>::~codecvt() */

void __thiscall
std::codecvt<wchar_t,char,__mbstate_t>::~codecvt(codecvt<wchar_t,char,__mbstate_t> *this)

{
  *(undefined ***)this = &PTR__codecvt_00300a90;
                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */
  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));
  *(undefined **)this = &DAT_00300e18;
  locale::facet::~facet((facet *)this);
  return;
}



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

void FUN_001d20f0(undefined4 *param_1)

{
  *param_1 = &PTR_FUN_00300a90;
                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */
  FUN_001c8c60(param_1 + 2);
  *param_1 = &DAT_00300e18;
  FUN_00182630(param_1);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x0004fb7a
ADD ESI,0x12ff06
PUSH EBX
SUB ESP,0x28
MOV EDI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0xffffea88]
MOV EBX,ESI
ADD EAX,0x8
MOV dword ptr [EDI],EAX
LEA EAX,[EDI + 0x8]
PUSH EAX
CALL 0x001c8c60
LEA EAX,[ESI + 0xffffee10]
ADD EAX,0x8
MOV dword ptr [EDI],EAX
MOV dword ptr [ESP],EDI
CALL 0x00182630
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_001d20f0(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_00300a90;\n                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */\n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_001d20f0(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_00300a90;\n                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */\n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001d20f0(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_00300a90;\n                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */\n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_00300a90;" (assignment_expression "*param_1 = &PTR_FUN_00300a90" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00300a90" & identifier)) ;) comment (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "*param_1 = &DAT_00300e18;" (assignment_expression "*param_1 = &DAT_00300e18" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_00300e18" & identifier)) ;) (expression_statement "FUN_00182630(param_1);" (call_expression "FUN_00182630(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::codecvt<wchar_t, char, __mbstate_t>::~codecvt() */\n\nvoid __thiscall\nstd::codecvt<wchar_t,char,__mbstate_t>::~codecvt(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{\n  *(undefined ***)this = &PTR__codecvt_00300a90;\n                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 8));\n  *(undefined **)this = &DAT_00300e18;\n  locale::facet::~facet((facet *)this);\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::codecvt<wchar_t,char,__mbstate_t>::~codecvt(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{\n  *(undefined ***)this = &PTR__codecvt_00300a90;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::codecvt<" identifier : : identifier <) identifier , identifier , (ERROR "__mbstate_t>::~codecvt(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{" identifier > : : ~ (function_declarator "codecvt(codecvt<wchar_t,char,__mbstate_t> *this)" identifier (parameter_list "(codecvt<wchar_t,char,__mbstate_t> *this)" ( (parameter_declaration "codecvt<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "char" primitive_type) , (parameter_declaration "__mbstate_t> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) ))) {) (init_declarator "*(undefined ***)this = &PTR__codecvt_00300a90" (pointer_declarator "*(undefined ***)this" * (parenthesized_declarator "(undefined ***)this" ( (ERROR "undefined" identifier) (pointer_declarator "***)this" * (pointer_declarator "**)this" * (pointer_declarator "*)this" * (ERROR ")" )) identifier))) ))) = (pointer_expression "&PTR__codecvt_00300a90" & identifier)) ;) comment (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) ))) ))) ;))) (expression_statement "*(undefined **)this = &DAT_00300e18;" (assignment_expression "*(undefined **)this = &DAT_00300e18" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (pointer_expression "&DAT_00300e18" & identifier)) ;) (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 ;) (ERROR "}" }))
(translation_unit "void FUN_001d20f0(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_00300a90;\n                    \n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}\n\n" (function_definition "void FUN_001d20f0(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_00300a90;\n                    \n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001d20f0(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_00300a90;\n                    \n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_00300a90;" (assignment_expression "*param_1 = &PTR_FUN_00300a90" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00300a90" & identifier)) ;) (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "*param_1 = &DAT_00300e18;" (assignment_expression "*param_1 = &DAT_00300e18" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_00300e18" & identifier)) ;) (expression_statement "FUN_00182630(param_1);" (call_expression "FUN_00182630(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) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001d20f0(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_00300a90;\n                    \n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001d20f0(undefined4 *param_1)" (identifier "FUN_001d20f0") (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_00300a90;\n                    \n  FUN_001c8c60(param_1 + 2);\n  *param_1 = &DAT_00300e18;\n  FUN_00182630(param_1);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &PTR_FUN_00300a90;" (assignment_expression "*param_1 = &PTR_FUN_00300a90" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00300a90" (& "&") (identifier "PTR_FUN_00300a90"))) (; ";")) (expression_statement "FUN_001c8c60(param_1 + 2);" (call_expression "FUN_001c8c60(param_1 + 2)" (identifier "FUN_001c8c60") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "*param_1 = &DAT_00300e18;" (assignment_expression "*param_1 = &DAT_00300e18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_00300e18" (& "&") (identifier "DAT_00300e18"))) (; ";")) (expression_statement "FUN_00182630(param_1);" (call_expression "FUN_00182630(param_1)" (identifier "FUN_00182630") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::codecvt<wchar_t, char, __mbstate_t>::~codecvt() */

void __thiscall
std::codecvt<wchar_t,char,__mbstate_t>::~codecvt(codecvt<wchar_t,char,__mbstate_t> *var_2)

{
  *(type_2 ***)var_2 = &PTR__codecvt_00300a90;
                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */
  locale::facet::var_1((type_1 **)(var_2 + 8));
  *(type_2 **)var_2 = &DAT_00300e18;
  locale::facet::~var_3((var_3 *)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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  *param_1 = &PTR_FUN_00300a90;
                    /* try { // try from 001d2118 to 001d211c has its CatchHandler @ 001d213b */
  FUN_001c8c60(param_1 + 2);
  *param_1 = &DAT_00300e18;
  FUN_00182630(param_1);
  return;
}

