Function at 0x406be0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
mov esi, ecx
push 0
push eax
call fcn.00412ce0
add esp, 0xc
mov dword [esi], 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406c59
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406c59
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_1
push eax
call fcn.0041051c
add esp, 0xc
test eax, eax
jne 0x406c7b
or dword [esi], 1
jmp 0x406cdf
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_2
push eax
call fcn.0041051c
add esp, 0xc
test eax, eax
jne 0x406c9d
or dword [esi], 2
jmp 0x406cdf
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_3
push eax
call fcn.0041051c
add esp, 0xc
test eax, eax
jne 0x406cbf
or dword [esi], 3
jmp 0x406cdf
push 0x80
lea eax, [ebp - 0x10c]
push str.Service_Pack_4
push eax
call fcn.0041051c
add esp, 0xc
test eax, eax
jne 0x406cdf
or dword [esi], 4
shl dword [esi], 0x10
call fcn.00406b20
test eax, eax
je 0x406d2f
cmp dword [ebp - 0x110], 2
jne 0x406c48
cmp dword [ebp - 0x11c], 6
jne 0x406c48
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x406d62
test eax, eax
jne 0x406c48
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x406eb5
dec eax
je 0x406e67
dec eax
jne 0x406eb5
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x406d98
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x406d79
or dword [esi], 9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406eb5
or dword [esi], 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x406df5
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x406dbf
or dword [esi], 7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406dd6
or dword [esi], 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406eb5
or dword [esi], 5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x406eb5
or dword [esi], 4
cmp eax, 4
jne 0x406eb5
lea eax, [ebp - 0x10c]
push str.Service_Pack_6
push eax
call fcn.00410552
add esp, 8
test eax, eax
jne 0x406eb5
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x406eb5
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x406e91
or dword [esi], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x406ead
or dword [esi], 2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x406eb5
or dword [esi], 3
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040e691
mov esp, ebp
pop ebp
ret