Function at 0x5032b0
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.004b7110
mov eax, dword [0x55e2e8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
add esp, 8
cmp dword [eax - 0xc], edi
jl 0x5032ec
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x503300
mov ecx, dword [0x546560]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
call fcn.00405920
mov eax, dword [0x554054]
mov dword [esp + 0x1c], edi
cmp eax, 1
jne 0x503346
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 0x5033b9
lea ecx, [esp + 0x1c]
call fcn.00409900
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x5033b9
cmp eax, 2
jne 0x503383
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 0x5033b9
lea ecx, [esp + 0x1c]
call fcn.00409900
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jmp 0x5033b9
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 0x5033b9
lea ecx, [esp + 0x1c]
call fcn.00409900
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 0x503758
lea ecx, [esp + 0x14]
call fcn.00409900
mov ecx, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], ecx
jne 0x503758
mov eax, dword [0x546560]
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 0x503417
cmp dword [eax - 4], ecx
jge 0x50345a
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x503420
mov ecx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x50345a
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 [0x546560]
mov eax, str.___1_
mov dword [esp + 0x18], edx
test eax, eax
je 0x5034e6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x5034e6
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x5034e6
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 [0x546560]
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.00531809
mov ecx, dword [0x546564]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x50356c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x503572
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
jmp 0x503572
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50359d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50359d
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, bl
je 0x50372b
cmp dword [esp + 0x240], edi
jne 0x50367f
mov eax, dword [0x55e2ec]
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.00409920
test eax, eax
je 0x5035f9
lea ecx, [esp + 0x18]
call fcn.00409900
jmp 0x50367f
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 0x50365f
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409970
test eax, eax
jne 0x503670
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 0x50362a
lea ecx, [esp + 0x18]
call fcn.00409900
mov eax, dword [esp + 0x1c]
push edi
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.00409900
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5036aa
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5036aa
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00409900
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5036de
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5036de
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00409900
lea ecx, [esp + 0x14]
call fcn.00409900
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50371b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50371b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50375e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x50375e
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x50375e
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
jne 0x5037f4
lea ecx, [esp + 0x1c]
call fcn.00409900
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5037a2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5037a2
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00409900
lea ecx, [esp + 0x14]
call fcn.00409900
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5039b6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5039b6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
cmp eax, 1
jne 0x503989
lea ecx, [esp + 0x14]
call fcn.00409900
mov ecx, dword [0x55e2ec]
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.0040de90
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040df20
mov ecx, dword [esp + 0x28]
mov eax, dword [0x546560]
push 2
push ecx
lea edx, [esp + 0x18]
push 0x548784
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.00412dc0
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.0040de90
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.00412dc0
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040df20
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00409900
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.0040de90
mov eax, dword [0x55e2f0]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040df20
lea ecx, [esp + 0x14]
call fcn.00409900
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.00412dc0
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.0040de90
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.0040df20
lea ecx, [esp + 0x14]
call fcn.00409900
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00409900
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00409900
lea ecx, [esp + 0x14]
call fcn.00409900
lea ecx, [esp + 0x28]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret