Function at 0x46a170
Capabilities:
Create directory
Delete directory
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
call fcn.004665f0
test eax, eax
jne 0x46a510
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryA]
lea ebx, [ebp - 0x220]
mov dword [esp], 0x550026
call esi
sub esp, 8
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], 0x550951
mov dword [esp], 0x550951
call fcn.00466b70
mov dword [esp + 0x18], 0x550708
mov dword [esp + 0x14], 0x55072f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 8
mov dword [esp + 4], 0x556220
mov dword [esp], 0x54ffa1
call fcn.00467500
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msi.dll_MsiSetInternalUI
sub esp, 8
mov dword [esp + 4], 0x59c220
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strcpy]
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x46a22b
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x69736d5c
mov dword [edx + 4], 0x74736574
mov byte [edx + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
mov edx, ebx
sub esp, 8
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x46a27e
mov ecx, eax
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x78616d5c
mov dword [edx + 4], 0x73756d69
mov byte [edx + 8], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x228]
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], str.readonlyfile
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x54ffa1
call sub.msi.dll_MsiInstallProductA
sub esp, 8
cmp eax, 0x659
je 0x46a540
mov dword [esp + 4], 0xd87
mov dword [esp], str..._wine_dlls_msi_tests_install.c
mov dword [ebp - 0x22c], eax
call fcn.0052ae70
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], 0x550244
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xd88
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp], ebx
lea ebx, [ebp - 0x11c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
call edi
mov ecx, 0x41
mov edi, ebx
mov edx, eax
xor eax, eax
sub esp, 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
mov dword [esp], edx
mov dword [ebp - 0x22c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x22c]
sub esp, 0x14
mov dword [esp], edx
call esi
sub esp, 4
mov dword [esp + 4], 0x550951
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpA]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.Expected_file_to_be_overwritten_n
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xd89
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp + 4], 1
mov dword [esp], 0x550951
call fcn.00467020
mov dword [esp + 4], 0x5504b8
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xd8a
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp + 4], 0
mov dword [esp], 0x550026
call fcn.00467020
mov dword [esp + 4], 0x5504df
mov dword [esp], eax
call fcn.0052b0e0
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], 0x550951
call ebx
sub esp, 4
mov dword [esp], 0x550026
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
mov dword [esp], 0x54ffa1
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0xd6c
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp], 0x5506bc
call fcn.0052b1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0xd84
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp], 0x550738
call fcn.0052b1d0
jmp 0x46a4d2