Function at 0x14017aec8
Capabilities:
Create directory
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xffa8]
mov eax, 0x10080
call fcn.14021a050
sub rsp, rax
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rbp + 0xff70], rax
mov rbx, rcx
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x20], r15d
cmp qword [rcx + 0x10], r15
je 0x14017b167
call fcn.14017a734
test al, al
jne 0x14017b163
mov edi, 0x7fff
cmp qword [rbx + 0x10], rdi
jae 0x14017b167
mov word [rsp + 0x70], r15w
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14017af4c
mov rcx, qword [rbx]
mov edx, SafeArrayAllocDescriptorEx
call fcn.140278c80
test rax, rax
je 0x14017af7f
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14017af68
mov rcx, qword [rbx]
mov r8d, edi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffd
jbe 0x14017af96
cmp qword [rbx + 0x18], 7
jbe 0x14017af89
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14017c1e8
lea rcx, [rsp + 0x70]
call fcn.140286900
cmp rax, 2
jbe 0x14017b167
mov r12d, 0x5c
mov edx, r12d
lea rcx, [rsp + 0x74]
call fcn.140278c80
mov rdi, rax
test rax, rax
je 0x14017b167
lea r8d, [r12 - 0x5a]
lea rdx, [0x1403a18c0]
lea rcx, [rsp + 0x70]
call fcn.140287430
test eax, eax
jne 0x14017affb
mov edx, r12d
lea rcx, [rdi + 2]
call fcn.140278c80
mov rdi, rax
test rax, rax
je 0x14017b167
mov word [rdi], r15w
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x70]
or r13, 0xffffffffffffffff
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x14017b01c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140013184
nop
lea rcx, [rsp + 0x28]
call fcn.14017a734
mov bl, al
lea rcx, [rsp + 0x28]
call fcn.14000dd24
test bl, bl
je 0x14017b167
mov word [rdi], r12w
add rdi, 2
je 0x14017b163
mov edx, r12d
mov rcx, rdi
call fcn.140278c80
mov rsi, rax
test rax, rax
je 0x14017b079
mov word [rax], r15w
mov rcx, rsi
lea rdx, [rax + 2]
neg rcx
sbb rdi, rdi
and rdi, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x70]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x14017b0a3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140013184
nop
lea rcx, [rsp + 0x48]
call fcn.14017a734
mov bl, al
lea rcx, [rsp + 0x48]
call fcn.14000dd24
test bl, bl
jne 0x14017b155
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14017b136
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x70]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x14017b102
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140013184
nop
or r14d, 1
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x28]
call fcn.14017a734
test al, al
mov bl, r15b
jne 0x14017b138
mov bl, 1
test r14b, 1
je 0x14017b151
and r14d, 0xfffffffe
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x28]
call fcn.14000dd24
test bl, bl
jne 0x14017b167
test rdi, rdi
je 0x14017b163
mov word [rsi], r12w
jmp 0x14017b062
mov al, 1
jmp 0x14017b169
xor al, al
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.1402194b0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret