Function at 0x406370
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 [0x46299c]
mov ebp, dword [esp + 0x18c]
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
je 0x4063cb
mov edi, dword [0x4629a0]
mov esi, eax
jmp 0x4063fc
lea eax, [esp + 0x30]
push eax
push 0x64
push ebx
mov dword [esp + 0x3c], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x4063fc
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
mov dword [0x46299c], esi
mov dword [0x4629a0], 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 0x4064df
cmp edi, ebx
jne 0x40644f
lea ecx, [esp + 0x14]
push str.MS_Wins_2000
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 1
jmp 0x4065c8
cmp edi, 2
jne 0x406495
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 0x4065ee
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x4065e6
cmp edi, 1
jne 0x4065ae
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 0x4065ee
mov eax, dword [esp + 0x18]
push eax
jmp 0x4065e6
cmp esi, 6
jne 0x40656e
cmp edi, ebx
jne 0x40650b
lea ecx, [esp + 0x14]
push str.MS_Wins_Vista
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 4
jmp 0x4065c8
cmp edi, 1
jne 0x40652c
lea eax, [esp + 0x14]
push str.MS_Wins_7
push eax
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 5
jmp 0x406591
cmp edi, 2
jne 0x40654d
lea ecx, [esp + 0x14]
push str.MS_Wins_8
push ecx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 6
jmp 0x406591
cmp edi, 3
jne 0x4065ae
lea edx, [esp + 0x14]
push str.MS_Wins_8_1
push edx
call fcn.00443fd0
add esp, 8
mov byte [esp + 0x184], 7
jmp 0x406591
cmp esi, 0xa
jne 0x4065ae
cmp edi, ebx
jne 0x4065ae
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 0x4065ee
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 0x4065ee
mov edx, dword [esp + 0x18]
push edx
call fcn.00411d3b
add esp, 4
mov eax, dword [0x45fc70]
cmp eax, 0xffffffff
je 0x406677
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 0x40663f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00411d3b
add esp, 4
cmp dword [esp + 0x54], edi
mov edx, dword [esp + 0x40]
jae 0x40664d
lea edx, [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406652
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00403e60
cmp dword [esp + 0x54], edi
jb 0x4066e1
mov edx, dword [esp + 0x40]
push edx
jmp 0x4066d9
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 0x40670b
add esi, 1
cmp esi, 0xa
jl 0x4066a6
cmp dword [esp + 0x54], 8
jb 0x4066e1
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
push esi
lea eax, [esp + 0x18]
push str.___d__
push eax
mov dword [0x45fc70], 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 0x406758
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00411d3b
add esp, 4
cmp dword [esp + 0x54], edi
mov edx, dword [esp + 0x40]
jae 0x406766
lea edx, [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
jmp 0x406770
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406770
jmp 0x40665d