Function at 0x140019080
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14008d598]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
xor r12d, r12d
mov qword [rdi + 0x10], r12
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400190d0
mov rax, qword [rdi]
mov word [rax], r12w
mov qword [rbp - 0x38], r12
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea r9, [rbp - 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400580a0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r15d, eax
mov r8b, 1
lea rdx, str.Error_checking_for_known_folder_path
mov ecx, 0x3f0
call fcn.14000e9f0
test r15d, r15d
js 0x140019345
movdqa xmm0, xmmword [0x140055c40]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r12w
mov rdx, qword [rbp - 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140019133
lea rcx, [rbp - 0x30]
call fcn.140005ed0
nop
lea r9, [0x14008d470]
cmp qword [0x14008d488], 8
cmovae r9, qword [0x14008d470]
mov rsi, qword [0x14008d480]
mov r14, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
sub rax, r14
cmp rsi, rax
ja 0x1400191a8
lea rax, [r14 + rsi]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x30]
lea r8, [rsi + rsi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call fcn.140030380
lea rax, [r14 + rsi]
mov word [rbx + rax*2], r12w
jmp 0x1400191bc
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.14001a300
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
cmp ebx, 0xffffffff
je 0x1400191ee
test bl, 0x10
jne 0x140019216
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea r9, [0x14008d490]
cmp qword [0x14008d4a8], 8
cmovae r9, qword [0x14008d490]
mov rsi, qword [0x14008d4a0]
mov r14, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
sub rax, r14
cmp rsi, rax
ja 0x140019277
lea rax, [r14 + rsi]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x30]
lea r8, [rsi + rsi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call fcn.140030380
lea rax, [r14 + rsi]
mov word [rbx + rax*2], r12w
jmp 0x14001928b
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.14001a300
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
cmp ebx, 0xffffffff
je 0x1400192bd
test bl, 0x10
jne 0x1400192e5
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
lea rax, [rbp - 0x30]
cmp rdi, rax
je 0x140019309
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140005ed0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140019345
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019340
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019383
call fcn.140028ef4
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dl, 1
xor ecx, ecx
call fcn.14000e9c0
test r15d, r15d
setns al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140028f90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140033494
int3