Function at 0x50ca10
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x6c
mov dword [ebp - 0x44], 0
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xc1086
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xc0
mov dword [ebp - 0x2c], 0x46000000
mov dword [ebp - 0x28], 0xc1082
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xc0
mov dword [ebp - 0x1c], 0x46000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [ebp - 0x50], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov ecx, eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
lea eax, [ebp - 0x44]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1012
mov dword [esp], ebx
call sub.ole32.dll_StgCreateDocfile
sub esp, 0x10
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 4], 0x2c8
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.failed_to_create_storage_0x_08x_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x50cd6f
mov edx, dword [eax]
lea ecx, [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x3c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2cd
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.failed_to_set_storage_type_0x_08x_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x44]
mov ecx, 7
mov edx, 0x586c60
call fcn.0050c7c0
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1012
mov dword [esp + 4], str.targetToupgraded
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0x2d2
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.failed_to_create_substorage_0x_08x_n
lea ebx, [ebp - 0x28]
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x2d5
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.failed_to_set_storage_type_0x_08x_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x40]
mov ecx, 4
mov edx, 0x5869c0
call fcn.0050c7c0
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1012
mov dword [esp + 4], 0x586f40
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov esi, eax
mov dword [esp + 4], 0x2db
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.failed_to_create_substorage_0x_08x_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2de
mov dword [esp], str..._wine_dlls_msi_tests_patch.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.failed_to_set_storage_type_0x_08x_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x3c]
mov ecx, 0xd
mov edx, 0x586380
call fcn.0050c7c0
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x44]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret