PsGetCurrentServerSiloGlobals

_ESERVERSILO_GLOBALS *__stdcall PsGetCurrentServerSiloGlobals(_KSPIN_LOCK *a1){
  int v1; 
  _ETHREAD *CurrentThread; 
  INT64 Silo; 
  _EJOB *ServerSilo; 

  LOBYTE(v1) = KeIsExecutingInArbitraryThreadContext();
  if( v1 )
    return(_ESERVERSILO_GLOBALS *)&PspHostSiloGlobals;
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  Silo = (INT64)CurrentThread->Silo;
  if( Silo == -3 )
    ServerSilo = CurrentThread->Tcb.Process->ServerSilo;
  else
    LODWORD(ServerSilo) = PsGetEffectiveServerSilo(Silo);
  if( !ServerSilo )
    return(_ESERVERSILO_GLOBALS *)&PspHostSiloGlobals;
  else
    return(_ESERVERSILO_GLOBALS *)*((_QWORD *)ServerSilo + 159);
}

Referenced by:

EtwEnableTrace
EtwQueryPerformanceTraceInformation
EtwQueryTraceHandleByLoggerName
EtwRegister
EtwRegisterEventCallback
EtwSendTraceBuffer
EtwShutdown
EtwStartAutoLogger
EtwTraceEvent
EtwTraceRaw
EtwWriteKMSecurityEvent
EtwpAdjustTraceBuffers
EtwpDeleteSessionDemuxObject
EtwpDemuxPrivateTraceHandle
EtwpEventTracingCounterSetCallback
EtwpEventWriteFull
EtwpExpandFileName
EtwpGetCompressionSettings
EtwpGetCurrentSiloState
EtwpRealtimeConnect
EtwpSetCompressionSettings
EtwpTraceMessageVa
EtwpUpdatePeriodicCaptureState
EtwpWriteUserEvent
ExFetchLicenseData
ExGetLicenseTamperState
ExInitLicenseCallback
ExInitLicenseData
ExInitializeUtcTimeZoneBias
ExLocalTimeToSystemTime
ExLogTimeZoneInformation
ExSetLicenseTamperState
ExSystemTimeToLocalTime
ExUpdateLicenseData
ExUpdateOsPfnInRegistry
ExpLogRefreshTimeZoneInformationCutoverFail
ExpLogRefreshTimeZoneInformationQueryFail
ExpLogRefreshTimeZoneInformationSuccess
ExpQuerySystemInformation
ExpRaiseHardError
ExpRefreshSystemTime
ExpSetTimeZoneInformation
ExpTimeRefreshWork
ExpWatchProductTypeWork
ExpWnfAllocateNextPersistentNameSequence
ExpWnfDeleteScopeById
ExpWnfEnumerateScopeInstances
ExpWnfGenerateStateName
ExpWnfGetNameStoreRegistryRoot
ExpWnfResolveScopeInstance
ExpWriteTimeZoneBias
ExpWriteTimeZoneBiasStartEnd
GetBootSystemTime
HalEfiGetTime
HalEfiSetTime
HalQueryRealTimeClock
HalSetRealTimeClock
HalpSetResumeTime
MiInitializeSessionGlobals
MmIsSessionLeaderProcess
MmLoadSystemImageEx
MmUnloadSystemImage
NtCreatePrivateNamespace
NtOpenPrivateNamespace
NtQueryLicenseValue
NtSetDefaultHardErrorPort
NtSetSystemInformation
NtTraceEvent
ObIsDosDeviceLocallyMapped
ObQueryDeviceMapInformation
ObSetCurrentProcessDeviceMap
ObpCreateSymbolicLinkName
ObpDeleteSymbolicLinkName
ObpGetShadowDirectory
ObpLookupObjectName
ObpReferenceDeviceMap
ObpRemoveNamespaceFromTable
PsGetCurrentServerSiloName
PsQueryCurrentApiSetSchema
RtlGetConsoleSessionForegroundProcessId
RtlGetNtSystemRoot
RtlGetSessionProperties
RtlGetSuiteMask
RtlIsMultiSessionSku
RtlSetActiveConsoleId
RtlSetConsoleSessionForegroundProcessId
RtlSetSystemGlobalData
RtlpOpenBaseImageFileOptionsKey
SepRmSetSharedUserSessionWrkr
SepSetSystemPaths
WmiGetClock
WmiQueryTraceInformation
ntoskrnl_27