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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x14002ea4c
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ea7f
test al, 0x10
jne 0x14002eb79
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002ec90
xor edi, edi
jmp 0x14002ec4d
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 0x14002eaa4
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x14002eb07
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x5c
je 0x14002eac2
cmp cx, 0x2f
jne 0x14002eaa7
cmp r9, 0xfffffffffffffffe
je 0x14002eb07
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.140026930
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.14002ea20
test al, al
je 0x14002eb97
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14002ec3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14002ec28
movabs rbp, 0x7fffffffffffffef
mov rcx, rsi
call fcn.1400952c0
cmp rax, rbp
ja 0x14002ec79
mov rbx, rax
cmp rax, 0xb
jae 0x14002eba8
lea r15, [rsp + 0x28]
mov byte [r15 + 0x17], bl
cmp rbx, 3
jne 0x14002ec6b
movzx eax, word [rsi + 4]
mov word [rsp + 0x2c], ax
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
jmp 0x14002ebe3
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002ec90
mov dil, 1
jmp 0x14002ec4d
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.14002ec90
jmp 0x14002ec3a
lea r12, [rbx + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
call fcn.14007b74c
mov r15, rax
mov qword [rsp + 0x28], rax
add rbp, 0x11
or rbp, r12
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbx
mov r8, rbx
add r8, rbx
mov rcx, r15
mov rdx, rsi
call fcn.14007eab0
mov word [r15 + rbx*2], 0
cmp byte [rsp + 0x3f], 0
jns 0x14002ebf8
mov rcx, qword [rsp + 0x28]
jmp 0x14002ebfd
lea rcx, [rsp + 0x28]
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 [rsp + 0x3f], 0
jns 0x14002ec24
mov rcx, qword [rsp + 0x28]
call fcn.14007b788
test bl, bl
jne 0x14002ec3c
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
call fcn.14002ec90
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x14002ec4d
mov rcx, qword [rsp + 0x40]
call fcn.14007b788
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rbx, rbx
je 0x14002ebe3
jmp 0x14002ebd2
lea rcx, [rsp + 0x28]
call fcn.1400be320
int3