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

Disassembly:
push 0xffffffffffffffff
push 0x10064eb1
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x100862c4]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100862c4]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x35c]
mov ecx, dword [esp + 0x360]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall]
lea edx, [esp + 0x18]
push edx
push 0x20019
xor ebx, ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x368], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1003926d
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebx
mov edi, edi
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x54]
push ecx
push edx
push eax
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x1003925c
mov edx, dword [0x1009a864]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009a864
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall]
lea ecx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x28]
push str._s_s
push eax
mov byte [esp + 0x364], 1
call fcn.10003753
add esp, 0x10
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x368], 2
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100391f2
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14c]
push edx
push str.DisplayName
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], 0x200
call fcn.100065c5
cmp eax, ebx
jne 0x100391ba
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x150]
push edx
call fcn.1003166c
add esp, 0xc
test al, al
jne 0x1003920b
cmp ebp, ebx
je 0x100391c5
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x354], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100391e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x1c], 1
jmp 0x100390d0
lea eax, [esi - 0x10]
mov byte [esp + 0x354], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100391dc
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10039212
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.10006b4b
xor edi, edi
cmp ebp, ebx
je 0x10039239
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x354], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003925c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003926b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.1004ada8
add esp, 0x344
ret