Function at 0x10859a5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.010185f7
mov dword [ebp - 0x138], eax
call fcn.01080b7d
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10859d7
call fcn.01077821
push 0x1085c7c
call dword [sym.imp.SHLWAPI.dll_Ordinal_618]
test eax, eax
jne 0x1085c60
push esi
push edi
lea ecx, [ebp - 0x170]
call fcn.0108582a
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x194]
mov dword [ebp - 0x198], ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x12c]
call fcn.0108003b
push 5
pop esi
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x12c]
call fcn.010803de
mov dword [ebp + esi*4 - 0x198], eax
inc esi
cmp esi, 0xa
jl 0x1085a18
cmp dword [ebp - 0x128], ebx
je 0x1085a4b
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x120]
inc edi
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 6
mov dword [ebp - 0x118], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x1085b62
cmp dword [ebp - 0x134], 0xabcdabcd
je 0x1085b62
call fcn.010800cd
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ebx
xor ecx, ecx
mov edx, dword [ebp - 0x124]
inc edx
mov esi, edi
cmp edx, 0x46
je 0x1085ae9
mov eax, dword [ecx + 0x1085d18]
cmp eax, dword [ecx + 0x1085c90]
je 0x1085aeb
xor esi, esi
mov eax, dword [ecx + 0x1085c90]
cmp eax, dword [ebp - 0x134]
jne 0x1085b0b
mov eax, dword [ebp - 0x128]
cmp eax, dword [ecx + 0x1085c94]
je 0x1085b21
cmp esi, ebx
je 0x1085b21
add ecx, 0x88
mov dword [ebp - 0x124], edx
cmp ecx, 0x2530
jae 0x1085b62
jmp 0x1085acd
mov dword [ebp - 0x128], ebx
xor edi, edi
lea esi, [ebp + edi*4 - 0x198]
cmp dword [esi], ebx
jne 0x1085b5c
push 1
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x124]
imul eax, eax, 0x88
add eax, 0x1085c98
push eax
lea ecx, [ebp - 0x128]
call fcn.010804b9
mov dword [esi], eax
inc edi
cmp edi, 0xa
jl 0x1085b29
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x15c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x15c], 0x24
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x144]
push eax
call fcn.0106d386
add eax, 0xc0000000
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x130]
push eax
push 0x1004284
push 3
push ebx
adc edx, 0xffffffff
push 0x1004274
mov dword [ebp - 0x140], edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1085c3e
xor esi, esi
mov dword [ebp - 0x124], ebx
mov edi, dword [ebp + esi*4 - 0x198]
test edi, edi
je 0x1085c1e
push 0xe
pop eax
sub eax, esi
mov dword [ebp - 0x150], eax
push 0x15
pop eax
sub eax, ebx
mov dword [ebp - 0x14c], eax
mov eax, 0x668a0
sub eax, dword [ebp - 0x124]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x15c]
push eax
push edi
push dword [ebp - 0x130]
call fcn.0108016f
lea eax, [ebp - 0x15c]
push eax
push edi
call fcn.010801dc
add dword [ebp - 0x124], 0x9c40
inc esi
inc ebx
inc ebx
cmp ebx, 0x14
jl 0x1085bcc
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
xor esi, esi
push dword [ebp + esi*4 - 0x198]
call dword [sym.imp.SHELL32.dll_ILFree]
inc esi
cmp esi, 0xa
jl 0x1085c40
lea ecx, [ebp - 0x170]
call fcn.01080017
pop edi
pop esi
push dword [ebp - 0x138]
call fcn.0101959d
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 4