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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb70
mov rbx, rcx
lea rdx, [rsp + 0x650]
mov edi, 0x513
lea rcx, str.PATH
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x103
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14000f3d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x650]
call fcn.1400042b0
test rax, rax
jne 0x14000228f
lea r8, [rsp + 0x20]
mov edx, edi
lea rax, [rsp + 0x130]
sub r8, rax
lea rcx, [rsp + 0x130]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffaeb]
test rax, rax
je 0x140001f60
movzx eax, byte [r8 + rcx]
test al, al
je 0x140001f60
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001f40
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov rcx, rdi
mov byte [rax], 0
lea rax, [rsp + 0x130]
nop dword [rax]
cmp byte [rax], 0
je 0x140001f8e
inc rax
sub rcx, 1
jne 0x140001f80
xor r11d, r11d
mov rax, rdi
sub rax, rcx
mov r8d, r11d
test rcx, rcx
cmovne r8, rax
je 0x140001ffc
mov rdx, rdi
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x140001fee
lea rax, [r8 + 0x7ffffaeb]
add rax, rdx
lea r9, str.channels
sub r9, rcx
nop dword [rax + rax]
test rax, rax
je 0x140001fee
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x140001fee
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x140001fd0
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r11b
mov rcx, rdi
lea rax, [rsp + 0x130]
cmp byte [rax], r11b
je 0x140002015
inc rax
sub rcx, 1
jne 0x140002007
mov rax, rdi
lea r10, [0x14004c0f4]
sub rax, rcx
mov r8, r11
test rcx, rcx
cmovne r8, rax
je 0x14000207e
mov rdx, rdi
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x140002070
lea rax, [r8 + 0x7ffffaeb]
mov r9, r10
add rax, rdx
sub r9, rcx
test rax, rax
je 0x140002070
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x140002070
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x140002052
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r11b
mov rcx, rdi
lea rax, [rsp + 0x130]
nop dword [rax]
cmp byte [rax], r11b
je 0x14000209e
inc rax
sub rcx, 1
jne 0x140002090
mov rax, rdi
mov r8, r11
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140002102
mov rdx, rdi
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x1400020f4
lea rax, [r8 + 0x7ffffaeb]
add rax, rdx
lea r9, [rsp + 0x20]
sub r9, rcx
test rax, rax
je 0x1400020f4
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x1400020f4
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x1400020d6
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r11b
mov rcx, rdi
lea rax, [rsp + 0x130]
nop dword [rax]
cmp byte [rax], r11b
je 0x14000211e
inc rax
sub rcx, 1
jne 0x140002110
mov rax, rdi
mov r8, r11
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140002184
mov rdx, rdi
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x140002176
lea rax, [r8 + 0x7ffffaeb]
add rax, rdx
lea r9, str.3rd
sub r9, rcx
test rax, rax
je 0x140002176
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x140002176
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x140002158
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r11b
mov rcx, rdi
lea rax, [rsp + 0x130]
nop
cmp byte [rax], r11b
je 0x14000219e
inc rax
sub rcx, 1
jne 0x140002190
mov rax, rdi
mov r8, r11
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x1400021fd
mov rdx, rdi
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x1400021ef
lea rax, [r8 + 0x7ffffaeb]
add rax, rdx
sub r10, rcx
test rax, rax
je 0x1400021ef
movzx r8d, byte [r10 + rcx]
test r8b, r8b
je 0x1400021ef
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x1400021d1
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r11b
mov rcx, rdi
lea rax, [rsp + 0x130]
cmp byte [rax], r11b
je 0x140002216
inc rax
sub rcx, 1
jne 0x140002208
mov rax, rdi
sub rax, rcx
test rcx, rcx
cmovne r11, rax
je 0x14000227a
lea rdx, [rsp + 0x130]
lea rdx, [rdx + r11]
sub rdi, r11
je 0x14000226c
lea rax, [r11 + 0x7ffffaeb]
add rax, rdi
lea r8, [rsp + 0x650]
sub r8, rdx
nop dword [rax + rax]
test rax, rax
je 0x14000226c
movzx ecx, byte [r8 + rdx]
test cl, cl
je 0x14000226c
mov byte [rdx], cl
dec rax
inc rdx
sub rdi, 1
jne 0x140002250
test rdi, rdi
lea rax, [rdx - 1]
cmovne rax, rdx
mov byte [rax], 0
lea rdx, [rsp + 0x130]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rbx, qword [rsp + 0xb80]
add rsp, 0xb70
pop rdi
ret