KeSetCoalescableTimer

NTSTATUS __fastcall KeSetCoalescableTimer(INT64 a1, INT64 a2, UINT64 a3, UINT64 a4, INT64 Dpc){
  UINT8 v5; 
  unsigned int v6; 
  unsigned __int64 v7; 
  unsigned int v8; 
  NTSTATUS result; 
  unsigned __int64 v10; 
  INT64 v11; 
  int v12; 

  v5 = 0;
  v6 = a3;
  if( (_DWORD)a4 )
  {
    v7 = 10000i64 * (unsigned int)a4;
    if( v7 > 0xFC0000 )
    {
      v10 = v7 - 16515072;
      if( a2 >= 0 )
      {
        v11 = v10 + a2;
        if( (__int64)(v10 + a2) < a2 )
          v11 = 0x7FFFFFFFFFFFFFFFi64;
      }
      else
      {
        v11 = a2 - v10;
        if( (__int64)(a2 - v10) > a2 )
          v11 = 0x8000000000000000ui64;
      }
      if( v6 )
      {
        v12 = -1;
        if( v6 + (int)v10 / 10000 >= v6 )
          v12 = v6 + (int)v10 / 10000;
        v6 = v12;
      }
      LODWORD(v7) = 16515072;
      a2 = v11;
    }
    v8 = (unsigned int)v7 >> 18;
    if( v8 > 0x3F )
      LOBYTE(v8) = 63;
    v5 = 4 * v8;
  }
  KiSetTimerEx((_KTIMER *)a1, (_LARGE_INTEGER)a2, v6, v5, (_KDPC *)Dpc);
  return result;
}

Referenced by:

AnFwDisplayBackgroundUpdate
AnFwDisplayFade
AnFwDisplayProgressIndicator
AnFwProgressIndicatorTransition
CcBcbProfiler
CcInitializeBcbProfiler
CcRescheduleLazyWriteScan
CmpArmLazyWriter
CmpCompleteLazyWrite
EtwpRequestFlushTimer
ExpSetWorkerFactoryDeferredCreateTimer
ExpTimerAdjust
ExpTimerDpcRoutine
ExpTimerResume
ExpWorkQueueManagerThread
IopEnableTimer
IopErrorLogQueueRequest
KiInitializeProcessor
PiDrvDbUnloadNode
PopFxArmResidentTimer
PopFxScheduleDeviceIdleTimer
PopInitializeSystemIdleDetection
PopPepArmIdleTimer
sub_1405CA010