HalpCheckPowerButton

VOID __stdcall HalpCheckPowerButton(){
  __int16 v0; 
  char v1; 
  __int16 v2; 
  v0 = 0;
  v2 = 0;
  if( (_DWORD)KiBugCheckData || (InbvCheckDisplayOwnership(), v1) )
  {
    if( HalpShutdownContext )
    {
      if( PmRegisters[0] )
      {
        HalpAcpiPmRegisterRead(0, 0, (__int64)&v2, 2u, 0i64);
        v0 = v2;
        if( byte_140C48E50 )
        {
          HalpAcpiPmRegisterRead(3, 0, (__int64)&v2, 2u, 0i64);
          v0 |= v2;
        }
      }
      if( (v0 & 0x8100) == 256 )
        HalpShutdown();
    }
  }
}

Referenced by:

No references.