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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov r14b, dl
mov rdi, rcx
test rcx, rcx
jne 0x140093392
lea r8, str.wszDir
mov edx, 0x2b9
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
lea r13, [0x1401720a0]
cmp rcx, r13
je 0x1400933c6
test byte [rcx + 0x1c], 1
je 0x1400933c6
cmp byte [rcx + 0x19], 4
jb 0x1400933c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150830]
mov edx, 0x27
call fcn.140004b74
xor ebx, ebx
xor eax, eax
and qword [rbp + 0x20], rbx
xor esi, esi
and dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
test r14b, r14b
je 0x1400934d9
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]
test eax, eax
jne 0x14009345a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x14009356a
test byte [rcx + 0x1c], 1
je 0x14009356a
cmp byte [rcx + 0x19], 3
jb 0x14009356a
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
lea r9, str.O:BAG:BAD:P_A_CIOI_GA___BA__A_CIOI_GA___SY__A_CIOI_GA___BO_
mov dword [rsp + 0x20], ebx
lea r8, [0x140150830]
call fcn.140005b60
jmp 0x140093563
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]
mov esi, eax
cmp eax, 0xffffffff
je 0x140093537
test al, 0x10
je 0x1400934d9
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400935d8
mov ebx, eax
test eax, eax
jns 0x1400934d9
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x1400934d2
test byte [rcx + 0x1c], 1
je 0x1400934d2
cmp byte [rcx + 0x19], 3
jb 0x1400934d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150830]
mov edx, 0x29
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.1400100f0
mov rcx, qword [0x1401720a0]
xor ebx, ebx
jmp 0x14009356a
test sil, 0x10
jne 0x140093537
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140093537
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x140093535
test byte [rcx + 0x1c], 1
je 0x140093535
cmp byte [rcx + 0x19], 3
jb 0x140093535
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150830]
movzx eax, ax
mov r9, rdi
or eax, 0x80070000
test edx, edx
cmovle eax, edx
mov edx, 0x2a
mov dword [rsp + 0x20], eax
call fcn.140005b60
xor ebx, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140093563
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140093563
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
cmp qword [rbp + 0x20], 0
je 0x14009358f
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x14009358f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x18], 0
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x1400935b5
test byte [rcx + 0x1c], 1
je 0x1400935b5
cmp byte [rcx + 0x19], 4
jb 0x1400935b5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150830]
mov edx, 0x2b
call fcn.140004b74
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret