Function at 0x411c90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576067
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5c4104]
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
mov ebx, ecx
mov dword [ebp - 0x140], ebx
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x411cdb
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411cf0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x411cf2
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.0051edd0
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
jne 0x411d42
xor ebx, ebx
jmp 0x411f21
push str.SoftwareClasses_
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x130], 0
call fcn.00404e80
push ebx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.0041bc20
add esp, 4
mov byte [ebp - 4], 2
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x411dbf
cmp dword [ebx + 0xc], 0
jl 0x411daa
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x411daa
push edx
call fcn.00405650
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00407070
add esi, 0x10
mov dword [ebp - 0x128], esi
jmp 0x411dbf
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00405730
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 0x411e09
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411e05
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x411e05
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
jmp 0x411e0f
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 - 0x134]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x411e74
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 0x411e6c
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 0x411e62
push 0
push dword [edx + 4]
call ebx
jmp 0x411e74
mov ecx, edx
call dword [ebp - 0x12c]
jmp 0x411e74
mov ecx, edx
call dword [ebp - 0x12c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x130]
push eax
push 0x2003f
push 0
push esi
push SysReAllocStringLen
call ebx
test eax, eax
je 0x411f13
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x134]
call fcn.00404e80
push dword [ebp - 0x140]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.0041bc20
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00404da0
lea ecx, [ebp - 0x12c]
call fcn.00404e00
lea ecx, [ebp - 0x134]
call fcn.00404e00
lea eax, [ebp - 0x130]
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
test ebx, ebx
je 0x411f15
jmp 0x411f21
xor ebx, ebx
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x411f62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411f60
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x411f60
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x411f62
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.0051ac8e
mov esp, ebp
pop ebp
ret