KiGetDueTimeWithThreadTimerDelay

NTSTATUS __stdcall KiGetDueTimeWithThreadTimerDelay(INT64 a1, INT64 a2, INT64 a3, _BYTE *a4){
  int v4; 

  if( a4 )
    *a4 = 0;
  if( (_DWORD)a2 == 2 )
  {
    v4 = *(_DWORD *)(a1 + 952);
    if( *(_BYTE *)(a1 + 391) )
    {
      if( !*(_DWORD *)(a1 + 484) && !*(_BYTE *)(a1 + 390) && !*(_BYTE *)(a1 + 192) )
      {
        if( a4 )
          *a4 = 1;
        if( v4 )
          LODWORD(a3) = v4 + a3;
      }
    }
  }
  return a3;
}

Referenced by:

KeRemovePriQueue