Function at 0x401be0
Capabilities:
Get common file path
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
cmp eax, 2
jle 0x401c07
mov edx, dword [ebx + 4]
cmp word [edx], 0x2d
je 0x401c30
mov dword [esp], str.Usage:_winemsibuilder__OPTION___MSIFILE__..._nOptions:_n___i_package.msi_table1.idt__table2.idt_..._____Import_one_or_more_tables_into_the_database._n___a_package.msi_stream_file____________________Add_stream_to_storage_with_contents_of_file._n_nExisting_tables_or_streams_will_be_overwritten._If_package.msi_does_not_exist_a_new_file_nwill_be_created_with_an_empty_database._n
mov ebx, 1
call fcn.00401090
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
movzx edx, word [edx + 2]
cmp dx, 0x61
je 0x401c98
cmp dx, 0x69
jne 0x401c60
cmp eax, 3
je 0x401c07
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x1c]
call fcn.00401390
test eax, eax
je 0x401cc0
mov ebx, 1
jmp 0x401c18
test byte [section..data], 4
je 0x401c07
mov dword [esp + 0xc], str.unknown_option_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call section..text
jmp 0x401c07
cmp eax, 4
jle 0x401c07
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
call fcn.004014f0
mov ebx, eax
jmp 0x401c18
mov edi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
lea edx, [eax + 1]
sub esp, 8
lea esi, [edx + edx]
mov dword [ebp - 0x30], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
test esi, esi
mov dword [ebp - 0x2c], eax
je 0x401dfa
mov dword [esp + 4], esi
mov dword [esp], edx
call edi
mov eax, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
sub esp, 8
test eax, eax
jne 0x401d42
jmp 0x401db0
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
je 0x401db0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msi.dll_MsiDatabaseImportW
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401d38
test byte [section..data], 2
jne 0x401e0a
mov ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp], eax
call sub.msi.dll_MsiCloseHandle
sub esp, 4
jmp 0x401c18
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [esp], eax
call sub.msi.dll_MsiDatabaseCommit
sub esp, 4
test eax, eax
je 0x401d70
test byte [section..data], 2
je 0x401d6b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_commit_changes___u__n
mov dword [esp + 8], str.import_tables
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call section..text
jmp 0x401d6b
mov dword [esp], eax
call sub.msi.dll_MsiCloseHandle
sub esp, 4
jmp 0x401c54
mov eax, dword [edi]
call fcn.00401150
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_import_table__s___u__n
mov dword [esp + 8], str.import_tables
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call section..text
jmp 0x401d6b