Function at 0x180026860
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
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor edi, edi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.1800165a0
nop
lea edx, [rdi + 0x20]
lea rcx, [rsp + 0x68]
call fcn.18001cae0
cmp qword [rsp + 0x78], rdi
je 0x180026c17
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x180026c17
lea r8, str..
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.180019600
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180026940
xor bl, bl
jmp 0x180026bf5
lea rdx, [rbp + 0x1c]
lea rcx, [0x180100958]
call fcn.1800b96c4
test eax, eax
je 0x180026bd5
lea rdx, [rbp + 0x1c]
lea rcx, [0x180100b74]
call fcn.1800b96c4
test eax, eax
je 0x180026bd5
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.180027810
nop
lea r8, [rbp + 0x1c]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800196f0
nop
cmp qword [rbp - 0x20], 8
jb 0x1800269a1
mov rcx, qword [rbp - 0x38]
call fcn.1800b5700
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1800269e8
and eax, 0xfffffffe
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x48]
test byte [rbp - 0x10], 0x10
je 0x180026a8b
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
cmp word [rdx], 0
jne 0x180026a26
mov r8, rdi
jmp 0x180026a3b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180026a30
lea rcx, [rbp - 0x78]
call fcn.1800166f0
nop
lea rcx, [rbp - 0x78]
call fcn.180026860
nop
cmp qword [rbp - 0x60], 8
jb 0x180026a5f
mov rcx, qword [rbp - 0x78]
call fcn.1800b5700
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x180026bb0
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
cmp word [rdx], 0
jne 0x180026abf
mov r8, rdi
jmp 0x180026ace
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180026ac3
lea rcx, [rsp + 0x28]
call fcn.1800166f0
nop
cmp qword [rsp + 0x38], 0
je 0x180026b8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x180026b8b
lea rcx, [rsp + 0x28]
call fcn.180025df0
test al, al
jne 0x180026b8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180026b8b
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x180026b65
and eax, 0xfffffffe
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180026b8b
lea rcx, [rsp + 0x28]
call fcn.1800271b0
nop
cmp qword [rsp + 0x40], 8
jb 0x180026b9d
mov rcx, qword [rsp + 0x28]
call fcn.1800b5700
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
cmp qword [rsp + 0x60], 8
jb 0x180026bc2
mov rcx, qword [rsp + 0x48]
call fcn.1800b5700
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180026940
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp qword [rbp - 0x40], 8
jb 0x180026c05
mov rcx, qword [rbp - 0x58]
call fcn.1800b5700
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x58], di
jmp 0x180026c19
xor bl, bl
cmp qword [rbp - 0x80], 8
jb 0x180026c2a
mov rcx, qword [rsp + 0x68]
call fcn.1800b5700
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
movzx eax, bl
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret