MiLockVad

VOID __stdcall MiLockVad(_ETHREAD *Thread, _MMVAD_SHORT *Vad){
  --Thread->Tcb.SpecialApcDisable;
  ExAcquirePushLockExclusiveEx(&Vad->PushLock, 0i64);
  Thread->$84F33738BEE95ACDF5C5BF1C8FDC7C8C::_bf_0 |= 0x80u;
}

Referenced by:

MiAllocateEnclaveVad
MiAllocateFromSubAllocatedRegion
MiAllocateNewSubAllocatedRegion
MiCfgInitializeProcess
MiDeleteEmptyPageTables
MiDeleteInsertedCloneVads
MiInitializeVsmEnclave
MiLoadSectionIntoVsmEnclave
MiLockVadRange
MiMapLockedPagesInUserSpace
MiMapViewOfDataSection
MiMapViewOfImageSection
MiMapViewOfPhysicalSection
MiPerformImageHotPatch
MiReserveUserMemory
MiTerminateEnclave
MmCleanProcessAddressSpace
MmQueryVirtualMemory