PsLocateSystemDlls

INT64 __fastcall PsLocateSystemDlls(){
  INT64 **v0; 
  int v1; 
  int i; 
  NTSTATUS SystemDll; 
  if( !ExVerifySuite(EmbeddedNT) || (PsEmbeddedNTMask & 1) == 0 )
  {
    v0 = &PspSystemDlls;
    v1 = VslGetNestedPageProtectionFlags() & 4;
    for( i = 0; i < 6; ++i )
    {
      if( *v0 )
      {
        SystemDll = PspLocateSystemDll(*v0, v1 & (unsigned int)-(((*v0)[2] & 0x10) != 0));
        if( SystemDll < 0 && ((*v0)[2] & 1) != 0 )
          KeBugCheckEx(0x6Bu, SystemDll, 2ui64, i, 0i64);
      }
      ++v0;
    }
  }
  return 0i64;
}

Referenced by:

IoInitSystemPreDrivers