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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5285f2
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
mov dword [ebp - 0x13c], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 0x18
mov eax, str.unknown_OperatingSystem.
mov dword [ebp - 0x140], esi
call fcn.00403af0
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], edi
push ecx
mov dword [ebp - 0x13c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea edx, [ebp - 0x12c]
push edi
push edx
call fcn.004f50f0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x459b36
mov eax, dword [ebp - 0x128]
sub eax, 4
je 0x459c6a
dec eax
je 0x459c0d
dec eax
jne case.default.0x459b36
mov eax, dword [ebp - 0x124]
cmp eax, 3
ja case.default.0x459b36
jmp dword [eax*4 + 0x459ccc]
cmp byte [ebp - 0x12], 1
push esi
jne 0x459b4e
mov eax, str.Microsoft_Windows_Vista
jmp 0x459ca9
mov eax, str.Microsoft_Windows_Server_2008
jmp 0x459ca9
cmp byte [ebp - 0x12], 1
push esi
jne 0x459b69
mov eax, str.Microsoft_Windows_7
jmp 0x459ca9
mov eax, str.Microsoft_Windows_Server_2008_R2
jmp 0x459ca9
push str.ntdll.dll
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x459bc4
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x459bbd
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x130]
push ecx
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x130], 0xa
jne 0x459bd7
mov eax, str.Microsoft_Windows_10
jmp 0x459ca8
cmp byte [ebp - 0x12], 1
push esi
jne 0x459be8
mov eax, str.Microsoft_Windows_8
jmp 0x459ca9
mov eax, str.Microsoft_Windows_Server_2012
jmp 0x459ca9
cmp byte [ebp - 0x12], 1
push esi
jne 0x459c03
mov eax, str.Microsoft_Windows_8.1
jmp 0x459ca9
mov eax, str.Microsoft_Windows_Server_2012_R2
jmp 0x459ca9
mov eax, dword [ebp - 0x124]
sub eax, edi
je 0x459c63
dec eax
je 0x459c5c
dec eax
jne case.default.0x459b36
cmp byte [ebp - 0x12], 1
jne 0x459c38
cmp word [ebp - 0x164], 9
jne 0x459c38
mov eax, str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x459ca8
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x459c4d
mov eax, str.Microsoft_Windows_Server_2003
jmp 0x459ca8
push 0x59
call edi
test eax, eax
je case.default.0x459b36
mov eax, str.Microsoft_Windows_Server_2003_R2
jmp 0x459ca8
mov eax, str.Microsoft_Windows_XP
jmp 0x459ca8
mov eax, str.Microsoft_Windows_2000
jmp 0x459ca8
mov eax, dword [ebp - 0x124]
cmp eax, edi
je 0x459c8c
cmp eax, 0xa
je 0x459c85
cmp eax, 0x5a
jne case.default.0x459b36
mov eax, str.Microsoft_Windows_Me
jmp 0x459ca8
mov eax, str.Microsoft_Windows_98
jmp 0x459ca8
mov eax, dword [ebp - 0x11c]
cmp eax, 2
jne 0x459c9e
mov eax, str.Microsoft_Windows_NT_4.0
jmp 0x459ca8
cmp eax, 1
jne case.default.0x459b36
mov eax, str.Microsoft_Windows_95
push esi
call fcn.00403470
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret