Function at 0x4126c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dfc7
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5ce104]
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 0x41270b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412720
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x412722
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.00526bd0
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 0x412772
xor ebx, ebx
jmp 0x412951
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.0041c800
add esp, 4
mov byte [ebp - 4], 2
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4127ef
cmp dword [ebx + 0xc], 0
jl 0x4127da
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4127da
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 0x4127ef
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 0x412839
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412835
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412835
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
jmp 0x41283f
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 0x4128a4
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 0x41289c
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 0x412892
push 0
push dword [edx + 4]
call ebx
jmp 0x4128a4
mov ecx, edx
call dword [ebp - 0x12c]
jmp 0x4128a4
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 0x412943
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.0041c800
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 0x412945
jmp 0x412951
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 0x412992
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412990
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412990
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412992
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.00522a9a
mov esp, ebp
pop ebp
ret