WmipSendDisableRequest

UINT64 __stdcall WmipSendDisableRequest(tagGUIDENTRY *GuidEntry, UINT8 IsEvent){
  UINT64 result; 
  UINT64 v4; 
  tagGUIDENTRY v5; 
  tagGUIDENTRY v6; 
  tagGUIDENTRY v7; 

  result = 0i64;
  if( IsEvent )
  {
    v7 = GuidEntry[22];
    v4 = 2i64;
    if( !v7 )
      return result;
    v5 = v7 - 1;
    GuidEntry[22] = v5;
  }
  else
  {
    --GuidEntry[23];
    v4 = 4i64;
    v5 = GuidEntry[23];
  }
  if( !v5 )
  {
    v6 = GuidEntry[4];
    if( (v6 & (unsigned int)v4) == 0 )
    {
      GuidEntry[4] = v4 | v6;
      return WmipDoDisableRequest(GuidEntry, IsEvent, v4);
    }
  }
  return result;
}

Referenced by:

WmipDisableCollectOrEvent