
/* std::wostream::wostream() */

void __thiscall std::wostream::wostream(wostream *this)

{
  long lVar1;
  long *in_RSI;
  
  lVar1 = *in_RSI;
  *(long *)this = lVar1;
  lVar1 = *(long *)(lVar1 + -0x18);
  *(long *)(this + lVar1) = in_RSI[1];
  wios::init((wios *)(this + lVar1),(wstreambuf *)0x0);
  return;
}



void FUN_00345a30(long *param_1,long *param_2)

{
  long lVar1;
  
  lVar1 = *param_2;
  *param_1 = lVar1;
  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));
  *param_1 = param_2[1];
  FUN_0035f660(param_1,0);
  return;
}


MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI],RAX
ADD RDI,qword ptr [RAX + -0x18]
MOV RAX,qword ptr [RSI + 0x8]
XOR ESI,ESI
MOV qword ptr [RDI],RAX
JMP 0x0035f660
(translation_unit "void FUN_00345a30(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_00345a30(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00345a30(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_2;" (assignment_expression "lVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));" (assignment_expression "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18))" identifier = (cast_expression "(long *)((long)param_1 + *(long *)(lVar1 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar1 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "FUN_0035f660(param_1,0);" (call_expression "FUN_0035f660(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wostream::wostream() */\n\nvoid __thiscall std::wostream::wostream(wostream *this)\n\n{\n  long lVar1;\n  long *in_RSI;\n  \n  lVar1 = *in_RSI;\n  *(long *)this = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(long *)(this + lVar1) = in_RSI[1];\n  wios::init((wios *)(this + lVar1),(wstreambuf *)0x0);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wostream::wostream(wostream *this)\n\n{\n  long lVar1;\n  long *in_RSI;\n  \n  lVar1 = *in_RSI;\n  *(long *)this = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(long *)(this + lVar1) = in_RSI[1];\n  wios::init((wios *)(this + lVar1),(wstreambuf *)0x0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wostream::" identifier : : identifier : :) (function_declarator "wostream(wostream *this)" identifier (parameter_list "(wostream *this)" ( (parameter_declaration "wostream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long *in_RSI;\n  \n  lVar1 = *in_RSI;\n  *(long *)this = lVar1;\n  lVar1 = *(long *)(lVar1 + -0x18);\n  *(long *)(this + lVar1) = in_RSI[1];\n  wios::init((wios *)(this + lVar1),(wstreambuf *)0x0);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *in_RSI;" (sized_type_specifier "long" long) (pointer_declarator "*in_RSI" * identifier) ;) (expression_statement "lVar1 = *in_RSI;" (assignment_expression "lVar1 = *in_RSI" identifier = (pointer_expression "*in_RSI" * identifier)) ;) (expression_statement "*(long *)this = lVar1;" (assignment_expression "*(long *)this = lVar1" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar1 + -0x18);" (assignment_expression "lVar1 = *(long *)(lVar1 + -0x18)" identifier = (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(this + lVar1) = in_RSI[1];" (assignment_expression "*(long *)(this + lVar1) = in_RSI[1]" (pointer_expression "*(long *)(this + lVar1)" * (cast_expression "(long *)(this + lVar1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + lVar1)" ( (binary_expression "this + lVar1" identifier + identifier) )))) = (subscript_expression "in_RSI[1]" identifier [ number_literal ])) ;) (labeled_statement "wios::init((wios *)(this + lVar1),(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + lVar1),(wstreambuf *)0x0);" (call_expression "init((wios *)(this + lVar1),(wstreambuf *)0x0)" identifier (argument_list "((wios *)(this + lVar1),(wstreambuf *)0x0)" ( (cast_expression "(wios *)(this + lVar1)" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + lVar1)" ( (binary_expression "this + lVar1" identifier + identifier) ))) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00345a30(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_00345a30(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00345a30(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_2;" (assignment_expression "lVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));" (assignment_expression "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18))" identifier = (cast_expression "(long *)((long)param_1 + *(long *)(lVar1 + -0x18))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(lVar1 + -0x18))" ( (binary_expression "(long)param_1 + *(long *)(lVar1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar1 + -0x18)" * (cast_expression "(long *)(lVar1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + -0x18)" ( (binary_expression "lVar1 + -0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" * identifier) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "FUN_0035f660(param_1,0);" (call_expression "FUN_0035f660(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00345a30(long *param_1,long *param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00345a30(long *param_1,long *param_2)" (identifier "FUN_00345a30") (parameter_list "(long *param_1,long *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_2;\n  *param_1 = lVar1;\n  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));\n  *param_1 = param_2[1];\n  FUN_0035f660(param_1,0);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = *param_2;" (assignment_expression "lVar1 = *param_2" (identifier "lVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = lVar1;" (assignment_expression "*param_1 = lVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));" (assignment_expression "param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18))" (identifier "param_1") (= "=") (cast_expression "(long *)((long)param_1 + *(long *)(lVar1 + -0x18))" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(lVar1 + -0x18))" (( "(") (binary_expression "(long)param_1 + *(long *)(lVar1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(lVar1 + -0x18)" (* "*") (cast_expression "(long *)(lVar1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + -0x18)" (( "(") (binary_expression "lVar1 + -0x18" (identifier "lVar1") (+ "+") (number_literal "-0x18")) () ")"))))) () ")")))) (; ";")) (expression_statement "*param_1 = param_2[1];" (assignment_expression "*param_1 = param_2[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "FUN_0035f660(param_1,0);" (call_expression "FUN_0035f660(param_1,0)" (identifier "FUN_0035f660") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wostream::wostream() */

void __thiscall std::function_1::function_1(function_1 *var_2)

{
  long var_1;
  long *in_RSI;
  
  var_1 = *in_RSI;
  *(long *)var_2 = var_1;
  var_1 = *(long *)(var_1 + -0x18);
  *(long *)(var_2 + var_1) = in_RSI[1];
  wios::var_3((type_1 *)(var_2 + var_1),(type_2 *)0x0);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) 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: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (return_statement))))

void MASKED(long *param_1,long *param_2)

{
  long lVar1;
  
  lVar1 = *param_2;
  *param_1 = lVar1;
  param_1 = (long *)((long)param_1 + *(long *)(lVar1 + -0x18));
  *param_1 = param_2[1];
  FUN_0035f660(param_1,0);
  return;
}

