Function at 0x140001ec4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push rbp
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov rax, qword [0x14006dbd0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
call fcn.140001dec
mov rcx, qword [rbp + 0x210]
xor r14d, r14d
test rcx, rcx
je 0x1400022d9
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140001f1a
test rax, rax
je 0x1400022d9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400022d9
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1400174fc
mov r15d, 7
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov word [rax], r14w
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140001f8f
mov rcx, qword [rbp + 0x60]
lea rdx, [rdx*2 + 2]
call fcn.140002984
cmp qword [rbp + 0x58], 8
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x50]
lea r9, [0x14005def4]
cmovae rcx, qword [rbp + 0x40]
mov edi, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.140002644
mov r9, rax
lea rdx, [rbp + 0x60]
xor r8d, r8d
lea rcx, [rbp + 0x40]
call fcn.1400023d4
mov rsi, rax
lea rax, [rbp + 0x40]
cmp rax, rsi
je 0x14000201c
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140001ff4
mov rcx, qword [rbp + 0x40]
lea rdx, [rdx*2 + 2]
call fcn.140002984
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r15
mov word [rbp + 0x40], r14w
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r15
mov word [rsi], r14w
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140002037
mov rcx, qword [rbp + 0x60]
lea rdx, [rdx*2 + 2]
call fcn.140002984
xorps xmm0, xmm0
mov qword [rsp + 0x78], r14
lea rsi, str.Path
xor r8d, r8d
mov rcx, rsi
xor edx, edx
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140002275
lea edx, [rax + 1]
lea rcx, [rsp + 0x68]
call fcn.140002318
mov r8, qword [rsp + 0x70]
mov rcx, rsi
mov rdx, qword [rsp + 0x68]
sub r8, rdx
sar r8, 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0x80]
call fcn.1400024f4
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.1400025dc
mov rdx, rax
lea r8, [rbp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.14000258c
cmp qword [rax + 0x18], 8
jb 0x1400020d2
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
mov rdx, qword [rbp + 0x78]
test eax, eax
sete sil
cmp rdx, 8
jb 0x140002105
mov rcx, qword [rbp + 0x60]
lea rdx, [rdx*2 + 2]
call fcn.140002984
mov rdx, qword [rbp + 0xb8]
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r15
mov word [rbp + 0x60], r14w
cmp rdx, 8
jb 0x140002133
mov rcx, qword [rbp + 0xa0]
lea rdx, [rdx*2 + 2]
call fcn.140002984
test sil, sil
jne 0x14000223e
xor edx, edx
lea rcx, [rbp - 0x2c]
lea r8d, [rdx + 0x64]
call fcn.1400345f0
xor eax, eax
mov dword [rbp - 0x30], 0x68
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x58]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x78], rax
lea r8, [rbp + 0x210]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x80]
mov qword [rbp - 0x60], r14
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0xc0]
lea rax, [rbp - 0x78]
mov dword [rsp + 0x64], r14d
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r14
call fcn.140006010
lea rcx, [rbp + 0xc0]
call fcn.140006978
test eax, eax
je 0x140002224
mov rcx, qword [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov edi, r14d
jmp 0x140002232
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rbp + 0xc0]
call fcn.14000619c
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x14000225f
mov rcx, qword [rbp + 0x80]
lea rdx, [rdx*2 + 2]
call fcn.140002984
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], r15
mov word [rbp + 0x80], r14w
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400022a0
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.140002984
xorps xmm0, xmm0
mov qword [rsp + 0x78], r14
movdqu xmmword [rsp + 0x68], xmm0
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x1400022bb
mov rcx, qword [rbp + 0x40]
lea rdx, [rdx*2 + 2]
call fcn.140002984
mov rcx, rbx
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r15
mov word [rbp + 0x40], r14w
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x1400022de
mov edi, 1
call fcn.140001e2c
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140032b90
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret