Function at 0x4a4600
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor edi, edi
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00489e70
mov eax, dword [0x4edfd0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
add esp, 8
cmp dword [eax - 0xc], edi
jl 0x4a463c
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4a4650
mov ecx, dword [0x4d9540]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
call fcn.004016e0
mov eax, dword [0x4e3cd4]
mov dword [esp + 0x1c], edi
cmp eax, 1
jne 0x4a4696
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push edi
push edi
push SHChangeNotifyDeregister
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4a4709
lea ecx, [esp + 0x1c]
call fcn.00405b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x4a4709
cmp eax, 2
jne 0x4a46d3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push edi
push str.SoftwareClasses
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4a4709
lea ecx, [esp + 0x1c]
call fcn.00405b30
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jmp 0x4a4709
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str.SoftwareClasses
push SHChangeNotifyDeregister
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4a4709
lea ecx, [esp + 0x1c]
call fcn.00405b30
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push str.qdirdoc_shellopencommand
push eax
mov dword [esp + 0x24], edi
call esi
cmp eax, edi
jne 0x4a4aa8
lea ecx, [esp + 0x14]
call fcn.00405b30
mov ecx, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], ecx
jne 0x4a4aa8
mov eax, dword [0x4d9540]
mov ecx, 0x400
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4a4767
cmp dword [eax - 4], ecx
jge 0x4a47aa
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4a4770
mov ecx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.004012f0
test eax, eax
je 0x4a47aa
mov edi, dword [esp + 0x20]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [eax - 8], ebp
call fcn.00401350
mov eax, dword [esp + 0x20]
xor edi, edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push edi
push edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x20]
call fcn.00401380
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x20]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x20]
mov word [ecx + eax*2], di
mov edx, dword [0x4d9540]
mov eax, str.___1_
mov dword [esp + 0x18], edx
test eax, eax
je 0x4a4836
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x4a4836
push esi
lea ecx, [esp + 0x1c]
call fcn.004012f0
test eax, eax
je 0x4a4836
mov ecx, dword [esp + 0x18]
inc esi
push esi
push str.___1_
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00401970
mov edx, dword [0x4d9540]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x44]
call fcn.004017b0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.00401200
lea ecx, [esp + 0x34]
call fcn.004014c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004c5509
mov ecx, dword [0x4d9544]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
invalid
xchg esp, eax