
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios::init(std::streambuf*) */

void __thiscall std::ios::init(ios *this,streambuf *param_1)

{
  ios_base::_M_init((ios_base *)this);
  _M_cache_locale(this,(locale *)(this + 0x6c));
  *(undefined4 *)(this + 0x70) = 0;
  *(undefined2 *)(this + 0x74) = 0;
  *(undefined4 *)(this + 0x10) = 0;
  *(streambuf **)(this + 0x78) = param_1;
  *(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0);
  return;
}



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

void FUN_001aae40(int param_1,int param_2)

{
  FUN_001d1cf0(param_1);
  FUN_001aa9f0(param_1,param_1 + 0x6c);
  *(undefined4 *)(param_1 + 0x70) = 0;
  *(undefined2 *)(param_1 + 0x74) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(int *)(param_1 + 0x78) = param_2;
  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00032730
ADD EBX,0x1571b4
MOV EDI,dword ptr [ESP + 0x14]
SUB ESP,0xc
PUSH ESI
CALL 0x001d1cf0
POP EAX
LEA EAX,[ESI + 0x6c]
POP EDX
PUSH EAX
PUSH ESI
CALL 0x001aa9f0
ADD ESP,0x10
XOR ECX,ECX
XOR EAX,EAX
TEST EDI,EDI
MOV dword ptr [ESI + 0x70],0x0
SETZ AL
MOV word ptr [ESI + 0x74],CX
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x78],EDI
MOV dword ptr [ESI + 0x14],EAX
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_001aae40(int param_1,int param_2)\n\n{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}\n\n" comment (function_definition "void FUN_001aae40(int param_1,int param_2)\n\n{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" primitive_type (function_declarator "FUN_001aae40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" { (expression_statement "FUN_001d1cf0(param_1);" (call_expression "FUN_001d1cf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_001aa9f0(param_1,param_1 + 0x6c);" (call_expression "FUN_001aa9f0(param_1,param_1 + 0x6c)" identifier (argument_list "(param_1,param_1 + 0x6c)" ( identifier , (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x74)" * (cast_expression "(undefined2 *)(param_1 + 0x74)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x78) = param_2;" (assignment_expression "*(int *)(param_1 + 0x78) = param_2" (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);" (assignment_expression "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0)" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (call_expression "(uint)(param_2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ios::init(std::streambuf*) */\n\nvoid __thiscall std::ios::init(ios *this,streambuf *param_1)\n\n{\n  ios_base::_M_init((ios_base *)this);\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  *(undefined4 *)(this + 0x70) = 0;\n  *(undefined2 *)(this + 0x74) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(streambuf **)(this + 0x78) = param_1;\n  *(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios::init(ios *this,streambuf *param_1)\n\n{\n  ios_base::_M_init((ios_base *)this);\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  *(undefined4 *)(this + 0x70) = 0;\n  *(undefined2 *)(this + 0x74) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(streambuf **)(this + 0x78) = param_1;\n  *(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "init(ios *this,streambuf *param_1)" identifier (parameter_list "(ios *this,streambuf *param_1)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "streambuf *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ios_base::_M_init((ios_base *)this);\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  *(undefined4 *)(this + 0x70) = 0;\n  *(undefined2 *)(this + 0x74) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(streambuf **)(this + 0x78) = param_1;\n  *(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0);\n  return;\n}" { (labeled_statement "ios_base::_M_init((ios_base *)this);" statement_identifier : (ERROR ":" :) (expression_statement "_M_init((ios_base *)this);" (call_expression "_M_init((ios_base *)this)" identifier (argument_list "((ios_base *)this)" ( (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (expression_statement "_M_cache_locale(this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale(this,(locale *)(this + 0x6c))" identifier (argument_list "(this,(locale *)(this + 0x6c))" ( identifier , (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) ))) ;) (expression_statement "*(undefined4 *)(this + 0x70) = 0;" (assignment_expression "*(undefined4 *)(this + 0x70) = 0" (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(this + 0x74) = 0;" (assignment_expression "*(undefined2 *)(this + 0x74) = 0" (pointer_expression "*(undefined2 *)(this + 0x74)" * (cast_expression "(undefined2 *)(this + 0x74)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x74)" ( (binary_expression "this + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x10) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10) = 0" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(streambuf **)(this + 0x78) = param_1;" (assignment_expression "*(streambuf **)(this + 0x78) = param_1" (pointer_expression "*(streambuf **)(this + 0x78)" * (cast_expression "(streambuf **)(this + 0x78)" ( (type_descriptor "streambuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0);" (assignment_expression "*(uint *)(this + 0x14) = (uint)(param_1 == (streambuf *)0x0)" (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = (call_expression "(uint)(param_1 == (streambuf *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 == (streambuf *)0x0)" ( (binary_expression "param_1 == (streambuf *)0x0" identifier == (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001aae40(int param_1,int param_2)\n\n{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}\n\n" (function_definition "void FUN_001aae40(int param_1,int param_2)\n\n{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" primitive_type (function_declarator "FUN_001aae40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" { (expression_statement "FUN_001d1cf0(param_1);" (call_expression "FUN_001d1cf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_001aa9f0(param_1,param_1 + 0x6c);" (call_expression "FUN_001aa9f0(param_1,param_1 + 0x6c)" identifier (argument_list "(param_1,param_1 + 0x6c)" ( identifier , (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x74)" * (cast_expression "(undefined2 *)(param_1 + 0x74)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x78) = param_2;" (assignment_expression "*(int *)(param_1 + 0x78) = param_2" (pointer_expression "*(int *)(param_1 + 0x78)" * (cast_expression "(int *)(param_1 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);" (assignment_expression "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0)" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (call_expression "(uint)(param_2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_001aae40(int param_1,int param_2)\n\n{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001aae40(int param_1,int param_2)" (identifier "FUN_001aae40") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  FUN_001d1cf0(param_1);\n  FUN_001aa9f0(param_1,param_1 + 0x6c);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined2 *)(param_1 + 0x74) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(int *)(param_1 + 0x78) = param_2;\n  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);\n  return;\n}" ({ "{") (expression_statement "FUN_001d1cf0(param_1);" (call_expression "FUN_001d1cf0(param_1)" (identifier "FUN_001d1cf0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_001aa9f0(param_1,param_1 + 0x6c);" (call_expression "FUN_001aa9f0(param_1,param_1 + 0x6c)" (identifier "FUN_001aa9f0") (argument_list "(param_1,param_1 + 0x6c)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x74) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x74) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x78) = param_2;" (assignment_expression "*(int *)(param_1 + 0x78) = param_2" (pointer_expression "*(int *)(param_1 + 0x78)" (* "*") (cast_expression "(int *)(param_1 + 0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);" (assignment_expression "*(uint *)(param_1 + 0x14) = (uint)(param_2 == 0)" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (call_expression "(uint)(param_2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios::init(std::streambuf*) */

void __thiscall std::type_1::function_1(type_1 *var_3,type_2 *var_4)

{
  ios_base::var_1((type_3 *)var_3);
  var_2(var_3,(type_4 *)(var_3 + 0x6c));
  *(type_5 *)(var_3 + 0x70) = 0;
  *(type_6 *)(var_3 + 0x74) = 0;
  *(type_5 *)(var_3 + 0x10) = 0;
  *(type_2 **)(var_3 + 0x78) = var_4;
  *(type_7 *)(var_3 + 0x14) = (type_7)(var_4 == (type_2 *)0x0);
  return;
}


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

{
  FUN_001d1cf0(param_1);
  FUN_001aa9f0(param_1,param_1 + 0x6c);
  *(undefined4 *)(param_1 + 0x70) = 0;
  *(undefined2 *)(param_1 + 0x74) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(int *)(param_1 + 0x78) = param_2;
  *(uint *)(param_1 + 0x14) = (uint)(param_2 == 0);
  return;
}

