EtwpCheckSecurityLoggerAccess

NTSTATUS __stdcall EtwpCheckSecurityLoggerAccess(INT64 a1){
  unsigned __int64 v1; 
  NTSTATUS v2; 
  __int64 v3; 

  v2 = 0;
  LOBYTE(v1) = *(_BYTE *)(a1 + 2170) - 49;
  if( (unsigned __int8)v1 > 0x31u )
    return -1073741790;
  v3 = 0x3000100000001i64;
  if( !_bittest64(&v3, v1) )
    return -1073741790;
  return v2;
}

Referenced by:

EtwpCheckNotificationAccess