PopNotifyConsoleUserPresent

VOID __stdcall PopNotifyConsoleUserPresent(
        UINT8 Virtual,
        UINT8 UpdateLastInput,
        POWER_MONITOR_REQUEST_REASON MonitorOnReason){
  unsigned int ActiveConsoleId; 
  int v6; 
  char v7; 
  __int16 v8; 
  char v9; 
  int v10; 
  int v11; 
  __int64 *v12; 
  int v13; 
  int v14; 
  __int64 v15; 
  UINT64 v16; 
  __int64 v17; 

  LOBYTE(v16) = UpdateLastInput;
  v8 = 0;
  v9 = 0;
  v11 = 0;
  v14 = 0;
  v17 = 0i64;
  if( PsWin32CalloutsEstablished )
  {
    ActiveConsoleId = RtlGetActiveConsoleId();
    LODWORD(v16) = ActiveConsoleId;
    if( ActiveConsoleId != -1 )
    {
      if( TtmpEnabled == 1 )
      {
        TtmNotifyConsoleUserPresent(ActiveConsoleId, MonitorOnReason);
      }
      else
      {
        LOWORD(v17) = Virtual;
        v12 = &v17;
        HIDWORD(v17) = MonitorOnReason;
        v6 = 1;
        v7 = 0;
        v10 = 8;
        v13 = 0;
        v15 = 0i64;
        PopInvokeWin32Callout(5i64, &v6, 1i64, &v16);
      }
    }
  }
}

Referenced by:

NtSetThreadExecutionState
PopDispatchFullWake
PopReleaseAdaptiveLock
PopSetSystemAwayMode
PopUserPresentSetWorker