KiIntSteerSetDestination

NTSTATUS __stdcall KiIntSteerSetDestination(ULONG_PTR IntTrackRoot, _GROUP_AFFINITY *TargetProcessors){
  NTSTATUS v2; 
  _WORD *BugCheckParameter4; 
  __int64 v4; 
  __int64 v5; 
  int v6; 
  __int64 v7; 

  v2 = KiIntSteerVerifyDestination(*(_INTERRUPT_TRACKING_ROOT **)&IntTrackRoot, TargetProcessors);
  v5 = 0i64;
  if( v2 < 0 )
    KeBugCheckEx(0xA0u, (PVOID)0x4001, (PVOID)0x101, (PVOID)v4, BugCheckParameter4);
  v6 = *(_DWORD *)(v4 + 128);
  if( ((v6 - 1) & 0xFFFFFFFD) != 0 )
  {
    if( v6 == 2 )
    {
      v7 = *(_QWORD *)(v4 + 200);
      *(_WORD *)(v7 + 8) = BugCheckParameter4[4];
      *(_QWORD *)v7 = *(_QWORD *)BugCheckParameter4;
    }
    else
    {
      LODWORD(v5) = -1073741637;
    }
  }
  else
  {
    if( *(_DWORD *)(v4 + 32) != -1 )
      v5 = v4 + 32;
    LODWORD(v5) = ((__int64(__fastcall *)(__int64, _WORD *, __int64))off_140C00868[0])(v4 + 40, BugCheckParameter4, v5);
  }
  return v5;
}

Referenced by:

KiIntSteerConnect
KiIntSteerDistributeInterrupts