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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421662
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x42e008]
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 0x42b98f
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], 0
call fcn.00402fa0
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 0x405eb5
mov eax, dword [ebp - 0x170]
sub eax, 4
je 0x40602c
dec eax
je 0x405e58
dec eax
je 0x405d8a
push 0x42bc8c
mov ecx, esi
call fcn.004030b0
jmp 0x405eb5
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405dc2
dec eax
jne 0x405eb5
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405db3
push str.Microsoft_Windows_7
call fcn.004030b0
jmp 0x405eb5
push str.Microsoft_Windows_Server_2008_R2
call fcn.004030b0
jmp 0x405eb5
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405e02
push str.Microsoft_Windows_Vista
call fcn.004030b0
mov eax, 0x200
cmp word [ebp - 0x5c], ax
jne 0x405eb5
push str.Home
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Home
call fcn.00406760
jmp 0x405eb5
push str.Microsoft_Windows_Server_2008
call fcn.004030b0
mov ax, word [ebp - 0x5c]
mov ecx, 0x80
cmp ax, cx
jne 0x405e36
push str.Datacenter_Server
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Datacenter_Server
call fcn.00406760
jmp 0x405eb5
cmp ax, 2
jne 0x405eb5
push str.Enterprise
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Enterprise
call fcn.00406760
jmp 0x405eb5
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405ff6
dec eax
je 0x405f79
dec eax
jne 0x405eb5
cmp byte [ebp - 0x5a], 1
jne 0x405e8a
cmp word [ebp - 0x34], 9
jne 0x405e8a
push str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.004030b0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x405eea
mov eax, 0x400
cmp word [ebp - 0x5c], ax
jne 0x405eea
push str.Microsoft_Windows_Server_2003_Web_Edition
mov ecx, esi
call fcn.004030b0
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
test eax, eax
je 0x4060a2
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 0x40609c
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x4060a2
push 0x59
call edi
test eax, eax
jne 0x405f04
mov eax, 0x4000
cmp word [ebp - 0x5c], ax
jne 0x405f04
push str.Microsoft_Windows_Server_2003_Compute_Cluster_Edition
jmp 0x405ea8
push 0x59
call edi
mov ecx, 0x2000
test eax, eax
jne 0x405f1e
cmp word [ebp - 0x5c], cx
jne 0x405f1e
push str.Microsoft_Windows_Server_2003_Storage_Server
jmp 0x405ea8
push 0x59
call edi
test eax, eax
jne 0x405f3b
mov eax, 0x80
cmp word [ebp - 0x5c], ax
jne 0x405f3b
push str.Microsoft_Windows_Server_2003_Datacenter_Edition
jmp 0x405ea8
push 0x59
call edi
test eax, eax
jne 0x405f54
cmp word [ebp - 0x5c], 2
jne 0x405f54
push str.Microsoft_Windows_Server_2003_Enterprise_Edition
jmp 0x405ea8
push 0x59
call edi
test eax, eax
je 0x405eaf
mov eax, 0x2000
cmp word [ebp - 0x5c], ax
jne 0x405eaf
push str.Microsoft_Windows_Server_2003_R2_Storage_Server
jmp 0x405ea8
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.004030b0
mov ax, word [ebp - 0x5c]
cmp ax, 0x40
jne 0x405fae
push str.Embedded
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Embedded
call fcn.00406760
jmp 0x405eb5
mov ecx, 0x200
cmp ax, cx
jne 0x405fd7
push str.Home_Edition
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Home_Edition
call fcn.00406760
jmp 0x405eb5
push str.Professional
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Professional
call fcn.00406760
jmp 0x405eb5
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.004030b0
cmp word [ebp - 0x5c], 2
jne 0x405eb5
push str.Advanced_Server
call fcn.00402a00
add esp, 4
mov ecx, esi
push eax
push str.Advanced_Server
call fcn.00406760
jmp 0x405eb5
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x406066
cmp eax, 0xa
je 0x406055
cmp eax, 0x5a
jne 0x405eb5
push str.Microsoft_Windows_Me
mov ecx, esi
call fcn.004030b0
jmp 0x405eb5
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.004030b0
jmp 0x405eb5
mov eax, dword [ebp - 0x164]
cmp eax, 2
jne 0x406082
push str.Microsoft_Windows_NT_4.0
mov ecx, esi
call fcn.004030b0
jmp 0x405eb5
cmp eax, 1
jne 0x405eb5
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.004030b0
jmp 0x405eb5
lea eax, [ebp - 0x58]
push eax
call edi
mov ax, word [ebp - 0x58]
cmp ax, 9
je 0x4060c7
cmp ax, 6
je 0x4060c7
push str.32bit
call fcn.00402a00
add esp, 4
push eax
push str.32bit
jmp 0x4060da
push str.64bit
call fcn.00402a00
add esp, 4
push eax
push str.64bit
mov ecx, esi
call fcn.00406760
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.00409240
mov esp, ebp
pop ebp
ret