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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r12d, r9d
mov r13d, r8d
mov r14d, edx
mov rsi, rcx
lea rdx, [rbp - 0x10]
call fcn.1400160ec
nop
xor r15d, r15d
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140013f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x140013dba
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140013eaa
cmp ebx, 0x10b
je 0x140013f4d
cmp ebx, 0x7b
je 0x140013f4d
cmp ebx, 0x43
jne 0x140013ddd
test r14d, r14d
je 0x140013f4d
cmp ebx, 0x56
je 0x140013f4d
cmp ebx, 5
je 0x140013f4d
cmp ebx, 3
jne 0x140013e56
mov rcx, qword [rsi]
test rcx, rcx
je 0x140013e72
mov r9d, r12d
mov r8d, r13d
mov edx, r14d
call fcn.140013d38
test eax, eax
je 0x140013e72
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140013f1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x140013e56
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140013ee3
inc r15d
mov r9d, r15d
mov r8d, r12d
mov edx, r13d
mov rcx, rsi
call fcn.14000a814
test eax, eax
jne 0x140013d70
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013f7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
jmp 0x140013f7c
and edi, 0x10
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013edc
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
mov eax, edi
jmp 0x140013fb4
and ebx, 0x10
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013f15
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
mov eax, ebx
jmp 0x140013fb4
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013faf
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
jmp 0x140013faf
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013f7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
xor eax, eax
jmp 0x140013fb4
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140013faf
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x14001d898]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret