Function at 0x4460f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f025
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x47c860]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x154], 0x11c
lea ecx, [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x446394
lea ecx, [ebp - 0x158]
call fcn.00402020
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x164], edx
cmp dword [ebp - 0x164], 4
je 0x44619a
cmp dword [ebp - 0x164], 5
je 0x446220
cmp dword [ebp - 0x164], 6
je 0x4462d3
jmp 0x44634d
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
je 0x4461c3
cmp dword [ebp - 0x168], 0xa
je 0x4461f9
cmp dword [ebp - 0x168], 0x5a
je 0x44620b
jmp 0x44621b
cmp dword [ebp - 0x144], 2
jne 0x4461de
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x4461f7
cmp dword [ebp - 0x144], 1
jne 0x4461f7
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44621b
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44621b
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44635d
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x16c], ecx
cmp dword [ebp - 0x16c], 0
je 0x44624c
cmp dword [ebp - 0x16c], 1
je 0x44625e
cmp dword [ebp - 0x16c], 2
je 0x446270
jmp 0x4462ce
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x4462ce
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x4462ce
movzx edx, byte [ebp - 0x3a]
cmp edx, 1
jne 0x446294
movzx eax, word [ebp - 0x30]
cmp eax, 9
jne 0x446294
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x4462ce
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4462b2
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x4462ce
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4462ce
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44635d
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x170], ecx
cmp dword [ebp - 0x170], 0
je 0x4462f3
cmp dword [ebp - 0x170], 1
je 0x446320
jmp 0x44634b
movzx edx, byte [ebp - 0x3a]
cmp edx, 1
jne 0x44630e
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44631e
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44634b
movzx eax, byte [ebp - 0x3a]
cmp eax, 1
jne 0x44633b
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44634b
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x158]
call fcn.00401ea0
jmp 0x44635d
push 0x469524
lea ecx, [ebp - 0x158]
call fcn.00401ea0
lea ecx, [ebp - 0x158]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401780
mov edx, dword [ebp - 0x15c]
or edx, 1
mov dword [ebp - 0x15c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.00401ec0
mov eax, dword [ebp + 8]
jmp 0x4463b3
push 0x469534
mov ecx, dword [ebp + 8]
call fcn.004024c0
mov eax, dword [ebp - 0x15c]
or eax, 1
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0042c98c
mov esp, ebp
pop ebp
ret 4