Function at 0x1400155d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r14, r8
mov rbx, rdx
mov r8, rcx
mov r12, rcx
lea rcx, [rbp + 0x380]
mov edx, 0x104
mov r15d, r9d
call fcn.140029108
lea r8, [0x1400593f8]
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.140029170
mov r8, r12
lea rcx, [rbp + 0x170]
mov edx, 0x104
call fcn.140029108
lea r8, [0x14005940c]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140029170
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400158af
lea r8, [rbp + 0x170]
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.140029108
mov edi, 1
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140015807
movzx ecx, word [rsp + 0x4c]
cmp cx, word [0x140059400]
movzx eax, word [rsp + 0x4e]
jne 0x1400156d2
cmp ax, word [0x140059402]
je 0x1400156a0
cmp cx, word [0x140059404]
jne 0x1400156f2
cmp ax, word [0x140059406]
jne 0x1400156f2
movzx eax, word [rsp + 0x50]
cmp ax, word [0x140059408]
je 0x1400156a0
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140029170
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x170]
je 0x1400157ba
lea r9d, [r15 + 1]
mov r8, r14
mov rdx, rbx
call fcn.1400155d0
test eax, eax
jne 0x14001574e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14001574a
lea rdx, [rbp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
jmp 0x1400157c4
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400157c4
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, [rbp + 0x170]
lea r8, str.RemoveDirectory_fail__s
lea rdx, [rbp + 0x590]
call fcn.1400061e0
mov rcx, rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1400157c4
lea rdx, [rbp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400157c4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400157e1
lea r8, [rbp + 0x380]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140029108
jmp 0x1400156a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1400157fe
lea rdx, [rbp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [r14], 1
jmp 0x1400158a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14001588e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x1400158af
test r15d, r15d
jne 0x14001588a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001588a
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, [rbp + 0x170]
lea r8, str.RemoveDirectory_fail__s
lea rdx, [rbp + 0x590]
call fcn.1400061e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14001588a
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, edi
jmp 0x1400158b1
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.__DeleteFile_fail
call fcn.1400068e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x8b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret