Function at 0x51a393
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5239ab
call fcn.0042e2c0
sub esp, 0x38
push esi
mov esi, ecx
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.00517c07
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00502837
mov eax, dword [esi + 8]
test eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 1
je 0x51a8c2
add esi, 4
push ebx
mov dword [ebp - 0x40], esi
push edi
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
call fcn.00420e3f
mov edi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], edi
call fcn.00402fb0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402fb0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00402fb0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00402fb0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov byte [ebp - 4], 5
je 0x51a4c2
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 6
call fcn.00517c07
push dword [ebp - 0x30]
mov eax, dword [eax + 8]
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov esi, eax
test esi, esi
lea eax, [ebp - 0x34]
je 0x51a497
push dword [ebp - 0x30]
push 0x5410f4
push eax
call fcn.004046f0
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x51a4a7
push 0
push 0x5410f4
push eax
call fcn.004046f0
add esp, 0xc
mov esi, dword [ebp - 0x34]
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
push esi
call fcn.0040b120
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 5
call fcn.004030b0
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
push 5
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x64]
test eax, eax
mov esi, dword [ebp - 0x38]
je 0x51a865
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x51a865
mov eax, dword [edi]
push 6
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0x64]
test eax, eax
jne 0x51a546
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004030f0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.0051a21c
test eax, eax
jne 0x51a583
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
jmp 0x51a69d
test ebx, ebx
je 0x51a5ae
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._sDefaultIcon
push eax
call fcn.004046f0
add esp, 0xc
push 0
push esi
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
je 0x51a679
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x64]
test eax, eax
je 0x51a5f4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x51a5f4
push str.___1_
lea ecx, [ebp - 0x24]
call fcn.0040b0f0
test ebx, ebx
je 0x51a6ed
push str.__p___1_
lea ecx, [ebp - 0x28]
call fcn.0040b0f0
push str.__pt___1____2____3____4_
jmp 0x51a6db
mov edi, str.ddeexec
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellopen_s
push eax
call fcn.004046f0
add esp, 0x10
push 0
push str._open___1___
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
je 0x51a679
test ebx, ebx
je 0x51a6e0
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellprint_s
push eax
call fcn.004046f0
add esp, 0x10
push 0
push str._print___1___
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
je 0x51a679
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellprintto_s
push eax
call fcn.004046f0
add esp, 0x10
push 0
push str._printto___1____2____3____4___
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
jne 0x51a6c3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004030b0
lea ecx, [esi - 0x10]
call fcn.004030b0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
jmp 0x51a8aa
mov edi, str.__dde
push edi
lea ecx, [ebp - 0x24]
call fcn.0040b0f0
push edi
lea ecx, [ebp - 0x28]
call fcn.0040b0f0
push edi
lea ecx, [ebp - 0x20]
jmp 0x51a6e8
push str.___1_
lea ecx, [ebp - 0x24]
call fcn.0040b0f0
push str.command
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellopen_s
push eax
call fcn.004046f0
mov edi, dword [ebp - 0x24]
add esp, 0x10
push 0
push edi
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
jne 0x51a757
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004030b0
lea ecx, [esi - 0x10]
call fcn.004030b0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
jmp 0x51a8a2
test ebx, ebx
mov ebx, dword [ebp - 0x28]
je 0x51a7b8
push str.command
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellprint_s
push eax
call fcn.004046f0
add esp, 0x10
push 0
push ebx
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
je 0x51a86b
push str.command
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_shellprintto_s
push eax
call fcn.004046f0
add esp, 0x10
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0051a21c
test eax, eax
je 0x51a86b
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
push 4
lea edx, [ebp - 0x18]
push edx
call dword [eax + 0x64]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x51a86b
mov eax, 0x208
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], eax
call fcn.00403280
lea ecx, [ebp - 0x44]
push ecx
push eax
push dword [ebp - 0x18]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], eax
call fcn.00417340
cmp dword [ebp - 0x34], 0
jne 0x51a826
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x51a826
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0051a30b
test al, al
pop ecx
pop ecx
je 0x51a86b
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0051a21c
test eax, eax
je 0x51a86b
cmp dword [ebp + 8], 0
je 0x51a86b
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._sShellNew
push eax
call fcn.004046f0
add esp, 0xc
push str.NullFile
push 0x540fe4
push dword [ebp - 0x14]
call fcn.0051a21c
jmp 0x51a86b
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004030b0
lea ecx, [esi - 0x10]
call fcn.004030b0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004030b0
lea ecx, [ebx - 0x10]
call fcn.004030b0
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.004030b0
inc dword [ebp - 0x30]
cmp dword [ebp - 0x3c], 0
jne 0x51a3f1
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004030b0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4