Function at 0x1400aadc8
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov esi, 0x288
or r12, 0xffffffffffffffff
mov ecx, esi
mov rdi, rdx
mov rbp, r12
call fcn.140001950
xor r15d, r15d
mov rbx, rax
test rax, rax
jne 0x1400aae59
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400aae4f
test byte [rcx + 0x1c], 2
je 0x1400aae4f
cmp byte [rcx + 0x19], 1
jb 0x1400aae4f
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x4f]
mov r9d, esi
lea r8, [0x14015fec8]
call fcn.140011750
mov eax, 0x8007000e
jmp 0x1400ab185
mov r14d, 0x412
mov ecx, r14d
call fcn.140001950
mov rsi, rax
test rax, rax
jne 0x1400aaeae
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400aaea4
test byte [rcx + 0x1c], 2
je 0x1400aaea4
cmp byte [rcx + 0x19], 1
jb 0x1400aaea4
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x50]
mov r9d, r14d
lea r8, [0x14015fec8]
call fcn.140011750
mov edi, 0x8007000e
jmp 0x1400ab15f
lea r13, [0x14015f648]
mov r14d, 0x144
test rdi, rdi
jne 0x1400aaeda
xor r8d, r8d
mov rcx, rbx
call fcn.1400ab1c0
mov edi, eax
test eax, eax
js 0x1400ab15f
jmp 0x1400aaf66
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400aaedd
cmp rax, 0x104
jb 0x1400aaf03
lea r8, str.wcslen_wszPathToDirectory____MAX_PATH
mov edx, 0x84f
mov rcx, r13
call fcn.14008ac24
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400aaf06
cmp word [rdi + rax*2 - 2], 0x5c
jne 0x1400aaf2c
lea r8, str.wszPathToDirectory_wcslen_wszPathToDirectory____1____L
mov edx, 0x850
mov rcx, r13
call fcn.14008ac24
mov rdx, r14
mov rcx, rbx
sub rdi, rbx
lea rax, [rdx + 0x7ffffeba]
test rax, rax
je 0x1400aaf57
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1400aaf57
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400aaf35
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea r8, [0x140157a78]
mov rdx, r14
mov rcx, rbx
call fcn.14005485c
mov rax, r12
mov edi, r15d
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400aaf7e
add rax, 8
cmp rax, r14
jb 0x1400aafa5
lea r8, str.wcslen_wszPath___wcslen_x_wszBLB_CATALOG___1___MAX_PATH__64
mov edx, 0x860
mov rcx, r13
call fcn.14008ac24
lea r8, str.Catalog
mov rdx, r14
mov rcx, rbx
call fcn.14005485c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400ab15f
mov rax, r12
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400aafd2
add rax, 0x14
mov r13d, 0x209
cmp rax, r13
jb 0x1400ab003
lea r8, str.wcslen_wszPath___wcslen_x_wszTempGlobalCatalogName___3___MAX_PATH__2__1
mov edx, 0x86a
lea rcx, [0x14015f648]
call fcn.14008ac24
mov r14, rbx
mov rdx, r13
sub r14, rsi
mov rcx, rsi
lea rax, [rdx + 0x7ffffdf5]
test rax, rax
je 0x1400ab032
movzx eax, word [r14 + rcx]
test ax, ax
je 0x1400ab032
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400ab00f
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [0x140157a78]
mov rdx, r13
cmovne rax, rcx
mov rcx, rsi
mov word [rax], r15w
call fcn.14005485c
lea r8, str.TEMPGlobalCatalog
mov rdx, r13
mov rcx, rsi
call fcn.14005485c
lea r8, [0x140159f40]
mov rdx, r13
mov rcx, rsi
call fcn.14005485c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, r12
je 0x1400ab15f
mov rcx, r12
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x1400ab09a
lea rdx, [rsp + 0x4c]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400ab0ac
add rax, 2
add rax, rcx
cmp rax, r13
jb 0x1400ab0da
lea r8, str.wcslen_wszPath___wcslen_data.cFileName___2___MAX_PATH__2__1
mov edx, 0x880
lea rcx, [0x14015f648]
call fcn.14008ac24
mov rdx, r13
mov rcx, rsi
lea rax, [rdx + 0x7ffffdf5]
test rax, rax
je 0x1400ab103
movzx eax, word [r14 + rcx]
test ax, ax
je 0x1400ab103
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400ab0e0
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [0x140157a78]
mov rdx, r13
cmovne rax, rcx
mov rcx, rsi
mov word [rax], r15w
call fcn.14005485c
lea r8, [rsp + 0x4c]
mov rdx, r13
mov rcx, rsi
call fcn.14005485c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400ab097
mov rcx, rbx
call fcn.140001944
mov rcx, rsi
call fcn.140001944
cmp rbp, r12
je 0x1400ab183
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001d90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret