Function at 0x1400a06a4
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov r14b, dl
mov rdi, rcx
test rcx, rcx
jne 0x1400a06dd
lea r8, str.wszDir
mov edx, 0x2b9
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.1400906e0
mov rcx, qword [0x140173048]
lea r13, [0x140173048]
cmp rcx, r13
je 0x1400a0711
test byte [rcx + 0x1c], 1
je 0x1400a0711
cmp byte [rcx + 0x19], 4
jb 0x1400a0711
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x27
call fcn.14000c328
xor ebx, ebx
xor eax, eax
and qword [rbp + 0x20], rbx
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
test r14b, r14b
je 0x1400a0889
xor r9d, r9d
lea r8, [rbp + 0x20]
lea edx, [rbx + 1]
lea rcx, str.O:BAG:BAD:P_A_CIOI_GA___BA__A_CIOI_GA___SY__A_CIOI_GA___BO_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a0802
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400a076d
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x1400a07ac
test byte [rcx + 0x1c], 1
je 0x1400a07ac
cmp byte [rcx + 0x19], 3
jb 0x1400a07ac
mov rcx, qword [rcx + 0x10]
lea r9, str.O:BAG:BAD:P_A_CIOI_GA___BA__A_CIOI_GA___SY__A_CIOI_GA___BO_
mov edx, 0x28
mov dword [rsp + 0x20], ebx
lea r8, [0x140157878]
call fcn.1400151b8
mov rcx, qword [0x140173048]
cmp qword [rbp + 0x20], 0
je 0x1400a07c3
lea rcx, [rbp - 0x20]
call fcn.14009e45c
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x1400a07e9
test byte [rcx + 0x1c], 1
je 0x1400a07e9
cmp byte [rcx + 0x19], 4
jb 0x1400a07e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x2b
call fcn.14000c328
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
mov rax, qword [rbp + 0x20]
mov rcx, rdi
and dword [rbp - 0x10], ebx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 0x18
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400a08e8
test al, 0x10
je 0x1400a0889
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400a05cc
mov ebx, eax
test eax, eax
jns 0x1400a08e8
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x1400a0882
test byte [rcx + 0x1c], 1
je 0x1400a0882
cmp byte [rcx + 0x19], 3
jb 0x1400a0882
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x29
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.14003f678
mov rcx, qword [0x140173048]
xor ebx, ebx
jmp 0x1400a07ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a08e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400a08b4
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x1400a08e8
test byte [rcx + 0x1c], 1
je 0x1400a08e8
cmp byte [rcx + 0x19], 3
jb 0x1400a08e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x2a
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400151b8
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a07a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400a07a5
mov rcx, qword [0x140173048]
test eax, eax
jg 0x1400a092c
mov ebx, eax
jmp 0x1400a07ac
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400a07ac