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

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x3ac], eax
mov eax, dword [ebp + 0x3b8]
push ebx
push esi
push edi
xor esi, esi
mov ebx, 0x206
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x62]
push esi
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x64], si
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x109
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, 0x104
jne 0x4158f3
push edi
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], esi
push esi
jmp 0x4158d0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4158c5
push ebx
lea eax, [ebp + 0x1a6]
push esi
push eax
mov dword [ebp - 0x78], edi
mov word [ebp + 0x1a4], si
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push str.DisplayName
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4158bc
push dword [ebp - 0x80]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0043ea1e
test eax, eax
pop ecx
pop ecx
je 0x4158bc
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x6c]
push edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x415847
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], esi
jne 0x4159c3
lea eax, [ebp - 0x68]
push eax
push 9
push esi
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4159c3
push edi
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], esi
push esi
jmp 0x4159a9
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41599e
push ebx
lea eax, [ebp + 0x1a6]
push esi
push eax
mov dword [ebp - 0x7c], edi
mov word [ebp + 0x1a4], si
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push str.DisplayName
push dword [ebp - 0x70]
mov dword [ebp - 0x78], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415995
push dword [ebp - 0x80]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0043ea1e
test eax, eax
pop ecx
pop ecx
je 0x415995
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x6c]
push edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x415920
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x3ac]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x3b0
leave
ret 4