MiCreateZeroThreadContext
_QWORD *__fastcall MiCreateZeroThreadContext(__int64 a1, int a2){
_BYTE *Pool;
_QWORD *v5;
int v6;
Pool = MiAllocatePool(64i64, 0x130ui64, 0x20206D4Dui64);
v5 = Pool;
if( Pool )
{
if( a2 )
Pool[80] = 1;
if( a1 )
v6 = *(_DWORD *)(a1 + 80);
else
v6 = 0;
MiInitializeColorTable((_DWORD *)Pool + 62, v6);
if( MiCreateUltraThreadContext((INT64)(v5 + 11), *((unsigned int *)v5 + 65), 15i64) )
{
v5[29] = a1;
return v5;
}
ExFreePoolWithTag(v5, 0);
}
return 0i64;
}Referenced by:
MiInitSystem
MiInitializePartitionThreads
MiZeroNodePages