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

Disassembly:
mov eax, 0x1060
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x105c], eax
mov eax, dword [esp + 0x1064]
push ebx
push esi
mov esi, dword [esp + 0x1078]
push edi
mov edi, dword [esp + 0x1074]
xor ebx, ebx
push 0x40f
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x34], bl
call fcn.005dfd60
push 0x40f
lea edx, [esp + 0x449]
push ebx
push edx
mov byte [esp + 0x450], bl
call fcn.005dfd60
push 0x40f
lea eax, [esp + 0xc75]
push ebx
push eax
mov byte [esp + 0xc7c], bl
call fcn.005dfd60
push 0x40f
lea ecx, [esp + 0x871]
push ebx
push ecx
mov byte [esp + 0x878], bl
call fcn.005dfd60
add esp, 0x30
cmp esi, ebx
je 0x5184a9
mov byte [esi], bl
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea edx, [esp + 0xc5c]
push edx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x1080], ebx
je 0x518509
call fcn.004d96c0
test eax, eax
je 0x5184ef
lea eax, [esp + 0x14]
push eax
push 0x109
push ebx
lea ecx, [esp + 0xc64]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004fadc0
jmp 0x51852f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x1060
ret
lea edx, [esp + 0x14]
push edx
push 9
push ebx
lea eax, [esp + 0xc64]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
cmp eax, ebx
jne 0x5184ef
mov edx, dword [esp + 0x14]
push ebp
push 0x410
lea ecx, [esp + 0x30]
push ecx
push ebx
push edx
xor ebp, ebp
mov byte [esp + 0x3c], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x5186e7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, edi
lea eax, [esp + 0xc5c]
push eax
lea ecx, [esp + 0x850]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x66da34
lea edx, [esp + 0x850]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x850]
push ecx
call edi
cmp dword [esp + 0x1084], ebx
je 0x518606
mov eax, dword [0x6905ac]
cmp eax, 0xffffffff
jne 0x5185df
push 0x643dcc
push 0x61bed4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x5185d6
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0x1c]
mov dword [0x6905ac], eax
cmp eax, ebx
je 0x5186f2
lea eax, [esp + 0x10]
push eax
push 0x109
push ebx
lea ecx, [esp + 0x858]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004fadc0
jmp 0x51862c
lea edx, [esp + 0x10]
push edx
push 9
push ebx
lea eax, [esp + 0x858]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
cmp eax, ebx
jne 0x5186c4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x440]
push edx
push ebx
push ebx
push str.DisplayName
push eax
mov byte [esp + 0x454], bl
mov dword [esp + 0x2c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51868a
mov edx, dword [esp + 0x24]
cmp edx, ebx
je 0x51868a
lea eax, [esp + 0x43c]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x518680
mov esi, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x30]
push esi
push edx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5186f9
push ebx
lea eax, [esp + 0x440]
push esi
push eax
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5186f9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
push 0x410
lea edx, [esp + 0x30]
push edx
inc ebp
push ebp
push eax
mov byte [esp + 0x3c], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x518560
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x518783
mov esi, 0x410
mov byte [esp + 0x2c], bl
mov dword [esp + 0x14], esi
cmp dword [esp + 0x107c], ebx
je 0x518731
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push str.QuietUninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x2c], bl
jne 0x518751
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push str.UninstallString
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push 1
push esi
call fcn.005127a0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x106c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x1060
ret