
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::streambuf::pubseekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode) */

undefined4 *
std::streambuf::pubseekpos
          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
          ,undefined4 param_6,undefined4 param_7)

{
  undefined4 *unaff_retaddr;
  
  if (*(code **)(*param_2 + 0x14) == (code *)PTR_seekpos_0038eccc) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);
  return unaff_retaddr;
}



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

undefined4 *
FUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 *unaff_retaddr;
  
  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);
  return unaff_retaddr;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x19ccca
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ECX]
MOV EDX,dword ptr [EDX + 0x14]
CMP EDX,dword ptr [EBX + 0xfffffccc]
JNZ 0x001f2380
MOV dword ptr [EAX],0xffffffff
MOV dword ptr [EAX + 0x4],0xffffffff
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
ADD ESP,0x8
POP EBX
RET 0x4
SUB ESP,0x4
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH ECX
PUSH EAX
MOV dword ptr [ESP + 0x30],EAX
CALL EDX
ADD ESP,0x1c
MOV EAX,dword ptr [ESP + 0x10]
ADD ESP,0x8
POP EBX
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 *\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}\n\n" comment (function_definition "undefined4 *\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" type_identifier (pointer_declarator "*\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 *param_1" type_identifier (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) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" { (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (if_statement "if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc)" ( (binary_expression "*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc" (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_0038eccc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" { (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);" (call_expression "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return unaff_retaddr;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::streambuf::pubseekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode) */\n\nundefined4 *\nstd::streambuf::pubseekpos\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_seekpos_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}\n\n" comment comment (ERROR "undefined4 *\nstd::" (binary_expression "undefined4 *\nstd" identifier * identifier) : :) (labeled_statement "streambuf::pubseekpos\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;" statement_identifier : (ERROR ":pubseekpos\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7)\n\n{" : (call_expression "pubseekpos\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7)" identifier (argument_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6,undefined4 param_7)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "int *param_2" identifier * identifier) , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) , identifier (ERROR "param_5" identifier) , identifier (ERROR "param_6" identifier) , identifier (ERROR "param_7" identifier) ))) {) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;)) (if_statement "if (*(code **)(*param_2 + 0x14) == (code *)PTR_seekpos_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x14) == (code *)PTR_seekpos_0038eccc)" ( (binary_expression "*(code **)(*param_2 + 0x14) == (code *)PTR_seekpos_0038eccc" (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_seekpos_0038eccc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" { (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);" (call_expression "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return unaff_retaddr;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 *\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}\n\n" (function_definition "undefined4 *\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" type_identifier (pointer_declarator "*\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 *param_1" type_identifier (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) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" { (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (if_statement "if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc)" ( (binary_expression "*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc" (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_0038eccc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" { (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);" (call_expression "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return unaff_retaddr;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (* "*") (function_declarator "FUN_001f2330(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (identifier "FUN_001f2330") (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")")))) (compound_statement "{\n  undefined4 *unaff_retaddr;\n  \n  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);\n  return unaff_retaddr;\n}" ({ "{") (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (if_statement "if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc)" (( "(") (binary_expression "*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc" (pointer_expression "*(code **)(*param_2 + 0x14)" (* "*") (cast_expression "(code **)(*param_2 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x14)" (( "(") (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (cast_expression "(code *)PTR_FUN_0038eccc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0038eccc"))) () ")")) (compound_statement "{\n    *param_1 = 0xffffffff;\n    param_1[1] = 0xffffffff;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);" (call_expression "(**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x14)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x14)" (* "*") (cast_expression "(code **)(*param_2 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x14)" (( "(") (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") () ")"))) (; ";")) (return_statement "return unaff_retaddr;" (return "return") (identifier "unaff_retaddr") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::streambuf::pubseekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode) */

type_1 *
std::streambuf::pubseekpos
          (type_1 *param_1,int *param_2,type_1 param_3,type_1 param_4,type_1 param_5
          ,type_1 param_6,type_1 param_7)

{
  type_1 *unaff_retaddr;
  
  if (*(type_2 **)(*param_2 + 0x14) == (type_2 *)PTR_seekpos_0038eccc) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(type_2 **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);
  return unaff_retaddr;
}


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

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

undefined4 *
MASKED(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 *unaff_retaddr;
  
  if (*(code **)(*param_2 + 0x14) == (code *)PTR_FUN_0038eccc) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x14))(param_1,param_2,param_3,param_4,param_5,param_6,param_7);
  return unaff_retaddr;
}

