KeDoesTebMatchThread

CHAR __stdcall KeDoesTebMatchThread(INT64 a1, INT64 a2){
  CHAR result; 

  result = 0;
  if( a2 )
  {
    if( a2 == *(_QWORD *)(a1 + 240) )
      return 1;
  }
  return result;
}

Referenced by:

PspDisassociateUmsThreadFromPrimary
PspGetSetContextInternal