Function at 0x477ab0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5611e7
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5a6124]
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 edi, ecx
mov dword [ebp - 0x1d4], edi
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x477afb
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x477b10
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x477b12
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c8], esi
push 0x110
lea eax, [ebp - 0x1c0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00506b00
add esp, 0xc
mov dword [ebp - 0x1c4], 0x114
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or ebx, 0xffffffff
cmp dword [ebp - 0x1c0], 5
je 0x477d6d
movups xmm0, xmmword [str.SoftwareClasses_]
mov eax, dword [0x584ce4]
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movups xmm0, xmmword [0x584cd4]
mov dword [ebp - 0x1d8], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.00407b50
push edi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e0]
call fcn.00450190
add esp, 4
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x477bf9
cmp dword [edi + 0xc], 0
jl 0x477be4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x477be4
push edx
call fcn.00407010
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.004081d0
add esi, 0x10
mov dword [ebp - 0x1c8], esi
jmp 0x477bf9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.00407990
mov esi, dword [ebp - 0x1c8]
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x1e0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x477c43
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x477c3f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x477c3f
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call edi
jmp 0x477c49
mov ecx, edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x477cae
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1cc], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x477ca6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1cc], ebx
mov ebx, 0xffffffff
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x477c9c
push 0
push dword [edx + 4]
call edi
jmp 0x477cae
mov ecx, edx
call dword [ebp - 0x1cc]
jmp 0x477cae
mov ecx, edx
call dword [ebp - 0x1cc]
lea eax, [ebp - 0x1d8]
push eax
push 0x2003f
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x477d6d
mov ecx, 0x1e
lea edi, [ebp - 0xb0]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea eax, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x1d0]
movsw word es:[edi], word [esi]
call fcn.00407b50
push dword [ebp - 0x1d4]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1cc]
call fcn.00450190
add esp, 4
push eax
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 4
call fcn.00402730
lea ecx, [ebp - 0x1cc]
call fcn.00407c20
lea ecx, [ebp - 0x1d0]
call fcn.00407c20
lea eax, [ebp - 0x1d8]
push eax
push 0x2003f
push 0
lea eax, [ebp - 0x1dc]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x1c8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x1d4], ecx
mov edi, ecx
jmp 0x477d6f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x477db0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x477dae
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x477dae
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x477db0
call edx
mov eax, edi
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.00502bf3
mov esp, ebp
pop ebp
ret