Function at 0x421b20
Capabilities:
Access peb ldr_data
Delete file
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x30], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x53fb0b
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x34], esi
call esi
mov ebx, eax
sub esp, 0x18
lea edx, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
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 0x421ebf
mov edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x53fb0b
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
lea eax, [ebp - 0x20]
mov esi, 0x214
sub esp, 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov dword [esp], edi
call sub.msi.dll_MsiOpenDatabaseW
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x139
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x541298
mov ebx, 0x5425e0
mov dword [esp], eax
call fcn.0052b0e0
mov eax, 0x541284
mov edx, str.Component_tComponentId_tDirectory__tAttributes_tCondition_tKeyPath_ns72_tS38_ts72_ti2_tS255_tS72_nComponent_tComponent_nFive_t8CC92E9D_14B2_4CA4_B2AA_B11D02078087_tNEWDIR_t2_t_tfive.txt_nFour_tFD37B4EA_7209_45C0_8917_535F35A2F080_tCABOUTDIR_t2_t_tfour.txt_nOne_t783B242E_E185_4A56_AF86_C09815EC053C_tMSITESTDIR_t2_t_tone.txt_nThree_t010B6ADD_B27D_4EDD_9B3D_34C4F7D61684_tCHANGEDDIR_t2_t_tthree.txt_nTwo_tBF03D1A6_20DA_4A65_82F3_6CAC995915CE_tFIRSTDIR_t2_t_ttwo.txt_ndangler_t6091DF25_EF96_45F1_B8E9_A9B1420C7A3C_tTARGETDIR_t4_t_tregdata_ncomponent_t_tMSITESTDIR_t0_t1_tfile_n
jmp 0x421c38
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x2c], edx
sub esi, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edx, dword [ebp - 0x2c]
sub esp, 0x1c
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], edx
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], 0x58b3c0
mov dword [esp], eax
call sub.msi.dll_MsiDatabaseImportA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x143
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x541298
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, 0x54264c
jne 0x421c30
lea eax, [ebp - 0x1c]
mov edi, 7
mov esi, 0x1e
mov dword [esp + 8], 6
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msi.dll_MsiGetSummaryInformationA
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x119
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x541298
mov ebx, 0x5424f4
mov dword [esp], eax
call fcn.0052b0e0
xor ecx, ecx
xor edx, edx
mov eax, 0x541292
jmp 0x421da2
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add ebx, 0x14
mov ecx, dword [ebx - 0xc]
mov esi, dword [ebx - 0x10]
mov edi, dword [ebx - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoSetPropertyA
sub esp, 0x18
mov esi, eax
mov dword [esp + 4], 0x122
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x541298
mov dword [esp], eax
call fcn.0052b0e0
mov eax, 0x542558
cmp eax, ebx
jne 0x421d90
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msi.dll_MsiSummaryInfoPersist
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x127
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x541298
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
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], 0x14b
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x541298
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msi.dll_MsiCloseHandle
mov ecx, dword [ebp - 0x38]
sub esp, 4
mov dword [esp + 8], ecx
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
mov edi, dword [ebp - 0x30]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0x58b3c0
mov dword [esp + 4], 1
mov dword [esp], 0
call eax
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0x15a
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.MultiByteToWideChar_returned_error__d_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0052b0e0
test ebx, ebx
je 0x421f68
cmp word [edi], 0
je 0x421f40
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x421f34
mov dword [ebp - 0x30], eax
xor eax, eax
mov edx, 0x5c
mov ecx, dword [ebp - 0x30]
jmp 0x421f57
movzx edx, word [eax + 0x5412e0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x421f50
mov ebx, 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret