
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* stdio_sync_filebuf<wchar_t, std::char_traits<wchar_t> >::seekoff(long long, std::_Ios_Seekdir,
   std::_Ios_Openmode) */

__off64_t *
stdio_sync_filebuf<wchar_t,std::char_traits<wchar_t>>::seekoff
          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)

{
  int iVar1;
  __off64_t _Var2;
  
  iVar1 = 0;
  *(undefined4 *)param_1 = 0xffffffff;
  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;
  *(undefined4 *)(param_1 + 1) = 0;
  *(undefined4 *)((int)param_1 + 0xc) = 0;
  if (param_5 != 0) {
    iVar1 = (param_5 != 1) + 1;
  }
  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);
  if (iVar1 != 0) {
    return param_1;
  }
  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));
  *param_1 = _Var2;
  return param_1;
}



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

__off64_t *
FUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)

{
  int iVar1;
  __off64_t _Var2;
  
  iVar1 = 0;
  *(undefined4 *)param_1 = 0xffffffff;
  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;
  *(undefined4 *)(param_1 + 1) = 0;
  *(undefined4 *)((int)param_1 + 0xc) = 0;
  if (param_5 != 0) {
    iVar1 = (param_5 != 1) + 1;
  }
  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);
  if (iVar1 != 0) {
    return param_1;
  }
  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));
  *param_1 = _Var2;
  return param_1;
}


