Function at 0x14002b880
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x508
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x480], 0xfffffffffffffffe
mov qword [rbp + 0x408], rcx
mov qword [rbp + 0x410], rdx
mov qword [rbp + 0x420], r8
lock inc qword [0x140042b80]
jle 0x14002c3f7
mov eax, dword [0x140042c08]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x40], 0
jne 0x14002c47a
mov r14d, r9d
mov eax, dword [0x140042c08]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x38]
mov byte [rax + 0x40], 1
mov eax, dword [0x140042b60]
cmp eax, 0x3ffffffd
ja 0x14002b927
lea ecx, [rax + 1]
lock cmpxchg dword [0x140042b60], ecx
je 0x14002b92c
call fcn.14003cc00
movzx esi, byte [rbp + 0x4f0]
movzx eax, byte [0x140042b68]
cmp qword [0x140042b70], 0
jne 0x14002ba29
mov rdi, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
call qword [rax + 0x28]
mov r15, rax
mov qword [rbp + 0x460], rdx
mov bl, 3
test sil, sil
jne 0x14002b9a2
mov eax, dword [0x140042c08]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov bl, 1
cmp qword [rax + 0x38], 1
ja 0x14002b9a2
movzx ebx, byte [0x140042b58]
dec bl
cmp bl, 3
jae 0x14002bafc
mov rdi, qword [rbp + 0x420]
mov rcx, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
call qword [rax + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rdi
mov byte [rbp - 0x38], r14b
mov byte [rbp - 0x37], sil
mov rcx, qword [0x140042b70]
mov rax, qword [0x140042b78]
lea rdx, [rbp - 0x50]
call qword [rax + 0x28]
lea rdx, [0x140004035]
lea rcx, [rbp - 0x50]
mov r8d, 0xe
call fcn.140028560
mov rcx, qword [rbp - 0x50]
mov rax, rcx
neg rax
mov qword [rbp + 0x468], rdi
jno 0x14002bec7
mov rax, qword [rbp - 0x48]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x14002bb98
lea rcx, [rax - 1]
mov qword [rbp + 0x458], rcx
mov rcx, qword [rax - 1]
mov qword [rbp + 0x470], rcx
mov rax, qword [rax + 7]
mov qword [rbp + 0x430], rax
mov rax, qword [rax]
test rax, rax
je 0x14002bb69
mov rcx, qword [rbp + 0x470]
call rax
mov rax, qword [rbp + 0x430]
cmp qword [rax + 8], 0
je 0x14002bb87
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x470]
call fcn.14001a5a0
mov edx, 8
mov rcx, qword [rbp + 0x458]
call fcn.14001a5a0
mov bl, 2
mov dil, 3
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x428], r15
mov byte [rbp + 0x47f], r14b
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x458], rax
mov qword [rbp + 0x438], 0
add byte [rax], al
add byte [rax], al
add byte [rax - 0x39], cl
test dword [rax + 4], eax
add byte [rax], al
add al, byte [rax]
add byte [rax], al
mov dword [rbp + 0x438], 0
mov byte [rbp + 0x43c], 0
lea rax, [rbp + 0x420]
mov qword [rbp + 0x3d8], rax
lea rax, [0x14002b6c0]
mov qword [rbp + 0x3e0], rax
lea rax, [rbp + 0x408]
mov qword [rbp + 0x3e8], rax
lea rax, [0x140017900]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140004c90]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3d8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x438]
jmp 0x14002c519
call qword [rdx + 0x30]
test rax, rax
mov ecx, 1
cmovne rcx, rax
cmove rdx, rax
mov qword [rbp + 0x438], rcx
mov qword [rbp + 0x440], rdx
mov dword [rbp + 0x3b8], 0
mov byte [rbp + 0x3bc], 0
lea rax, [rbp + 0x420]
mov qword [rbp + 0x3d8], rax
lea rax, [0x14002b6c0]
mov qword [rbp + 0x3e0], rax
lea rax, [rbp + 0x438]
mov qword [rbp + 0x3e8], rax
lea rax, [0x140025330]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140004cf8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3d8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x3b8]
lea rdx, [rbp - 0x50]
call fcn.1400236f0
test rax, rax
je 0x14002c52f
mov rcx, rax
call fcn.140023870
mov ecx, 7
int 0x29
ud2