Function at 0x454c8f
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 0x230
mov eax, 0x5d3194
call fcn.0056df1d
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], eax
test edi, edi
je 0x454f5e
test esi, esi
je 0x454f5e
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x454cdd
and dword [ebx], 0
xor eax, eax
inc eax
jmp 0x454f66
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov dword [ebx], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push esi
sbb ebx, ebx
imul ecx, dword [ebp + 0xc], 0x989680
and ebx, 0xf4240
add ebx, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x186a0
add ebx, eax
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x454d2d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0x2710
add ebx, eax
mov ecx, esi
call fcn.004536a0
add ebx, eax
mov eax, dword [ebp - 0x238]
mov eax, dword [eax]
cmp eax, 5
jne 0x454d79
test bl, 3
je 0x454d84
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push ecx
push esi
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
push 4
pop edx
push 0x78
pop ecx
call fcn.004faa90
mov eax, dword [ebp - 0x238]
add esp, 0x14
mov eax, dword [eax]
jmp 0x454d7f
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x454dd9
xor ebx, ebx
mov eax, dword [0x6351b8]
inc ebx
mov ecx, eax
dec eax
mov dword [0x6351b8], eax
test ecx, ecx
jle 0x454f64
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x454f64
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 5
pop edx
push 0x78
pop ecx
call fcn.004faa90
add esp, 0x14
push 0x32
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp ebx, 2
jb 0x454d86
jmp 0x454f64
cmp eax, 0x20
jne 0x454e74
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005713c0
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0058f3c9
push str..old
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.005a1b75
add esp, 0x24
lea eax, [ebp - 0x21c]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x454e65
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x454f64
push ecx
push esi
push edi
push eax
call ebx
push eax
push 6
jmp 0x454f50
push ecx
push esi
push edi
push 0
call ebx
push eax
push 7
jmp 0x454f50
cmp eax, 3
jne 0x454f64
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x454f64
and dword [ebp - 0x234], 0
xor ecx, ecx
and dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
lea ecx, [ebp - 0x234]
push eax
mov dword [ebp - 0x220], 7
call fcn.004089a4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004428e0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x454f20
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x454f17
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x23c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0x224], 0
xor eax, eax
push eax
push esi
push edi
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x454f64
push ecx
push esi
push edi
push eax
call ebx
push eax
push 8
pop edx
push 0x78
pop ecx
call fcn.004faa90
add esp, 0x14
jmp 0x454f64
mov dword [ebx], 0x57
xor eax, eax
call fcn.0056decc
ret