PspComputeQuantumAndPriority
__int64 __fastcall PspComputeQuantumAndPriority(__int64 a1, int a2, char *a3, _DWORD *a4, _DWORD *a5){
char v7;
v7 = a2 != 1 ? 0 : 2;
if( a4 )
*a4 = *(_BYTE *)(a1 + 1850) == 2 && !a2;
if( a5 )
{
if( !*(_BYTE *)(a1 + 1850) && a2 == 1 )
{
*a5 = 1;
goto LABEL_9;
}
*a5 = 0;
}
if( a2 != 2 )
{
LABEL_9:
LOBYTE(a2) = a2 != 1 ? 0 : 2;
MmSetMemoryPriorityProcess((_EPROCESS *)a1, a2);
}
*a3 = PspComputeQuantum(a1, v7);
return *((unsigned int *)PspPriorityTable + *(unsigned __int8 *)(a1 + 1463));
}Referenced by:
PspAllocateProcess
PspSetProcessPriorityByClass