Function at 0x14001bbd0
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x14001be8b
cmp word [r8], 0
je 0x14001be8b
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001be8b
mov qword [rsp + 0x6b0], rbx
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x6b8], r14
xor edx, edx
mov r8d, 0x250
xor r14b, r14b
call fcn.14014e180
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.14014e180
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rsi
mov edx, 0x104
call fcn.14003c5c8
mov r9, 0xffffffffffffffff
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003e54c
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001be39
cmp word [rbp + 0x390], 0
jne 0x14001bcd6
xor r9d, r9d
lea rax, [rbp + 0x390]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14001be7e
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x390]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003c5c8
mov r9, 0xffffffffffffffff
lea r8, [0x1401b7674]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003e54c
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x16c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003e54c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001be18
mov r14b, 1
test rdi, rdi
je 0x14001bd95
lea rdx, [rbp + 0x16c]
mov rcx, rdi
call fcn.140030c6c
test rax, rax
jne 0x14001bd95
cmp word [rdi], ax
je 0x14001bd7a
lea r9, [rax - 1]
mov edx, 0x80
lea r8, [0x1401b93ac]
mov rcx, rdi
call fcn.14003e54c
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x16c]
mov edx, 0x80
mov rcx, rdi
call fcn.14003e54c
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rsi
mov edx, 0x104
call fcn.14003c5c8
mov r9, 0xffffffffffffffff
lea r8, [0x1401b7674]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003e54c
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x16c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14003e54c
mov edx, 0x80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001be18
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rdx, [rbp + 0x140]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001bca6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea rdi, [rbp + 0x390]
mov ecx, 0x82
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x30]
mov ecx, 0x82
rep stosd dword [rdi], eax
movzx eax, r14b
mov rbx, qword [rsp + 0x6b0]
mov r14, qword [rsp + 0x6b8]
lea r11, [rsp + 0x6a0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14001be59
xor al, al
jmp 0x14001be69