KiGetDueTimeWithThreadTimerDelay

INT64 __fastcall KiGetDueTimeWithThreadTimerDelay(INT64 a1, INT64 a2, INT64 a3, BYTE *a4){
  __int64 v4; 
  if( a4 )
    *a4 = 0;
  if( (_DWORD)a2 == 2 )
  {
    v4 = *(unsigned int *)(a1 + 952);
    if( *(_BYTE *)(a1 + 391) )
    {
      if( !*(_DWORD *)(a1 + 484) && !*(_BYTE *)(a1 + 390) && !*(_BYTE *)(a1 + 192) )
      {
        if( a4 )
          *a4 = 1;
        if( (_DWORD)v4 )
          a3 += v4;
      }
    }
  }
  return a3;
}

Referenced by:

KeRemovePriQueue