Function at 0x503ea0
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.004b8060
mov eax, dword [0x55f3a0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
add esp, 8
cmp dword [eax - 0xc], edi
jl 0x503edc
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x503ef0
mov ecx, dword [0x547570]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
call fcn.00405920
mov eax, dword [0x5550c4]
mov dword [esp + 0x1c], edi
cmp eax, 1
jne 0x503f36
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push edi
push edi
push SHChangeNotifyRegister
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x503fa9
lea ecx, [esp + 0x1c]
call fcn.004098a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x503fa9
cmp eax, 2
jne 0x503f73
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 0x503fa9
lea ecx, [esp + 0x1c]
call fcn.004098a0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jmp 0x503fa9
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str.SoftwareClasses
push SHChangeNotifyRegister
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x503fa9
lea ecx, [esp + 0x1c]
call fcn.004098a0
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 0x504348
lea ecx, [esp + 0x14]
call fcn.004098a0
mov ecx, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], ecx
jne 0x504348
mov eax, dword [0x547570]
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 0x504007
cmp dword [eax - 4], ecx
jge 0x50404a
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x504010
mov ecx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x50404a
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.00405590
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.004055c0
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 [0x547570]
mov eax, str.___1_
mov dword [esp + 0x18], edx
test eax, eax
je 0x5040d6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x5040d6
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x5040d6
mov ecx, dword [esp + 0x18]
inc esi
push esi
push str.___1_
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [0x547570]
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.004059f0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.00405440
lea ecx, [esp + 0x34]
call fcn.00405700
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.005322f9
mov ecx, dword [0x547574]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x50415c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x504162
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
jmp 0x504162
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50418d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50418d
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, bl
je 0x50431b
cmp dword [esp + 0x240], edi
jne 0x50426f
mov eax, dword [0x55f3a4]
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.004098c0
test eax, eax
je 0x5041e9
lea ecx, [esp + 0x18]
call fcn.004098a0
jmp 0x50426f
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 0x50424f
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409910
test eax, eax
jne 0x504260
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 0x50421a
lea ecx, [esp + 0x18]
call fcn.004098a0
mov eax, dword [esp + 0x1c]
push edi
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.004098a0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50429a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50429a
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004098a0
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5042ce
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5042ce
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004098a0
lea ecx, [esp + 0x14]
call fcn.004098a0
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50430b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50430b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50434e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50434e
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x50434e
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
jne 0x5043e4
lea ecx, [esp + 0x1c]
call fcn.004098a0
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x504392
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x504392
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004098a0
lea ecx, [esp + 0x14]
call fcn.004098a0
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5045a6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5045a6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
cmp eax, 1
jne 0x504579
lea ecx, [esp + 0x14]
call fcn.004098a0
mov ecx, dword [0x55f3a4]
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.0040dcf0
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040dd80
mov ecx, dword [esp + 0x28]
mov eax, dword [0x547570]
push 2
push ecx
lea edx, [esp + 0x18]
push 0x5497a4
push edx
mov dword [esp + 0x20], eax
call fcn.00405cb0
add esp, 0x10
lea ecx, [esp + 0x34]
push str._shellopencommand
call fcn.00405730
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00412c10
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.0040dcf0
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
push str.___1_
lea ecx, [esp + 0x38]
call fcn.00405730
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00412c10
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040dd80
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.004098a0
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.0040dcf0
mov eax, dword [0x55f3a8]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040dd80
lea ecx, [esp + 0x14]
call fcn.004098a0
push str.DefaultIcon
lea ecx, [esp + 0x38]
call fcn.00405730
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00412c10
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.0040dcf0
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
mov edx, dword [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040dd80
lea ecx, [esp + 0x14]
call fcn.004098a0
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.004098a0
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.004098a0
lea ecx, [esp + 0x14]
call fcn.004098a0
lea ecx, [esp + 0x28]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret