PsNotifyCoreDriversInitialized

NTSTATUS __stdcall PsNotifyCoreDriversInitialized(){
  _ETHREAD *CurrentThread; 
  UINT64 ReturnLength; 
  __int64 SystemInformation; 
  SystemInformation = 0i64;
  LODWORD(ReturnLength) = 0;
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --*((_WORD *)CurrentThread + 242);
  ExAcquirePushLockExclusiveEx((UINT64)&PsAltSystemCallRegistrationLock, 0i64);
  if( !qword_140CFB7A0 )
  {
    LODWORD(SystemInformation) = 8;
    if( SeCodeIntegrityQueryInformation(&SystemInformation, 8ui64, &ReturnLength) < 0
      || (SystemInformation & 0xA200000000i64) == 0 )
    {
      qword_140CFB7A0 = 1i64;
    }
  }
  ExReleasePushLockEx((UINT64)&PsAltSystemCallRegistrationLock, 0i64);
  KeLeaveCriticalRegionThread((__int64)KeGetCurrentThread());
  PspPicoRegistrationDisabled = 1;
  qword_140C01640 = (__int64)off_140C00A68;
  qword_140C01648 = 8i64;
  KeInitAmd64SpecificState();
  PspPicoProviderRanges = 0i64;
  memset((INT64)&PsKernelRangeList, 0i64);
  *(_OWORD *)&PspKernelRanges = 0i64;
  return VslConnectSwInterrupt(0i64, 0i64);
}

Referenced by:

IopInitializeBootDrivers