MmShutdownSystem
UINT8 __stdcall MmShutdownSystem(UINT64 Phase){
char *v2;
__int64 v3;
if( !(_DWORD)Phase )
return MiShutdownSystem();
if( (_DWORD)Phase == 1 )
{
if( *(&stru_140C4DB30 + 565) < 2u )
{
*(&stru_140C4DB30 + 565) = 2;
if( (*(&stru_140C23628 + 2336) & 2) != 0 )
{
MmTrimAllSystemPagableMemory(Phase);
if( *(&stru_140C50B28 + 1708) )
{
v2 = (char *)&stru_140C50B28 + 6840;
v3 = *(&stru_140C50B28 + 1708);
do
{
if( (*(_WORD *)(*(_QWORD *)v2 + 204i64) & 0x840) == 0 )
HalPutDmaAdapter(*(PADAPTER_OBJECT *)(*(_QWORD *)v2 + 56i64));
v2 += 8;
--v3;
}
while( v3 );
}
}
}
}
else if( *(&stru_140C4DB30 + 565) < 3u )
{
*(&stru_140C4DB30 + 565) = 3;
}
return 1;
}Referenced by:
PoBroadcastSystemState
PopGracefulShutdown