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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rdi, rcx
test rcx, rcx
jne 0x1000a748b
lea r8, [0x10000ad90]
lea rcx, [0x10000acc0]
mov edx, 0x2c7
call fcn.100099ad8
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
lea r14, [0x100003728]
cmp rcx, r13
je 0x1000a74c2
test byte [rcx + 0x1c], 1
je 0x1000a74c2
cmp byte [rcx + 0x19], 4
jb 0x1000a74c2
mov rcx, qword [rcx + 0x10]
mov edx, 0x27
mov r8, r14
call fcn.10001c7b8
xor ebx, ebx
xor eax, eax
lea r8, [rsp + 0x70]
and qword [rsp + 0x70], rbx
and dword [rsp + 0x30], ebx
lea rcx, [0x1000037b0]
lea edx, [rbx + 1]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1000a754d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a765b
test byte [rcx + 0x1c], 1
je 0x1000a765b
cmp byte [rcx + 0x19], 3
jb 0x1000a765b
mov rcx, qword [rcx + 0x10]
lea r9, [0x1000037b0]
mov edx, 0x28
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x1000a7654
mov rax, qword [rsp + 0x70]
and dword [rsp + 0x40], ebx
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x18
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x1000a7627
and esi, 0x10
je 0x1000a75ce
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1000a76c4
mov ebx, eax
test eax, eax
jns 0x1000a75ce
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a75c7
test byte [rcx + 0x1c], 1
je 0x1000a75c7
cmp byte [rcx + 0x19], 3
jb 0x1000a75c7
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r9d, eax
mov r8, r14
mov qword [rsp + 0x20], rdi
call fcn.10001d8f8
mov rcx, qword [0x1001653b8]
xor ebx, ebx
jmp 0x1000a765b
test esi, esi
jne 0x1000a7627
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000a7627
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a7625
test byte [rcx + 0x1c], 1
je 0x1000a7625
cmp byte [rcx + 0x19], 3
jb 0x1000a7625
mov rcx, qword [rcx + 0x10]
movzx eax, ax
lea edx, [rsi + 0x2a]
or eax, 0x80070000
test r11d, r11d
mov r9, rdi
cmovle eax, r11d
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.10001daa4
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000a7654
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000a7654
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x70], 0
je 0x1000a7683
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1000a7683
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x38], 0
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a76a5
test byte [rcx + 0x1c], 1
je 0x1000a76a5
cmp byte [rcx + 0x19], 4
jb 0x1000a76a5
mov rcx, qword [rcx + 0x10]
mov edx, 0x2b
mov r8, r14
call fcn.10001c7b8
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rdi
ret