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]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a48bc
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a48c2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
jmp 0x4a48c2
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a48ed
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a48ed
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test bl, bl
je 0x4a4a7b
cmp dword [esp + 0x240], edi
jne 0x4a49cf
mov eax, dword [0x4edfd4]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 0x2001f
push eax
push edx
lea ecx, [esp + 0x24]
mov edi, eax
mov dword [esp + 0x24], 0
call fcn.00405b50
test eax, eax
je 0x4a4949
lea ecx, [esp + 0x18]
call fcn.00405b30
jmp 0x4a49cf
lea eax, [esp + 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
mov ebx, 0x100
push 0
push eax
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x4a49af
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405ba0
test eax, eax
jne 0x4a49c0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
je 0x4a497a
lea ecx, [esp + 0x18]
call fcn.00405b30
mov eax, dword [esp + 0x1c]
push edi
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.00405b30
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a49fa
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a49fa
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00405b30
mov eax, dword [esp + 0x24]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4a2e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a4a2e
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00405b30
lea ecx, [esp + 0x14]
call fcn.00405b30
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4a6b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a4a6b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x22c
ret
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4aae
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a4aae
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x4a4aae
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
jne 0x4a4b44
lea ecx, [esp + 0x1c]
call fcn.00405b30
mov eax, dword [esp + 0x24]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4af2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a4af2
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00405b30
lea ecx, [esp + 0x14]
call fcn.00405b30
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4d06
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a4d06
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
cmp eax, 1
jne 0x4a4cd9
lea ecx, [esp + 0x14]
call fcn.00405b30
mov ecx, dword [0x4edfd4]
mov eax, dword [esp + 0x1c]
push edi
push edi
push 2
push edi
push edi
push ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], eax
call fcn.0040a190
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040a220
mov ecx, dword [esp + 0x28]
mov eax, dword [0x4d9540]
push 2
push ecx
lea edx, [esp + 0x18]
push str._s__d
push edx
mov dword [esp + 0x20], eax
call fcn.00401a70
add esp, 0x10
lea ecx, [esp + 0x34]
push str._shellopencommand
call fcn.004014f0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0040f0a0
mov eax, dword [eax]
push edi
push edi
push 2
push edi
push edi
push eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a190
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x34]
call fcn.004014c0
push str.___1_
lea ecx, [esp + 0x38]
call fcn.004014f0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0040f0a0
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a220
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x34]
call fcn.004014c0
lea ecx, [esp + 0x14]
call fcn.00405b30
mov ecx, dword [esp + 0x24]
push edi
push edi
push 2
push edi
push edi
mov edx, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.0040a190
mov eax, dword [0x4edfd8]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a220
lea ecx, [esp + 0x14]
call fcn.00405b30
push str.DefaultIcon
lea ecx, [esp + 0x38]
call fcn.004014f0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0040f0a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
push edi
push edi
push 2
push edi
push edi
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0040a190
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x34]
call fcn.004014c0
mov edx, dword [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040a220
lea ecx, [esp + 0x14]
call fcn.00405b30
lea ecx, [esp + 0x10]
call fcn.004014c0
lea ecx, [esp + 0x1c]
call fcn.00405b30
lea ecx, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0x2c]
call fcn.00405b30
lea ecx, [esp + 0x14]
call fcn.00405b30
lea ecx, [esp + 0x28]
call fcn.004014c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret