Function at 0x140064770
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 byte [rsp + 0x20], r9b
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x203c0]
mov eax, 0x204c0
call fcn.1400c0680
sub rsp, rax
movzx r14d, r8b
mov rbx, rdx
lea r8, [rbp + 0x3c0]
mov edx, 0x8000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x3c0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400647c0
xor r15d, r15d
test rax, rax
je 0x1400647e6
cmp word [rbp + rax*2 + 0x3be], 0x5c
jne 0x1400647e6
mov word [rbp + rax*2 + 0x3be], r15w
xor r9d, r9d
lea r8, [rbp + 0x103c0]
mov edx, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x103c0]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140064810
test rax, rax
je 0x140064833
cmp word [rbp + rax*2 + 0x103be], 0x5c
jne 0x140064833
mov word [rbp + rax*2 + 0x103be], r15w
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064876
test al, 0x10
je 0x140064876
lea rcx, [rbp + 0x3c0]
sub rcx, 2
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x140064854
movsd xmm0, qword [0x1400ec600]
movzx eax, word [0x1400ec608]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rbp + 0x103c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400648c2
test al, 0x10
je 0x1400648c2
lea rcx, [rbp + 0x103c0]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x1400648a0
movsd xmm0, qword [0x1400ec600]
movzx eax, word [0x1400ec608]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400648fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x20410]
mov dword [rcx], eax
xor eax, eax
add rsp, 0x204c0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x204f0], rdi
lea rcx, [rbp + 0x3c0]
mov rdi, qword [rbp + 0x20410]
mov edx, 0x5c
mov qword [rsp + 0x204f8], r12
mov qword [rsp + 0x20500], r13
mov dword [rdi], r15d
call fcn.1400a9bfc
mov edx, 0x5c
lea rcx, [rbp + 0x103c0]
mov r12, rax
call fcn.1400a9bfc
mov r15, rax
lea rcx, [r12 + 2]
lea rax, [rbp + 0x3c0]
mov r13d, 0x7fff
sub rcx, rax
mov r8d, 0x103
sar rcx, 1
sub r13, rcx
lea rdx, [r15 + 2]
lea rcx, [rbp + 0x1b0]
call fcn.1400b44b4
xor eax, eax
mov word [rbp + 0x3b6], ax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
sub eax, dword [0x140108e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x1400649d6
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400649ca
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140108e7c], eax
test byte [rsp + 0x60], 0x10
jne 0x140064aaf
lea rcx, [rbp - 0x74]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400649f0
cmp rax, r13
jbe 0x140064a0a
mov dword [rdi], WSAStartup
jmp 0x140064aad
lea rcx, [rbp - 0x74]
lea rdx, [r12 + 2]
sub rdx, rcx
lea rax, [rbp - 0x74]
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140064a20
lea r8, [r15 + 2]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x74]
call fcn.140064b00
cmp byte [rbp + 0x20408], 0
lea rdx, [rbp + 0x103c0]
lea rcx, [rbp + 0x3c0]
je 0x140064a91
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140064aaf
test r14b, r14b
je 0x140064aa5
lea rcx, [rbp + 0x103c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140064aa5
lea rdx, [rbp + 0x103c0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140064aa1
xor r8d, r8d
test r14b, r14b
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140064aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
inc ebx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140064983
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, qword [rsp + 0x20500]
mov eax, ebx
mov r12, qword [rsp + 0x204f8]
mov rdi, qword [rsp + 0x204f0]
add rsp, 0x204c0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret