Function at 0x40f340
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
xor ecx, ecx
cpuid
mov esi, eax
lea eax, [ebp - 0x44]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], 0
mov dword [ebp - 0x5c], edi
add edi, 0x2c
mov ecx, edi
push eax
call fcn.00401bf0
test esi, esi
jg 0x40f442
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000004
mov esi, dword [ebp - 0x5c]
jl 0x40f3fd
mov edi, eax
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], 0
lea ecx, [esi + 0x44]
lea eax, [ebp - 0x44]
push eax
call fcn.00401bf0
cmp edi, 0x80000007
jl 0x40f3fd
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [esi + 0x27], dh
cmp byte [esi + 0x27], 0
je 0x40f415
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + 0x28], 0
je 0x40f403
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp edx, 0x76482074
jne 0x40f403
cmp ebx, 0x7263694d
jne 0x40f403
cmp ecx, 0x666f736f
jne 0x40f403
mov byte [esi + 0x27], 1
jmp 0x40f403
mov dword [ebp - 0x58], 0
xor eax, eax
inc eax
xor ecx, ecx
cpuid
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
cmp esi, 7
jl 0x40f46d
mov eax, 7
xor ecx, ecx
cpuid
and ebx, 0x20
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov dword [ebx], esi
mov eax, esi
and eax, 0xf
mov dword [ebx + 0x10], eax
mov eax, esi
shr eax, 0xc
and eax, 3
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x54]
mov edx, edi
push esi
call fcn.0040f230
add esp, 4
lea ecx, [ebp - 0x54]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx]
mov esi, ebx
mov dword [ebx + 0x14], eax
mov ecx, dword [ebp - 0x64]
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [ebx + 0x1c], al
mov eax, ecx
shr eax, 0x19
and al, 1
mov byte [ebx + 0x1d], al
shr ecx, 0x1a
and cl, 1
mov byte [ebx + 0x1e], cl
mov ebx, dword [ebp - 0x68]
mov eax, ebx
and al, 1
mov byte [esi + 0x1f], al
mov eax, ebx
shr eax, 9
and al, 1
mov byte [esi + 0x20], al
mov eax, ebx
shr eax, 0x13
and al, 1
mov byte [esi + 0x21], al
mov eax, ebx
shr eax, 0x14
and al, 1
mov byte [esi + 0x22], al
mov eax, ebx
shr eax, 0x17
and al, 1
mov byte [esi + 0x23], al
mov eax, ebx
shr eax, 0x1f
mov byte [esi + 0x28], al
mov eax, 0x1c000000
mov ecx, ebx
and ecx, eax
cmp ecx, eax
jne 0x40f527
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x40f529
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov byte [esi + 0x24], al
shr ebx, 0x19
and bl, 1
mov byte [esi + 0x26], bl
test al, al
setne al
test ecx, ecx
setne cl
and cl, al
mov byte [esi + 0x25], cl
jmp 0x40f382