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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4676f8
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x178], 0
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
push 0
lea ecx, [ebp - 0x134]
push ecx
call fcn.0043a770
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x174]
call fcn.00401000
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 4
je 0x4653f5
cmp dword [ebp - 0x17c], 5
je 0x46547b
cmp dword [ebp - 0x17c], 6
je 0x465531
jmp 0x4655c6
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x180], ecx
cmp dword [ebp - 0x180], 0
je 0x46541e
cmp dword [ebp - 0x180], 0xa
je 0x465454
cmp dword [ebp - 0x180], 0x5a
je 0x465466
jmp 0x465476
cmp dword [ebp - 0x124], 2
jne 0x465439
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x465452
cmp dword [ebp - 0x124], 1
jne 0x465452
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x465476
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x465476
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655d6
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x184], edx
cmp dword [ebp - 0x184], 0
je 0x4654a7
cmp dword [ebp - 0x184], 1
je 0x4654b9
cmp dword [ebp - 0x184], 2
je 0x4654cb
jmp 0x46552c
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x46552c
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x46552c
movzx eax, byte [ebp - 0x1a]
cmp eax, 1
jne 0x4654f2
movzx ecx, word [ebp - 0x158]
cmp ecx, 9
jne 0x4654f2
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x46552c
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x465510
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x46552c
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x46552c
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655d6
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x188], edx
cmp dword [ebp - 0x188], 0
je 0x46555a
cmp dword [ebp - 0x188], 1
je 0x465587
cmp dword [ebp - 0x188], 2
je 0x4655b4
jmp 0x4655c4
movzx eax, byte [ebp - 0x1a]
cmp eax, 1
jne 0x465575
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x465585
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655c4
movzx ecx, byte [ebp - 0x1a]
cmp ecx, 1
jne 0x4655a2
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655b2
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655c4
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x174]
call fcn.004010f0
jmp 0x4655d6
push 0x478414
lea ecx, [ebp - 0x174]
call fcn.004010f0
lea edx, [ebp - 0x174]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401070
mov eax, dword [ebp - 0x178]
or eax, 1
mov dword [ebp - 0x178], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.004010b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439a7d
mov esp, ebp
pop ebp
ret