Function at 0x140082230
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.1400eb380
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]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140082280
xor r15d, r15d
test rax, rax
je 0x1400822a6
cmp word [rbp + rax*2 + 0x3be], 0x5c
jne 0x1400822a6
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]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400822d0
test rax, rax
je 0x1400822f3
cmp word [rbp + rax*2 + 0x103be], 0x5c
jne 0x1400822f3
mov word [rbp + rax*2 + 0x103be], r15w
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140082336
test al, 0x10
je 0x140082336
lea rcx, [rbp + 0x3c0]
sub rcx, 2
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x140082314
movsd xmm0, qword [str..]
movzx eax, word [0x14011a568]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rbp + 0x103c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140082382
test al, 0x10
je 0x140082382
lea rcx, [rbp + 0x103c0]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x140082360
movsd xmm0, qword [str..]
movzx eax, word [0x14011a568]
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 0x1400823bd
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.1400cba50
mov edx, 0x5c
lea rcx, [rbp + 0x103c0]
mov r12, rax
call fcn.1400cba50
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.1400de184
xor eax, eax
mov word [rbp + 0x3b6], ax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fc08]
sub eax, dword [0x140137224]
cmp eax, dword [rcx + 0x118]
jbe 0x140082496
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 0x14008248a
mov edx, 1
lea ecx, [rdx - 2]
call fcn.140001940
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140137224], eax
test byte [rsp + 0x60], 0x10
jne 0x14008256c
lea rcx, [rbp - 0x74]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400824b0
cmp rax, r13
jbe 0x1400824ca
mov dword [rdi], reloc.WSOCK32.dll_WSAGetLastError
jmp 0x14008256a
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 0x1400824e0
lea r8, [r15 + 2]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x74]
call fcn.1400825c0
cmp byte [rbp + 0x20408], 0
lea rdx, [rbp + 0x103c0]
lea rcx, [rbp + 0x3c0]
je 0x140082551
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14008256c
test r14b, r14b
je 0x140082562
lea rcx, [rbp + 0x103c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140082562
lea rdx, [rbp + 0x103c0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14008255e
mov r8d, r14d
xor r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14008256c
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 0x140082443
mov r13, qword [rsp + 0x20500]
mov rcx, rsi
mov r12, qword [rsp + 0x204f8]
mov rdi, qword [rsp + 0x204f0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
add rsp, 0x204c0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret