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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xeb8
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push ebx
push esi
push edi
push 0x4c
push 0
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor bl, bl
add esp, 0xc
mov dword [ebp - 0x28], reloc.OLEAUT32.dll_SysReAllocString
cmp byte [ebp + 8], bl
mov eax, 0x20119
mov ecx, 0x20219
mov dword [ebp - 0x24], SysReAllocString
cmovne ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xc]
push edx
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push dword [ebp + eax*4 - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004307
xor edi, edi
push 0x104
lea eax, [ebp - 0xcac]
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100042d7
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0xcac]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100042d4
lea eax, [ebp + 8]
mov dword [ebp - 0x7c], 0x50
push eax
lea eax, [ebp - 0x89c]
mov dword [ebp + 8], 0x208
push eax
xor ebx, ebx
push ebx
push ebx
push str.DisplayName
push dword [ebp - 8]
mov dword [ebp - 0x78], ebx
call esi
test eax, eax
jne 0x10004164
or dword [ebp - 0x78], 1
lea eax, [ebp - 0x89c]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0xaa4]
push eax
push ebx
push ebx
push str.DisplayVersion
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10004193
or dword [ebp - 0x78], 2
lea eax, [ebp - 0xaa4]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0xeb4]
push eax
push ebx
push ebx
push str.Publisher
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100041c2
or dword [ebp - 0x78], 4
lea eax, [ebp - 0xeb4]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0x694]
push eax
push ebx
push ebx
push str.InstallLocation
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000420e
lea eax, [ebp - 0x694]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x694]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
or dword [ebp - 0x78], 0x400
lea eax, [ebp - 0x694]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0x48c]
push eax
push ebx
push ebx
push str.DisplayIcon
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000425a
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
or dword [ebp - 0x78], 0x20000
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push str.UninstallString
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100042b3
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or dword [ebp - 0x78], 0x8000
lea eax, [ebp - 0x284]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
call dword [ebp - 0x20]
pop ecx
pop ecx
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x100042e3
mov eax, dword [ebp - 0x18]
inc edi
cmp eax, 0x103
jne 0x100040e7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x10004303
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 2
jb 0x100040c7
mov al, bl
jmp 0x10004309
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret