Function at 0x417350
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 [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.00422ed0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x417643
dec eax
cmp eax, ebx
jle 0x4173cb
mov ecx, 0x5c
lea ecx, [ecx]
cmp word [ebp + eax*2 - 0x210], cx
je 0x4173c1
dec eax
cmp eax, ebx
jg 0x4173b0
jmp 0x4173cb
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x210]
push edx
mov eax, edx
push 0x43f14c
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x828]
push ecx
push 0x104
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.00421c8e
push eax
call fcn.00421475
call fcn.00421487
push ebx
lea edi, [eax + 2]
call fcn.00421c8e
push edx
push eax
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x418]
push 0x4404b4
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x20
lea ecx, [ebp - 0xc48]
push ecx
lea edx, [ebp - 0x418]
push edx
call ebx
push str....._
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x620]
push 0x43f14c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0xc48]
push edx
lea eax, [ebp - 0x620]
push eax
call ebx
push edi
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0xc38]
push str._s_d
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0xc38]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0xa30]
push str._s_d
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0xa30]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417630
mov eax, dword [ebp - 0xc3c]
inc eax
mov dword [ebp - 0xc3c], eax
cmp eax, 0xa
jge 0x417643
lea edx, [ebp - 0x828]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.00421c8e
push eax
call fcn.00421475
call fcn.00421487
push 0
lea edi, [eax + 2]
call fcn.00421c8e
push edx
push eax
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x418]
push 0x4404b4
push ecx
call esi
add esp, 0x20
lea edx, [ebp - 0xc48]
push edx
lea eax, [ebp - 0x418]
push eax
call ebx
push str....._
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x620]
push 0x43f14c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0xc48]
push eax
lea ecx, [ebp - 0x620]
push ecx
call ebx
push edi
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0xc38]
push str._s_d
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0xc38]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xa30]
push str._s_d
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417510
push 0
lea eax, [ebp - 0x210]
push eax
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.0041fa5e
mov esp, ebp
pop ebp
ret