WheapHighIrqlLogSelEventHandlerAcquireLock

CHAR __fastcall WheapHighIrqlLogSelEventHandlerAcquireLock(CHAR a1){
  CHAR v1; 
  v1 = 0;
  while( _InterlockedCompareExchange((_DWORD *)&WheapHighIrqlLogSelHandler + 1, 1, 0) )
  {
    if( !a1 )
      return v1;
  }
  return 1;
}

Referenced by:

WheaHighIrqlLogSelEventHandlerRegister
WheaHighIrqlLogSelEventHandlerUnregister
WheapLogIpmiSELEventHighIrql