Function at 0x40cb60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564177
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5b3124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40cba3
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40cbb8
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40cbba
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0050d580
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or edi, 0xffffffff
cmp dword [ebp - 0x120], 5
je 0x40cdd7
push str.SoftwareClasses_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x134], 0
call fcn.00404c40
push str..pdf
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00411770
add esp, 4
mov byte [ebp - 4], 2
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40cc88
cmp dword [ebx + 0xc], 0
jl 0x40cc73
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40cc73
push edx
call fcn.00405420
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00406e40
add esi, 0x10
mov dword [ebp - 0x128], esi
jmp 0x40cc88
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00405500
mov esi, dword [ebp - 0x128]
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40ccd2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40ccce
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40ccce
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
jmp 0x40ccd8
mov ecx, edx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd3d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x12c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40cd35
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x12c], edi
mov edi, 0xffffffff
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40cd2b
push 0
push dword [edx + 4]
call ebx
jmp 0x40cd3d
mov ecx, edx
call dword [ebp - 0x12c]
jmp 0x40cd3d
mov ecx, edx
call dword [ebp - 0x12c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x134]
push eax
push 0x2003f
push 0
push esi
push SysReAllocStringLen
call ebx
test eax, eax
je 0x40cdd7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x130]
call fcn.00404c40
push str..pdf
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00411770
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00404b60
lea ecx, [ebp - 0x12c]
call fcn.00404bc0
lea ecx, [ebp - 0x130]
call fcn.00404bc0
lea eax, [ebp - 0x134]
push eax
push 0x2003f
push 0
lea eax, [ebp - 0x138]
push eax
push SysReAllocStringLen
call ebx
mov esi, dword [ebp - 0x128]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x40cdd9
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40ce1a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40ce18
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40ce18
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40ce1a
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050975e
mov esp, ebp
pop ebp
ret