Function at 0x51aa06
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx + 0x80]
jmp 0x51b9a3
mov eax, 0x52e350
call fcn.004e66c0
sub esp, 0x18
mov eax, dword [0x5948c8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.00518d40
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00505dd6
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x51bbe4
push edi
mov edi, str.command
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
mov eax, dword [0x5948c8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 5
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x64]
test eax, eax
je 0x51bbb7
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x51bbb7
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push 6
push ecx
mov ecx, esi
call dword [eax + 0x64]
test eax, eax
jne 0x51ba42
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00504e86
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str._sDefaultIcon
push eax
call fcn.004fe4f0
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0051b83c
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x64]
test eax, eax
je 0x51ba78
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x51badb
push str.ddeexec
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellopen_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
push str.ddeexec
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellprint_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
push str.ddeexec
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellprintto_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
push edi
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellopen_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
push edi
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellprint_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
push edi
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_shellprintto_s
push eax
call fcn.004fe4f0
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0051b83c
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push 4
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
je 0x51bbb7
mov esi, eax
lea eax, [ebp - 0x24]
mov ecx, 0x208
push eax
mov dword [ebp - 0x24], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00505109
push eax
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00505158
test esi, esi
jne 0x51bb93
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], esi
je 0x51bb93
push dword [ebp - 0x14]
push eax
call fcn.004e8625
pop ecx
test eax, eax
pop ecx
jne 0x51bbb7
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push str._sShellNew
push eax
call fcn.004fe4f0
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0051b83c
push dword [ebp - 0x18]
call fcn.0051b83c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00504d4d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00504d4d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00504d4d
test ebx, ebx
jne 0x51b9ea
pop edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00504d4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00504d4d
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret