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

Disassembly:
push 0xffffffffffffffff
push 0x451f86
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x4668f0]
xor eax, esp
mov dword [esp + 0x64c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [esp + 0x44], ax
mov ebp, 7
push ebx
mov eax, 0x45b3f8
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
call fcn.0042d9a0
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push 0x45b420
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x67c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
test eax, eax
je 0x403837
xor edx, edx
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
mov eax, 0x45b3f8
mov esi, edi
mov word [edi + 4], dx
call fcn.0042d9a0
jmp 0x4039ca
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x270]
push edx
push ebx
push eax
xor ebp, ebp
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4039a1
cmp eax, ebx
jne 0x403970
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x268]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403979
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.DisplayName
push ecx
mov dword [esp + 0x34], 0x200
call esi
test eax, eax
jne 0x403965
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.SystemComponent
push edx
call esi
test eax, eax
je 0x403965
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x5c]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403905
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.0042d9a0
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x48]
mov byte [esp + 0x670], 1
call fcn.0042d770
mov byte [esp + 0x668], bl
cmp dword [esp + 0x3c], 8
jb 0x403955
mov edx, dword [esp + 0x28]
push edx
call fcn.00434321
add esp, 4
push 2
push 0x45b4c0
lea eax, [esp + 0x48]
call fcn.0042d880
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x270]
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x403868
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea eax, [esp + 0x48]
mov ecx, edi
mov word [edi + 4], dx
call fcn.0042c6a0
cmp dword [esp + 0x58], 8
jb 0x4039de
mov eax, dword [esp + 0x44]
push eax
call fcn.00434321
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.0043432c
add esp, 0x65c
ret