Function at 0x4013d0
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 0x4014fb
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 0x4014d9
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 0x401499
cmp dword [ebp - 0x220], 4
je 0x401860
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 0x4015f8
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp - 0x240]
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 0x401850
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 0x401408
cmp dword [ebp - 0x220], 4
jne 0x401408
cmp dword [ebp - 0x224], 1
jne 0x401408
jmp 0x4014d9
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 [0x404144]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
inc eax
mov dword [0x404144], eax
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [0x4040b4]
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 [0x404144]
mov dword [0x4040b4], 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 0x401908
mov eax, edi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4016d0
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 [0x404144]
sub esp, 0xc
lea edx, [eax + eax*4]
mov eax, dword [0x4040b4]
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 0x401720
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 [0x4040b4]
mov dword [esp + 0x14], eax
mov eax, dword [0x404144]
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 [0x404144]
mov ecx, dword [ebp - 0x248]
sub esp, 0x18
lea edx, [eax + eax*4]
mov eax, dword [0x4040b4]
lea eax, [eax + edx*4 - 0x14]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
test byte [0x40409c], 8
je 0x4014d9
mov eax, ecx
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 0x4014d9
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x224], 1
jne 0x401499
mov eax, 0x73
mov edx, str.msiexec__x_s
jmp 0x401884
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x401880
sub edx, str.msiexec__x_s
sar edx, 1
cmp word [ebp - 0x218], 0
mov eax, edx
je 0x4018b7
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4018a8
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 [0x4072b4]
jmp 0x40165d
mov eax, 2
jmp 0x4016de