Function at 0x140008954
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2f10
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x2f00], rax
mov r13, rcx
mov edi, 0x2ee0
mov bl, dl
mov rcx, rdi
call fcn.140019b3c
lea rdx, [0x14003adbc]
xor r9d, r9d
mov rcx, rax
mov r8b, bl
mov r14, rax
call fcn.140007030
mov rcx, rdi
call fcn.140019b3c
xor r15d, r15d
mov rbp, rax
cmp bl, r15b
je 0x1400089f1
mov ecx, 0x1770
call fcn.140019b3c
mov rcx, rax
mov rbx, rax
call fcn.140006db4
lea rdx, [0x14003a168]
mov r8, rbx
mov rcx, rbp
call fcn.14001b8d8
mov rcx, rbx
call fcn.14001aaec
jmp 0x1400089fb
mov dl, 1
mov rcx, rax
call fcn.140006e0c
lea rdx, [0x14003b818]
mov r8, r14
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b7f0]
mov r8, r14
mov rcx, r13
call fcn.1400087e4
lea rsi, [0x140057460]
lea rdx, [0x14003b7d0]
mov r8, rsi
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b7a8]
mov r8, rsi
mov rcx, r13
call fcn.140008898
lea rdi, [0x14003abb8]
lea rdx, [0x14003b770]
mov r8, rdi
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b730]
mov r8, rdi
mov rcx, r13
call fcn.1400087e4
lea rbx, [0x140055c00]
lea rdx, [0x14003b708]
mov r8, rbx
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b6d8]
mov r8, rbx
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b6b8]
mov r8, r14
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b690]
mov r8, r14
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b668]
mov r8, rsi
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b638]
mov r8, rsi
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b600]
mov r8, rdi
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b5c0]
mov r8, rdi
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b598]
mov r8, rbx
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b568]
mov r8, rbx
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b520]
mov r8, r14
mov rcx, r13
call fcn.1400087e4
lea rdx, [0x14003b4d0]
mov r8, rsi
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b480]
mov r8, rdi
mov rcx, r13
call fcn.1400087e4
mov r8, rbx
lea rdx, [0x14003b448]
mov rcx, r13
call fcn.140008898
lea rdx, [0x14003b418]
mov r8, rbp
mov rcx, r13
call fcn.1400087e4
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r12, rax
cmp rax, r15
je 0x140008c56
mov rdi, rax
cmp word [rax], r15w
je 0x140008c56
mov rcx, rdi
call fcn.14001b1d8
mov rcx, 0xffffffffffffffff
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140019b3c
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.14001b8bc
mov edx, 0x3d
mov rcx, rsi
call fcn.14001c6c4
mov rbx, rax
cmp rax, r15
je 0x140008c37
lea rdx, [0x14003b408]
lea rcx, [rsp + 0x20]
mov r8, rsi
mov word [rax], r15w
call fcn.14001b8d8
lea r8, [rbx + 2]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1400087e4
lea rcx, [rsp + 0x20]
call fcn.14001d694
lea r8, [rbx + 2]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1400087e4
mov rcx, rdi
call fcn.14001b1d8
mov rcx, rsi
lea rdi, [rdi + rax*2 + 2]
call fcn.14001aaec
cmp word [rdi], r15w
jne 0x140008ba9
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rcx, r14
call fcn.14001aaec
mov rcx, rbp
call fcn.14001aaec
mov rcx, qword [rsp + 0x2f00]
xor rcx, rsp
call fcn.14001ae80
mov rbx, qword [rsp + 0x2f60]
add rsp, 0x2f10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret