Function at 0x140019568
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14003e060]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rdi, rcx
lea rcx, [rbp + 0x192]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x190], bx
call fcn.140039a40
mov dword [rsp + 0x30], ebx
test rdi, rdi
je 0x14001988c
cmp qword [rdi + 8], rbx
je 0x14001988c
mov r14, qword [rdi + 0x48]
test r14, r14
je 0x14001988c
mov esi, dword [rdi + 0x18]
mov r13, qword [rdi + 0x38]
test esi, esi
js 0x140019609
mov rcx, qword [rdi + 0x40]
or dword [rdi + 0x18], 0xffffffff
test rcx, rcx
je 0x140019617
call fcn.140020454
test eax, eax
je 0x140019897
mov qword [rdi + 0x40], rbx
jmp 0x140019617
mov esi, dword [rdi + 0x1c]
cmp esi, 0xffffffff
jl 0x14001988c
inc esi
mov rcx, qword [rdi + 8]
lea r8, [rbp + 0x190]
mov edx, 0x501
call fcn.140016c78
test eax, eax
je 0x140019897
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400196d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140019897
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rdi + 0x1c]
mov dword [rsp + 0x30], eax
cmp esi, eax
je 0x14001975c
mov rcx, qword [rdi + 8]
lea r9, [rbp + 0x190]
mov r8d, esi
mov edx, 0x101
call fcn.14001703c
test eax, eax
je 0x140019897
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400196bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140019766
inc esi
mov eax, 0xd1b71759
mul esi
shr edx, 0xd
imul eax, edx, 0x2710
sub esi, eax
mov eax, dword [rsp + 0x30]
jmp 0x140019672
test byte [rsp + 0x40], 0x10
je 0x14001973b
lea r8, [rsp + 0x30]
lea rdx, [0x140009030]
lea rcx, [rsp + 0x6c]
call fcn.140028568
cmp eax, 1
jne 0x14001973b
mov eax, dword [rsp + 0x30]
cmp eax, dword [rdi + 0x1c]
je 0x14001973b
cmp eax, dword [rdi + 0x18]
je 0x14001973b
mov r9, qword [rdi + 8]
lea rax, [rsp + 0x6c]
lea r8, [0x140009020]
lea rcx, [rbp + 0x190]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140011a88
test eax, eax
js 0x140019753
lea rcx, [rbp + 0x190]
call fcn.140016300
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140019662
jmp 0x1400196d5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x32
jmp 0x140019891
mov eax, dword [rsp + 0x30]
cmp esi, eax
je 0x14001975c
mov rax, qword [r14 + 0x20]
mov rcx, qword [rax + 0x18]
mov dword [rcx + 0xc], esi
mov rax, qword [r14 + 0x20]
cmp qword [rax + 0x40], rbx
jne 0x14001978b
mov rcx, r14
call fcn.140021e84
test r13, r13
je 0x1400197e9
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x1400197e9
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400197e9
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x1400197e9
mov rax, qword [r14 + 0x20]
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400197e9
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x1400197e9
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x40]
mov rax, qword [r14 + 0x20]
mov r8, qword [rcx + 0x18]
mov rcx, qword [rax + 0x40]
mov rdx, qword [rcx + 0x18]
mov rax, qword [r8 + 0x20]
mov qword [rdx + 0x20], rax
mov rcx, r14
call fcn.140021f48
test eax, eax
je 0x140019897
mov rcx, qword [rdi + 0x40]
mov dword [rdi + 0x18], esi
test rcx, rcx
je 0x140019816
call fcn.140020454
test eax, eax
je 0x140019897
mov qword [rdi + 0x40], rbx
mov rcx, qword [r14 + 8]
call fcn.1400157e8
mov rsi, rax
test rax, rax
je 0x140019897
mov rcx, r14
call fcn.140020454
test eax, eax
je 0x140019897
lea rdx, [rbp + 0x190]
mov r8d, 8
mov rcx, rsi
mov qword [rdi + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140019867
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140019897
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call fcn.14001bc0c
test eax, eax
setne bl
mov eax, ebx
jmp 0x140019899
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140028130
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret