Function at 0x40b32f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478f3f
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0044b400
add esp, 0xc
mov dword [ebp - 0x214], 0x11c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.unknown
lea ecx, [ebp - 0xf4]
call fcn.00401c41
mov dword [ebp - 4], 1
cmp dword [ebp - 0x210], 4
ja 0x40b3e4
push str.WinNT4.0
call fcn.0044af10
pop ecx
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x22c]
push str.WinNT4.0
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b6f4
cmp dword [ebp - 0x210], 5
jne 0x40b55d
cmp dword [ebp - 0x20c], 0
jne 0x40b426
push str.Win2000
call fcn.0044af10
pop ecx
mov dword [ebp - 0x230], eax
push dword [ebp - 0x230]
push str.Win2000
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b558
cmp dword [ebp - 0x20c], 1
jne 0x40b528
push 0x7f
lea eax, [ebp - 0x200]
push eax
push str.Service_Pack_1
call fcn.0044de7d
add esp, 0xc
test eax, eax
jne 0x40b479
push str.WinXP_SP1
call fcn.0044af10
pop ecx
mov dword [ebp - 0x234], eax
push dword [ebp - 0x234]
push str.WinXP_SP1
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b526
push 0x7f
lea eax, [ebp - 0x200]
push eax
push str.Service_Pack_2
call fcn.0044de7d
add esp, 0xc
test eax, eax
jne 0x40b4bc
push str.WinXP_SP2
call fcn.0044af10
pop ecx
mov dword [ebp - 0x238], eax
push dword [ebp - 0x238]
push str.WinXP_SP2
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b526
push 0x7f
lea eax, [ebp - 0x200]
push eax
push str.Service_Pack_3
call fcn.0044de7d
add esp, 0xc
test eax, eax
jne 0x40b4ff
push str.WinXP_SP3
call fcn.0044af10
pop ecx
mov dword [ebp - 0x23c], eax
push dword [ebp - 0x23c]
push str.WinXP_SP3
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b526
push str.WinXP_NoSP
call fcn.0044af10
pop ecx
mov dword [ebp - 0x240], eax
push dword [ebp - 0x240]
push str.WinXP_NoSP
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b558
cmp dword [ebp - 0x20c], 2
jb 0x40b558
push str.Server2003
call fcn.0044af10
pop ecx
mov dword [ebp - 0x244], eax
push dword [ebp - 0x244]
push str.Server2003
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b6f4
cmp dword [ebp - 0x210], 6
jne 0x40b63b
cmp dword [ebp - 0x20c], 0
jne 0x40b59f
push str.Vista
call fcn.0044af10
pop ecx
mov dword [ebp - 0x248], eax
push dword [ebp - 0x248]
push str.Vista
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b636
cmp dword [ebp - 0x20c], 1
jne 0x40b5d1
push str.Win7
call fcn.0044af10
pop ecx
mov dword [ebp - 0x24c], eax
push dword [ebp - 0x24c]
push str.Win7
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b636
cmp dword [ebp - 0x20c], 2
jne 0x40b636
call fcn.0040b290
movzx eax, al
test eax, eax
je 0x40b60f
push str.Win10
call fcn.0044af10
pop ecx
mov dword [ebp - 0x250], eax
push dword [ebp - 0x250]
push str.Win10
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b636
push str.Win8
call fcn.0044af10
pop ecx
mov dword [ebp - 0x258], eax
push dword [ebp - 0x258]
push str.Win8
lea ecx, [ebp - 0xf4]
call fcn.00402207
jmp 0x40b6f4
push str._1_._2_
lea ecx, [ebp - 0xbc]
call fcn.004176fa
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x260]
call fcn.0041d73e
pop ecx
pop ecx
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x264]
call fcn.0041d73e
pop ecx
pop ecx
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x27c]
call fcn.0041788c
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x280]
lea ecx, [ebp - 0xf4]
call fcn.00401e1c
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00401ecc
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.004108a4
call fcn.0040b235
movzx eax, al
test eax, eax
je 0x40b70c
mov dword [ebp - 0x294], 0x482600
jmp 0x40b716
mov dword [ebp - 0x294], 0x482604
push dword [ebp - 0x294]
call fcn.0044af10
pop ecx
mov dword [ebp - 0x290], eax
push dword [ebp - 0x290]
push dword [ebp - 0x294]
lea ecx, [ebp - 0xf4]
call fcn.00402106
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401cb5
mov eax, dword [ebp - 0x218]
or eax, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xf4]
call fcn.00401ecc
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret