ExpWorkQueueManagerStart

INT64 __fastcall ExpWorkQueueManagerStart(INT64 a1, INT64 a2, INT64 a3, INT64 a4){
  NTSTATUS SystemThread; 
  int v7; 
  __int64 v8; 
  v8 = 0i64;
  if( _InterlockedCompareExchange64((volatile signed __int64 *)(a1 + 264), 1i64, 0i64) )
  {
    return 0;
  }
  else
  {
    SystemThread = ExpPartitionCreateSystemThread(
                     *(_QWORD *)a1,
                     *(_QWORD *)(a1 + 8),
                     a3,
                     a4,
                     v7,
                     (__int64)ExpWorkQueueManagerThread,
                     a1,
                     0i64,
                     (__int64)&v8);
    if( SystemThread < 0 )
      _InterlockedExchange64((volatile __int64 *)(a1 + 264), 0i64);
    else
      _InterlockedExchange64((volatile __int64 *)(a1 + 264), v8);
  }
  return(unsigned int)SystemThread;
}

Referenced by:

ExpNodeHotAddProcessorWorker
ExpPartitionStart