Function at 0x527889
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 0x5278f5
xor eax, eax
jmp 0x527b2a
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.clsid
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x527a1b
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x434]
push ecx
call fcn.00432350
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x527a11
lea eax, [ebp - 0x438]
push eax
push 0x20019
push 0
push 0x6231f0
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x527a04
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 0x5279f7
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00527b2e
add esp, 0xc
mov eax, dword [ebp - 0x440]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.005080d0
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 0x5279f7
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 0x527b17
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
push str.DocShortcut
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x527b17
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 0x527b0a
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 0x527afd
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00527b2e
add esp, 0xc
mov ecx, dword [ebp - 0x440]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.005080d0
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 0x527afd
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