Function at 0x4064df
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1844
call fcn.00412df0
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x4064fa
dec eax
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406736
push 0x7fe
lea eax, [ebp - 0x1842]
push ebx
push eax
mov word [ebp - 0x1844], bx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1844]
push eax
push ebx
push dword [ebp - 8]
mov eax, 0x3ff
mov dword [ebp - 0xc], ebx
call fcn.0040f215
add esp, 0x18
test eax, eax
jne 0x40672d
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x1844]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406706
mov eax, dword [ebp + 0xc]
push str.DisplayName
push dword [ebp - 4]
mov dword [ebp - 0x21c], eax
mov edi, 0x104
mov eax, edi
lea esi, [ebp - 0x1044]
mov word [ebp - 0x1044], bx
mov word [ebp - 0xe3a], bx
mov word [ebp - 0xc30], bx
mov word [ebp - 0xa26], bx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call fcn.0040f175
push str.DisplayIcon
push dword [ebp - 4]
mov eax, edi
lea esi, [ebp - 0xe3a]
call fcn.0040f175
push str.DisplayVersion
push dword [ebp - 4]
mov eax, edi
lea esi, [ebp - 0xc30]
call fcn.0040f175
add esp, 0x18
cmp word [ebp - 0x1044], bx
jne 0x406616
lea eax, [ebp - 0x1844]
push eax
mov eax, edi
lea edi, [ebp - 0x1044]
call fcn.00404c75
pop ecx
mov edi, 0x104
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
call fcn.0040f4a4
cmp word [ebp - 0xe3a], 0x22
pop ecx
pop ecx
jne 0x40668a
push 0x208
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0xe38]
push eax
mov eax, edi
lea edi, [ebp - 0x218]
call fcn.00404c75
mov eax, edi
push 0x22
push eax
call sub.msvcrt.dll_wcschr
add esp, 0x18
cmp eax, ebx
je 0x406672
mov word [eax], bx
lea eax, [ebp - 0x218]
push eax
mov eax, 0x104
lea edi, [ebp - 0xe3a]
call fcn.00404c75
pop ecx
lea eax, [ebp - 0xe3a]
push 0x2c
push eax
call sub.msvcrt.dll_wcsrchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4066bf
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x4066bf
push 0x2e
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x4066bf
mov word [esi], bx
cmp dword [ebp + 0xc], ebx
mov eax, str.HKEY_CURRENT_USER
jne 0x4066ce
mov eax, str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x1844]
push ecx
push eax
push str._sSoftwareMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0xa26]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 0x14
lea edx, [ebp - 0x1044]
push edx
call dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x1844]
push eax
push dword [ebp - 0xc]
mov eax, 0x3ff
push dword [ebp - 8]
call fcn.0040f215
add esp, 0xc
test eax, eax
je 0x406556
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 8