MiEndingOffset

UINT64 __stdcall MiEndingOffset(_SUBSECTION *Subsection){
  __int64 v1; 
  unsigned __int64 v2; 
  v1 = *((unsigned int *)Subsection + 9);
  if( (*(_DWORD *)(*(_QWORD *)Subsection + 56i64) & 0x20) != 0 )
    v2 = (v1 + *((unsigned int *)Subsection + 10)) << 9;
  else
    v2 = (*((unsigned int *)Subsection + 10) + (v1 | ((unsigned __int64)(*((_WORD *)Subsection + 16) & 0xFFC0) << 26))) << 12;
  return v2 + ((unsigned __int64)*((unsigned __int16 *)Subsection + 17) >> 4);
}

Referenced by:

MiAllocateFileExtents
MiCanFileBeTruncatedInternal
MiCopyDataPageToImagePage
MiEndingOffsetWithLock
MiFlushSectionInternal
MiInitializeImageProtos