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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x42668c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405f52
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
sub eax, 4
je 0x405ebf
dec eax
je 0x405e32
dec eax
je 0x405db4
mov dword [esi], 0
push str.Windows_UnKnow
jmp 0x405f0d
mov eax, dword [ebp - 0x150]
mov dword [esi], 3
lea ecx, [ebp - 0x18]
sub eax, 0
je 0x405e18
dec eax
je 0x405df3
dec eax
je 0x405dde
mov dword [esi], 0
push str.Windows_unknow
jmp 0x405f10
push str.Windows_8
call fcn.00402350
mov dword [esi], 5
jmp 0x405f15
cmp byte [ebp - 0x3e], 1
jne 0x405e0e
push str.Windows_7
call fcn.00402350
mov dword [esi], 4
jmp 0x405f15
push str.Windows_Server_2008_R2
jmp 0x405f10
cmp byte [ebp - 0x3e], 1
jne 0x405e28
push str.Windows_Vista
jmp 0x405f10
push str.Windows_Server_2008
jmp 0x405f10
mov eax, dword [ebp - 0x150]
sub eax, 0
je 0x405eaa
dec eax
je 0x405ea3
dec eax
je 0x405e5b
push str.Windows_unknow
lea ecx, [ebp - 0x18]
call fcn.00402350
mov dword [esi], 0
jmp 0x405f15
cmp byte [ebp - 0x3e], 1
jne 0x405e72
cmp word [ebp - 0x3c], 9
jne 0x405e72
push str.Windows_XP_Professional_x64_Edition
jmp 0x405f0d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x405e8a
push str.Windows_Server_2003
jmp 0x405f0d
push 0x59
call esi
lea ecx, [ebp - 0x18]
test eax, eax
je 0x405e9c
push str.Windows_Server_2003_R2
jmp 0x405f10
push str.Windows_Server
jmp 0x405f10
push str.Windows_XP
jmp 0x405f0d
push str.Windows_2000
lea ecx, [ebp - 0x18]
call fcn.00402350
mov dword [esi], 2
jmp 0x405f15
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x405ef1
cmp eax, 0xa
je 0x405eea
lea ecx, [ebp - 0x18]
cmp eax, 0x5a
je 0x405ee3
mov dword [esi], 0
push str.Windows_UnKnow
jmp 0x405f10
push str.Windows_Me
jmp 0x405f10
push str.Windows_98
jmp 0x405f0d
mov eax, dword [ebp - 0x148]
cmp eax, 2
jne 0x405f03
push str.Windows_NT_4.0
jmp 0x405f0d
cmp eax, 1
jne 0x405f15
push str.Windows_95
lea ecx, [ebp - 0x18]
call fcn.00402350
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004021d0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405f30
push eax
call fcn.00408538
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405fa4
push eax
call fcn.00408538
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406a3a
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xe
mov ecx, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.00402570
push 0xe
push str.Windows_UnKnow
push eax
push dword [edi]
call fcn.00408691
mov eax, dword [edi]
add esp, 0x10
xor ecx, ecx
mov word [eax + 0x1c], cx
mov dword [edi + 4], 0xe
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406a3a
mov esp, ebp
pop ebp
ret