
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::ifstream::~ifstream() */

void __thiscall std::ifstream::~ifstream(ifstream *this)

{
  ifstream *piVar1;
  
  piVar1 = this + *(int *)(*(int *)this + -0xc);
  *(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8;
  *(undefined ***)piVar1 = &PTR__ifstream_0033c8c4;
  *(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848;
  filebuf::close((filebuf *)(piVar1 + 8));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40));
  *(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4;
  locale::~locale((locale *)(piVar1 + 0x24));
  *(undefined4 *)(piVar1 + 4) = 0;
  *(undefined **)piVar1 = &DAT_0033c88c;
  *(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8;
  ios_base::~ios_base((ios_base *)(piVar1 + 0x90));
  return;
}



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

void FUN_001de510(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[0x24] = &PTR_FUN_0033c8d8;
  *puVar1 = &PTR_FUN_0033c8c4;
  puVar1[2] = &PTR_FUN_0033c848;
  FUN_001dc550(puVar1 + 2);
  FUN_001accb0(puVar1 + 0x10);
  puVar1[2] = &PTR_FUN_0033c0b4;
  FUN_001aebd0(puVar1 + 9);
  puVar1[1] = 0;
  *puVar1 = &DAT_0033c88c;
  puVar1[0x24] = &PTR_FUN_0033c7c8;
  FUN_001f1700(puVar1 + 0x24);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x160ae9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESI]
ADD ESI,dword ptr [EAX + -0xc]
LEA EAX,[EBX + 0xffffd8b8]
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI + 0x90],EAX
LEA EAX,[EBX + 0xffffd840]
MOV dword ptr [ESI],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x001dc550
LEA EAX,[ESI + 0x40]
MOV dword ptr [ESP],EAX
CALL 0x001accb0
LEA EAX,[EBX + 0xffffd0ac]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x24]
ADD ESI,0x90
MOV dword ptr [ESP],EAX
CALL 0x001aebd0
LEA EAX,[EBX + 0xffffd88c]
MOV dword ptr [ESI + 0xffffff74],0x0
MOV dword ptr [ESI + 0xffffff70],EAX
LEA EAX,[EBX + 0xffffd7c0]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],ESI
CALL 0x001f1700
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_001de510(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}\n\n" comment (function_definition "void FUN_001de510(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_001de510(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c8d8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c8d8" (subscript_expression "puVar1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c8d8" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_0033c8c4;" (assignment_expression "*puVar1 = &PTR_FUN_0033c8c4" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_0033c8c4" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c848" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c848" & identifier)) ;) (expression_statement "FUN_001dc550(puVar1 + 2);" (call_expression "FUN_001dc550(puVar1 + 2)" identifier (argument_list "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001accb0(puVar1 + 0x10);" (call_expression "FUN_001accb0(puVar1 + 0x10)" identifier (argument_list "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "puVar1[2] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c0b4" & identifier)) ;) (expression_statement "FUN_001aebd0(puVar1 + 9);" (call_expression "FUN_001aebd0(puVar1 + 9)" identifier (argument_list "(puVar1 + 9)" ( (binary_expression "puVar1 + 9" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = &DAT_0033c88c;" (assignment_expression "*puVar1 = &DAT_0033c88c" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_0033c88c" & identifier)) ;) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c7c8" & identifier)) ;) (expression_statement "FUN_001f1700(puVar1 + 0x24);" (call_expression "FUN_001f1700(puVar1 + 0x24)" identifier (argument_list "(puVar1 + 0x24)" ( (binary_expression "puVar1 + 0x24" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* virtual thunk to std::ifstream::~ifstream() */\n\nvoid __thiscall std::ifstream::~ifstream(ifstream *this)\n\n{\n  ifstream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8;\n  *(undefined ***)piVar1 = &PTR__ifstream_0033c8c4;\n  *(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(piVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40));\n  *(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(piVar1 + 0x24));\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined **)piVar1 = &DAT_0033c88c;\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(piVar1 + 0x90));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ifstream::~ifstream(ifstream *this)\n\n{\n  ifstream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8;\n  *(undefined ***)piVar1 = &PTR__ifstream_0033c8c4;\n  *(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(piVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40));\n  *(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(piVar1 + 0x24));\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined **)piVar1 = &DAT_0033c88c;\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(piVar1 + 0x90));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ifstream::~" identifier : : identifier : : ~) (function_declarator "ifstream(ifstream *this)" identifier (parameter_list "(ifstream *this)" ( (parameter_declaration "ifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ifstream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8;\n  *(undefined ***)piVar1 = &PTR__ifstream_0033c8c4;\n  *(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848;\n  filebuf::close((filebuf *)(piVar1 + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40));\n  *(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4;\n  locale::~locale((locale *)(piVar1 + 0x24));\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined **)piVar1 = &DAT_0033c88c;\n  *(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8;\n  ios_base::~ios_base((ios_base *)(piVar1 + 0x90));\n  return;\n}" { (declaration "ifstream *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (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) )))))) ;) (expression_statement "*(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8;" (assignment_expression "*(undefined ***)(piVar1 + 0x90) = &PTR__ifstream_0033c8d8" (pointer_expression "*(undefined ***)(piVar1 + 0x90)" * (cast_expression "(undefined ***)(piVar1 + 0x90)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(piVar1 + 0x90)" ( (binary_expression "piVar1 + 0x90" identifier + number_literal) )))) = (pointer_expression "&PTR__ifstream_0033c8d8" & identifier)) ;) (expression_statement "*(undefined ***)piVar1 = &PTR__ifstream_0033c8c4;" (assignment_expression "*(undefined ***)piVar1 = &PTR__ifstream_0033c8c4" (pointer_expression "*(undefined ***)piVar1" * (cast_expression "(undefined ***)piVar1" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__ifstream_0033c8c4" & identifier)) ;) (expression_statement "*(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848;" (assignment_expression "*(undefined ***)(piVar1 + 8) = &PTR__filebuf_0033c848" (pointer_expression "*(undefined ***)(piVar1 + 8)" * (cast_expression "(undefined ***)(piVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_0033c848" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(piVar1 + 8));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(piVar1 + 8));" (call_expression "close((filebuf *)(piVar1 + 8))" identifier (argument_list "((filebuf *)(piVar1 + 8))" ( (cast_expression "(filebuf *)(piVar1 + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(piVar1 + 0x40))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(piVar1 + 0x40))" ~ (call_expression "__basic_file((__basic_file<char> *)(piVar1 + 0x40))" identifier (argument_list "((__basic_file<char> *)(piVar1 + 0x40))" ( (call_expression "(__basic_file<char> *)(piVar1 + 0x40)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(piVar1 + 0x40)" ( (binary_expression "piVar1 + 0x40" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4;" (assignment_expression "*(undefined ***)(piVar1 + 8) = &PTR__streambuf_0033c0b4" (pointer_expression "*(undefined ***)(piVar1 + 8)" * (cast_expression "(undefined ***)(piVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_0033c0b4" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(piVar1 + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(piVar1 + 0x24));" (unary_expression "~locale((locale *)(piVar1 + 0x24))" ~ (call_expression "locale((locale *)(piVar1 + 0x24))" identifier (argument_list "((locale *)(piVar1 + 0x24))" ( (cast_expression "(locale *)(piVar1 + 0x24)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x24)" ( (binary_expression "piVar1 + 0x24" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined4 *)(piVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(piVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(piVar1 + 4)" * (cast_expression "(undefined4 *)(piVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 4)" ( (binary_expression "piVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined **)piVar1 = &DAT_0033c88c;" (assignment_expression "*(undefined **)piVar1 = &DAT_0033c88c" (pointer_expression "*(undefined **)piVar1" * (cast_expression "(undefined **)piVar1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (pointer_expression "&DAT_0033c88c" & identifier)) ;) (expression_statement "*(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8;" (assignment_expression "*(undefined ***)(piVar1 + 0x90) = &PTR__ios_0033c7c8" (pointer_expression "*(undefined ***)(piVar1 + 0x90)" * (cast_expression "(undefined ***)(piVar1 + 0x90)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(piVar1 + 0x90)" ( (binary_expression "piVar1 + 0x90" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_0033c7c8" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(piVar1 + 0x90));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(piVar1 + 0x90));" (unary_expression "~ios_base((ios_base *)(piVar1 + 0x90))" ~ (call_expression "ios_base((ios_base *)(piVar1 + 0x90))" identifier (argument_list "((ios_base *)(piVar1 + 0x90))" ( (cast_expression "(ios_base *)(piVar1 + 0x90)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x90)" ( (binary_expression "piVar1 + 0x90" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001de510(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}\n\n" (function_definition "void FUN_001de510(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_001de510(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c8d8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c8d8" (subscript_expression "puVar1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c8d8" & identifier)) ;) (expression_statement "*puVar1 = &PTR_FUN_0033c8c4;" (assignment_expression "*puVar1 = &PTR_FUN_0033c8c4" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_0033c8c4" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c848" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c848" & identifier)) ;) (expression_statement "FUN_001dc550(puVar1 + 2);" (call_expression "FUN_001dc550(puVar1 + 2)" identifier (argument_list "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001accb0(puVar1 + 0x10);" (call_expression "FUN_001accb0(puVar1 + 0x10)" identifier (argument_list "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "puVar1[2] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c0b4" & identifier)) ;) (expression_statement "FUN_001aebd0(puVar1 + 9);" (call_expression "FUN_001aebd0(puVar1 + 9)" identifier (argument_list "(puVar1 + 9)" ( (binary_expression "puVar1 + 9" identifier + number_literal) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = &DAT_0033c88c;" (assignment_expression "*puVar1 = &DAT_0033c88c" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_0033c88c" & identifier)) ;) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0033c7c8" & identifier)) ;) (expression_statement "FUN_001f1700(puVar1 + 0x24);" (call_expression "FUN_001f1700(puVar1 + 0x24)" identifier (argument_list "(puVar1 + 0x24)" ( (binary_expression "puVar1 + 0x24" 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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001de510(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001de510(int *param_1)" (identifier "FUN_001de510") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[0x24] = &PTR_FUN_0033c8d8;\n  *puVar1 = &PTR_FUN_0033c8c4;\n  puVar1[2] = &PTR_FUN_0033c848;\n  FUN_001dc550(puVar1 + 2);\n  FUN_001accb0(puVar1 + 0x10);\n  puVar1[2] = &PTR_FUN_0033c0b4;\n  FUN_001aebd0(puVar1 + 9);\n  puVar1[1] = 0;\n  *puVar1 = &DAT_0033c88c;\n  puVar1[0x24] = &PTR_FUN_0033c7c8;\n  FUN_001f1700(puVar1 + 0x24);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c8d8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c8d8" (subscript_expression "puVar1[0x24]" (identifier "puVar1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c8d8" (& "&") (identifier "PTR_FUN_0033c8d8"))) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_0033c8c4;" (assignment_expression "*puVar1 = &PTR_FUN_0033c8c4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_0033c8c4" (& "&") (identifier "PTR_FUN_0033c8c4"))) (; ";")) (expression_statement "puVar1[2] = &PTR_FUN_0033c848;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c848" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c848" (& "&") (identifier "PTR_FUN_0033c848"))) (; ";")) (expression_statement "FUN_001dc550(puVar1 + 2);" (call_expression "FUN_001dc550(puVar1 + 2)" (identifier "FUN_001dc550") (argument_list "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001accb0(puVar1 + 0x10);" (call_expression "FUN_001accb0(puVar1 + 0x10)" (identifier "FUN_001accb0") (argument_list "(puVar1 + 0x10)" (( "(") (binary_expression "puVar1 + 0x10" (identifier "puVar1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "puVar1[2] = &PTR_FUN_0033c0b4;" (assignment_expression "puVar1[2] = &PTR_FUN_0033c0b4" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c0b4" (& "&") (identifier "PTR_FUN_0033c0b4"))) (; ";")) (expression_statement "FUN_001aebd0(puVar1 + 9);" (call_expression "FUN_001aebd0(puVar1 + 9)" (identifier "FUN_001aebd0") (argument_list "(puVar1 + 9)" (( "(") (binary_expression "puVar1 + 9" (identifier "puVar1") (+ "+") (number_literal "9")) () ")"))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = &DAT_0033c88c;" (assignment_expression "*puVar1 = &DAT_0033c88c" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_0033c88c" (& "&") (identifier "DAT_0033c88c"))) (; ";")) (expression_statement "puVar1[0x24] = &PTR_FUN_0033c7c8;" (assignment_expression "puVar1[0x24] = &PTR_FUN_0033c7c8" (subscript_expression "puVar1[0x24]" (identifier "puVar1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0033c7c8" (& "&") (identifier "PTR_FUN_0033c7c8"))) (; ";")) (expression_statement "FUN_001f1700(puVar1 + 0x24);" (call_expression "FUN_001f1700(puVar1 + 0x24)" (identifier "FUN_001f1700") (argument_list "(puVar1 + 0x24)" (( "(") (binary_expression "puVar1 + 0x24" (identifier "puVar1") (+ "+") (number_literal "0x24")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::ifstream::~ifstream() */

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

{
  function_1 *var_2;
  
  var_2 = var_1 + *(int *)(*(int *)var_1 + -0xc);
  *(type_1 ***)(var_2 + 0x90) = &PTR__ifstream_0033c8d8;
  *(type_1 ***)var_2 = &PTR__ifstream_0033c8c4;
  *(type_1 ***)(var_2 + 8) = &PTR__filebuf_0033c848;
  filebuf::var_3((type_2 *)(var_2 + 8));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_2 + 0x40));
  *(type_1 ***)(var_2 + 8) = &PTR__streambuf_0033c0b4;
  locale::~var_6((var_6 *)(var_2 + 0x24));
  *(type_3 *)(var_2 + 4) = 0;
  *(type_1 **)var_2 = &DAT_0033c88c;
  *(type_1 ***)(var_2 + 0x90) = &PTR__ios_0033c7c8;
  ios_base::~var_7((var_7 *)(var_2 + 0x90));
  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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

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

void MASKED(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[0x24] = &PTR_FUN_0033c8d8;
  *puVar1 = &PTR_FUN_0033c8c4;
  puVar1[2] = &PTR_FUN_0033c848;
  FUN_001dc550(puVar1 + 2);
  FUN_001accb0(puVar1 + 0x10);
  puVar1[2] = &PTR_FUN_0033c0b4;
  FUN_001aebd0(puVar1 + 9);
  puVar1[1] = 0;
  *puVar1 = &DAT_0033c88c;
  puVar1[0x24] = &PTR_FUN_0033c7c8;
  FUN_001f1700(puVar1 + 0x24);
  return;
}

