VslpUnlockPagesForTransfer

VOID __fastcall VslpUnlockPagesForTransfer(INT64 **a1){
  INT64 *v2; 
  INT64 *v3; 
  if( (*((_BYTE *)a1 + 18) & 2) != 0 )
    MmUnlockPages((_MDL *)(a1 + 1));
  if( ((_DWORD)a1[8] & 8) != 0 )
  {
    v2 = *a1;
    while( v2 )
    {
      if( (*((_BYTE *)v2 + 10) & 2) != 0 )
        MmUnlockPages((_MDL *)v2);
      v3 = v2;
      v2 = (INT64 *)*v2;
      ExFreePoolWithTag(v3, 0);
    }
  }
}

Referenced by:

VslCapturePgoData
VslCaptureSecureImageIat
VslConnectSwInterrupt
VslCreateEnclave
VslCreateSecureImageSection
VslCreateSecureSection
VslDebugReadWriteSecureProcess
VslFillSecureAllocation
VslFinishStartSecureProcessor
VslFreePoolTransferObject
VslGetEtwDebugId
VslGetOnDemandDebugChallenge
VslInitializeEnclave
VslInitializeSecureProcess
VslIumEfiRuntimeService
VslLoadEnclaveData
VslLoadEnclaveModule
VslObtainHotPatchUndoTable
VslPrepareSecureImageRelocations
VslQuerySecureKernelProfileInformation
VslRegisterLogPages
VslRetrieveMailbox
VslStartSecureProcessor
VslTransferSecureImageVersionResource
VslValidateSecureImagePages
VslpSkMapBuffers
VslpSkStopProfiling