Function at 0x140030ee0
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 [0x140113018]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140030f0c
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030f3f
test al, 0x10
jne 0x140031039
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031150
xor edi, edi
jmp 0x14003110d
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 0x140030f64
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140030fc7
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x5c
je 0x140030f82
cmp cx, 0x2f
jne 0x140030f67
cmp r9, 0xfffffffffffffffe
je 0x140030fc7
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.140028c60
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140030ee0
test al, al
je 0x140031057
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400310fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x1400310e8
movabs rbp, 0x7fffffffffffffef
mov rcx, rsi
call fcn.14009afb0
cmp rax, rbp
ja 0x140031139
mov rbx, rax
cmp rax, 0xb
jae 0x140031068
lea r15, [rsp + 0x28]
mov byte [r15 + 0x17], bl
cmp rbx, 3
jne 0x14003112b
movzx eax, word [rsi + 4]
mov word [rsp + 0x2c], ax
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
jmp 0x1400310a3
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031150
mov dil, 1
jmp 0x14003110d
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140031150
jmp 0x1400310fa
lea r12, [rbx + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
call fcn.140081638
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.140084900
mov word [r15 + rbx*2], 0
cmp byte [rsp + 0x3f], 0
jns 0x1400310b8
mov rcx, qword [rsp + 0x28]
jmp 0x1400310bd
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 0x1400310e4
mov rcx, qword [rsp + 0x28]
call fcn.140081674
test bl, bl
jne 0x1400310fc
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
call fcn.140031150
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x14003110d
mov rcx, qword [rsp + 0x40]
call fcn.140081674
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081fe0
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 0x1400310a3
jmp 0x140031092
lea rcx, [rsp + 0x28]
call fcn.1400c7800
int3