
/* std::streambuf::pubseekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode) */

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

{
  int unaff_EDI;
  undefined4 *unaff_retaddr;
  
  __x86_get_pc_thunk_di();
  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);
  return unaff_retaddr;
}



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

{
  int unaff_EDI;
  undefined4 *unaff_retaddr;
  
  FUN_00074f0a();
  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);
  return unaff_retaddr;
}


PUSH EDI
CALL 0x00074f0a
ADD EDI,0x230a7a
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESI]
MOV EBX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [EDX + 0x10]
CMP EDX,dword ptr [EDI + 0xfffffe5c]
JNZ 0x003b95d0
MOV dword ptr [EAX],0xffffffff
MOV dword ptr [EAX + 0x4],0xffffffff
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
POP EBX
POP ESI
POP EDI
RET 0x4
SUB ESP,0x8
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH EBX
PUSH ECX
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x30],EAX
CALL EDX
ADD ESP,0x1c
MOV EAX,dword ptr [ESP + 0x10]
POP EBX
POP ESI
POP EDI
RET 0x4
(translation_unit "undefined4 *\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}\n\n" (function_definition "undefined4 *\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" type_identifier (pointer_declarator "*\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" * (function_declarator "FUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" ( (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) )))) (compound_statement "{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" { (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI))" ( (binary_expression "*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)" (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (pointer_expression "*(code **)(&DAT_002308d6 + unaff_EDI)" * (cast_expression "(code **)(&DAT_002308d6 + unaff_EDI)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_002308d6 + unaff_EDI)" ( (binary_expression "&DAT_002308d6 + unaff_EDI" (pointer_expression "&DAT_002308d6" & identifier) + 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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return unaff_retaddr;" return identifier ;) })))
(translation_unit "/* std::streambuf::pubseekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode) */\n\nundefined4 *\nstd::streambuf::pubseekoff\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  __x86_get_pc_thunk_di();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}\n\n" comment (ERROR "undefined4 *\nstd::" (binary_expression "undefined4 *\nstd" identifier * identifier) : :) (labeled_statement "streambuf::pubseekoff\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6)\n\n{\n  int unaff_EDI;" statement_identifier : (ERROR ":pubseekoff\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6)\n\n{" : (call_expression "pubseekoff\n          (undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6)" identifier (argument_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          ,undefined4 param_6)" ( (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) ))) {) (declaration "int unaff_EDI;" primitive_type identifier ;)) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI))" ( (binary_expression "*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)" (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (pointer_expression "*(code **)(&DAT_002308d6 + unaff_EDI)" * (cast_expression "(code **)(&DAT_002308d6 + unaff_EDI)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_002308d6 + unaff_EDI)" ( (binary_expression "&DAT_002308d6 + unaff_EDI" (pointer_expression "&DAT_002308d6" & identifier) + 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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return unaff_retaddr;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 *\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}\n\n" (function_definition "undefined4 *\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" type_identifier (pointer_declarator "*\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" * (function_declarator "FUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" ( (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) )))) (compound_statement "{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" { (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI))" ( (binary_expression "*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)" (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (pointer_expression "*(code **)(&DAT_002308d6 + unaff_EDI)" * (cast_expression "(code **)(&DAT_002308d6 + unaff_EDI)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_002308d6 + unaff_EDI)" ( (binary_expression "&DAT_002308d6 + unaff_EDI" (pointer_expression "&DAT_002308d6" & identifier) + 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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" ( 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) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + 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 ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)\n\n{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" (* "*") (function_declarator "FUN_003b9580(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" (identifier "FUN_003b9580") (parameter_list "(undefined4 *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6)" (( "(") (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")) () ")")))) (compound_statement "{\n  int unaff_EDI;\n  undefined4 *unaff_retaddr;\n  \n  FUN_00074f0a();\n  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);\n  return unaff_retaddr;\n}" ({ "{") (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "FUN_00074f0a();" (call_expression "FUN_00074f0a()" (identifier "FUN_00074f0a") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {\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 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI))" (( "(") (binary_expression "*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)" (pointer_expression "*(code **)(*param_2 + 0x10)" (* "*") (cast_expression "(code **)(*param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x10)" (( "(") (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x10")) () ")")))) (== "==") (pointer_expression "*(code **)(&DAT_002308d6 + unaff_EDI)" (* "*") (cast_expression "(code **)(&DAT_002308d6 + unaff_EDI)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_002308d6 + unaff_EDI)" (( "(") (binary_expression "&DAT_002308d6 + unaff_EDI" (pointer_expression "&DAT_002308d6" (& "&") (identifier "DAT_002308d6")) (+ "+") (identifier "unaff_EDI")) () ")"))))) () ")")) (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 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x10)" (* "*") (cast_expression "(code **)(*param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x10)" (( "(") (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (return_statement "return unaff_retaddr;" (return "return") (identifier "unaff_retaddr") (; ";")) (} "}")))

/* std::streambuf::pubseekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode) */

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

{
  int var_2;
  type_1 *unaff_retaddr;
  
  var_1();
  if (*(type_2 **)(*param_2 + 0x10) == *(type_2 **)(&DAT_002308d6 + var_2)) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(type_2 **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);
  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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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: (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)))) (return_statement (identifier)))))

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

{
  int unaff_EDI;
  undefined4 *unaff_retaddr;
  
  FUN_00074f0a();
  if (*(code **)(*param_2 + 0x10) == *(code **)(&DAT_002308d6 + unaff_EDI)) {
    *param_1 = 0xffffffff;
    param_1[1] = 0xffffffff;
    param_1[2] = 0;
    param_1[3] = 0;
    return param_1;
  }
  (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,param_5,param_6);
  return unaff_retaddr;
}

