Function at 0x467500
Capabilities:
Access peb ldr_data
Delete file
Extract resource via kernel32 functions
Get common file path
Get process heap flags
Get process heap force flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov ebx, eax
sub esp, 0x18
lea ecx, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
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_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
je 0x467b43
mov dword [esp + 0x14], ebx
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
lea eax, [ebp - 0x20]
sub esp, 0x18
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 3
call sub.msi.dll_MsiOpenDatabaseW
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xa9a
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
test esi, esi
jle 0x467d30
mov ebx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea esi, [esi]
nop
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
lea esi, [eax - 1]
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [ebx]
mov dword [ebp - 0x2c], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [ebp - 0x2c]
mov edi, eax
mov eax, dword [ebp - 0x30]
sub esp, 0x1c
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x59c100
mov dword [esp], eax
call sub.msi.dll_MsiDatabaseImportA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xaa4
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x550244
add ebx, 0xc
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebx - 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
cmp ebx, dword [ebp - 0x34]
jne 0x467610
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 5
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msi.dll_MsiGetSummaryInformationA
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0xa32
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 7
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xa35
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 9
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xa38
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 3
mov dword [esp + 4], 0xe
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xa3b
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 3
mov dword [esp + 4], 0xf
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xa3e
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 0x5500db
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xa41
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoPersist
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0xa45
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msi.dll_MsiCloseHandle
mov eax, dword [0x58b704]
mov ebx, dword [ebp - 0x20]
sub esp, 4
test eax, eax
je 0x467b50
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov dword [esp], 0x466140
call sub.msi.dll_MsiSetExternalUIRecord
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 8], str.CREATE_TABLE__Binary____Name__CHAR_72__NOT_NULL___Data__OBJECT_NOT_NULL_PRIMARY_KEY__Name__
mov dword [esp + 4], 0
call fcn.00467470
mov dword [esp + 4], 0xa81
mov dword [esp], str..._wine_dlls_msi_tests_install.c
mov esi, eax
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.failed_to_create_Binary_table:__u_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], 1
call sub.msi.dll_MsiCreateRecord
mov esi, eax
mov eax, dword [0x58b704]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msi.dll_MsiRecordSetStreamA
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xa85
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov eax, dword [0x58b704]
mov dword [esp + 0xc], edi
mov dword [esp + 4], str.failed_to_add__s_to_stream:__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], ebx
mov dword [esp + 8], str.INSERT_INTO__Binary____Name____Data___VALUES__custom.dll____
mov dword [esp + 4], esi
call fcn.00467470
mov dword [esp + 4], 0xa88
mov dword [esp], str..._wine_dlls_msi_tests_install.c
mov ebx, eax
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.failed_to_insert_into_Binary_table:__u_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], esi
call sub.msi.dll_MsiCloseHandle
mov eax, dword [ebp - 0x20]
sub esp, 4
mov dword [esp], eax
call sub.msi.dll_MsiDatabaseCommit
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0xaad
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x550244
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msi.dll_MsiCloseHandle
mov edx, dword [ebp - 0x38]
sub esp, 4
mov dword [esp + 8], edx
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]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x58b600
mov dword [esp + 8], 0
mov dword [esp + 4], 0x550547
mov dword [esp], 0x54fedb
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x58b600
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov edi, eax
mov dword [esp + 4], 0xa55
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], 0x58b600
mov dword [esp + 4], str.file_creation_failed__at__s__error__d_n
mov dword [esp + 0xc], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], str.TESTDLL
mov dword [esp + 4], 0x550547
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_FindResourceA]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xa58
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 4], str.couldnt_find_resource_n
setne al
mov dword [esp], eax
call fcn.0052b0e0
mov edx, dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x34], edx
call edx
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, dword [ebp - 0x34]
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], edx
mov dword [esp], 0
call edx
mov ecx, dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 4
mov dword [ebp - 0x34], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 4], 0xa5b
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov edx, dword [ebp - 0x3c]
mov dword [esp], 0
call edx
mov ecx, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call ecx
sub esp, 8
cmp dword [ebp - 0x1c], eax
sete al
mov dword [esp + 4], str.couldnt_write_resource_n
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x58b704], 0x58b600
sub esp, 4
jmp 0x4679a8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x4676f6