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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14004b96c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004bcb3
test al, 0x10
je 0x14004bcb3
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140034c5c
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14004b9d0
lea r8d, [rdi + 1]
lea rdx, [0x140353ca4]
lea rcx, [rsp + 0x20]
call fcn.140031c78
lea r8, [0x140359c08]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.1400350cc
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov r14d, 7
mov qword [rax + 0x18], r14
mov word [rax], di
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14004ba2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.1400331fc
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], r14
mov word [rbp - 0x80], di
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004bc6a
movzx eax, word [rbp - 0x12]
cmp word [rbp - 0x14], 0x2e
jne 0x14004ba8b
test ax, ax
je 0x14004bb63
cmp word [rbp - 0x14], 0x2e
jne 0x14004ba8b
cmp ax, 0x2e
jne 0x14004ba8b
cmp word [rbp - 0x10], di
je 0x14004bb63
lea r8, [rbp - 0x14]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.1400350cc
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov word [rax], di
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14004bade
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
call fcn.1400331fc
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
mov word [rbp - 0x60], di
mov edx, dword [rbp - 0x40]
test dl, 0x10
je 0x14004bb00
lea rcx, [rsp + 0x60]
call fcn.14004b930
test al, al
jmp 0x14004bb40
test dl, 1
je 0x14004bb27
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14004bbf3
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14004bbf3
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14004bb63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.1400331fc
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004ba60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
cmp eax, 0x12
jne 0x14004bbeb
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004bbcc
test al, 1
je 0x14004bbcc
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14004bc1a
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
jmp 0x14004bc1d
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14004bc1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14004bc1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.1400331fc
mov bl, dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004bc3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.1400331fc
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004bc66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
call fcn.1400331fc
mov al, bl
jmp 0x14004bcb5
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004bc87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.1400331fc
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004bcb3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
call fcn.1400331fc
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret