KeSetQuantumProcess

void __fastcall KeSetQuantumProcess(__int64 a1, char a2){
  unsigned __int8 CurrentIrql; 
  INT64 *v5; 
  _QWORD **v6; 
  _QWORD *i; 
  if( *(_BYTE *)(a1 + 641) != a2 )
  {
    CurrentIrql = KeGetCurrentIrql();
    __writecr8(2ui64);
    v5 = (INT64 *)(a1 + 64);
    ExAcquireSpinLockExclusiveAtDpcLevel((INT64 *)(a1 + 64));
    *(_BYTE *)(a1 + 641) = a2;
    v6 = (_QWORD **)(a1 + 48);
    for( i = *v6; i != v6; i = (_QWORD *)*i )
      *((_BYTE *)i - 109) = a2;
    ExReleaseSpinLockExclusiveFromDpcLevel(v5);
    __writecr8(CurrentIrql);
  }
}

Referenced by:

KeSetPriorityAndQuantumProcess
PsChangeQuantumTable
PspApplyJobLimitsToProcess