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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x14002c31e
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002c351
test al, 0x10
jne 0x14002c455
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002c570
xor edi, edi
jmp 0x14002c52c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx r9d, byte [rdi + 0x17]
mov rax, rdi
test r9b, r9b
jns 0x14002c376
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x14002c3d9
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x5c
je 0x14002c394
cmp cx, 0x2f
jne 0x14002c379
cmp r9, 0xfffffffffffffffe
je 0x14002c3d9
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140023bd0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.14002c2f0
test al, al
je 0x14002c473
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14002c51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14002c507
movabs rbx, 0x7fffffffffffffef
mov rcx, rsi
call fcn.140092480
cmp rax, rbx
ja 0x14002c54c
mov r13, rax
cmp rax, 0xb
jae 0x14002c484
mov byte [rsp + 0x3f], r13b
lea rbp, [rsp + 0x28]
test r13, r13
je 0x14002c44d
cmp r13, 3
jne 0x14002c556
movzx eax, word [rsi + 4]
mov word [rbp + 4], ax
mov eax, dword [rsi]
mov dword [rbp], eax
mov r12, rbp
mov r15, rbp
jmp 0x14002c4c4
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002c570
mov dil, 1
jmp 0x14002c52c
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.14002c570
jmp 0x14002c519
lea r12, [r13 + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
call fcn.140078938
mov r15, rax
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
add rbx, 0x11
or rbx, r12
mov qword [rbp + 0x10], rbx
mov qword [rbp + 8], r13
mov r12, rbp
mov r8, r13
add r8, r13
mov rcx, r15
mov rdx, rsi
call fcn.14007bca0
mov word [r15 + r13*2], 0
cmp byte [r12 + 0x17], 0
jns 0x14002c4d8
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [r12 + 0x17], 0
jns 0x14002c503
mov rcx, qword [rsp + 0x28]
call fcn.140078974
test bl, bl
jne 0x14002c51b
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
call fcn.14002c570
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x14002c52c
mov rcx, qword [rsp + 0x40]
call fcn.140078974
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400797f0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x28]
call fcn.1400c5490
mov r12, rbp
mov r15, rbp
jmp 0x14002c4b3