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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
cmp qword [rcx + 0x18], 8
jb 0x14002bad8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002baf1
mov rcx, rbx
call fcn.1400027d0
nop
jmp 0x14002bc8c
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14002bb0a
mov rcx, rbx
call fcn.1400027d0
nop
xor al, al
jmp 0x14002bc8e
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002bb17
mov rcx, qword [rbx]
lea r9, [rcx + rax*2]
mov rcx, rbx
jb 0x14002bb23
mov rcx, qword [rbx]
xor esi, esi
mov edx, esi
mov r8, r9
sub r8, rcx
inc r8
shr r8, 1
cmp rcx, r9
cmova r8, rsi
test r8, r8
je 0x14002bb5b
lea eax, [rsi + 0x5c]
cmp word [rcx], 0x2f
jne 0x14002bb4b
mov word [rcx], ax
add rcx, 2
inc rdx
cmp rdx, r8
jne 0x14002bb42
mov rax, qword [rbx + 0x10]
mov rdi, rsi
nop
mov rdx, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14002bb70
mov rdx, qword [rbx]
cmp rdi, rax
jae 0x14002bbaa
sub rax, rdi
lea rcx, [rdx + rdi*2]
mov rdi, rsi
je 0x14002bb9d
cmp word [rcx], 0x5c
je 0x14002bb9a
cmp rax, 1
je 0x14002bb9d
dec rax
add rcx, 2
cmp word [rcx], 0x5c
jne 0x14002bb87
mov rdi, rcx
test rdi, rdi
je 0x14002bbaa
sub rdi, rdx
sar rdi, 1
jmp 0x14002bbb1
mov rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
jne 0x14002bbbb
mov rdi, qword [rbx + 0x10]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov r8, rdi
cmp qword [rbx + 0x10], rdi
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp r9, 8
jb 0x14002bbe6
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140002c80
nop
cmp qword [rsp + 0x40], 0
je 0x14002bc30
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002bc30
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
test eax, eax
jne 0x14002bcae
inc rdi
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002bc76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002bc70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bd16
call fcn.140035a38
nop
mov rax, qword [rbx + 0x10]
cmp rdi, rax
jb 0x14002bb60
mov rcx, rbx
call fcn.1400027d0
nop
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140035b50
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002bcf3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002bcee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002bcee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035a38
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov rcx, rbx
call fcn.1400027d0
nop
xor al, al
jmp 0x14002bc8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3