Function at 0x4016a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x218]
push ebx
sub esp, 0x25c
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], 0xff
mov dword [ebp - 0x240], 0
jmp 0x4017cc
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x234]
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 0x4017a9
lea eax, [ebp - 0x21c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowsInstaller
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x401769
cmp dword [ebp - 0x220], 4
je 0x401b30
mov eax, dword [ebp - 0x234]
lea ebx, [ebp - 0x228]
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
je 0x4018c8
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
add dword [ebp - 0x240], 1
mov dword [ebp - 0x230], 0xff
sub esp, 4
lea eax, [ebp - 0x230]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x401b20
lea eax, [ebp - 0x234]
mov dword [esp + 4], edi
lea ebx, [ebp - 0x220]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 4
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x14
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x234]
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 0x4016d8
cmp dword [ebp - 0x220], 4
jne 0x4016d8
cmp dword [ebp - 0x224], 1
jne 0x4016d8
jmp 0x4017a9
mov edx, dword [ebp - 0x228]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x244], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x248], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x234]
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
mov eax, dword [section..bss]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 1
mov dword [section..bss], eax
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [0x407004]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov edx, dword [section..bss]
mov dword [0x407004], eax
sub esp, 0x10
lea edx, [edx + edx*4]
lea ebx, [eax + edx*4 - 0x14]
mov eax, dword [ebp - 0x23c]
mov dword [ebx], eax
cmp word [ebp - 0x218], 0
je 0x401bd8
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4019a0
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x244]
call eax
mov dword [ebx + 4], eax
mov eax, dword [section..bss]
sub esp, 0xc
lea edx, [eax + eax*4]
mov eax, dword [0x407004]
lea ebx, [eax + edx*4 - 0x14]
xor eax, eax
mov ecx, dword [ebx + 4]
nop
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4019f0
mov edx, dword [ebp - 0x22c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x244]
call eax
mov dword [ebx + 8], eax
sub esp, 0xc
lea eax, [ebp - 0x22c]
mov ebx, dword [0x407004]
mov dword [esp + 0x14], eax
mov eax, dword [section..bss]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov eax, dword [eax - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x234]
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call esi
mov eax, dword [section..bss]
mov ecx, dword [ebp - 0x248]
sub esp, 0x18
lea edx, [eax + eax*4]
mov eax, dword [0x407004]
lea eax, [eax + edx*4 - 0x14]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
test byte [0x404000], 8
je 0x4017a9
mov eax, ecx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [0x407004]
mov esi, eax
mov eax, dword [section..bss]
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 [0x407004]
mov ebx, eax
mov eax, dword [section..bss]
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 [section..bss]
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4017a9
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x224], 1
jne 0x401769
mov eax, 0x73
mov edx, str.msiexec__x_s
jmp 0x401b54
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x401b50
sub edx, str.msiexec__x_s
sar edx, 1
cmp word [ebp - 0x218], 0
mov eax, edx
je 0x401b87
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401b78
sub eax, edi
sar eax, 1
add eax, edx
add eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x244], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x248], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.msiexec__x_s
mov dword [esp], eax
call dword [0x4082b4]
jmp 0x40192d
mov eax, 2
jmp 0x4019ae