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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b1b2
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 0x4366d0
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], 0
call fcn.00404ad0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x178], 1
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 0
movdqu xmmword [ebp - 0x24], xmm0
call edi
lea eax, [ebp - 0x174]
mov dword [ebp - 0x174], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40842b
mov eax, dword [ebp - 0x170]
sub eax, 4
je 0x408568
dec eax
je 0x4083ce
dec eax
je 0x40832a
push 0x436ba8
mov ecx, esi
call fcn.00404aa0
jmp 0x40842b
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x408362
dec eax
jne 0x40842b
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x408353
push str.Microsoft_Windows_7
call fcn.00404aa0
jmp 0x40842b
push str.Microsoft_Windows_Server_2008_R2
call fcn.00404aa0
jmp 0x40842b
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x408394
push str.Microsoft_Windows_Vista
call fcn.00404aa0
mov eax, 0x200
cmp word [ebp - 0x5c], ax
jne 0x40842b
push str.Home
mov ecx, esi
call fcn.00403bd0
jmp 0x40842b
push str.Microsoft_Windows_Server_2008
call fcn.00404aa0
mov ax, word [ebp - 0x5c]
mov ecx, 0x80
cmp ax, cx
jne 0x4083ba
push str.Datacenter_Server
mov ecx, esi
call fcn.00403bd0
jmp 0x40842b
cmp ax, 2
jne 0x40842b
push str.Enterprise
mov ecx, esi
call fcn.00403bd0
jmp 0x40842b
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x408540
dec eax
je 0x4084ef
dec eax
jne 0x40842b
cmp byte [ebp - 0x5a], 1
jne 0x408400
cmp word [ebp - 0x34], 9
jne 0x408400
push str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.00404aa0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x408460
mov eax, 0x400
cmp word [ebp - 0x5c], ax
jne 0x408460
push str.Microsoft_Windows_Server_2003_Web_Edition
mov ecx, esi
call fcn.00404aa0
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
test eax, eax
je 0x4085de
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4085d8
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x4085de
push 0x59
call edi
test eax, eax
jne 0x40847a
mov eax, 0x4000
cmp word [ebp - 0x5c], ax
jne 0x40847a
push str.Microsoft_Windows_Server_2003_Compute_Cluster_Edition
jmp 0x40841e
push 0x59
call edi
mov ecx, 0x2000
test eax, eax
jne 0x408494
cmp word [ebp - 0x5c], cx
jne 0x408494
push str.Microsoft_Windows_Server_2003_Storage_Server
jmp 0x40841e
push 0x59
call edi
test eax, eax
jne 0x4084b1
mov eax, 0x80
cmp word [ebp - 0x5c], ax
jne 0x4084b1
push str.Microsoft_Windows_Server_2003_Datacenter_Edition
jmp 0x40841e
push 0x59
call edi
test eax, eax
jne 0x4084ca
cmp word [ebp - 0x5c], 2
jne 0x4084ca
push str.Microsoft_Windows_Server_2003_Enterprise_Edition
jmp 0x40841e
push 0x59
call edi
test eax, eax
je 0x408425
mov eax, 0x2000
cmp word [ebp - 0x5c], ax
jne 0x408425
push str.Microsoft_Windows_Server_2003_R2_Storage_Server
jmp 0x40841e
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.00404aa0
mov ax, word [ebp - 0x5c]
cmp ax, 0x40
jne 0x408516
push str.Embedded
mov ecx, esi
call fcn.00403bd0
jmp 0x40842b
mov ecx, 0x200
cmp ax, cx
mov ecx, esi
jne 0x408531
push str.Home_Edition
call fcn.00403bd0
jmp 0x40842b
push str.Professional
call fcn.00403bd0
jmp 0x40842b
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.00404aa0
cmp word [ebp - 0x5c], 2
jne 0x40842b
push str.Advanced_Server
mov ecx, esi
call fcn.00403bd0
jmp 0x40842b
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x4085a2
cmp eax, 0xa
je 0x408591
cmp eax, 0x5a
jne 0x40842b
push str.Microsoft_Windows_Me
mov ecx, esi
call fcn.00404aa0
jmp 0x40842b
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.00404aa0
jmp 0x40842b
mov eax, dword [ebp - 0x164]
cmp eax, 2
jne 0x4085be
push str.Microsoft_Windows_NT_4.0
mov ecx, esi
call fcn.00404aa0
jmp 0x40842b
cmp eax, 1
jne 0x40842b
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00404aa0
jmp 0x40842b
lea eax, [ebp - 0x58]
push eax
call edi
mov cx, word [ebp - 0x58]
cmp cx, 9
je 0x4085f5
cmp cx, 6
je 0x4085f5
push str.32bit
jmp 0x4085fa
push str.64bit
mov ecx, esi
call fcn.00403bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret