Function at 0x1400335a0
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 [0x140145040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400335ce
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033633
test al, 0x10
je 0x1400335fb
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140039ba0
mov dil, 1
jmp 0x140033613
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140039ba0
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b7310
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140033653
mov rax, qword [rdi + 8]
mov rdi, qword [rdi]
lea r14, [rax + rax]
test r14, r14
je 0x14003367a
movzx ecx, word [rdi + r14 - 2]
add r14, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140033670
cmp ecx, 0x2f
jne 0x140033657
cmp r14, 0xfffffffffffffffe
jne 0x1400337a8
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1400336a2
cmp byte [rsp + 0x57], 0
jns 0x140033613
mov rcx, qword [rsp + 0x40]
call fcn.1400b4d44
jmp 0x140033613
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14003378f
movabs r12, 0x7ffffffffffffff7
mov rcx, rsi
call fcn.1400b5304
cmp rax, r12
ja 0x140033881
mov r14, rax
cmp rax, 0xb
jae 0x1400336e9
lea r15, [rsp + 0x28]
mov byte [r15 + 0x17], r14b
test r14, r14
jne 0x140033733
jmp 0x140033744
lea rax, [r12 + 5]
and rax, r14
add rax, 4
mov r13, r14
or r13, 3
cmp r13, 0xb
cmove r13, rax
inc r13
js 0x140033884
lea rcx, [r13*2]
call fcn.1400b4d4c
mov r15, rax
mov qword [rsp + 0x28], rax
add r12, 9
or r12, r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov r8, r14
add r8, r14
mov rcx, r15
mov rdx, rsi
call fcn.1400eabe0
mov word [r15 + r14*2], 0
cmp byte [rsp + 0x3f], 0
js 0x140033759
lea rcx, [rsp + 0x28]
jmp 0x14003375e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x140033786
mov rcx, qword [rsp + 0x28]
call fcn.1400b4d44
test bpl, bpl
jne 0x14003368c
lea rcx, [0x140135dfc]
mov rdx, rsi
mov r8d, ebx
call fcn.140039ba0
xor edi, edi
jmp 0x14003368c
movabs r15, 0x7ffffffffffffff7
sar r14, 1
cmp rax, r14
cmovb r14, rax
cmp r14, r15
ja 0x14003387b
cmp r14, 0xb
jae 0x1400337db
lea rbx, [rsp + 0x28]
mov byte [rbx + 0x17], r14b
test r14, r14
jne 0x140033820
jmp 0x14003382f
lea rax, [r15 + 5]
and rax, r14
add rax, 4
mov r12, r14
or r12, 3
cmp r12, 0xb
cmove r12, rax
inc r12
js 0x14003387e
lea rcx, [r12 + r12]
call fcn.1400b4d4c
mov rbx, rax
mov qword [rsp + 0x28], rax
add r15, 9
or r15, r12
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
lea r8, [r14 + r14]
mov rcx, rbx
mov rdx, rdi
call fcn.1400eabe0
mov word [rbx + r14*2], 0
cmp byte [rsp + 0x57], 0
jns 0x140033847
mov rcx, qword [rsp + 0x40]
call fcn.1400b4d44
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rcx], xmm0
call fcn.1400335a0
test al, al
jne 0x14003367a
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140039ba0
jmp 0x1400337a1
int3
int3
int3
int3