Function at 0x1400123bc
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 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140039010]
xor rax, rsp
mov qword [rbp + 0x380], rax
or r13, 0xffffffffffffffff
mov r12d, r8d
mov rsi, r13
mov r15d, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012425
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001267c
test dil, 0x10
je 0x140012644
test dil, 1
je 0x140012466
mov edx, 0x80
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012466
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0x80070000
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001267c
jmp 0x14001246b
mov edi, 0x80070000
test r15d, r15d
jne 0x14001247c
test r12d, r12d
jne 0x14001247c
xor ebx, ebx
jmp 0x14001265b
mov ebx, 0x104
lea rcx, [rbp + 0x170]
mov edx, ebx
mov r9, r13
mov r8, r14
call fcn.1400192f0
cmp eax, 0x50
jne 0x1400124a4
mov ebx, 0x8007007a
jmp 0x14001267c
mov r9, r13
lea r8, str..
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.1400191f0
cmp eax, 0x50
je 0x14001249a
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, r13
jne 0x1400124f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001267c
mov ebx, 0x104
lea rdx, [0x140033854]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001260c
lea rdx, [0x140033858]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001260c
mov r9, r13
lea rcx, [rbp + 0x170]
mov r8, r14
mov rdx, rbx
call fcn.1400192f0
cmp eax, 0x50
je 0x140012631
mov r9, r13
lea r8, [rsp + 0x4c]
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.1400191f0
cmp eax, 0x50
je 0x140012631
test r12d, r12d
je 0x1400125b1
test byte [rsp + 0x20], 0x10
je 0x1400125b1
mov r9, r13
lea r8, [0x140032f08]
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.1400191f0
cmp eax, 0x50
je 0x140012631
mov r8d, r12d
lea rcx, [rbp + 0x170]
mov edx, r15d
call fcn.1400123bc
mov ebx, eax
test eax, eax
jmp 0x14001260a
test r15d, r15d
je 0x14001260c
test byte [rsp + 0x20], 7
je 0x1400125e7
mov edx, 0x80
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400125e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012649
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001260c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012649
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400124f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140012638
xor ebx, ebx
jmp 0x140012649
mov ebx, 0x8007007a
jmp 0x140012649
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140012649
mov ebx, 0x8000ffff
cmp rsi, r13
je 0x140012657
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
js 0x14001267c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001267c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140015800
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret