Function at 0x140008d90
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.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x2f00], rax
mov r13, rcx
mov edi, 0x2ee0
mov bl, dl
mov rcx, rdi
call fcn.140016610
lea rdx, [0x140034d38]
xor r9d, r9d
mov rcx, rax
mov r8b, bl
mov r14, rax
call fcn.140007030
mov rcx, rdi
call fcn.140016610
xor r15d, r15d
mov rbp, rax
cmp bl, r15b
je 0x140008e2d
mov ecx, 0x1770
call fcn.140016610
mov rcx, rax
mov rbx, rax
call fcn.140006db4
lea rdx, [0x1400340b8]
mov r8, rbx
mov rcx, rbp
call fcn.1400178b8
mov rcx, rbx
call fcn.140016ad0
jmp 0x140008e37
mov dl, 1
mov rcx, rax
call fcn.140006e0c
lea rdx, [0x140035798]
mov r8, r14
mov rcx, r13
call fcn.140008c20
lea rdx, [0x140035770]
mov r8, r14
mov rcx, r13
call fcn.140008c20
lea rsi, [0x14004e000]
lea rdx, [0x140035750]
mov r8, rsi
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035728]
mov r8, rsi
mov rcx, r13
call fcn.140008cd4
lea rdi, [0x140034b08]
lea rdx, [0x1400356f0]
mov r8, rdi
mov rcx, r13
call fcn.140008c20
lea rdx, [0x1400356b0]
mov r8, rdi
mov rcx, r13
call fcn.140008c20
lea rbx, [0x14004c7a0]
lea rdx, [0x140035688]
mov r8, rbx
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035658]
mov r8, rbx
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035638]
mov r8, r14
mov rcx, r13
call fcn.140008c20
lea rdx, [0x140035610]
mov r8, r14
mov rcx, r13
call fcn.140008c20
lea rdx, [0x1400355e8]
mov r8, rsi
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x1400355b8]
mov r8, rsi
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035580]
mov r8, rdi
mov rcx, r13
call fcn.140008c20
lea rdx, [0x140035540]
mov r8, rdi
mov rcx, r13
call fcn.140008c20
lea rdx, [0x140035518]
mov r8, rbx
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x1400354e8]
mov r8, rbx
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x1400354a0]
mov r8, r14
mov rcx, r13
call fcn.140008c20
lea rdx, [0x140035450]
mov r8, rsi
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035400]
mov r8, rdi
mov rcx, r13
call fcn.140008c20
mov r8, rbx
lea rdx, [0x1400353c8]
mov rcx, r13
call fcn.140008cd4
lea rdx, [0x140035398]
mov r8, rbp
mov rcx, r13
call fcn.140008c20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r12, rax
cmp rax, r15
je 0x140009092
mov rdi, rax
cmp word [rax], r15w
je 0x140009092
mov rcx, rdi
call fcn.1400171b8
mov rcx, 0xffffffffffffffff
lea r11, [rax + 1]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140016610
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.14001789c
mov edx, 0x3d
mov rcx, rsi
call fcn.1400186a4
mov rbx, rax
cmp rax, r15
je 0x140009073
lea rdx, [0x140035388]
lea rcx, [rsp + 0x20]
mov r8, rsi
mov word [rax], r15w
call fcn.1400178b8
lea r8, [rbx + 2]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140008c20
lea rcx, [rsp + 0x20]
call fcn.140019574
lea r8, [rbx + 2]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140008c20
mov rcx, rdi
call fcn.1400171b8
mov rcx, rsi
lea rdi, [rdi + rax*2 + 2]
call fcn.140016ad0
cmp word [rdi], r15w
jne 0x140008fe5
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rcx, r14
call fcn.140016ad0
mov rcx, rbp
call fcn.140016ad0
mov rcx, qword [rsp + 0x2f00]
xor rcx, rsp
call fcn.140016e60
mov rbx, qword [rsp + 0x2f60]
add rsp, 0x2f10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret