
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* std::ofstream::ofstream() */

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

{
  int iVar1;
  int *in_stack_00000008;
  
  iVar1 = *(int *)(in_stack_00000008[1] + -0xc);
  *(int *)this = in_stack_00000008[1];
  *(int *)(this + iVar1) = in_stack_00000008[2];
  ios::init((ios *)(this + iVar1),(streambuf *)0x0);
  iVar1 = *in_stack_00000008;
  *(int *)this = iVar1;
  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];
                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */
  filebuf::filebuf((filebuf *)(this + 4));
                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */
  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_001b0be0(int *param_1,int *param_2)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = *(int *)(param_2[1] + -0xc);
  *param_1 = param_2[1];
  piVar2 = (int *)(iVar1 + (int)param_1);
  *piVar2 = param_2[2];
  FUN_001aae40(piVar2,0);
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */
  FUN_001ad060(param_1 + 1);
                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */
  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);
  return;
}


CALL 0x0005a908
ADD ECX,0x15141b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x24
MOV EDI,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],ECX
MOV EAX,dword ptr [EDI + 0x4]
MOV EBX,dword ptr [EAX + -0xc]
MOV dword ptr [ESI],EAX
MOV EDX,dword ptr [EDI + 0x8]
ADD EBX,ESI
MOV dword ptr [EBX],EDX
PUSH 0x0
PUSH EBX
MOV EBX,ECX
CALL 0x001aae40
MOV EAX,dword ptr [EDI]
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0xc]
MOV dword ptr [ESI + EAX*0x1],EDX
LEA EAX,[ESI + 0x4]
MOV dword ptr [EBP + -0x20],EAX
MOV dword ptr [ESP],EAX
CALL 0x001ad060
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
MOV EAX,dword ptr [ESI]
MOV EBX,dword ptr [EBP + -0x1c]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
PUSH EDX
CALL 0x001aae40
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_001b0be0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  FUN_001ad060(param_1 + 1);\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}\n\n" comment (function_definition "void FUN_001b0be0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  FUN_001ad060(param_1 + 1);\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001b0be0(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  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  FUN_001ad060(param_1 + 1);\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_2[1] + -0xc);" (assignment_expression "iVar1 = *(int *)(param_2[1] + -0xc)" identifier = (pointer_expression "*(int *)(param_2[1] + -0xc)" * (cast_expression "(int *)(param_2[1] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[1] + -0xc)" ( (binary_expression "param_2[1] + -0xc" (subscript_expression "param_2[1]" identifier [ number_literal ]) + 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 "piVar2 = (int *)(iVar1 + (int)param_1);" (assignment_expression "piVar2 = (int *)(iVar1 + (int)param_1)" identifier = (cast_expression "(int *)(iVar1 + (int)param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)param_1)" ( (binary_expression "iVar1 + (int)param_1" identifier + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*piVar2 = param_2[2];" (assignment_expression "*piVar2 = param_2[2]" (pointer_expression "*piVar2" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "FUN_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (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 ])) ;) comment (expression_statement "FUN_001ad060(param_1 + 1);" (call_expression "FUN_001ad060(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) comment (expression_statement "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);" (call_expression "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" ( (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (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) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* std::ofstream::ofstream() */\n\nvoid __thiscall std::ofstream::ofstream(ofstream *this)\n\n{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *(int *)(in_stack_00000008[1] + -0xc);\n  *(int *)this = in_stack_00000008[1];\n  *(int *)(this + iVar1) = in_stack_00000008[2];\n  ios::init((ios *)(this + iVar1),(streambuf *)0x0);\n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ofstream::ofstream(ofstream *this)\n\n{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *(int *)(in_stack_00000008[1] + -0xc);\n  *(int *)this = in_stack_00000008[1];\n  *(int *)(this + iVar1) = in_stack_00000008[2];\n  ios::init((ios *)(this + iVar1),(streambuf *)0x0);\n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ofstream::" identifier : : identifier : :) (function_declarator "ofstream(ofstream *this)" identifier (parameter_list "(ofstream *this)" ( (parameter_declaration "ofstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *in_stack_00000008;\n  \n  iVar1 = *(int *)(in_stack_00000008[1] + -0xc);\n  *(int *)this = in_stack_00000008[1];\n  *(int *)(this + iVar1) = in_stack_00000008[2];\n  ios::init((ios *)(this + iVar1),(streambuf *)0x0);\n  iVar1 = *in_stack_00000008;\n  *(int *)this = iVar1;\n  *(int *)(this + *(int *)(iVar1 + -0xc)) = in_stack_00000008[3];\n                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */\n  ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));\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 = *(int *)(in_stack_00000008[1] + -0xc);" (assignment_expression "iVar1 = *(int *)(in_stack_00000008[1] + -0xc)" identifier = (pointer_expression "*(int *)(in_stack_00000008[1] + -0xc)" * (cast_expression "(int *)(in_stack_00000008[1] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000008[1] + -0xc)" ( (binary_expression "in_stack_00000008[1] + -0xc" (subscript_expression "in_stack_00000008[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)this = in_stack_00000008[1];" (assignment_expression "*(int *)this = in_stack_00000008[1]" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (subscript_expression "in_stack_00000008[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(this + iVar1) = in_stack_00000008[2];" (assignment_expression "*(int *)(this + iVar1) = in_stack_00000008[2]" (pointer_expression "*(int *)(this + iVar1)" * (cast_expression "(int *)(this + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1)" ( (binary_expression "this + iVar1" identifier + identifier) )))) = (subscript_expression "in_stack_00000008[2]" identifier [ number_literal ])) ;) (labeled_statement "ios::init((ios *)(this + iVar1),(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)(this + iVar1),(streambuf *)0x0);" (call_expression "init((ios *)(this + iVar1),(streambuf *)0x0)" identifier (argument_list "((ios *)(this + iVar1),(streambuf *)0x0)" ( (cast_expression "(ios *)(this + iVar1)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1)" ( (binary_expression "this + iVar1" identifier + identifier) ))) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (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 ])) ;) comment (labeled_statement "filebuf::filebuf((filebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 4));" (call_expression "filebuf((filebuf *)(this + 4))" identifier (argument_list "((filebuf *)(this + 4))" ( (cast_expression "(filebuf *)(this + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "ios::init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4));" (call_expression "init((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),(streambuf *)(this + 4))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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) ))))) ))) , (cast_expression "(streambuf *)(this + 4)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b0be0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    \n  FUN_001ad060(param_1 + 1);\n                    \n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_001b0be0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    \n  FUN_001ad060(param_1 + 1);\n                    \n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001b0be0(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  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    \n  FUN_001ad060(param_1 + 1);\n                    \n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_2[1] + -0xc);" (assignment_expression "iVar1 = *(int *)(param_2[1] + -0xc)" identifier = (pointer_expression "*(int *)(param_2[1] + -0xc)" * (cast_expression "(int *)(param_2[1] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[1] + -0xc)" ( (binary_expression "param_2[1] + -0xc" (subscript_expression "param_2[1]" identifier [ number_literal ]) + 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 "piVar2 = (int *)(iVar1 + (int)param_1);" (assignment_expression "piVar2 = (int *)(iVar1 + (int)param_1)" identifier = (cast_expression "(int *)(iVar1 + (int)param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)param_1)" ( (binary_expression "iVar1 + (int)param_1" identifier + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*piVar2 = param_2[2];" (assignment_expression "*piVar2 = param_2[2]" (pointer_expression "*piVar2" * identifier) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "FUN_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" identifier (argument_list "(piVar2,0)" ( identifier , number_literal ))) ;) (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 "FUN_001ad060(param_1 + 1);" (call_expression "FUN_001ad060(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);" (call_expression "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" ( (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (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) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_1 + 1" identifier + 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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001b0be0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    \n  FUN_001ad060(param_1 + 1);\n                    \n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b0be0(int *param_1,int *param_2)" (identifier "FUN_001b0be0") (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  int *piVar2;\n  \n  iVar1 = *(int *)(param_2[1] + -0xc);\n  *param_1 = param_2[1];\n  piVar2 = (int *)(iVar1 + (int)param_1);\n  *piVar2 = param_2[2];\n  FUN_001aae40(piVar2,0);\n  iVar1 = *param_2;\n  *param_1 = iVar1;\n  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];\n                    \n  FUN_001ad060(param_1 + 1);\n                    \n  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "iVar1 = *(int *)(param_2[1] + -0xc);" (assignment_expression "iVar1 = *(int *)(param_2[1] + -0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2[1] + -0xc)" (* "*") (cast_expression "(int *)(param_2[1] + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[1] + -0xc)" (( "(") (binary_expression "param_2[1] + -0xc" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (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 "piVar2 = (int *)(iVar1 + (int)param_1);" (assignment_expression "piVar2 = (int *)(iVar1 + (int)param_1)" (identifier "piVar2") (= "=") (cast_expression "(int *)(iVar1 + (int)param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + (int)param_1)" (( "(") (binary_expression "iVar1 + (int)param_1" (identifier "iVar1") (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "*piVar2 = param_2[2];" (assignment_expression "*piVar2 = param_2[2]" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "FUN_001aae40(piVar2,0);" (call_expression "FUN_001aae40(piVar2,0)" (identifier "FUN_001aae40") (argument_list "(piVar2,0)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (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 "FUN_001ad060(param_1 + 1);" (call_expression "FUN_001ad060(param_1 + 1)" (identifier "FUN_001ad060") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);" (call_expression "FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" (identifier "FUN_001aae40") (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1)" (( "(") (binary_expression "*(int *)(*param_1 + -0xc) + (int)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")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* std::ofstream::ofstream() */

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

{
  int var_2;
  int *in_stack_00000008;
  
  var_2 = *(int *)(in_stack_00000008[1] + -0xc);
  *(int *)var_1 = in_stack_00000008[1];
  *(int *)(var_1 + var_2) = in_stack_00000008[2];
  ios::var_3((type_1 *)(var_1 + var_2),(type_2 *)0x0);
  var_2 = *in_stack_00000008;
  *(int *)var_1 = var_2;
  *(int *)(var_1 + *(int *)(var_2 + -0xc)) = in_stack_00000008[3];
                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */
  filebuf::var_4((var_4 *)(var_1 + 4));
                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */
  ios::var_3((type_1 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),(type_2 *)(var_1 + 4));
  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)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (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)))) (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 (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: (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))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = *(int *)(param_2[1] + -0xc);
  *param_1 = param_2[1];
  piVar2 = (int *)(iVar1 + (int)param_1);
  *piVar2 = param_2[2];
  FUN_001aae40(piVar2,0);
  iVar1 = *param_2;
  *param_1 = iVar1;
  *(int *)((int)param_1 + *(int *)(iVar1 + -0xc)) = param_2[3];
                    /* try { // try from 001b0c2f to 001b0c33 has its CatchHandler @ 001b0c54 */
  FUN_001ad060(param_1 + 1);
                    /* try { // try from 001b0c44 to 001b0c48 has its CatchHandler @ 001b0c56 */
  FUN_001aae40(*(int *)(*param_1 + -0xc) + (int)param_1,param_1 + 1);
  return;
}

