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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5adcc6
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0x20219
push edi
push edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartButtonDock
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x4f9ae1
lea eax, [edi + 1]
jmp 0x4f9e7e
push 0x208
lea ecx, [esp + 0x58]
push edi
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0xffffffff
xor esi, esi
call fcn.0058e300
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call fcn.00428c80
push edi
push edi
push edi
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x490], edi
mov edx, dword [esp + 0x2c]
push edi
push edx
mov dword [esp + 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4f9cfa
cmp esi, 0x32
jge 0x4f9cfa
lea eax, [esp + 0x54]
inc esi
push eax
mov dword [esp + 0x40], esi
call fcn.0058a9c1
mov ebx, eax
add esp, 4
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
jle 0x4f9b67
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
lea edx, [esp + 0x60]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4f9cd5
push 0x206
lea edx, [esp + 0x262]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x268], cx
call fcn.0058e300
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x260]
push ecx
push edi
push edi
push str.ButtonClassName
push edx
mov dword [esp + 0x5c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, str.Q360TaskBtn
lea eax, [esp + 0x25c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f9c07
cmp dx, di
je 0x4f9c03
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f9c07
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4f9be1
xor eax, eax
jmp 0x4f9c0c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4f9c4f
mov ecx, 0x5c9a90
lea eax, [esp + 0x25c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f9c46
cmp dx, di
je 0x4f9c42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f9c46
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4f9c20
xor eax, eax
jmp 0x4f9c4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4f9cb3
mov edx, dword [esp + 0x2c]
cmp edx, edi
jne 0x4f9c5b
xor ecx, ecx
jmp 0x4f9c64
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x4f9c7e
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x30], eax
jmp 0x4f9ca2
mov esi, eax
cmp edx, eax
jbe 0x4f9c89
call fcn.00588c45
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x30]
call fcn.00430a70
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x4f9caf
cmp eax, ebx
jle 0x4f9cb3
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [esp + 0x58]
push edi
push eax
call fcn.0058e300
mov esi, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x14]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4f9b3c
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
jbe 0x4f9d09
call fcn.00588c45
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
mov ebx, esi
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x2c], esi
jbe 0x4f9d22
call fcn.00588c45
test edi, edi
je 0x4f9d2c
cmp edi, dword [esp + 0x20]
je 0x4f9d31
call fcn.00588c45
cmp ebx, esi
je 0x4f9e0e
test edi, edi
jne 0x4f9dff
call fcn.00588c45
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4f9d52
call fcn.00588c45
mov ecx, dword [esp + 0x18]
cmp dword [ebx], ecx
je 0x4f9de2
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x478], 1
test edi, edi
jne 0x4f9e06
call fcn.00588c45
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4f9d96
call fcn.00588c45
mov ecx, dword [ebx]
push ecx
push 0x5cd62c
lea edi, [esp + 0x18]
call fcn.00406280
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 8
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esi - 0x10]
mov byte [esp + 0x478], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f9dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4f9e0a
call fcn.00588c45
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4f9df7
call fcn.00588c45
add ebx, 4
jmp 0x4f9d13
mov eax, dword [edi]
jmp 0x4f9d48
mov eax, dword [edi]
jmp 0x4f9d8c
mov eax, dword [edi]
jmp 0x4f9ded
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp edi, 0xffffffff
jne 0x4f9e54
mov esi, dword [esp + 0x1c]
xor edi, edi
inc esi
cmp eax, edi
je 0x4f9e3a
push eax
call fcn.005851f0
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.005851f0
mov eax, esi
jmp 0x4f9e7b
xor esi, esi
cmp eax, esi
je 0x4f9e63
push eax
call fcn.005851f0
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.005851f0
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005886fc
mov esp, ebp
pop ebp
ret