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

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140085f88]
call fcn.14000c1c0
mov r14, rax
test rax, rax
je 0x140032663
mov qword [rsp + 0x30], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x1400324a5
mov qword [rsp + 0x38], rsi
mov rcx, rdi
nop word [rax + rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140032340
add rcx, rbp
lea rcx, [rcx*2 + 4]
call fcn.1400462e4
mov rsi, rax
test rax, rax
je 0x1400324a0
mov r8d, ebp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140032473
lea rcx, [rsi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140032381
mov eax, dword [0x140085f90]
mov dword [rcx], eax
lea rcx, [rsi - 2]
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400323a0
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400323b0
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
cmp word [rbx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400323d0
lea rcx, [rcx*2 + 0x14]
call fcn.1400462e4
mov rbp, rax
test rax, rax
je 0x140032473
sub rax, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x140032400
lea rdx, [0x140085f98]
mov rcx, rbp
call fcn.14000c9c0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, eax
mov ebx, eax
or ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, ebx
mov qword [0x140063130], rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r8, rdi
inc r8
cmp word [rbp + r8*2], 0
jne 0x140032452
add r8, r8
xor edx, edx
mov rcx, rbp
call fcn.1400452a0
mov rcx, rbp
call fcn.1400462d0
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140032480
add r8, r8
xor edx, edx
mov rcx, rsi
call fcn.1400452a0
mov rcx, rsi
call fcn.1400462d0
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
nop word [rax + rax]
cmp word [r14 + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x1400324b0
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, r14
call fcn.1400452a0
mov rcx, r14
call fcn.1400462d0
mov rcx, qword [0x140063130]
mov rdi, qword [rsp + 0x40]
test rcx, rcx
je 0x140032619
lea rdx, [0x140085fa8]
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140085fb8]
mov qword [0x140063120], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140085fc8]
mov qword [0x140063128], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140085fe0]
mov qword [0x140074ec0], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140085ff0]
mov qword [0x140074eb0], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086000]
mov qword [0x140074eb8], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086018]
mov qword [0x140074ea8], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086028]
mov qword [0x140074ec8], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086040]
mov qword [0x140074e98], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086050]
mov qword [0x140074e90], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086068]
mov qword [0x140074ea0], rax
call fcn.140009480
mov rcx, qword [0x140063130]
lea rdx, [0x140086080]
mov qword [0x140074e88], rax
call fcn.140009480
mov qword [0x140074e80], rax
cmp qword [0x140063120], 0
je 0x140032663
cmp qword [0x140063128], 0
je 0x140032663
cmp qword [0x140074ec0], 0
je 0x140032663
cmp qword [0x140074eb0], 0
je 0x140032663
cmp qword [0x140074eb8], 0
je 0x140032663
cmp qword [0x140074ea8], 0
je 0x140032663
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x20
pop r14
ret