Function at 0x1401a1d80
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x590], rax
xor ebx, ebx
mov r15d, edx
mov r14, rcx
mov r8, rcx
mov edx, 0x104
lea rcx, [rbp + 0x380]
mov edi, ebx
lea r9, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rdx, [rbp + 0x380]
lea r13d, [rbx + 0x5c]
cmp bx, word [rbp + 0x380]
je 0x1401a1e47
mov ecx, ebx
inc ecx
cmp ecx, 0x104
je 0x1401a1e47
cmp bx, word [rdx]
lea rax, [rdx + 2]
cmove rax, rdx
mov rdx, rax
cmp bx, word [rax]
jne 0x1401a1df1
add rax, 0xfffffffffffffffe
lea r9, [rbp + 0x380]
cmp rdx, r9
lea r8, [rbp + 0x380]
cmova r8, rax
movzx edx, word [r8]
cmp r13w, dx
je 0x1401a1e47
lea eax, [rcx + 2]
cmp eax, 0x104
ja 0x1401a1e47
cmp bx, dx
je 0x1401a1e44
add r8, 2
mov dword [r8], r13d
mov r9, 0xffffffffffffffff
lea r8, [0x140450db0]
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov r12d, 1
cmp rax, 0xffffffffffffffff
je 0x1401a1fc8
nop dword [rax]
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x170]
mov r8, r14
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rdx, [rbp + 0x170]
cmp bx, word [rbp + 0x170]
je 0x1401a1f14
mov eax, ebx
nop
inc eax
cmp eax, 0x104
je 0x1401a1f14
cmp bx, word [rdx]
lea rcx, [rdx + 2]
cmove rcx, rdx
mov rdx, rcx
cmp bx, word [rcx]
jne 0x1401a1ec0
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0x170]
cmp rdx, r8
jbe 0x1401a1ef3
lea rcx, [rdx - 2]
movzx edx, word [rcx]
cmp r13w, dx
je 0x1401a1f14
add eax, 2
cmp eax, 0x104
ja 0x1401a1f14
cmp bx, dx
lea rax, [rcx + 2]
cmove rax, rcx
mov dword [rax], r13d
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov eax, dword [rsp + 0x20]
test r12b, al
je 0x1401a1f4e
xor edx, edx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x1401a1f96
lea rdx, [0x140450b08]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a1fa9
lea rdx, [0x140450db8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a1fa9
mov edx, r12d
lea rcx, [rbp + 0x170]
call sym.ErrorReportClient.exe_SfDeleteDirectoryTree
test eax, eax
jne 0x1401a1fa9
mov edi, r12d
jmp 0x1401a1fa9
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove edi, r12d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401a1e90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r15d, r15d
je 0x1401a1ffa
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a1feb
test r12b, al
je 0x1401a1feb
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
cmove edi, r12d
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14039bbb0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret