Function at 0x51cf29
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jge 0x51cf95
xor eax, eax
jmp 0x51d1ca
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.clsid
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51d0bb
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x434]
push ecx
call fcn.00419780
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51d0b1
lea eax, [ebp - 0x438]
push eax
push 0x20019
push 0
push 0x6172a0
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51d0a4
mov dword [ebp - 0x44c], 0x20a
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51d097
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0051d1ce
add esp, 0xc
mov eax, dword [ebp - 0x440]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.004fe820
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 1
jne 0x51d097
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x428], 0
jne 0x51d1b7
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
push str.DocShortcut
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51d1b7
lea ecx, [ebp - 0x438]
push ecx
push 0x20019
push 0
push str.DefaultIcon
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51d1aa
mov dword [ebp - 0x450], 0x20a
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push 0
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51d19d
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0051d1ce
add esp, 0xc
mov ecx, dword [ebp - 0x440]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.004fe820
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 1
jne 0x51d19d
mov dword [ebp - 0x428], 0
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x428]
mov esp, ebp
pop ebp
ret