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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4299b2
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4385dc]
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 0x4346a2
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], 0
call fcn.00402450
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 0x405bdb
mov eax, dword [ebp - 0x170]
sub eax, 4
je 0x405d18
dec eax
je 0x405b7e
dec eax
je 0x405ada
push 0x4349a0
mov ecx, esi
call fcn.00402420
jmp 0x405bdb
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405b12
dec eax
jne 0x405bdb
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405b03
push str.Microsoft_Windows_7
call fcn.00402420
jmp 0x405bdb
push str.Microsoft_Windows_Server_2008_R2
call fcn.00402420
jmp 0x405bdb
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405b44
push str.Microsoft_Windows_Vista
call fcn.00402420
mov eax, 0x200
cmp word [ebp - 0x5c], ax
jne 0x405bdb
push str.Home
mov ecx, esi
call fcn.00401530
jmp 0x405bdb
push str.Microsoft_Windows_Server_2008
call fcn.00402420
mov ax, word [ebp - 0x5c]
mov ecx, 0x80
cmp ax, cx
jne 0x405b6a
push str.Datacenter_Server
mov ecx, esi
call fcn.00401530
jmp 0x405bdb
cmp ax, 2
jne 0x405bdb
push str.Enterprise
mov ecx, esi
call fcn.00401530
jmp 0x405bdb
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405cf0
dec eax
je 0x405c9f
dec eax
jne 0x405bdb
cmp byte [ebp - 0x5a], 1
jne 0x405bb0
cmp word [ebp - 0x34], 9
jne 0x405bb0
push str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.00402420
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x405c10
mov eax, 0x400
cmp word [ebp - 0x5c], ax
jne 0x405c10
push str.Microsoft_Windows_Server_2003_Web_Edition
mov ecx, esi
call fcn.00402420
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
test eax, eax
je 0x405d8e
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 0x405d88
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x405d8e
push 0x59
call edi
test eax, eax
jne 0x405c2a
mov eax, 0x4000
cmp word [ebp - 0x5c], ax
jne 0x405c2a
push str.Microsoft_Windows_Server_2003_Compute_Cluster_Edition
jmp 0x405bce
push 0x59
call edi
mov ecx, 0x2000
test eax, eax
jne 0x405c44
cmp word [ebp - 0x5c], cx
jne 0x405c44
push str.Microsoft_Windows_Server_2003_Storage_Server
jmp 0x405bce
push 0x59
call edi
test eax, eax
jne 0x405c61
mov eax, 0x80
cmp word [ebp - 0x5c], ax
jne 0x405c61
push str.Microsoft_Windows_Server_2003_Datacenter_Edition
jmp 0x405bce
push 0x59
call edi
test eax, eax
jne 0x405c7a
cmp word [ebp - 0x5c], 2
jne 0x405c7a
push str.Microsoft_Windows_Server_2003_Enterprise_Edition
jmp 0x405bce
push 0x59
call edi
test eax, eax
je 0x405bd5
mov eax, 0x2000
cmp word [ebp - 0x5c], ax
jne 0x405bd5
push str.Microsoft_Windows_Server_2003_R2_Storage_Server
jmp 0x405bce
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.00402420
mov ax, word [ebp - 0x5c]
cmp ax, 0x40
jne 0x405cc6
push str.Embedded
mov ecx, esi
call fcn.00401530
jmp 0x405bdb
mov ecx, 0x200
cmp ax, cx
mov ecx, esi
jne 0x405ce1
push str.Home_Edition
call fcn.00401530
jmp 0x405bdb
push str.Professional
call fcn.00401530
jmp 0x405bdb
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.00402420
cmp word [ebp - 0x5c], 2
jne 0x405bdb
push str.Advanced_Server
mov ecx, esi
call fcn.00401530
jmp 0x405bdb
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x405d52
cmp eax, 0xa
je 0x405d41
cmp eax, 0x5a
jne 0x405bdb
push str.Microsoft_Windows_Me
mov ecx, esi
call fcn.00402420
jmp 0x405bdb
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.00402420
jmp 0x405bdb
mov eax, dword [ebp - 0x164]
cmp eax, 2
jne 0x405d6e
push str.Microsoft_Windows_NT_4.0
mov ecx, esi
call fcn.00402420
jmp 0x405bdb
cmp eax, 1
jne 0x405bdb
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00402420
jmp 0x405bdb
lea eax, [ebp - 0x58]
push eax
call edi
mov cx, word [ebp - 0x58]
cmp cx, 9
je 0x405da5
cmp cx, 6
je 0x405da5
push str.32bit
jmp 0x405daa
push str.64bit
mov ecx, esi
call fcn.00401530
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.0040a9af
mov esp, ebp
pop ebp
ret