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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rcx
mov ecx, 0x7d0
call fcn.140016610
lea rsi, str.javaw.exe
mov rcx, rsi
mov r13, rax
call fcn.140016740
mov rbx, rdi
mov rcx, rdi
sub rbx, rax
call fcn.140016740
mov rdx, rsi
lea rcx, [rbx + rax]
call fcn.1400186e0
xor r15d, r15d
mov rcx, rsi
cmp eax, r15d
je 0x14000d19c
lea rcx, str.java.exe
call fcn.140016740
or ebx, 0xffffffff
mov rcx, rdi
sub ebx, eax
call fcn.140016740
mov rdx, rdi
add eax, ebx
mov rcx, r13
movsxd rbx, eax
mov r8, rbx
call fcn.140016af0
mov rcx, r13
mov byte [rbx + r13], r15b
call fcn.140014634
mov rcx, r13
mov r14, rax
call fcn.14000cfe4
lea r12, [0x1400365b8]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebp, eax
cmp eax, r15d
cmovl ebp, r15d
lea edi, [rbp + 0x1770]
movsxd rbx, edi
mov rcx, rbx
call fcn.140016610
mov rcx, r13
mov rsi, rax
call fcn.140016740
lea rcx, [rax + rbx + 1]
call fcn.140016610
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.140016d10
lea rdx, [0x14003424c]
mov rcx, rbx
call fcn.140016c70
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, r15d
jbe 0x14000d25a
mov rdx, rsi
mov rcx, rbx
call fcn.140016c70
jmp 0x14000d25d
mov byte [rsi], r15b
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp eax, r15d
je 0x14000d281
lea rcx, str.Setting_PATH__d__S
mov r8, rbx
mov edx, ebp
call fcn.140011a6c
jmp 0x14000d299
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Setting_PATH__S_failed_with_error__d
mov rdx, rbx
mov r8d, eax
call fcn.140011a6c
mov ecx, 0x5dc6
call fcn.140016610
lea rdx, str.PATH_s
mov r8, rbx
mov rcx, rax
mov rbp, rax
call fcn.140017b68
mov rcx, rbp
call fcn.14001a770
mov r8d, 0xc8
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x30]
mov rdi, r15
call fcn.140004548
lea rcx, [rsp + 0x20]
call fcn.140016740
cmp rax, r15
jbe 0x14000d2f6
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.14000cf0c
mov rdi, rax
lea r12, str.server
cmp rdi, r15
jne 0x14000d38a
mov rdx, qword [r12]
mov rcx, r13
call fcn.14000cf0c
add r12, 8
mov rdi, rax
lea rax, str.i4j_jres
cmp r12, rax
jl 0x14000d2fd
cmp rdi, r15
jne 0x14000d38a
mov rcx, r14
call fcn.140014710
lea rcx, [0x1400365b8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp eax, r15d
je 0x14000d358
lea rcx, str.Setting_PATH__S
mov rdx, rsi
call fcn.140011a6c
jmp 0x14000d370
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Setting_PATH__S_failed_with_error__d
mov rdx, rsi
mov r8d, eax
call fcn.140011a6c
lea rdx, str.PATH_s
mov r8, rsi
mov rcx, rbp
call fcn.140017b68
mov rcx, rbp
call fcn.14001a770
mov rcx, rbx
call fcn.140016ad0
mov rcx, rsi
call fcn.140016ad0
mov rcx, rbp
call fcn.140016ad0
mov rcx, r13
call fcn.140016ad0
mov rax, rdi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140016e60
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret