Function at 0x1400054c0
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov esi, r13d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140001f84
nop
lea edx, [r13 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140007cd0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
lea rcx, [rbp - 0x28]
call fcn.140001f6c
nop
mov qword [rsp + 0x68], r13
lea ecx, [r13 + 8]
call fcn.14001f5e4
mov qword [rsp + 0x40], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
call fcn.140001f6c
mov r12, rax
mov r15d, 1
mov dword [rsp + 0x34], r15d
lea rcx, [0x140032ed8]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400020d4
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400030c0
lea rcx, [rsp + 0x70]
call fcn.140002040
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x1400055b9
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140002040
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140005616
lea r14, [rcx + rdx]
mov qword [rbx + 0x10], r14
mov rdi, rbx
cmp r8, 8
jb 0x1400055f1
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8, rdx
mov rdx, r9
call fcn.140002244
mov word [rsp + 0x30], r13w
lea rcx, [rdi + r14*2]
lea rdx, [rsp + 0x30]
call fcn.14000223c
jmp 0x140005625
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x48]
call fcn.140002670
lea rcx, [0x140032ed8]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140005681
lea rdi, [rcx + rdx]
mov qword [rbx + 0x10], rdi
cmp r8, 8
jb 0x140005658
mov rbx, qword [rbx]
lea rcx, [rbx + rcx*2]
mov r8, rdx
lea rdx, [0x140032ed8]
call fcn.140002244
mov word [rsp + 0x30], r13w
lea rcx, [rbx + rdi*2]
lea rdx, [rsp + 0x30]
call fcn.14000223c
jmp 0x140005697
mov qword [rsp + 0x20], rdx
lea r9, [0x140032ed8]
lea rcx, [rsp + 0x48]
call fcn.140002670
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.140012620
movzx edi, al
and r15d, 0xfffffffe
mov dword [rsp + 0x34], r15d
lea rcx, [rsp + 0x48]
call fcn.140001dd0
mov rbx, qword [rsp + 0x68]
test dil, dil
je 0x14000587d
movzx r8d, byte [rbp - 0x30]
shr r8b, 4
and r8b, 1
je 0x140005735
lea rcx, [rbp - 0x28]
call fcn.140001cc0
test al, al
jne 0x140005735
lea rcx, [rbp - 0x28]
call fcn.140002040
mov rdx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x140005701
mov rax, qword [rax]
cmp word [rax], 0x2e
jne 0x140005735
lea rcx, [rbp - 0x28]
call fcn.1400020d4
cmp rax, 1
je 0x140005780
cmp r9, 8
jb 0x14000571f
mov rdx, qword [rdx]
cmp word [rdx + 2], 0x2e
jne 0x140005735
lea rcx, [rbp - 0x28]
call fcn.1400020d4
cmp rax, 2
je 0x140005780
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
test r8b, r8b
lea r8, [rbp - 0x28]
je 0x14000575a
call fcn.140003c40
nop
mov rcx, rax
call fcn.1400054c0
mov rsi, rax
jmp 0x14000576c
call fcn.140003c40
nop
lea rcx, [rbp - 0x70]
call fcn.140012be0
movzx esi, al
lea rcx, [rbp - 0x70]
call fcn.140001dd0
nop word [rax + rax]
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x14000587d
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000587d
lea r8, [rbp - 0x50]
lea rdx, [rbp]
call fcn.140012280
movzx r8d, byte [rbp - 0x30]
shr r8b, 4
and r8b, 1
je 0x140005831
lea rcx, [rbp - 0x28]
call fcn.140001cc0
test al, al
jne 0x140005831
lea rcx, [rbp - 0x28]
call fcn.140002040
mov rdx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x1400057f5
mov rax, qword [rax]
cmp word [rax], 0x2e
jne 0x140005831
lea rcx, [rbp - 0x28]
call fcn.1400020d4
cmp rax, 1
je 0x140005780
cmp r9, 8
jb 0x140005817
mov rdx, qword [rdx]
cmp word [rdx + 2], 0x2e
jne 0x140005831
lea rcx, [rbp - 0x28]
call fcn.1400020d4
cmp rax, 2
je 0x140005780
lea rdx, [rsp + 0x70]
test r8b, r8b
lea r8, [rbp - 0x28]
je 0x14000585f
lea rcx, [rsp + 0x48]
call fcn.140003c40
nop
mov rcx, rax
call fcn.1400054c0
add rsi, rax
lea rcx, [rsp + 0x48]
jmp 0x140005770
lea rcx, [rbp - 0x70]
call fcn.140003c40
nop
lea rcx, [rbp - 0x70]
call fcn.140012be0
movzx eax, al
add rsi, rax
jmp 0x14000576c
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140005897
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x140005897
mov qword [rbx], 0xffffffffffffffff
lea rcx, [rsp + 0x70]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400058f5
lea rcx, [rsp + 0x48]
call fcn.140001f6c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400139e0
test al, al
je 0x14000596b
lea rcx, [rsp + 0x48]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14000596b
lea rcx, [rsp + 0x48]
call fcn.140001dd0
inc rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140005912
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x140005912
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.14001f8d4
mov qword [rsp + 0x68], r13
lea rcx, [rbp - 0x28]
call fcn.140001dd0
nop
lea rcx, [rsp + 0x70]
call fcn.140001dd0
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14001f5c0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rsp + 0x48]
call fcn.140001dd0
lea rcx, [rsp + 0x70]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400059d1
lea rcx, [rbp - 0x70]
call fcn.140001f6c
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400139e0
test al, al
je 0x1400059bf
lea rcx, [rbp - 0x70]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
lea rcx, [rbp - 0x70]
call fcn.140001dd0
cmp edi, 0xffffffff
je 0x1400058f8
lea rcx, [rsp + 0x70]
call fcn.140001ccc
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140005a28
lea rcx, [rsp + 0x48]
call fcn.140001f6c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400139e0
test al, al
je 0x140005a1e
lea rcx, [rsp + 0x48]
call fcn.140001ccc
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x48]
call fcn.140001dd0
lea rcx, [rsp + 0x70]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400058f5
lea rcx, [rsp + 0x48]
call fcn.140001f6c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400139e0
test al, al
je 0x140005a7d
lea rcx, [rsp + 0x48]
call fcn.140001ccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140005a7d
jmp 0x1400058eb
lea rcx, [rsp + 0x48]
call fcn.140001dd0
and edi, 0xffffb1af
lea rcx, [rsp + 0x70]
call fcn.140001ccc
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400058f8
lea rcx, [rbp - 0x70]
call fcn.140001f6c
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400139e0
test al, al
je 0x140005adb
lea rcx, [rbp - 0x70]
call fcn.140001ccc
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rbp - 0x70]
call fcn.140001dd0
jmp 0x1400058f8