
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::fstream::fstream(char const*, std::_Ios_Openmode) */

void __thiscall std::fstream::fstream(fstream *this,char *param_1,_Ios_Openmode param_2)

{
}



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

void FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = param_2[2];
  iVar3 = *(int *)(iVar2 + -0xc);
  *param_1 = iVar2;
  *(int *)((int)param_1 + iVar3) = param_2[3];
  param_1[1] = 0;
  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);
  iVar2 = param_2[4];
  param_1[2] = iVar2;
  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);
  *piVar1 = param_2[5];
                    /* try { // try from 00279519 to 0027951d has its CatchHandler @ 002795d2 */
  FUN_002728c0(piVar1,0);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];
  param_1[2] = param_2[9];
  piVar1 = param_1 + 3;
                    /* try { // try from 00279551 to 00279555 has its CatchHandler @ 002795d0 */
  FUN_00274ae0(piVar1);
                    /* try { // try from 00279566 to 002795c2 has its CatchHandler @ 002795ce */
  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);
  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar2 != 0) {
    FUN_00272070(iVar3,0);
    return;
  }
  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x19ab35
SUB ESP,0x24
MOV EDI,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EDI + 0x8]
MOV EDX,dword ptr [EAX + -0xc]
MOV dword ptr [ESI],EAX
MOV ECX,dword ptr [EDI + 0xc]
MOV dword ptr [EBP + -0x1c],EBX
MOV dword ptr [ESI + EDX*0x1],ECX
MOV dword ptr [ESI + 0x4],0x0
MOV ECX,dword ptr [EAX + -0xc]
PUSH 0x0
ADD ECX,ESI
PUSH ECX
CALL 0x002728c0
MOV EAX,dword ptr [EDI + 0x10]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x14]
LEA EAX,[ESI + EAX*0x1 + 0x8]
MOV dword ptr [EAX],EDX
POP ECX
POP EBX
MOV EBX,dword ptr [EBP + -0x1c]
PUSH 0x0
PUSH EAX
CALL 0x002728c0
MOV EAX,dword ptr [EDI + 0x4]
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x18]
MOV dword ptr [ESI + EAX*0x1],EDX
MOV EAX,dword ptr [EDI + 0x1c]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x20]
MOV dword ptr [ESI + EAX*0x1],EDX
MOV EAX,dword ptr [EDI + 0x24]
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0xc]
MOV dword ptr [EBP + -0x20],EAX
MOV dword ptr [ESP],EAX
CALL 0x00274ae0
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
MOV EAX,dword ptr [ESI]
MOV EBX,dword ptr [EBP + -0x1c]
MOV ECX,dword ptr [EAX + -0xc]
ADD ECX,ESI
PUSH ECX
CALL 0x002728c0
ADD ESP,0xc
PUSH dword ptr [EBP + 0x14]
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + -0x20]
CALL 0x00278dc0
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,ESI
TEST EAX,EAX
JZ 0x002795b0
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x1c]
PUSH 0x0
PUSH ECX
CALL 0x00272070
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ECX + 0x14]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x1c]
OR EAX,0x4
PUSH EAX
PUSH ECX
CALL 0x00272070
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 00279519 to 0027951d has its CatchHandler @ 002795d2 */\n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 00279551 to 00279555 has its CatchHandler @ 002795d0 */\n  FUN_00274ae0(piVar1);\n                    /* try { // try from 00279566 to 002795c2 has its CatchHandler @ 002795ce */\n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}\n\n" comment (function_definition "void FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 00279519 to 0027951d has its CatchHandler @ 002795d2 */\n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 00279551 to 00279555 has its CatchHandler @ 002795d0 */\n  FUN_00274ae0(piVar1);\n                    /* try { // try from 00279566 to 002795c2 has its CatchHandler @ 002795ce */\n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 00279519 to 0027951d has its CatchHandler @ 002795d2 */\n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 00279551 to 00279555 has its CatchHandler @ 002795d0 */\n  FUN_00274ae0(piVar1);\n                    /* try { // try from 00279566 to 002795c2 has its CatchHandler @ 002795ce */\n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" * (cast_expression "(int *)((int)param_1 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[3]" 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) ;) (expression_statement "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" identifier (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" ( (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal ))) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" identifier = (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) comment (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) comment (expression_statement "FUN_00274ae0(piVar1);" (call_expression "FUN_00274ae0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) comment (expression_statement "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" ( (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)) , identifier ))) ;) (expression_statement "iVar2 = FUN_00278dc0(piVar1,param_3,param_4);" (assignment_expression "iVar2 = FUN_00278dc0(piVar1,param_3,param_4)" identifier = (call_expression "FUN_00278dc0(piVar1,param_3,param_4)" identifier (argument_list "(piVar1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (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))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00272070(iVar3,0);\n    return;\n  }" { (expression_statement "FUN_00272070(iVar3,0);" (call_expression "FUN_00272070(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" 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::fstream::fstream(char const*, std::_Ios_Openmode) */\n\nvoid __thiscall std::fstream::fstream(fstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n}\n\n" comment comment (function_definition "void __thiscall std::fstream::fstream(fstream *this,char *param_1,_Ios_Openmode param_2)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::" identifier : : identifier : :) (function_declarator "fstream(fstream *this,char *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(fstream *this,char *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "fstream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "_Ios_Openmode param_2" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_00274ae0(piVar1);\n                    \n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_00274ae0(piVar1);\n                    \n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_00274ae0(piVar1);\n                    \n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" * (cast_expression "(int *)((int)param_1 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[3]" 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) ;) (expression_statement "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" identifier (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" ( (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal ))) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" identifier = (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "FUN_00274ae0(piVar1);" (call_expression "FUN_00274ae0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" ( (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)) , identifier ))) ;) (expression_statement "iVar2 = FUN_00278dc0(piVar1,param_3,param_4);" (assignment_expression "iVar2 = FUN_00278dc0(piVar1,param_3,param_4)" identifier = (call_expression "FUN_00278dc0(piVar1,param_3,param_4)" identifier (argument_list "(piVar1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (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))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00272070(iVar3,0);\n    return;\n  }" { (expression_statement "FUN_00272070(iVar3,0);" (call_expression "FUN_00272070(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" 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)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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) ))))) + LIT) )))) ;) (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 = (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 ]) = (subscript_expression 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 (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (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))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_00274ae0(piVar1);\n                    \n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002794c0(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_002794c0") (parameter_list "(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)" (( "(") (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"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_002728c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_00274ae0(piVar1);\n                    \n  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }\n  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" (identifier "iVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" (* "*") (cast_expression "(int *)((int)param_1 + iVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar3)" (( "(") (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (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")) (; ";")) (expression_statement "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" (identifier "FUN_002728c0") (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" (( "(") (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" (identifier "iVar2") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" (identifier "FUN_002728c0") (argument_list "(piVar1,0)" (( "(") (identifier "piVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" (identifier "iVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" (identifier "piVar1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "FUN_00274ae0(piVar1);" (call_expression "FUN_00274ae0(piVar1)" (identifier "FUN_00274ae0") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" (identifier "FUN_002728c0") (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" (( "(") (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"))) (, ",") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00278dc0(piVar1,param_3,param_4);" (assignment_expression "iVar2 = FUN_00278dc0(piVar1,param_3,param_4)" (identifier "iVar2") (= "=") (call_expression "FUN_00278dc0(piVar1,param_3,param_4)" (identifier "FUN_00278dc0") (argument_list "(piVar1,param_3,param_4)" (( "(") (identifier "piVar1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (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")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    FUN_00272070(iVar3,0);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00272070(iVar3,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_00272070(iVar3,0);" (call_expression "FUN_00272070(iVar3,0)" (identifier "FUN_00272070") (argument_list "(iVar3,0)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4)" (identifier "FUN_00272070") (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::fstream::fstream(char const*, std::_Ios_Openmode) */

void __thiscall std::function_1::function_1(function_1 *this,char *param_1,type_1 param_2)

{
}


(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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (identifier) right: (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: (identifier))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (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: (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)))) (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: (subscript_expression argument: (identifier) index: (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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))) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_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))))) (return_statement))))

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

void MASKED(int *param_1,int *param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = param_2[2];
  iVar3 = *(int *)(iVar2 + -0xc);
  *param_1 = iVar2;
  *(int *)((int)param_1 + iVar3) = param_2[3];
  param_1[1] = 0;
  FUN_002728c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);
  iVar2 = param_2[4];
  param_1[2] = iVar2;
  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);
  *piVar1 = param_2[5];
                    /* try { // try from 00279519 to 0027951d has its CatchHandler @ 002795d2 */
  FUN_002728c0(piVar1,0);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];
  param_1[2] = param_2[9];
  piVar1 = param_1 + 3;
                    /* try { // try from 00279551 to 00279555 has its CatchHandler @ 002795d0 */
  FUN_00274ae0(piVar1);
                    /* try { // try from 00279566 to 002795c2 has its CatchHandler @ 002795ce */
  FUN_002728c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);
  iVar2 = FUN_00278dc0(piVar1,param_3,param_4);
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar2 != 0) {
    FUN_00272070(iVar3,0);
    return;
  }
  FUN_00272070(iVar3,*(uint *)(iVar3 + 0x14) | 4);
  return;
}

