Function at 0x4013f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x248
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], 0xff
mov dword [ebp - 0x230], 0
jmp 0x40161a
lea eax, [ebp - 0x220]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4015f8
lea eax, [ebp - 0x218]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x210], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowsInstaller
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4014ab
cmp dword [ebp - 0x214], 4
je 0x401730
mov eax, dword [ebp - 0x228]
lea ebx, [ebp - 0x21c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.UninstallString
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x4015f8
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x234], eax
call eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov edi, eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.UninstallString
mov dword [esp], eax
call esi
sub esp, 0x18
mov eax, dword [0x404144]
inc eax
mov dword [0x404144], eax
lea ebx, [eax + eax*4]
mov eax, dword [0x4040b4]
shl ebx, 2
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
lea ebx, [eax + ebx - 0x14]
mov dword [0x4040b4], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx], eax
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 4], eax
mov eax, dword [0x404144]
lea edx, [eax + eax*4]
mov eax, dword [0x4040b4]
lea ebx, [eax + edx*4 - 0x14]
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
mov eax, dword [ebp - 0x234]
call eax
lea ecx, [ebp - 0x220]
mov dword [ebx + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call esi
mov eax, dword [0x404144]
sub esp, 0x18
lea edx, [eax + eax*4]
mov eax, dword [0x4040b4]
lea eax, [eax + edx*4 - 0x14]
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
test byte [0x40409c], 8
jne 0x401788
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp - 0x230]
mov dword [ebp - 0x224], 0xff
sub esp, 4
lea eax, [ebp - 0x224]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x401720
lea eax, [ebp - 0x228]
mov dword [esp + 0xc], 0x20019
lea edi, [ebp - 0x210]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20c]
lea ebx, [ebp - 0x214]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 4
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemComponent
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x401420
cmp dword [ebp - 0x214], 4
jne 0x401420
cmp dword [ebp - 0x218], 1
jne 0x401420
jmp 0x4015f8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x218], 1
jne 0x4014ab
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0x16]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x234], eax
call eax
mov dword [esp + 4], str.msiexec__x_s
mov edi, eax
lea eax, [ebp - 0x20c]
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [0x4072ac]
jmp 0x401531
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [0x4040b4]
mov esi, eax
mov eax, dword [0x404144]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov eax, dword [eax - 0xc]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [0x4040b4]
mov ebx, eax
mov eax, dword [0x404144]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax - 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov eax, dword [0x404144]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.allocated_entry__d:__s___s____s_n
mov dword [esp + 8], str.FetchFromRootKey
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4015f8