RtlValidProcessProtection

UINT8 __stdcall RtlValidProcessProtection(_PS_PROTECTION Protection){
  if( Protection.Level <= 0x41u )
  {
    if( Protection.Level == 65
      || !Protection.Level
      || Protection.Level == 49
      || Protection.Level == 8
      || Protection.Level == 18
      || Protection.Level == 33 )
    {
      return 1;
    }
  }
  else if( Protection.Level >= 0x51u
         && (Protection.Level <= 0x52u
          || Protection.Level > 0x60u
          && (Protection.Level <= 0x62u || Protection.Level == 114 || Protection.Level == 0x81)) )
  {
    return 1;
  }
  return 0;
}

Referenced by:

PspBuildCreateProcessContext