WheaSelLogEvent

NTSTATUS __stdcall WheaSelLogEvent(PVOID Src){
  int v2; 
  SIZE_T v3; 
  char *v4; 
  int v5; 
  NTSTATUS result; 
  v2 = *((_DWORD *)Src + 6);
  if( (v2 & 0x10) != 0 )
  {
    v3 = *((unsigned int *)Src + 7);
    v4 = (char *)Src + 32;
    *((_DWORD *)Src + 4) = 1280201291;
    return WheapLogIpmiSELEvent(v4, v3);
  }
  v5 = *((_DWORD *)Src + 5);
  if( v5 != -2147483643 )
  {
    v3 = *((unsigned int *)Src + 7);
    if( v5 == -2147483606 )
    {
      v4 = (char *)Src + 32;
    }
    else
    {
      v3 = (unsigned int)(v3 + 32);
      v4 = (char *)Src;
    }
    return WheapLogIpmiSELEvent(v4, v3);
  }
  WheaSelLogErrorPkt((INT64)Src);
  return result;
}

Referenced by:

WheaLogInternalEvent