Function at 0x140023dd0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rbp - 0x50], 7
xor eax, eax
mov qword [rbp - 0x58], rax
mov word [rbp - 0x68], ax
cmp word [rcx], ax
jne 0x140023e2c
mov r8d, eax
jmp 0x140023e3a
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x140023e30
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140007be0
nop
cmp qword [rbp - 0x58], 0
je 0x14002403b
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002403b
lea r8, [0x140297618]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400107c0
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140023fe5
xor esi, esi
nop word [rax + rax]
lea r8, [0x140297498]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x30]
call fcn.1400107c0
nop
lea r8, [rbp - 0x14]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140010750
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140023ef5
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140008270
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
test byte [rbp - 0x40], 0x10
je 0x140023f62
movzx ecx, word [rbp - 0x14]
movzx eax, word [rbp - 0x12]
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x140023f28
cmp ax, word [0x14029756e]
je 0x140023fa5
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x140023f47
cmp ax, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x140023f47
movzx eax, word [rbp - 0x10]
cmp ax, word [0x140297574]
je 0x140023fa5
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov rdx, rdi
call fcn.140023dd0
jmp 0x140023fa5
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140023fa5
test rdi, rdi
je 0x140023fa5
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call rdi
mov rbx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140023fc2
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140008270
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140023eb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14002400a
test rdi, rdi
je 0x14002400a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call rdi
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x140024026
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140008270
mov qword [rbp - 0x70], 7
xor eax, eax
mov qword [rbp - 0x78], rax
mov word [rsp + 0x78], ax
jmp 0x14002403d
mov bl, 1
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x140024057
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.140008270
movzx eax, bl
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140215090
mov rbx, qword [rsp + 0x350]
add rsp, 0x320
pop rdi
pop rsi
pop rbp
ret