Advertisement
chino

Get CPU Name

Aug 18th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TCHAR szPBS[48] = { '\0' };
  2.     __asm{
  3.         mov eax, 80000002h
  4.         cpuid
  5.  
  6.         mov dword ptr[szPBS + 0], eax
  7.         mov dword ptr[szPBS + 4], ebx
  8.         mov dword ptr[szPBS + 8], ecx
  9.         mov dword ptr[szPBS + 12], edx
  10.  
  11.         mov eax, 80000003h
  12.         cpuid
  13.  
  14.         mov dword ptr[szPBS + 16], eax
  15.         mov dword ptr[szPBS + 20], ebx
  16.         mov dword ptr[szPBS + 24], ecx
  17.         mov dword ptr[szPBS + 28], edx
  18.  
  19.         mov eax, 80000004h
  20.         cpuid
  21.  
  22.         mov dword ptr[szPBS + 32], eax
  23.         mov dword ptr[szPBS + 36], ebx
  24.         mov dword ptr[szPBS + 40], ecx
  25.         mov dword ptr[szPBS + 44], edx
  26.         mov word ptr[szPBS + 48], '\0'
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement