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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c22
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x42d058]
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
mov dword [ebp - 0x178], 0
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x42a937
mov dword [ebp - 0x17c], esi
mov byte [esi], 0
call fcn.004029b0
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 0x405c80
mov eax, dword [ebp - 0x170]
sub eax, 4
je 0x405dbd
dec eax
je 0x405c23
dec eax
je 0x405b7f
push 2
push 0x42ad00
mov ecx, esi
call fcn.004029b0
jmp 0x405c80
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405bb7
dec eax
jne 0x405c80
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405ba8
push str.Microsoft_Windows_7
call fcn.00403a30
jmp 0x405c80
push str.Microsoft_Windows_Server_2008_R2
call fcn.00403a30
jmp 0x405c80
cmp byte [ebp - 0x5a], 1
mov ecx, esi
jne 0x405be9
push str.Microsoft_Windows_Vista
call fcn.00403a30
mov eax, 0x200
cmp word [ebp - 0x5c], ax
jne 0x405c80
push str.Home
mov ecx, esi
call fcn.00406630
jmp 0x405c80
push str.Microsoft_Windows_Server_2008
call fcn.00403a30
mov ax, word [ebp - 0x5c]
mov ecx, 0x80
cmp ax, cx
jne 0x405c0f
push str.Datacenter_Server
mov ecx, esi
call fcn.00406630
jmp 0x405c80
cmp ax, 2
jne 0x405c80
push str.Enterprise
mov ecx, esi
call fcn.00406630
jmp 0x405c80
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x405d95
dec eax
je 0x405d44
dec eax
jne 0x405c80
cmp byte [ebp - 0x5a], 1
jne 0x405c55
cmp word [ebp - 0x34], 9
jne 0x405c55
push str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.00403a30
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x405cb5
mov eax, 0x400
cmp word [ebp - 0x5c], ax
jne 0x405cb5
push str.Microsoft_Windows_Server_2003_Web_Edition
mov ecx, esi
call fcn.00403a30
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
test eax, eax
je 0x405e33
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 0x405e2d
lea ecx, [ebp - 0x58]
push ecx
call eax
jmp 0x405e33
push 0x59
call edi
test eax, eax
jne 0x405ccf
mov eax, 0x4000
cmp word [ebp - 0x5c], ax
jne 0x405ccf
push str.Microsoft_Windows_Server_2003_Compute_Cluster_Edition
jmp 0x405c73
push 0x59
call edi
mov ecx, 0x2000
test eax, eax
jne 0x405ce9
cmp word [ebp - 0x5c], cx
jne 0x405ce9
push str.Microsoft_Windows_Server_2003_Storage_Server
jmp 0x405c73
push 0x59
call edi
test eax, eax
jne 0x405d06
mov eax, 0x80
cmp word [ebp - 0x5c], ax
jne 0x405d06
push str.Microsoft_Windows_Server_2003_Datacenter_Edition
jmp 0x405c73
push 0x59
call edi
test eax, eax
jne 0x405d1f
cmp word [ebp - 0x5c], 2
jne 0x405d1f
push str.Microsoft_Windows_Server_2003_Enterprise_Edition
jmp 0x405c73
push 0x59
call edi
test eax, eax
je 0x405c7a
mov eax, 0x2000
cmp word [ebp - 0x5c], ax
jne 0x405c7a
push str.Microsoft_Windows_Server_2003_R2_Storage_Server
jmp 0x405c73
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.00403a30
mov ax, word [ebp - 0x5c]
cmp ax, 0x40
jne 0x405d6b
push str.Embedded
mov ecx, esi
call fcn.00406630
jmp 0x405c80
mov ecx, 0x200
cmp ax, cx
mov ecx, esi
jne 0x405d86
push str.Home_Edition
call fcn.00406630
jmp 0x405c80
push str.Professional
call fcn.00406630
jmp 0x405c80
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.00403a30
cmp word [ebp - 0x5c], 2
jne 0x405c80
push str.Advanced_Server
mov ecx, esi
call fcn.00406630
jmp 0x405c80
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x405df7
cmp eax, 0xa
je 0x405de6
cmp eax, 0x5a
jne 0x405c80
push str.Microsoft_Windows_Me
mov ecx, esi
call fcn.00403a30
jmp 0x405c80
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.00403a30
jmp 0x405c80
mov eax, dword [ebp - 0x164]
cmp eax, 2
jne 0x405e13
push str.Microsoft_Windows_NT_4.0
mov ecx, esi
call fcn.00403a30
jmp 0x405c80
cmp eax, 1
jne 0x405c80
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00403a30
jmp 0x405c80
lea eax, [ebp - 0x58]
push eax
call edi
mov cx, word [ebp - 0x58]
cmp cx, 9
je 0x405e4c
cmp cx, 6
je 0x405e4c
push 5
push str.32bit
jmp 0x405e53
push 5
push str.64bit
mov ecx, esi
call fcn.00406500
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.0040d8cd
mov esp, ebp
pop ebp
ret