Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __int64 __fastcall PopDefaultProcessorPolicy(_DWORD *a1)
- {
- _DWORD *v1; // rbx@1
- signed __int64 v2; // rdx@1
- signed __int64 v3; // rcx@2
- __int64 result; // rax@2
- v1 = a1;
- memset(a1, 0, 0x4Cui64);
- *v1 = 1;
- v1[3] = 3;
- v2 = 0i64;
- do
- {
- v3 = 5 * v2;
- v1[v3 + 4] = PopIdleTimeCheck;
- v1[v3 + 6] = PopIdleDefaultPromoteTime;
- v1[v3 + 5] = PopIdleDefaultDemoteTime;
- BYTE1(v1[v3 + 7]) = PopIdleDefaultPromotePercent;
- result = PopIdleDefaultDemotePercent;
- v1[v3 + 8] |= 3u;
- LOBYTE(v1[v3 + 7]) = result;
- if ( v2 )
- {
- if ( v2 == 1 )
- {
- v1[10] = PopIdleDefaultDemoteToC1Time;
- result = PopIdleDefaultDemoteToC1Percent;
- *(v1 + 48) = PopIdleDefaultDemoteToC1Percent;
- }
- else if ( v2 == 2 )
- {
- v1[18] &= 0xFFFFFFFD;
- v1[16] = -1;
- *(v1 + 69) = 0;
- }
- }
- else
- {
- v1[6] = PopIdleDefaultPromoteFromC1Time;
- *(v1 + 29) = PopIdleDefaultPromoteFromC1Percent;
- v1[4] = PopIdle0TimeCheck;
- result = PopIdleTo0Percent;
- v1[8] &= 0xFFFFFFFE;
- *(v1 + 28) = result;
- }
- ++v2;
- }
- while ( v2 < 3 );
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement