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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421732
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 0x42b92f
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], 0
call fcn.00403090
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 0x405f85
mov eax, dword [ebp - 0x170]
sub eax, 4
je 0x4060fc
dec eax
je 0x405f28
dec eax
je 0x405e5a
push 0x42bc2c
mov ecx, esi
call fcn.004031a0
jmp 0x405f85
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405e92
dec eax
jne 0x405f85
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405e83
push str.Microsoft_Windows_7
call fcn.004031a0
jmp 0x405f85
push str.Microsoft_Windows_Server_2008_R2
call fcn.004031a0
jmp 0x405f85
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405ed2
push str.Microsoft_Windows_Vista
call fcn.004031a0
mov eax, 0x200
cmp word [ebp - 0x5c], ax
jne 0x405f85
push str.Home
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Home
call fcn.00406830
jmp 0x405f85
push str.Microsoft_Windows_Server_2008
call fcn.004031a0
mov ax, word [ebp - 0x5c]
mov ecx, 0x80
cmp ax, cx
jne 0x405f06
push str.Datacenter_Server
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Datacenter_Server
call fcn.00406830
jmp 0x405f85
cmp ax, 2
jne 0x405f85
push str.Enterprise
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Enterprise
call fcn.00406830
jmp 0x405f85
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x4060c6
dec eax
je 0x406049
dec eax
jne 0x405f85
cmp byte [ebp - 0x5a], 1
jne 0x405f5a
cmp word [ebp - 0x34], 9
jne 0x405f5a
push str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.004031a0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x405fba
mov eax, 0x400
cmp word [ebp - 0x5c], ax
jne 0x405fba
push str.Microsoft_Windows_Server_2003_Web_Edition
mov ecx, esi
call fcn.004031a0
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
test eax, eax
je 0x406172
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 0x40616c
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x406172
push 0x59
call edi
test eax, eax
jne 0x405fd4
mov eax, 0x4000
cmp word [ebp - 0x5c], ax
jne 0x405fd4
push str.Microsoft_Windows_Server_2003_Compute_Cluster_Edition
jmp 0x405f78
push 0x59
call edi
mov ecx, 0x2000
test eax, eax
jne 0x405fee
cmp word [ebp - 0x5c], cx
jne 0x405fee
push str.Microsoft_Windows_Server_2003_Storage_Server
jmp 0x405f78
push 0x59
call edi
test eax, eax
jne 0x40600b
mov eax, 0x80
cmp word [ebp - 0x5c], ax
jne 0x40600b
push str.Microsoft_Windows_Server_2003_Datacenter_Edition
jmp 0x405f78
push 0x59
call edi
test eax, eax
jne 0x406024
cmp word [ebp - 0x5c], 2
jne 0x406024
push str.Microsoft_Windows_Server_2003_Enterprise_Edition
jmp 0x405f78
push 0x59
call edi
test eax, eax
je 0x405f7f
mov eax, 0x2000
cmp word [ebp - 0x5c], ax
jne 0x405f7f
push str.Microsoft_Windows_Server_2003_R2_Storage_Server
jmp 0x405f78
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.004031a0
mov ax, word [ebp - 0x5c]
cmp ax, 0x40
jne 0x40607e
push str.Embedded
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Embedded
call fcn.00406830
jmp 0x405f85
mov ecx, 0x200
cmp ax, cx
jne 0x4060a7
push str.Home_Edition
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Home_Edition
call fcn.00406830
jmp 0x405f85
push str.Professional
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Professional
call fcn.00406830
jmp 0x405f85
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.004031a0
cmp word [ebp - 0x5c], 2
jne 0x405f85
push str.Advanced_Server
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
push str.Advanced_Server
call fcn.00406830
jmp 0x405f85
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x406136
cmp eax, 0xa
je 0x406125
cmp eax, 0x5a
jne 0x405f85
push str.Microsoft_Windows_Me
mov ecx, esi
call fcn.004031a0
jmp 0x405f85
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.004031a0
jmp 0x405f85
mov eax, dword [ebp - 0x164]
cmp eax, 2
jne 0x406152
push str.Microsoft_Windows_NT_4.0
mov ecx, esi
call fcn.004031a0
jmp 0x405f85
cmp eax, 1
jne 0x405f85
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.004031a0
jmp 0x405f85
lea eax, [ebp - 0x58]
push eax
call edi
mov ax, word [ebp - 0x58]
cmp ax, 9
je 0x406197
cmp ax, 6
je 0x406197
push str.32bit
call fcn.00402af0
add esp, 4
push eax
push str.32bit
jmp 0x4061aa
push str.64bit
call fcn.00402af0
add esp, 4
push eax
push str.64bit
mov ecx, esi
call fcn.00406830
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.00409310
mov esp, ebp
pop ebp
ret