
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wifstream::~wifstream() */

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

{
  int iVar1;
  int *in_stack_00000008;
  
  iVar1 = *in_stack_00000008;
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];
  *(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30;
  wfilebuf::close((wfilebuf *)(this + 8));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));
  *(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec;
  locale::~locale((locale *)(this + 0x24));
  iVar1 = in_stack_00000008[1];
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2];
  *(undefined4 *)(this + 4) = 0;
  return;
}



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

void FUN_00232670(int *param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
  param_1[2] = (int)&PTR_FUN_003a7a30;
  FUN_0022fc60(param_1 + 2);
  FUN_001fd860(param_1 + 0x10);
  param_1[2] = (int)&PTR_FUN_003a70ec;
  FUN_001ff780(param_1 + 9);
  iVar1 = param_2[1];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];
  param_1[1] = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00036db0
ADD EBX,0x177984
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDI]
SUB ESP,0xc
MOV dword ptr [ESI],EAX
MOV EDX,dword ptr [EDI + 0xc]
MOV EAX,dword ptr [EAX + -0xc]
MOV dword ptr [ESI + EAX*0x1],EDX
LEA EAX,[EBX + 0xffffda28]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x0022fc60
LEA EAX,[ESI + 0x40]
MOV dword ptr [ESP],EAX
CALL 0x001fd860
LEA EAX,[EBX + 0xffffd0e4]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x24]
MOV dword ptr [ESP],EAX
CALL 0x001ff780
MOV EAX,dword ptr [EDI + 0x4]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x8]
MOV dword ptr [ESI + EAX*0x1],EDX
MOV dword ptr [ESI + 0x4],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00232670(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00232670(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00232670(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = (int)&PTR_FUN_003a7a30;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a7a30" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)&PTR_FUN_003a7a30" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_FUN_003a7a30" & identifier))) ;) (expression_statement "FUN_0022fc60(param_1 + 2);" (call_expression "FUN_0022fc60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001fd860(param_1 + 0x10);" (call_expression "FUN_001fd860(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = (int)&PTR_FUN_003a70ec;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a70ec" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)&PTR_FUN_003a70ec" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_FUN_003a70ec" & identifier))) ;) (expression_statement "FUN_001ff780(param_1 + 9);" (call_expression "FUN_001ff780(param_1 + 9)" identifier (argument_list "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))) ;) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wifstream::~wifstream() */\n\nvoid __thiscall std::wifstream::~wifstream(wifstream *this)\n\n{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec;\n  locale::~locale((locale *)(this + 0x24));\n  iVar1 = in_stack_00000008[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2];\n  *(undefined4 *)(this + 4) = 0;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wifstream::~wifstream(wifstream *this)\n\n{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec;\n  locale::~locale((locale *)(this + 0x24));\n  iVar1 = in_stack_00000008[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2];\n  *(undefined4 *)(this + 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wifstream::~" identifier : : identifier : : ~) (function_declarator "wifstream(wifstream *this)" identifier (parameter_list "(wifstream *this)" ( (parameter_declaration "wifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec;\n  locale::~locale((locale *)(this + 0x24));\n  iVar1 = in_stack_00000008[1];\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2];\n  *(undefined4 *)(this + 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_stack_00000008;" primitive_type (pointer_declarator "*in_stack_00000008" * identifier) ;) (expression_statement "iVar1 = *in_stack_00000008;" (assignment_expression "iVar1 = *in_stack_00000008" identifier = (pointer_expression "*in_stack_00000008" * identifier)) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];" (assignment_expression "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3]" (pointer_expression "*(int *)(this + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_stack_00000008[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__wfilebuf_003a7a30" (pointer_expression "*(undefined ***)(this + 8)" * (cast_expression "(undefined ***)(this + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__wfilebuf_003a7a30" & identifier)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(this + 8));" (call_expression "close((wfilebuf *)(this + 8))" identifier (argument_list "((wfilebuf *)(this + 8))" ( (cast_expression "(wfilebuf *)(this + 8)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(this + 0x40))" ~ (call_expression "__basic_file((__basic_file<char> *)(this + 0x40))" identifier (argument_list "((__basic_file<char> *)(this + 0x40))" ( (call_expression "(__basic_file<char> *)(this + 0x40)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x40)" ( (binary_expression "this + 0x40" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__wstreambuf_003a70ec" (pointer_expression "*(undefined ***)(this + 8)" * (cast_expression "(undefined ***)(this + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__wstreambuf_003a70ec" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(this + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x24));" (unary_expression "~locale((locale *)(this + 0x24))" ~ (call_expression "locale((locale *)(this + 0x24))" identifier (argument_list "((locale *)(this + 0x24))" ( (cast_expression "(locale *)(this + 0x24)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x24)" ( (binary_expression "this + 0x24" identifier + number_literal) ))) )))) ;)) (expression_statement "iVar1 = in_stack_00000008[1];" (assignment_expression "iVar1 = in_stack_00000008[1]" identifier = (subscript_expression "in_stack_00000008[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)this = iVar1;" (assignment_expression "*(int *)this = iVar1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2];" (assignment_expression "*(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[2]" (pointer_expression "*(int *)(this + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)(this + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar1 + -0xc))" ( (binary_expression "this + *(int *)(iVar1 + -0xc)" identifier + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "in_stack_00000008[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00232670(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}\n\n" (function_definition "void FUN_00232670(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00232670(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = (int)&PTR_FUN_003a7a30;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a7a30" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)&PTR_FUN_003a7a30" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_FUN_003a7a30" & identifier))) ;) (expression_statement "FUN_0022fc60(param_1 + 2);" (call_expression "FUN_0022fc60(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001fd860(param_1 + 0x10);" (call_expression "FUN_001fd860(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = (int)&PTR_FUN_003a70ec;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a70ec" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)&PTR_FUN_003a70ec" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_FUN_003a70ec" & identifier))) ;) (expression_statement "FUN_001ff780(param_1 + 9);" (call_expression "FUN_001ff780(param_1 + 9)" identifier (argument_list "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))) ;) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (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 IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (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 ]) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (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 IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00232670(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00232670(int *param_1,int *param_2)" (identifier "FUN_00232670") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n  param_1[2] = (int)&PTR_FUN_003a7a30;\n  FUN_0022fc60(param_1 + 2);\n  FUN_001fd860(param_1 + 0x10);\n  param_1[2] = (int)&PTR_FUN_003a70ec;\n  FUN_001ff780(param_1 + 9);\n  iVar1 = param_2[1];\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];\n  param_1[1] = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_1[2] = (int)&PTR_FUN_003a7a30;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a7a30" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)&PTR_FUN_003a7a30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&PTR_FUN_003a7a30" (& "&") (identifier "PTR_FUN_003a7a30")))) (; ";")) (expression_statement "FUN_0022fc60(param_1 + 2);" (call_expression "FUN_0022fc60(param_1 + 2)" (identifier "FUN_0022fc60") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001fd860(param_1 + 0x10);" (call_expression "FUN_001fd860(param_1 + 0x10)" (identifier "FUN_001fd860") (argument_list "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "param_1[2] = (int)&PTR_FUN_003a70ec;" (assignment_expression "param_1[2] = (int)&PTR_FUN_003a70ec" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)&PTR_FUN_003a70ec" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&PTR_FUN_003a70ec" (& "&") (identifier "PTR_FUN_003a70ec")))) (; ";")) (expression_statement "FUN_001ff780(param_1 + 9);" (call_expression "FUN_001ff780(param_1 + 9)" (identifier "FUN_001ff780") (argument_list "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))) (; ";")) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" (identifier "iVar1") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wifstream::~wifstream() */

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

{
  int var_2;
  int *in_stack_00000008;
  
  var_2 = *in_stack_00000008;
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_stack_00000008[3];
  *(type_1 ***)(var_1 + 8) = &PTR__wfilebuf_003a7a30;
  wfilebuf::var_3((type_2 *)(var_1 + 8));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_1 + 0x40));
  *(type_1 ***)(var_1 + 8) = &PTR__wstreambuf_003a70ec;
  locale::~var_6((var_6 *)(var_1 + 0x24));
  var_2 = in_stack_00000008[1];
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_stack_00000008[2];
  *(type_3 *)(var_1 + 4) = 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))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier) right: (number_literal))))))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

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

void MASKED(int *param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
  param_1[2] = (int)&PTR_FUN_003a7a30;
  FUN_0022fc60(param_1 + 2);
  FUN_001fd860(param_1 + 0x10);
  param_1[2] = (int)&PTR_FUN_003a70ec;
  FUN_001ff780(param_1 + 9);
  iVar1 = param_2[1];
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[2];
  param_1[1] = 0;
  return;
}

