Function at 0x4f9640
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x64c], eax
push ebx
push esi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20219
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartButtonDock
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4f96ad
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.005886fc
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x242]
push edx
mov dword [esi + 4], 0
xor ebx, ebx
mov word [esp + 0x244], cx
call fcn.0058e300
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 4]
add esi, 0xc
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00457180
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
push ebx
push ebx
push ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push ebx
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24c]
push eax
push ebx
push ecx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4f9756
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.005886fc
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x24]
cmp ebx, 0x32
jge 0x4f972f
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x244]
push eax
inc ebx
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f972f
lea edx, [esp + 0x238]
push edx
call fcn.0058a9c1
add esp, 4
mov dword [esp + 0x14], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.0058e300
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push str.ButtonClassName
push ecx
mov dword [esp + 0x44], 0x206
call ebx
mov edx, str.Q360TaskBtn
lea ecx, [esp + 0x30]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4f9808
test si, si
je 0x4f9804
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4f9808
add ecx, 4
add edx, 4
test si, si
jne 0x4f97e2
xor ecx, ecx
jmp 0x4f980d
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x4f99d6
mov edx, 0x5c9a90
lea ecx, [esp + 0x30]
mov edi, edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x4f9846
test si, si
je 0x4f9842
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4f9846
add ecx, 4
add edx, 4
test si, si
jne 0x4f9820
xor ecx, ecx
jmp 0x4f984b
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x4f99d6
xor esi, esi
mov dword [esp + 8], esi
test eax, eax
jne 0x4f986f
push eax
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebp + 8]
jle 0x4f98b0
mov eax, dword [esp + 0x18]
add eax, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.004f9eb0
lea ecx, [esp + 0x30]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4f9890
sub ecx, esi
sar ecx, 1
lea edx, [esp + 0x30]
push edx
mov ebx, ecx
call fcn.00406b40
jmp 0x4f99df
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4f98c1
cmp eax, ecx
jge 0x4f99df
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x452]
push eax
mov word [esp + 0x454], dx
call fcn.0058e300
add esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x4f9942
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x44c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0x448]
lea eax, [esp + 0x30]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f99b8
test dx, dx
je 0x4f993b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f99b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f9911
xor eax, eax
jmp 0x4f99bd
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.ButtonHandler
push edx
mov dword [esp + 0x40], 4
call ebx
mov eax, dword [esp + 8]
push eax
call esi
test eax, eax
je 0x4f99df
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x44c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0x448]
lea eax, [esp + 0x30]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f99b8
test dx, dx
je 0x4f99b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f99b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f9992
xor eax, eax
jmp 0x4f99bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4f99df
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], edx
mov dword [ecx + 4], eax
jmp 0x4f99df
mov edx, dword [esp + 0x14]
cmp edx, dword [ebp + 8]
jne 0x4f9a36
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea ecx, [esp + 0x23c]
push 0
push ecx
call fcn.0058e300
mov ecx, dword [esp + 0x30]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4f9752
jmp 0x4f972f
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x654]
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.005886fc
mov esp, ebp
pop ebp
ret 4