Function at 0x40bd50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x447fe4
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x45e5e0]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [0x4629a4]
mov ebp, dword [esp + 0x18c]
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
je 0x40bdab
mov edi, dword [0x4629a8]
mov esi, eax
jmp 0x40bddc
lea eax, [esp + 0x30]
push eax
push 0x64
push ebx
mov dword [esp + 0x3c], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x40bddc
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
mov dword [0x4629a4], esi
mov dword [0x4629a8], edi
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push 0x450da0
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.004044c0
cmp esi, 5
mov dword [esp + 0x184], ebx
jne 0x40bebf
cmp edi, ebx
jne 0x40be2f
lea ecx, [esp + 0x14]
push str.MS_Wins_2000
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 1
jmp 0x40bfa8
cmp edi, 2
jne 0x40be75
lea eax, [esp + 0x14]
push str.MS_Wins_Svr_2003
push eax
call fcn.00443fd0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x190], 2
call fcn.004043d0
mov byte [esp + 0x184], bl
cmp dword [esp + 0x2c], 8
jb 0x40bfce
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x40bfc6
cmp edi, 1
jne 0x40bf8e
lea edx, [esp + 0x14]
push str.MS_Wins_XP
push edx
call fcn.00443fd0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x190], 3
call fcn.004043d0
mov byte [esp + 0x184], bl
cmp dword [esp + 0x2c], 8
jb 0x40bfce
mov eax, dword [esp + 0x18]
push eax
jmp 0x40bfc6
cmp esi, 6
jne 0x40bf4e
cmp edi, ebx
jne 0x40beeb
lea ecx, [esp + 0x14]
push str.MS_Wins_Vista
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 4
jmp 0x40bfa8
cmp edi, 1
jne 0x40bf0c
lea eax, [esp + 0x14]
push str.MS_Wins_7
push eax
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 5
jmp 0x40bf71
cmp edi, 2
jne 0x40bf2d
lea ecx, [esp + 0x14]
push str.MS_Wins_8
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 6
jmp 0x40bf71
cmp edi, 3
jne 0x40bf8e
lea edx, [esp + 0x14]
push str.MS_Wins_8_1
push edx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 7
jmp 0x40bf71
cmp esi, 0xa
jne 0x40bf8e
cmp edi, ebx
jne 0x40bf8e
lea eax, [esp + 0x14]
push str.MS_Wins_10
push eax
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.004043d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], bl
call fcn.00403bb0
jmp 0x40bfce
lea ecx, [esp + 0x14]
push str.Not_Find
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 9
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.004043d0
mov byte [esp + 0x184], bl
cmp dword [esp + 0x2c], 8
jb 0x40bfce
mov edx, dword [esp + 0x18]
push edx
call fcn.00411d3b
add esp, 4
mov eax, dword [0x45fccc]
cmp eax, 0xffffffff
je 0x40c057
push eax
lea eax, [esp + 0x18]
push str.___d__
push eax
call fcn.00443fd0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x190], 0xa
call fcn.004043d0
mov edi, 8
mov byte [esp + 0x184], bl
cmp dword [esp + 0x2c], edi
jb 0x40c01f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00411d3b
add esp, 4
cmp dword [esp + 0x54], edi
mov edx, dword [esp + 0x40]
jae 0x40c02d
lea edx, [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c032
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00403e60
cmp dword [esp + 0x54], edi
jb 0x40c0c1
mov edx, dword [esp + 0x40]
push edx
jmp 0x40c0b9
push 0x11c
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.00430450
add esp, 0xc
push 1
push 0x20
push ebx
push ebx
mov dword [esp + 0x68], 0x11c
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edi, eax
mov dword [esp + 0x34], edx
xor esi, esi
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 0x20
lea edx, [esp + 0x64]
push edx
mov word [esp + 0x17c], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x40c0ed
add esi, 1
cmp esi, 0xa
jl 0x40c086
cmp dword [esp + 0x54], 8
jb 0x40c0c1
mov eax, dword [esp + 0x40]
push eax
call fcn.00411d3b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0042e014
add esp, 0x174
ret 4
push esi
lea eax, [esp + 0x18]
push str.___d__
push eax
mov dword [0x45fccc], esi
call fcn.00443fd0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x190], 0xb
call fcn.004043d0
mov edi, 8
mov byte [esp + 0x184], bl
cmp dword [esp + 0x2c], edi
jb 0x40c13a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00411d3b
add esp, 4
cmp dword [esp + 0x54], edi
mov edx, dword [esp + 0x40]
jae 0x40c148
lea edx, [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c150
jmp 0x40c03d