VslFastFlushSecureRangeList

NTSTATUS __stdcall VslFastFlushSecureRangeList(INT64 *a1, UINT64 a2){
  unsigned int v2; 
  char v4; 
  _EPROCESS *Process; 
  INT64 *v6; 
  __int64 v7; 
  bool v8; 
  INT64 v10[14]; 

  v2 = a2;
  if( KeGetCurrentIrql() > 2u )
    return 255;
  v4 = 0;
  Process = KeGetCurrentThread()->ApcState.Process;
  memset(v10, 0i64, 0x68u);
  if( !v2 )
    return 0;
  v6 = &v10[2];
  v7 = v2;
  do
  {
    v8 = (unsigned __int64)*a1 <= 0x7FFFFFFEFFFFi64;
    *v6 = *a1++;
    if( v8 )
      v4 = 1;
    ++v6;
    --v7;
  }
  while( v7 );
  if( !v4 )
    return 0;
  v10[1] = (INT64)Process->Pcb.SecureState;
  return VslpEnterIumSecureMode(2u, 241, 0i64, (INT64)v10);
}

Referenced by:

HvlpFastFlushListTb
HvlpFastFlushListTbEx