Function at 0x5047c8
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x450
mov eax, 0x55f13e
call fcn.0052a9a8
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x208
mov dword [ebp - 0x434], eax
mov esi, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x424], ebx
push ebx
push eax
mov dword [ebp - 0x428], ebx
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x109
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x50491e
and dword [ebp - 0x438], esi
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
jmp 0x5048fe
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5048e4
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0x104
push eax
call fcn.00507800
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5048dc
push dword [ebp - 0x434]
lea eax, [ebp - 0x420]
push eax
call fcn.00508a04
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x428]
call edi
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x218]
push 0x104
inc eax
push ecx
mov dword [ebp - 0x438], eax
push eax
push dword [ebp - 0x424]
call ebx
test eax, eax
je 0x50484e
push dword [ebp - 0x424]
call edi
test esi, esi
jne 0x504b4c
lea eax, [ebp - 0x424]
push eax
push 9
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x504a1d
push 0x104
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push ebx
jmp 0x5049f9
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5049eb
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], 0x104
push eax
call fcn.00507800
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5049e3
push dword [ebp - 0x434]
lea eax, [ebp - 0x420]
push eax
call fcn.00508a04
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x428]
call edi
push 0x104
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x504955
push dword [ebp - 0x424]
call edi
test esi, esi
jne 0x504b4c
lea ecx, [ebp - 0x45c]
call fcn.00502d91
and dword [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.00502e16
test eax, eax
mov edx, 0x20119
lea eax, [ebp - 0x424]
push eax
setne cl
mov eax, 0x20019
test cl, cl
cmovne eax, edx
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x504b41
push 0x104
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push ebx
jmp 0x504b25
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x504b17
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], 0x104
push eax
call fcn.00507800
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x504b0f
push dword [ebp - 0x434]
lea eax, [ebp - 0x420]
push eax
call fcn.00508a04
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x428]
call edi
push 0x104
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x504a81
push dword [ebp - 0x424]
call edi
lea ecx, [ebp - 0x45c]
call fcn.00502da4
mov eax, esi
call fcn.0052a963
ret 4