// Token: 0x06000053 RID: 83 RVA: 0x000029FC File Offset: 0x00000BFC public static ulong?GetTotalMemoryCapacity() { ulong?num = new ulong?(0UL); foreach (RamStick ramStick in HardwareGatherer.GetRamSticks()) { num += ramStick.Capacity; } return((num == 0UL) ? null : num); }
// Token: 0x06000057 RID: 87 RVA: 0x00002E00 File Offset: 0x00001000 public static uint?GetTotalGpuMemoryCapacity() { uint?num = new uint?(0u); foreach (GraphicsCard graphicsCard in HardwareGatherer.GetGraphicsCards()) { num += graphicsCard.MemoryCapacity; } return((num == 0u) ? null : num); }
// Token: 0x06000059 RID: 89 RVA: 0x00002FC8 File Offset: 0x000011C8 public static string GetHwid(HwidStrength hwidStrength, bool ignoreNullValues = false) { string text = null; uint? num = null; foreach (Processor processor in HardwareGatherer.GetProcessors()) { bool flag = processor.Id == null; if (!flag) { text = processor.Id; } } foreach (HardDrive hardDrive in HardwareGatherer.GetHardDrives()) { bool flag2 = hardDrive.Signature == null; if (!flag2) { num = hardDrive.Signature; } } string serialNumber = BiosGatherer.GetSerialNumber(); string activeMacAddress = NetGatherer.GetActiveMacAddress(); string result; switch (hwidStrength) { case HwidStrength.Light: result = ((!ignoreNullValues && text == null) ? null : Crypto.GetMd5Hash(text)); break; case HwidStrength.Medium: result = ((!ignoreNullValues && (text == null || num == null)) ? null : Crypto.GetMd5Hash(text + num)); break; case HwidStrength.Strong: result = ((!ignoreNullValues && (text == null || num == null || serialNumber == null || activeMacAddress == null)) ? null : Crypto.GetMd5Hash(string.Concat(new object[] { text, num, serialNumber, activeMacAddress }))); break; default: result = null; break; } return(result); }