PopInitializePreSleepNotifications

NTSTATUS __stdcall PopInitializePreSleepNotifications(){
  unsigned int v0; 
  NTSTATUS result; 

  v0 = PopPreSleepNotificationSeconds;
  if( (unsigned int)PopPreSleepNotificationSeconds < 0x78 )
  {
    v0 = 120;
    PopPreSleepNotificationSeconds = 120;
  }
  if( v0 > 0xE10 )
  {
    v0 = 3600;
    PopPreSleepNotificationSeconds = 3600;
  }
  dword_140C2028C = v0;
  result = _InterlockedExchange(&dword_140C20280, 0);
  qword_140C20278 = 0i64;
  *(_QWORD *)PopPreSleepNotifyWorkItem.WorkItem = 0i64;
  *(_QWORD *)&PopPreSleepNotifyWorkItem.ItemsQueuedCount = PopPreSleepNotifyWorker;
  return result;
}

Referenced by:

PoInitSystem