Function at 0x140056d80
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1240]
mov eax, 0x1340
call fcn.1400ad480
sub rsp, rax
movzx r13d, r9b
movzx r14d, r8b
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r15d, 0x104
lea r8, [rsp + 0x70]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140056dd5
xor r12d, r12d
test rax, rax
je 0x140056df5
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x140056df5
mov word [rsp + rax*2 + 0x6e], r12w
lea r9, [rsp + 0x30]
mov edx, r15d
lea r8, [rbp + 0x180]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x180]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140056e20
test rax, rax
je 0x140056e43
cmp word [rbp + rax*2 + 0x17e], 0x5c
jne 0x140056e43
mov word [rbp + rax*2 + 0x17e], r12w
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140056e82
test al, 0x10
je 0x140056e82
lea rcx, [rsp + 0x70]
sub rcx, 2
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140056e60
movsd xmm0, qword [str..]
movzx eax, word [0x1400d7ff0]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140056ec5
test al, 0x10
je 0x140056ec5
lea rcx, [rbp + 0x180]
sub rcx, 2
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140056ea3
movsd xmm0, qword [str..]
movzx eax, word [0x1400d7ff0]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140056ef6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x1290]
mov dword [rcx], eax
xor eax, eax
jmp 0x1400570cc
lea rax, [rbp + 0xe20]
mov qword [rsp + 0x1370], rdi
mov rdi, qword [rbp + 0x1290]
lea r9, [rbp + 0x1030]
lea r8, [rbp + 0xa00]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xc10]
lea rcx, [rsp + 0x70]
mov dword [rdi], r12d
call fcn.1400a0f90
lea rax, [rbp + 0xa00]
mov edx, 0x105
lea r9, [rbp + 0xc10]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x7f0]
call fcn.140078a50
movsxd rcx, eax
lea r12, [rbp + 0x7f0]
sub r15, rcx
xor ebx, ebx
lea r12, [r12 + rcx*2]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400ebaa8]
sub eax, dword [0x1400f4f3c]
cmp eax, dword [rcx + 0x110]
jbe 0x140056fc4
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140056fb8
mov edx, 1
or ecx, 0xffffffff
call fcn.140001800
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400f4f3c], eax
test byte [rbp + 0x390], 0x10
jne 0x1400570a1
lea rcx, [rbp + 0x3bc]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140056fe0
cmp rax, r15
jbe 0x140056ffa
mov dword [rdi], WSAStartup
jmp 0x14005709f
lea rcx, [rbp + 0x3bc]
mov rdx, r12
sub rdx, rcx
lea rax, [rbp + 0x3bc]
nop
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140057010
lea r8, [rbp + 0x5e0]
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x3bc]
call fcn.1400570f0
lea rdx, [rbp + 0x5e0]
lea rcx, [rbp + 0x7f0]
test r13b, r13b
je 0x140057083
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400570a1
test r14b, r14b
je 0x140057097
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140057097
lea rdx, [rbp + 0x5e0]
lea rcx, [rbp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140057093
xor r8d, r8d
test r14b, r14b
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400570a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
inc ebx
lea rdx, [rbp + 0x390]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140056f71
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x1370]
mov eax, ebx
lea r11, [rsp + 0x1340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret