Function at 0x14015d980
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x60], 0
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14015d9ec
cmp eax, 0xffffffff
je 0x14015d9ec
lea rax, [0x1402be078]
mov qword [rsi], rax
mov eax, 2
mov dword [rbp - 0x60], eax
and eax, 0xfffffffd
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x60], 1
jmp 0x14015dc00
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.14015e860
nop
mov rcx, qword [r14]
mov rax, qword [rbp + 0x40]
cmp rax, rcx
je 0x14015db91
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.14001abc0
test eax, eax
je 0x14015db91
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.14015d980
nop
lea rdi, [0x1402be068]
mov ebx, 0xffffffff
mov rax, qword [rbp + 0x30]
cmp byte [rax], 0
jne 0x14015db5f
lea rax, [0x1402bd72c]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.14014cc50
nop
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140018b20
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14015da99
lea rcx, [rbp - 0x30]
call fcn.140011c20
mov rcx, rax
mov dword [rbp - 0x60], 0x20
jmp 0x14015daac
lea rcx, [rbp - 0x38]
call fcn.140137280
mov rcx, rax
mov dword [rbp - 0x60], 0x40
mov rax, qword [rcx]
mov qword [rbp + 0x48], rax
lea rax, [0x1402be078]
mov qword [rcx], rax
mov eax, dword [rbp - 0x60]
bts eax, 7
mov dword [rbp - 0x60], eax
test al, 0x40
je 0x14015daec
and dword [rbp - 0x60], 0xffffffbf
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015daec
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015daec
call fcn.14010a370
nop
mov eax, dword [rbp - 0x60]
test al, 0x20
je 0x14015db13
and dword [rbp - 0x60], 0xffffffdf
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015db13
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015db13
call fcn.14010a370
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x48]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x48], rax
and dword [rbp - 0x60], 0xffffff7f
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x14015db43
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015db43
call fcn.14010a370
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015db5f
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015db5f
call fcn.14010a370
mov rax, qword [rbp + 0x30]
mov qword [rsi], rax
lea rax, [rdi + 0x10]
mov qword [rbp + 0x30], rax
or dword [rbp - 0x60], 1
mov rcx, qword [rbp + 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015db8f
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015db8f
call fcn.14010a370
nop
jmp 0x14015dbe6
lea rax, str.Cannot_create_parent_directory
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x58]
call fcn.14001b960
nop
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.1401573d0
mov dword [rbp - 0x60], 1
mov rcx, qword [rbp - 0x58]
add rcx, 0xfffffffffffffff0
lea rdi, [0x1402be068]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x14015dbe6
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015dbe6
call fcn.14010a370
nop
mov rcx, qword [rbp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015dc00
lock xadd dword [rcx], ebx
test ebx, ebx
jne 0x14015dc00
call fcn.14010a370
mov rax, rsi
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret