Function at 0x563bdc
Capabilities:
Check if file exists
Copy file
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x563be4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406fb0
xor eax, eax
push ebp
push 0x563f48
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x1c], 0
jne 0x563c1f
cmp dword [ebx + 0x18], 0xa00000
jb 0x563d84
jmp 0x563c25
jl 0x563d84
push dword [ebx + 0xc]
push 0x563f64
lea edx, [ebp - 0x24]
movzx eax, byte [ebx + 0x20]
call fcn.0041d5f4
push dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407d64
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041dd58
test al, al
je 0x563cb0
mov eax, dword [ebp - 8]
call fcn.00407a78
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x563cb0
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x563caa
test ah, 4
je 0x563caa
test al, 0x10
je 0x563caa
mov eax, dword [ebp - 8]
call fcn.00407a78
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x563cb0
push esi
call sub.kernel32.dll_SetLastError
movzx esi, byte [ebx + 0x20]
dec esi
cmp esi, 1
jl 0x563d35
push dword [ebx + 0xc]
push 0x563f64
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0041d5f4
push dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407d64
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041dd58
test al, al
je 0x563d30
push dword [ebx + 0xc]
push 0x563f64
lea edx, [ebp - 0x30]
lea eax, [esi + 1]
call fcn.0041d5f4
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00407d64
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.00407a78
push eax
mov eax, dword [ebp - 8]
call fcn.00407a78
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
dec esi
test esi, esi
jne 0x563cba
push 0
lea eax, [ebp - 0x38]
mov ecx, 0x563f7c
mov edx, dword [ebx + 0xc]
call fcn.00407cdc
mov eax, dword [ebp - 0x38]
call fcn.00407a78
push eax
mov eax, dword [ebx + 0xc]
call fcn.00407a78
push eax
call sub.kernel32.dll_CopyFileW
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.00443010
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.00442fac
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x563d90
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
jge 0x563e09
mov edx, dword [ebp - 4]
mov eax, 0x563f94
call fcn.00407fb8
test eax, eax
jle 0x563dcf
movzx eax, byte [0x563f98]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x563fa8
mov edx, 0x563f94
mov eax, dword [ebp - 4]
call fcn.00423e50
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.004072d4
mov edx, dword [ebp - 4]
mov eax, 0x563fb8
call fcn.00407fb8
test eax, eax
jle 0x563e09
movzx eax, byte [0x563f98]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x563fa8
mov edx, 0x563fb8
mov eax, dword [ebp - 4]
call fcn.00423e50
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.004072d4
call fcn.0041fcd8
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov edx, dword [0x5beb00]
mov eax, 0x563fc8
call fcn.00420a88
push dword [ebp - 0x14]
push 0x564008
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0041d770
push dword [ebp - 0x44]
push 0x564018
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407d64
call fcn.00427b74
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004d0520
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
call fcn.00427b74
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d0520
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
call fcn.00427b74
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, 0x56402c
call fcn.004d0520
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
cdq
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x563f4f
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00406f2c
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406f2c
lea eax, [ebp - 0x14]
call fcn.00406ecc
lea eax, [ebp - 0x10]
mov edx, dword [0x416e24]
call fcn.00408f04
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f2c
ret