Function at 0x14002cf60
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 [0x140044b80]
jle 0x14002dad7
mov eax, dword [0x140044c08]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x40], 0
jne 0x14002db5a
mov r14d, r9d
mov eax, dword [0x140044c08]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x38]
mov byte [rax + 0x40], 1
mov eax, dword [0x140044b60]
cmp eax, 0x3ffffffd
ja 0x14002d007
lea ecx, [rax + 1]
lock cmpxchg dword [0x140044b60], ecx
je 0x14002d00c
call fcn.14003e2e0
movzx esi, byte [rbp + 0x4f0]
movzx eax, byte [0x140044b68]
cmp qword [0x140044b70], 0
jne 0x14002d109
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 0x14002d082
mov eax, dword [0x140044c08]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov bl, 1
cmp qword [rax + 0x38], 1
ja 0x14002d082
movzx ebx, byte [0x140044b58]
dec bl
cmp bl, 3
jae 0x14002d1dc
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 [0x140044b70]
mov rax, qword [0x140044b78]
lea rdx, [rbp - 0x50]
call qword [rax + 0x28]
lea rdx, [0x140004125]
lea rcx, [rbp - 0x50]
mov r8d, 0xe
call fcn.140029c40
mov rcx, qword [rbp - 0x50]
mov rax, rcx
neg rax
mov qword [rbp + 0x468], rdi
jno 0x14002d5a7
mov rax, qword [rbp - 0x48]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x14002d278
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 0x14002d249
mov rcx, qword [rbp + 0x470]
call rax
mov rax, qword [rbp + 0x430]
cmp qword [rax + 8], 0
je 0x14002d267
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x470]
call fcn.140017a50
mov edx, 8
mov rcx, qword [rbp + 0x458]
call fcn.140017a50
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, [0x14002cda0]
mov qword [rbp + 0x3e0], rax
lea rax, [rbp + 0x408]
mov qword [rbp + 0x3e8], rax
lea rax, [0x140018f40]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140004d80]
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 0x14002dbf9
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, [0x14002cda0]
mov qword [rbp + 0x3e0], rax
lea rax, [rbp + 0x438]
mov qword [rbp + 0x3e8], rax
lea rax, [0x140026a10]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140004de8]
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.140024dd0
test rax, rax
je 0x14002dc0f
mov rcx, rax
call fcn.140024f50
mov ecx, 7
int 0x29
ud2