SmMapPage

VOID *__stdcall SmMapPage(VOID *Payload, UINT64 *ByteCount){
  VOID *result; 
  UINT64 v5; 
  UINT64 Priority; 

  if( (*((_BYTE *)Payload + 10) & 5) != 0 )
  {
    result = (VOID *)*((_QWORD *)Payload + 3);
  }
  else
  {
    LODWORD(Priority) = 1073741840;
    LODWORD(v5) = 0;
    result = MmMapLockedPagesSpecifyCache((_MDL *)Payload, 0, MmCached, 0i64, v5, Priority);
  }
  if( result )
    *(_DWORD *)ByteCount = *((_DWORD *)Payload + 10);
  return result;
}

Referenced by:

ST_STORE::StDmPageAdd
ST_STORE::StDmSinglePageTransfer
ST_STORE::StGetStats