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

Disassembly:
push 0xffffffffffffffff
push 0x1006c8d1
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f414]
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 0x1003d13d
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 0x1003d12c
mov edx, dword [0x100a41f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a41f4
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.100030d6
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 0x1003d0c2
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.100063d4
cmp eax, ebx
jne 0x1003d08a
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x150]
push edx
call fcn.1003423a
add esp, 0xc
test al, al
jne 0x1003d0db
cmp ebp, ebx
je 0x1003d095
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 0x1003d0b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x1c], 1
jmp 0x1003cfa0
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 0x1003d0ac
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1003d0e2
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.10006975
xor edi, edi
cmp ebp, ebx
je 0x1003d109
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 0x1003d12c
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 0x1003d13b
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.10050837
add esp, 0x344
ret