Function at 0x40cc90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44611e
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x45e508]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e508]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x16c]
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0xc0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40cf92
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x164], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov byte [esp + 0x164], 1
mov eax, dword [esp + 0xcc]
cmp eax, 2
jne 0x40cf08
cmp dword [esp + 0xc0], 5
jne 0x40cf58
mov eax, dword [esp + 0xc4]
cmp eax, ebx
jne 0x40ce40
push 0xc
push str.Windows_2000
lea ecx, [esp + 0x8c]
call fcn.004072f0
mov al, byte [esp + 0x156]
cmp al, 3
jne 0x40cd8d
lea ecx, [esp + 0xa0]
push ecx
mov edx, str.Server
jmp 0x40cd9e
cmp al, 1
jne 0x40cda3
lea edx, [esp + 0xa0]
push edx
mov edx, str.Professional
call fcn.0040d040
lea eax, [esp + 0x84]
push eax
mov edi, 0x45288c
lea esi, [esp + 0x18]
call fcn.0040d060
lea ecx, [esp + 0xa4]
push ecx
push eax
lea edi, [esp + 0x3c]
mov byte [esp + 0x170], 2
call fcn.0040d110
push eax
mov edi, 0x45288c
lea esi, [esp + 0x5c]
mov byte [esp + 0x174], 3
call fcn.0040d060
push eax
lea edi, [esp + 0xe4]
lea esi, [esp + 0x7c]
mov byte [esp + 0x178], 4
call fcn.0040d060
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x170], 5
call fcn.00406fa0
mov ecx, esi
call fcn.00406b50
lea ecx, [esp + 0x4c]
call fcn.00406b50
lea ecx, [esp + 0x30]
call fcn.00406b50
lea ecx, [esp + 0x14]
call fcn.00406b50
jmp 0x40cf3e
cmp eax, 1
jne 0x40ce94
push 0xa
push str.Windows_XP
lea ecx, [esp + 0x8c]
call fcn.004072f0
lea edx, [esp + 0x84]
push edx
mov edi, 0x45288c
lea esi, [esp + 0x34]
call fcn.0040d060
push eax
lea edi, [esp + 0xd8]
lea esi, [esp + 0x1c]
mov byte [esp + 0x16c], 6
call fcn.0040d060
add esp, 8
mov byte [esp + 0x164], 7
jmp 0x40cee9
cmp eax, 2
jne 0x40cf58
lea eax, [esp + 0x84]
push eax
mov edx, str.Windows_Server_2003
call fcn.0040d040
lea ecx, [esp + 0x84]
push ecx
mov edi, 0x45288c
lea esi, [esp + 0x34]
call fcn.0040d060
push eax
lea edi, [esp + 0xd8]
lea esi, [esp + 0x1c]
mov byte [esp + 0x16c], 8
call fcn.0040d060
add esp, 8
mov byte [esp + 0x164], 9
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.00406fa0
lea ecx, [esp + 0x14]
call fcn.00406b50
lea ecx, [esp + 0x30]
call fcn.00406b50
jmp 0x40cf3e
cmp eax, 1
jne 0x40cf92
cmp dword [esp + 0xc0], 4
jne 0x40cf58
mov eax, dword [esp + 0xc4]
cmp eax, 0xa
jne 0x40cf2e
mov edx, str.Windows_98
jmp 0x40cf38
cmp eax, 0x5a
jne 0x40cf58
mov edx, str.Windows_Me
push ebp
call fcn.0040d040
cmp dword [esp + 0xb8], 0x10
jb 0x40cf58
mov edx, dword [esp + 0xa4]
push edx
call fcn.004132c9
add esp, 4
cmp dword [esp + 0x9c], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jb 0x40cf8b
mov eax, dword [esp + 0x88]
push eax
call fcn.004132c9
add esp, 4
mov eax, 1
jmp 0x40cf94
xor eax, eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0042f760
add esp, 0x154
ret