PUSH EBP
XOR ECX,ECX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x15d145
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESI],0xffffffff
MOV dword ptr [ESI + 0x4],0xffffffff
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0xc],0x0
TEST EBP,EBP
JZ 0x001e1f02
XOR ECX,ECX
CMP EBP,0x1
SETNZ CL
ADD ECX,0x1
PUSH ECX
PUSH EDX
PUSH EAX
PUSH dword ptr [EDI + 0x20]
CALL 0x00028360
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001e1f20
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0xc
PUSH dword ptr [EDI + 0x20]
CALL 0x00028590
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV EAX,ESI
MOV dword ptr [ESI + 0x4],EDX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n__off64_t *\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}\n\n" comment (function_definition "__off64_t *\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" * (function_declarator "FUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "__off64_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__off64_t _Var2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (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) ;) (if_statement "if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (param_5 != 1) + 1;\n  }" { (expression_statement "iVar1 = (param_5 != 1) + 1;" (assignment_expression "iVar1 = (param_5 != 1) + 1" identifier = (binary_expression "(param_5 != 1) + 1" (parenthesized_expression "(param_5 != 1)" ( (binary_expression "param_5 != 1" identifier != number_literal) )) + number_literal)) ;) })) (expression_statement "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);" (assignment_expression "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier = (call_expression "fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier (argument_list "(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (call_expression "CONCAT44(param_4,param_3)" identifier (argument_list "(param_4,param_3)" ( identifier , identifier ))) , identifier )))) ;) (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 + 0x20));" (assignment_expression "_Var2 = ftello64(*(FILE **)(param_2 + 0x20))" identifier = (call_expression "ftello64(*(FILE **)(param_2 + 0x20))" identifier (argument_list "(*(FILE **)(param_2 + 0x20))" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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<wchar_t, std::char_traits<wchar_t> >::seekoff(long long, std::_Ios_Seekdir,\n   std::_Ios_Openmode) */\n\n__off64_t *\nstdio_sync_filebuf<wchar_t,std::char_traits<wchar_t>>::seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}\n\n" comment comment (ERROR "__off64_t *\nstdio_sync_filebuf<wchar_t," (binary_expression "__off64_t *\nstdio_sync_filebuf<wchar_t" (binary_expression "__off64_t *\nstdio_sync_filebuf" identifier * identifier) < identifier) ,) (labeled_statement "std::char_traits<wchar_t>>::seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;" statement_identifier : (ERROR ":char_traits<wchar_t>>::seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{" : (binary_expression "char_traits<wchar_t>>::seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier < (binary_expression "wchar_t>>::seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier >> (ERROR "::" : :) (call_expression "seekoff\n          (__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (argument_list "(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (binary_expression "__off64_t *param_1" identifier * identifier) , (ERROR "int" identifier) identifier , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) , (ERROR "int" identifier) identifier ))))) {) (declaration "int iVar1;" primitive_type identifier ;)) (declaration "__off64_t _Var2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (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) ;) (if_statement "if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (param_5 != 1) + 1;\n  }" { (expression_statement "iVar1 = (param_5 != 1) + 1;" (assignment_expression "iVar1 = (param_5 != 1) + 1" identifier = (binary_expression "(param_5 != 1) + 1" (parenthesized_expression "(param_5 != 1)" ( (binary_expression "param_5 != 1" identifier != number_literal) )) + number_literal)) ;) })) (expression_statement "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);" (assignment_expression "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier = (call_expression "fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier (argument_list "(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (call_expression "CONCAT44(param_4,param_3)" identifier (argument_list "(param_4,param_3)" ( identifier , identifier ))) , identifier )))) ;) (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 + 0x20));" (assignment_expression "_Var2 = ftello64(*(FILE **)(param_2 + 0x20))" identifier = (call_expression "ftello64(*(FILE **)(param_2 + 0x20))" identifier (argument_list "(*(FILE **)(param_2 + 0x20))" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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 ;) (ERROR "}" }))
(translation_unit "__off64_t *\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}\n\n" (function_definition "__off64_t *\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" * (function_declarator "FUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "__off64_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__off64_t _Var2;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (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) ;) (if_statement "if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (param_5 != 1) + 1;\n  }" { (expression_statement "iVar1 = (param_5 != 1) + 1;" (assignment_expression "iVar1 = (param_5 != 1) + 1" identifier = (binary_expression "(param_5 != 1) + 1" (parenthesized_expression "(param_5 != 1)" ( (binary_expression "param_5 != 1" identifier != number_literal) )) + number_literal)) ;) })) (expression_statement "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);" (assignment_expression "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier = (call_expression "fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" identifier (argument_list "(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (call_expression "CONCAT44(param_4,param_3)" identifier (argument_list "(param_4,param_3)" ( identifier , identifier ))) , identifier )))) ;) (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 + 0x20));" (assignment_expression "_Var2 = ftello64(*(FILE **)(param_2 + 0x20))" identifier = (call_expression "ftello64(*(FILE **)(param_2 + 0x20))" identifier (argument_list "(*(FILE **)(param_2 + 0x20))" ( (pointer_expression "*(FILE **)(param_2 + 0x20)" * (cast_expression "(FILE **)(param_2 + 0x20)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (call_expression IDENT (argument_list ( IDENT , IDENT ))) , IDENT )))) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "__off64_t *\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\n  *param_1 = _Var2;\n  return param_1;\n}" (type_identifier "__off64_t") (pointer_declarator "*\nFUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" (* "*") (function_declarator "FUN_001e1eb0(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" (identifier "FUN_001e1eb0") (parameter_list "(__off64_t *param_1,int param_2,undefined4 param_3,undefined4 param_4,int param_5)" (( "(") (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") (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 "int param_5" (primitive_type "int") (identifier "param_5")) () ")")))) (compound_statement "{\n  int iVar1;\n  __off64_t _Var2;\n  \n  iVar1 = 0;\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  if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }\n  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);\n  if (iVar1 != 0) {\n    return param_1;\n  }\n  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));\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") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (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")) (; ";")) (if_statement "if (param_5 != 0) {\n    iVar1 = (param_5 != 1) + 1;\n  }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (param_5 != 1) + 1;\n  }" ({ "{") (expression_statement "iVar1 = (param_5 != 1) + 1;" (assignment_expression "iVar1 = (param_5 != 1) + 1" (identifier "iVar1") (= "=") (binary_expression "(param_5 != 1) + 1" (parenthesized_expression "(param_5 != 1)" (( "(") (binary_expression "param_5 != 1" (identifier "param_5") (!= "!=") (number_literal "1")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);" (assignment_expression "iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" (identifier "iVar1") (= "=") (call_expression "fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" (identifier "fseeko64") (argument_list "(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1)" (( "(") (pointer_expression "*(FILE **)(param_2 + 0x20)" (* "*") (cast_expression "(FILE **)(param_2 + 0x20)" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (call_expression "CONCAT44(param_4,param_3)" (identifier "CONCAT44") (argument_list "(param_4,param_3)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") () ")"))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (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 + 0x20));" (assignment_expression "_Var2 = ftello64(*(FILE **)(param_2 + 0x20))" (identifier "_Var2") (= "=") (call_expression "ftello64(*(FILE **)(param_2 + 0x20))" (identifier "ftello64") (argument_list "(*(FILE **)(param_2 + 0x20))" (( "(") (pointer_expression "*(FILE **)(param_2 + 0x20)" (* "*") (cast_expression "(FILE **)(param_2 + 0x20)" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) () ")")))) (; ";")) (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<wchar_t, std::char_traits<wchar_t> >::seekoff(long long, std::_Ios_Seekdir,
   std::_Ios_Openmode) */

type_1 *
stdio_sync_filebuf<wchar_t,std::char_traits<wchar_t>>::seekoff
          (type_1 *var_1,int var_4,type_2 param_3,type_2 param_4,int var_2)

{
  int var_6;
  type_1 _Var2;
  
  var_6 = 0;
  *(type_2 *)var_1 = 0xffffffff;
  *(type_2 *)((int)var_1 + 4) = 0xffffffff;
  *(type_2 *)(var_1 + 1) = 0;
  *(type_2 *)((int)var_1 + 0xc) = 0;
  if (var_2 != 0) {
    var_6 = (var_2 != 1) + 1;
  }
  var_6 = var_3(*(type_3 **)(var_4 + 0x20),var_5(param_4,param_3),var_6);
  if (var_6 != 0) {
    return var_1;
  }
  _Var2 = var_7(*(type_3 **)(var_4 + 0x20));
  *var_1 = _Var2;
  return var_1;
}


(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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (identifier) right: (number_literal))))) (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) (identifier))))) (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 (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: (identifier) right: (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,int param_5)

{
  int iVar1;
  __off64_t _Var2;
  
  iVar1 = 0;
  *(undefined4 *)param_1 = 0xffffffff;
  *(undefined4 *)((int)param_1 + 4) = 0xffffffff;
  *(undefined4 *)(param_1 + 1) = 0;
  *(undefined4 *)((int)param_1 + 0xc) = 0;
  if (param_5 != 0) {
    iVar1 = (param_5 != 1) + 1;
  }
  iVar1 = fseeko64(*(FILE **)(param_2 + 0x20),CONCAT44(param_4,param_3),iVar1);
  if (iVar1 != 0) {
    return param_1;
  }
  _Var2 = ftello64(*(FILE **)(param_2 + 0x20));
  *param_1 = _Var2;
  return param_1;
}

