Function at 0x416610
Capabilities:
Check os version
Query or enumerate registry value
Reference processor manufacturer constants

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x27
sub esp, 0x1dc
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [esp + 0x34]
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], 0x9c
mov dword [esp], ebx
call esi
sub esp, 4
test eax, eax
mov ebp, eax
je 0x416760
mov esi, dword [esp + 0x44]
cmp esi, 1
je 0x416740
cmp esi, 2
je 0x4166c0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str._lu._lu._lu
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
movzx eax, word [esp + 0x40]
mov dword [esp + 4], 0x6365c8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov eax, 1
add esp, 0x1dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x38]
cmp ebx, 3
je 0x416840
cmp ebx, 4
je 0x416783
jbe 0x416d8b
cmp ebx, 5
jne 0x416790
mov eax, dword [esp + 0x3c]
cmp eax, 2
je 0x416cb7
cmp eax, 1
je 0x416d0f
test eax, eax
jne 0x416790
mov eax, dword [esp + 0x1f0]
mov edx, 0x3030
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x30322073
mov word [eax + 0x14], dx
mov byte [eax + 0x16], 0
jmp 0x416790
mov ebx, dword [esp + 0x38]
cmp ebx, 4
je 0x416890
mov ebp, dword [esp + 0x3c]
jmp 0x416663
mov dword [esp + 0x34], 0x94
mov dword [esp], ebx
call esi
sub esp, 4
test eax, eax
jne 0x416649
add esp, 0x1dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x416b90
nop
test ebp, ebp
je 0x4167f0
movzx eax, byte [esp + 0xce]
cmp al, 1
je 0x416910
cmp al, 3
mov ebp, dword [esp + 0x3c]
je 0x416ab0
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x1f0]
mov byte [edx + eax], 0x20
lea edx, [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x1f0]
lea eax, [edx + eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0x416663
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0xff
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlProductOptions
mov dword [esp + 0x10], eax
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x416960
xor eax, eax
jmp 0x4166ab
mov eax, dword [esp + 0x3c]
cmp eax, 0x33
je 0x416c60
test eax, eax
jne 0x416790
mov eax, dword [esp + 0x1f0]
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x544e2073
mov byte [eax + 0x14], 0
jmp 0x416790
mov ebp, dword [esp + 0x3c]
movzx eax, word [esp + 0x40]
test ebp, ebp
je 0x416b20
cmp ebp, 0xa
je 0x416a52
cmp ebp, 0x5a
jne 0x416663
mov eax, dword [esp + 0x1f0]
mov edx, 0x20
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x694d2073
mov dword [eax + 0x14], 0x6e656c6c
mov dword [eax + 0x18], 0x6d75696e
mov dword [eax + 0x1c], 0x69644520
mov dword [eax + 0x20], 0x6e6f6974
mov word [eax + 0x24], dx
jmp 0x416663
test byte [esp + 0xcd], 2
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
je 0x416a20
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov edi, 0x6e
mov ebp, dword [esp + 0x3c]
mov dword [eax], 0x6d6f4820
mov dword [eax + 4], 0x64452065
mov dword [eax + 8], 0x6f697469
mov word [eax + 0xc], di
jmp 0x4167b0
lea eax, [esp + 0x30]
lea ebx, [esp + 0xd1]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProductType
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x416830
cmp dword [esp + 0x30], 0xff
ja 0x416830
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [esp + 4], ebx
mov dword [esp], str.WINNT
call esi
sub esp, 8
test eax, eax
je 0x416dbc
mov dword [esp + 4], ebx
mov dword [esp], str.LANMANNT
call esi
sub esp, 8
test eax, eax
je 0x416d94
mov dword [esp + 4], ebx
mov dword [esp], str.SERVERNT
call esi
sub esp, 8
test eax, eax
je 0x416df4
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
jmp 0x4167b0
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov ecx, 0x6c
mov ebp, dword [esp + 0x3c]
mov dword [eax], 0x6f725020
mov dword [eax + 4], 0x73736566
mov dword [eax + 8], 0x616e6f69
mov word [eax + 0xc], cx
jmp 0x4167b0
mov edx, dword [esp + 0x1f0]
mov dword [edx], 0x7263694d
mov dword [edx + 4], 0x666f736f
mov dword [edx + 8], 0x69572074
mov dword [edx + 0xc], 0x776f646e
mov dword [edx + 0x10], 0x38392073
mov byte [edx + 0x14], 0
lea edx, [eax - 0x7cf]
cmp edx, 0xb7
jbe 0x416ca0
cmp eax, 0x886
jbe 0x416663
mov eax, dword [esp + 0x1f0]
mov dword [eax + 0x14], 0x455320
jmp 0x416663
cmp ebx, 5
je 0x416bf5
test byte [esp + 0xcc], 2
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
je 0x416bd0
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x76726553
mov dword [eax + 4], 0x34207265
mov dword [eax + 8], 0x202c302e
mov dword [eax + 0xc], 0x65746e45
mov dword [eax + 0x10], 0x69727072
mov dword [eax + 0x14], 0x45206573
mov dword [eax + 0x18], 0x69746964
mov dword [eax + 0x1c], 0x206e6f
jmp 0x4167b0
mov edx, dword [esp + 0x1f0]
mov dword [edx], 0x7263694d
mov dword [edx + 4], 0x666f736f
mov dword [edx + 8], 0x69572074
mov dword [edx + 0xc], 0x776f646e
mov dword [edx + 0x10], 0x35392073
mov byte [edx + 0x14], 0
lea edx, [eax - 0x3b7]
cmp edx, 0x81
jbe 0x416ca0
cmp eax, 0x438
jbe 0x416663
mov eax, dword [esp + 0x1f0]
mov ecx, 0x32
mov dword [eax + 0x14], 0x52534f20
mov word [eax + 0x18], cx
jmp 0x416663
mov eax, dword [esp + 0x1f0]
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x544e2073
mov dword [eax + 0x14], 0x302e3420
mov byte [eax + 0x18], 0
jmp 0x416790
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x76726553
mov dword [eax + 4], 0x34207265
mov dword [eax + 8], 0x20302e
jmp 0x4167b0
cmp ebp, 2
je 0x416d41
test ebp, ebp
jne 0x416ab9
movzx eax, word [esp + 0xcc]
test al, 0x80
jne 0x416e4c
test al, 2
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
je 0x416e2e
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x76644120
mov dword [eax + 4], 0x65636e61
mov dword [eax + 8], 0x65532064
mov dword [eax + 0xc], 0x72657672
mov byte [eax + 0x10], 0
jmp 0x4167b0
mov eax, dword [esp + 0x1f0]
mov edi, 0x31
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x544e2073
mov dword [eax + 0x14], 0x352e3320
mov word [eax + 0x18], di
jmp 0x416790
mov eax, dword [esp + 0x1f0]
mov dword [eax + 0x14], 0x31505320
mov byte [eax + 0x18], 0
jmp 0x416663
mov eax, dword [esp + 0x1f0]
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x65532073
mov dword [eax + 0x14], 0x72657672
mov dword [eax + 0x18], 0x73626e26
mov dword [eax + 0x1c], 0x30323b70
mov dword [eax + 0x20], 0x66203330
mov dword [eax + 0x24], 0x6c696d61
mov dword [eax + 0x28], 0x202c79
jmp 0x416790
mov eax, dword [esp + 0x1f0]
mov dword [eax], 0x7263694d
mov dword [eax + 4], 0x666f736f
mov dword [eax + 8], 0x69572074
mov dword [eax + 0xc], 0x776f646e
mov dword [eax + 0x10], 0x50582073
mov byte [eax + 0x14], 0
jmp 0x416790
movzx eax, word [esp + 0xcc]
test al, 0x80
jne 0x416ecf
test al, 2
je 0x416e8f
mov edi, dword [esp + 0x1f0]
xor eax, eax
or ecx, 0xffffffff
mov edx, dword [esp + 0x1f0]
mov esi, str._Enterprise_Edition
repne scasb al, byte es:[edi]
mov eax, ecx
mov ecx, ebx
not eax
lea edx, [edx + eax - 1]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, 2
jmp 0x4167b0
mov eax, dword [esp + 0x3c]
jmp 0x41684d
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x72655320
mov dword [eax + 4], 0x726576
jmp 0x4169f7
mov eax, dword [esp + 0x1f0]
mov edi, 0x6c
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x6f725020
mov dword [eax + 4], 0x73736566
mov dword [eax + 8], 0x616e6f69
mov word [eax + 0xc], di
jmp 0x4169df
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x76644120
mov dword [eax + 4], 0x65636e61
mov dword [eax + 8], 0x65532064
mov dword [eax + 0xc], 0x72657672
mov byte [eax + 0x10], 0
jmp 0x416a0f
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x72655320
mov dword [eax + 4], 0x726576
jmp 0x4167b0
mov eax, dword [esp + 0x1f0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov edx, 0x7265
mov dword [eax], 0x74614420
mov dword [eax + 4], 0x6e656361
mov dword [eax + 8], 0x20726574
mov dword [eax + 0xc], 0x76726553
mov word [eax + 0x10], dx
mov byte [eax + 0x12], 0
jmp 0x4167b0
cmp ax, 0x400
mov ecx, 0xffffffff
mov eax, 0
mov edi, dword [esp + 0x1f0]
je 0x416f11
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1f0]
mov esi, str._Standard_Edition
mov eax, ecx
mov ecx, 0x12
not eax
lea edx, [edx + eax - 1]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov esi, 2
jmp 0x4167b0
mov eax, dword [esp + 0x1f0]
mov esi, 2
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [esp + 0x1f0]
mov dword [eax], 0x74614420
mov dword [eax + 4], 0x6e656361
mov dword [eax + 8], 0x20726574
mov dword [eax + 0xc], 0x74696445
mov dword [eax + 0x10], 0x6e6f69
jmp 0x4167b0
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1f0]
mov esi, str._Web_Edition
mov eax, ecx
mov ecx, 0xd
not eax
lea edx, [edx + eax - 1]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov esi, 2
jmp 0x4167b0