Function at 0x401b90
Capabilities:
Get common file path

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 0x401bb7
mov edx, dword [ebx + 4]
cmp word [edx], 0x2d
je 0x401be0
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 sym._wine_dbg_printf.constprop.0
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 0x401c48
cmp dx, 0x69
jne 0x401c10
cmp eax, 3
je 0x401bb7
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x1c]
call dbg.open_database
test eax, eax
je 0x401c70
mov ebx, 1
jmp 0x401bc8
test byte [0x403000], 4
je 0x401bb7
mov dword [esp + 0xc], str.unknown_option_n
mov dword [esp + 8], global___func__
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401bb7
cmp eax, 4
jle 0x401bb7
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
call dbg.add_stream
mov ebx, eax
jmp 0x401bc8
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [esp], 0
call edi
lea edx, [eax + 1]
sub esp, 8
lea eax, [edx + edx]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ebp - 0x1c]
test esi, esi
mov dword [ebp - 0x2c], eax
je 0x401d9f
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 0x401cda
jmp 0x401d20
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
je 0x401d20
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._MsiDatabaseImportW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401cd0
test byte [0x403000], 2
jne 0x401d67
mov ebx, 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._MsiCloseHandle_4
sub esp, 4
jmp 0x401bc8
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [esp], eax
call sym._MsiDatabaseCommit_4
sub esp, 4
test eax, eax
je 0x401d04
test byte [0x403000], 2
je 0x401cff
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401cff
mov eax, dword [edi]
call sym._wine_dbgstr_wn.constprop.0
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401cff
mov dword [esp], eax
call sym._MsiCloseHandle_4
push eax
jmp 0x401c04