Function at 0x1000a782c
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 0x1000a785f
lea r8, [0x10000ad00]
lea rcx, [0x10000ac30]
mov edx, 0x2c7
call fcn.10009a050
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
lea r14, [0x1000036e8]
cmp rcx, r13
je 0x1000a7896
test byte [rcx + 0x1c], 1
je 0x1000a7896
cmp byte [rcx + 0x19], 4
jb 0x1000a7896
mov rcx, qword [rcx + 0x10]
mov edx, 0x27
mov r8, r14
call fcn.10001c854
xor ebx, ebx
xor eax, eax
lea r8, [rsp + 0x70]
and qword [rsp + 0x70], rbx
and dword [rsp + 0x30], ebx
lea rcx, [0x100003770]
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 0x1000a7921
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 0x1000a7a2f
test byte [rcx + 0x1c], 1
je 0x1000a7a2f
cmp byte [rcx + 0x19], 3
jb 0x1000a7a2f
mov rcx, qword [rcx + 0x10]
lea r9, [0x100003770]
mov edx, 0x28
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
jmp 0x1000a7a28
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 0x1000a79fb
and esi, 0x10
je 0x1000a79a2
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1000a7a98
mov ebx, eax
test eax, eax
jns 0x1000a79a2
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a799b
test byte [rcx + 0x1c], 1
je 0x1000a799b
cmp byte [rcx + 0x19], 3
jb 0x1000a799b
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r9d, eax
mov r8, r14
mov qword [rsp + 0x20], rdi
call fcn.10001d9dc
mov rcx, qword [0x1001653b8]
xor ebx, ebx
jmp 0x1000a7a2f
test esi, esi
jne 0x1000a79fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000a79fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a79f9
test byte [rcx + 0x1c], 1
je 0x1000a79f9
cmp byte [rcx + 0x19], 3
jb 0x1000a79f9
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.10001ddb0
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000a7a28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000a7a28
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x70], 0
je 0x1000a7a57
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1000a7a57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x38], 0
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a7a79
test byte [rcx + 0x1c], 1
je 0x1000a7a79
cmp byte [rcx + 0x19], 4
jb 0x1000a7a79
mov rcx, qword [rcx + 0x10]
mov edx, 0x2b
mov r8, r14
call fcn.10001c854
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