Function at 0x46a570
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, 0x15c
call fcn.004665f0
test eax, eax
jne 0x46a970
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryA]
lea ebx, [ebp - 0x11c]
mov dword [esp], 0x550026
call edi
sub esp, 8
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], 0x550409
mov dword [esp], 0x550409
call fcn.00466b70
mov dword [esp + 8], 0x550a05
mov dword [esp + 4], 0x7fffffff
mov dword [esp], 0x55042a
call fcn.00466770
mov dword [esp], 0x550409
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
call esi
sub esp, 4
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], 0x5561c0
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 0x46a659
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 edi
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 0x46a6ac
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 edx, eax
lea eax, [ebp - 0x130]
mov dword [esp], edx
mov dword [ebp - 0x13c], edx
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]
mov edx, dword [ebp - 0x13c]
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x14
mov dword [esp], edx
mov dword [ebp - 0x13c], eax
call eax
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x54ffa1
call sub.msi.dll_MsiInstallProductA
sub esp, 8
cmp eax, 0x659
je 0x46a9c3
mov dword [esp + 4], 0xdbb
mov dword [esp], str..._wine_dlls_msi_tests_install.c
mov dword [ebp - 0x140], eax
call fcn.0052ae70
mov eax, dword [ebp - 0x140]
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], ebx
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
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
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x46a87d
lea eax, [ebp - 0x130]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 8], 0xf
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x13c]
sub esp, 0x14
mov dword [esp], ebx
call eax
sub esp, 4
mov dword [esp + 4], 0xdc4
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
cmp dword [ebp - 0x12c], 0x6978616d
je 0x46a9a0
mov eax, 1
xor eax, 1
lea edi, [ebp - 0x12c]
mov dword [esp + 4], str.Expected_file_to_be_overwritten__got__s_n
mov dword [esp], eax
mov dword [esp + 8], edi
call fcn.0052b0e0
mov dword [esp + 4], 0xdc5
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], 0xdc6
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
call fcn.00467330
mov dword [esp], 0x550951
call esi
sub esp, 4
mov dword [esp], 0x550026
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
mov dword [esp], 0x54ffa1
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0xd9d
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
cmp word [ebp - 0x128], 0x756d
jne 0x46a8a1
xor eax, eax
cmp byte [ebp - 0x126], 0x73
jne 0x46a8a1
jmp 0x46a8a6
mov dword [esp + 4], 0xdb8
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp], 0x550738
call fcn.0052b1d0
jmp 0x46a933