
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* stdio_sync_filebuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>,
   std::_Ios_Openmode) */

void stdio_sync_filebuf<char,std::char_traits<char>>::seekpos(void)

{
}



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

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

{
  int iVar1;
  __off64_t _Var2;
  
  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {
    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);
    return param_1;
  }
  *(undefined4 *)param_1 = 0xffffffff;
  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;
  *(undefined4 *)(param_1 + 1) = 0;
  *(undefined4 *)((int)param_1 + 0xc) = 0;
  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);
  if (iVar1 != 0) {
    return param_1;
  }
  _Var2 = ftello64((FILE *)param_2[8]);
  *param_1 = _Var2;
  return param_1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x0003a210
ADD EBX,0x195fe4
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EDI]
MOV ECX,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [ESP + 0x18]
CMP ECX,dword ptr [EBX + 0xfffffbdc]
JNZ 0x0027e098
MOV dword ptr [ESI],0xffffffff
MOV dword ptr [ESI + 0x4],0xffffffff
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0xc],0x0
PUSH 0x0
PUSH EDX
PUSH EAX
PUSH dword ptr [EDI + 0x20]
CALL 0x0002cac0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0027e078
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET 0x4
SUB ESP,0xc
PUSH dword ptr [EDI + 0x20]
CALL 0x0002c660
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV EAX,ESI
MOV dword ptr [ESI + 0x4],EDX
POP EBX
POP ESI
POP EDI
RET 0x4
SUB ESP,0x8
PUSH dword ptr [ESP + 0x30]
PUSH 0x0
PUSH EDX
PUSH EAX
PUSH EDI
PUSH ESI
CALL ECX
MOV EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n__off64_t *\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}\n\n" comment (function_definition "__off64_t *\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "__off64_t *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  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__off64_t _Var2;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc)" ( (binary_expression "*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc" (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) )))) != (cast_expression "(code *)PTR_FUN_00413bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" { (expression_statement "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7)" (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,0,param_7)" ( identifier , identifier , identifier , identifier , number_literal , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*(undefined4 *)param_1 = 0xffffffff;" (assignment_expression "*(undefined4 *)param_1 = 0xffffffff" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)param_1 + 4)" * (cast_expression "(undefined4 *)((int)param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 4)" ( (binary_expression "(int)param_1 + 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 1) = 0" (pointer_expression "*(undefined4 *)(param_1 + 1)" * (cast_expression "(undefined4 *)(param_1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" * (cast_expression "(undefined4 *)((int)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);" (assignment_expression "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" identifier = (call_expression "fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" identifier (argument_list "((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" ( (cast_expression "(FILE *)param_2[8]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) , (call_expression "CONCAT44(param_4,param_3)" identifier (argument_list "(param_4,param_3)" ( identifier , identifier ))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "_Var2 = ftello64((FILE *)param_2[8]);" (assignment_expression "_Var2 = ftello64((FILE *)param_2[8])" identifier = (call_expression "ftello64((FILE *)param_2[8])" identifier (argument_list "((FILE *)param_2[8])" ( (cast_expression "(FILE *)param_2[8]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) )))) ;) (expression_statement "*param_1 = _Var2;" (assignment_expression "*param_1 = _Var2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* stdio_sync_filebuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>,\n   std::_Ios_Openmode) */\n\nvoid stdio_sync_filebuf<char,std::char_traits<char>>::seekpos(void)\n\n{\n}\n\n" comment comment (ERROR "void stdio_sync_filebuf<char,std::char_traits<char>>::seekpos(void)" primitive_type identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>::" identifier : : identifier < primitive_type >> : :) (function_declarator "seekpos(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n}" { }))
(translation_unit "__off64_t *\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}\n\n" (function_definition "__off64_t *\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" * (function_declarator "FUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "__off64_t *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  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__off64_t _Var2;" type_identifier identifier ;) (if_statement "if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc)" ( (binary_expression "*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc" (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) )))) != (cast_expression "(code *)PTR_FUN_00413bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" { (expression_statement "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7)" (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,0,param_7)" ( identifier , identifier , identifier , identifier , number_literal , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*(undefined4 *)param_1 = 0xffffffff;" (assignment_expression "*(undefined4 *)param_1 = 0xffffffff" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)param_1 + 4)" * (cast_expression "(undefined4 *)((int)param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 4)" ( (binary_expression "(int)param_1 + 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 1) = 0" (pointer_expression "*(undefined4 *)(param_1 + 1)" * (cast_expression "(undefined4 *)(param_1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" * (cast_expression "(undefined4 *)((int)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc)" ( (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);" (assignment_expression "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" identifier = (call_expression "fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" identifier (argument_list "((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" ( (cast_expression "(FILE *)param_2[8]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) , (call_expression "CONCAT44(param_4,param_3)" identifier (argument_list "(param_4,param_3)" ( identifier , identifier ))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "_Var2 = ftello64((FILE *)param_2[8]);" (assignment_expression "_Var2 = ftello64((FILE *)param_2[8])" identifier = (call_expression "ftello64((FILE *)param_2[8])" identifier (argument_list "((FILE *)param_2[8])" ( (cast_expression "(FILE *)param_2[8]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) )))) ;) (expression_statement "*param_1 = _Var2;" (assignment_expression "*param_1 = _Var2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" 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 IDENT ;) (declaration TYPE 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 (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 , LIT , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (call_expression IDENT (argument_list ( IDENT , IDENT ))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "__off64_t *\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" (type_identifier "__off64_t") (pointer_declarator "*\nFUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (* "*") (function_declarator "FUN_0027e010(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (identifier "FUN_0027e010") (parameter_list "(__off64_t *param_1,int *param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined4 param_7)" (( "(") (parameter_declaration "__off64_t *param_1" (type_identifier "__off64_t") (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  int iVar1;\n  __off64_t _Var2;\n  \n  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }\n  *(undefined4 *)param_1 = 0xffffffff;\n  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;\n  *(undefined4 *)(param_1 + 1) = 0;\n  *(undefined4 *)((int)param_1 + 0xc) = 0;\n  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64((FILE *)param_2[8]);\n  *param_1 = _Var2;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "__off64_t _Var2;" (type_identifier "__off64_t") (identifier "_Var2") (; ";")) (if_statement "if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc)" (( "(") (binary_expression "*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc" (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")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_00413bdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00413bdc"))) () ")")) (compound_statement "{\n    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);\n    return param_1;\n  }" ({ "{") (expression_statement "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);" (call_expression "(**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7)" (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,0,param_7)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "0") (, ",") (identifier "param_7") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)param_1 = 0xffffffff;" (assignment_expression "*(undefined4 *)param_1 = 0xffffffff" (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)param_1 + 4)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 4)" (( "(") (binary_expression "(int)param_1 + 4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 1) = 0" (pointer_expression "*(undefined4 *)(param_1 + 1)" (* "*") (cast_expression "(undefined4 *)(param_1 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xc)" (( "(") (binary_expression "(int)param_1 + 0xc" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);" (assignment_expression "iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" (identifier "iVar1") (= "=") (call_expression "fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" (identifier "fseeko64") (argument_list "((FILE *)param_2[8],CONCAT44(param_4,param_3),0)" (( "(") (cast_expression "(FILE *)param_2[8]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (, ",") (call_expression "CONCAT44(param_4,param_3)" (identifier "CONCAT44") (argument_list "(param_4,param_3)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") () ")"))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "_Var2 = ftello64((FILE *)param_2[8]);" (assignment_expression "_Var2 = ftello64((FILE *)param_2[8])" (identifier "_Var2") (= "=") (call_expression "ftello64((FILE *)param_2[8])" (identifier "ftello64") (argument_list "((FILE *)param_2[8])" (( "(") (cast_expression "(FILE *)param_2[8]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) () ")")))) (; ";")) (expression_statement "*param_1 = _Var2;" (assignment_expression "*param_1 = _Var2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "_Var2")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* stdio_sync_filebuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>,
   std::_Ios_Openmode) */

void stdio_sync_filebuf<char,std::char_traits<char>>::seekpos(void)

{
}


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

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

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

{
  int iVar1;
  __off64_t _Var2;
  
  if (*(code **)(*param_2 + 0x10) != (code *)PTR_FUN_00413bdc) {
    (**(code **)(*param_2 + 0x10))(param_1,param_2,param_3,param_4,0,param_7);
    return param_1;
  }
  *(undefined4 *)param_1 = 0xffffffff;
  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;
  *(undefined4 *)(param_1 + 1) = 0;
  *(undefined4 *)((int)param_1 + 0xc) = 0;
  iVar1 = fseeko64((FILE *)param_2[8],CONCAT44(param_4,param_3),0);
  if (iVar1 != 0) {
    return param_1;
  }
  _Var2 = ftello64((FILE *)param_2[8]);
  *param_1 = _Var2;
  return param_1;
}

