Function at 0x1400e2170
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r12, rcx
mov dword [rbp - 0x39], 0
call fcn.140012570
mov esi, 1
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rbp - 9], rax
test rax, rax
je 0x1400e265c
mov r13, rax
mov qword [rbp - 0x19], rax
cmp word [rax], 0
je 0x1400e2653
mov rdi, qword [rbp - 1]
mov rbx, qword [rbp + 7]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r13 + rax*2], 0
jne 0x1400e21e0
mov qword [rbp - 0x11], rax
mov edx, 0x3d
lea rcx, [r13 + 2]
call fcn.14022c188
mov r15, rax
test rax, rax
je 0x1400e2632
mov r14, rax
sub r14, r13
sar r14, 1
mov r8d, r14d
mov rdx, r13
lea rcx, [rbp - 0x29]
call fcn.1400ba830
nop
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
lea r13, [0x140484d90]
mov qword [rax], r13
or esi, 0xa
mov dword [rbp - 0x39], esi
test sil, 4
je 0x1400e2275
and esi, 0xfffffffb
mov dword [rbp - 0x39], esi
mov eax, dword [rdi]
test eax, eax
je 0x1400e225f
cmp eax, 0xffffffff
je 0x1400e2272
mov eax, 0xffffffff
lock xadd dword [rdi], eax
cmp eax, 1
jne 0x1400e2272
mov edx, 2
mov r8d, 8
mov rcx, rdi
call fcn.1400affb0
mov esi, dword [rbp - 0x39]
test sil, 2
je 0x1400e22b9
and esi, 0xfffffffd
mov dword [rbp - 0x39], esi
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e22a2
cmp ecx, 0xffffffff
je 0x1400e22b6
mov rax, qword [rbp - 0x29]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e22b6
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x29]
call fcn.1400affb0
mov esi, dword [rbp - 0x39]
mov r8d, dword [rbp - 0x11]
sub r8d, r14d
dec r8d
lea rdx, [r15 + 2]
lea rcx, [rbp - 0x21]
call fcn.1400ba830
nop
mov rcx, qword [rax]
mov qword [rbp + 0x7f], rcx
mov qword [rax], r13
or esi, 0x50
mov dword [rbp - 0x39], esi
test sil, 0x20
je 0x1400e231c
and esi, 0xffffffdf
mov dword [rbp - 0x39], esi
mov eax, dword [rbx]
test eax, eax
je 0x1400e2306
cmp eax, 0xffffffff
je 0x1400e2319
mov eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x1400e2319
mov edx, 2
mov r8d, 8
mov rcx, rbx
call fcn.1400affb0
mov esi, dword [rbp - 0x39]
test sil, 0x10
je 0x1400e235e
and esi, 0xffffffef
mov dword [rbp - 0x39], esi
mov rax, qword [rbp - 0x21]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e2349
cmp ecx, 0xffffffff
je 0x1400e235e
mov rax, qword [rbp - 0x21]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e235e
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x21]
call fcn.1400affb0
nop
mov rax, qword [r12]
test rax, rax
je 0x1400e23a4
mov eax, dword [rax]
cmp eax, 1
je 0x1400e2440
cmp qword [r12], 0
je 0x1400e23a4
mov ecx, select
call fcn.140229da8
mov rsi, rax
mov qword [rbp + 0xf], rax
mov rdx, qword [r12]
mov dword [rax], 0
lea rcx, [rax + 8]
add rdx, 8
call fcn.1400df860
nop
jmp 0x1400e23c2
mov ecx, select
call fcn.140229da8
mov rsi, rax
mov dword [rax], 0
lea rax, [0x140485f28]
mov qword [rsi + 8], rax
lock inc dword [rsi]
mov rcx, qword [r12]
test rcx, rcx
je 0x1400e243c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e243c
mov r14, qword [r12]
test r14, r14
je 0x1400e243c
mov rcx, qword [r14 + 8]
mov eax, dword [rcx]
test eax, eax
je 0x1400e2402
cmp eax, 0xffffffff
je 0x1400e242f
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e242f
mov r15, qword [r14 + 8]
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x1400e2426
call fcn.1400048c0
mov r8d, 8
mov rdx, qword [r15 + 0x10]
mov rcx, r15
call fcn.1400e8bd0
mov rcx, r15
call fcn.1400e8800
nop
mov edx, select
mov rcx, r14
call fcn.140229de4
mov qword [r12], rsi
mov r15, qword [r12]
mov rax, qword [rbp - 0x31]
mov qword [rbp + 0x77], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1400e245c
mov rax, qword [rbp - 0x31]
lock inc dword [rax]
mov rax, qword [r15 + 8]
mov ecx, dword [rax]
cmp ecx, 1
jbe 0x1400e24ec
call fcn.1400e8720
mov rsi, rax
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400e2497
mov rdx, rax
call fcn.1400de2f0
mov qword [rsi + 0x10], rax
and qword [rax], 3
lea rcx, [rsi + 8]
or qword [rax], rcx
mov rcx, qword [r15 + 8]
mov eax, dword [rcx]
test eax, eax
je 0x1400e24b4
cmp eax, 0xffffffff
je 0x1400e24e0
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e24e0
mov r14, qword [r15 + 8]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x1400e24d8
call fcn.1400048c0
mov r8d, 8
mov rdx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1400e8bd0
mov rcx, r14
call fcn.1400e8800
mov qword [r15 + 8], rsi
mov rcx, rsi
call fcn.1400e8fa0
mov rax, qword [r15 + 8]
mov rsi, qword [rax + 0x10]
lea r12, [rax + 8]
xor r13d, r13d
mov r14b, 1
test rsi, rsi
je 0x1400e256c
nop dword [rax]
nop word [rax + rax]
mov r12, rsi
lea rcx, [rsi + 0x18]
xor r8d, r8d
lea rdx, [rbp + 0x77]
call fcn.1400b8dd0
mov r14d, eax
test eax, eax
js 0x1400e2533
mov r13, rsi
mov rsi, qword [rsi + 8]
jmp 0x1400e2537
mov rsi, qword [rsi + 0x10]
shr r14d, 0x1f
xor r14b, 1
test rsi, rsi
jne 0x1400e2510
test r13, r13
je 0x1400e256c
lea rdx, [r13 + 0x18]
xor r8d, r8d
lea rcx, [rbp + 0x77]
call fcn.1400b8dd0
test eax, eax
js 0x1400e256c
lea rcx, [r13 + 0x20]
lea rdx, [rbp + 0x7f]
call fcn.1400b6400
jmp 0x1400e2586
mov byte [rsp + 0x20], r14b
mov r9, r12
lea r8, [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov rcx, qword [r15 + 8]
call fcn.1400de3b0
nop
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e25a7
cmp ecx, 0xffffffff
je 0x1400e25bc
mov rax, qword [rbp + 0x77]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e25bc
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0x77]
call fcn.1400affb0
nop
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e25dd
cmp ecx, 0xffffffff
je 0x1400e25f2
mov rax, qword [rbp + 0x7f]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e25f2
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0x7f]
call fcn.1400affb0
nop
mov rax, qword [rbp - 0x31]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e2613
cmp ecx, 0xffffffff
je 0x1400e2627
mov rax, qword [rbp - 0x31]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e2627
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.1400affb0
mov r13, qword [rbp - 0x19]
mov r12, qword [rbp + 0x67]
mov esi, dword [rbp - 0x39]
movsxd rax, dword [rbp - 0x11]
lea r13, [r13 + rax*2]
add r13, 2
mov qword [rbp - 0x19], r13
cmp word [r13], 0
jne 0x1400e21d0
mov rax, qword [rbp - 9]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, r12
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret