Function at 0x140014020
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 + 0x3d8], rcx
mov qword [rbp + 0x3e0], rdx
mov qword [rbp + 0x428], r8
lock inc qword [0x140020190]
jle 0x140014d9c
mov eax, dword [0x140020214]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x30], 0
jne 0x140014e1f
mov r14d, r9d
mov eax, dword [0x140020214]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x28]
mov byte [rax + 0x30], 1
mov eax, dword [0x140020170]
cmp eax, 0x3ffffffd
ja 0x1400140c7
lea ecx, [rax + 1]
lock cmpxchg dword [0x140020170], ecx
je 0x1400140cc
call fcn.140017dc0
movzx ebx, byte [rbp + 0x4f0]
movzx eax, byte [0x140020178]
cmp qword [0x140020180], 0
jne 0x1400141da
mov rsi, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
call qword [rax + 0x28]
mov r15, rax
mov qword [rbp + 0x3b8], rdx
mov qword [rbp + 0x460], rsi
mov dil, 3
test bl, bl
jne 0x14001414c
mov eax, dword [0x140020214]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dil, 1
cmp qword [rax + 0x28], 1
ja 0x14001414c
movzx edi, byte [0x140020168]
dec dil
cmp dil, 3
jae 0x14001429a
mov rsi, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
call qword [rax + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x38], r14b
mov byte [rbp - 0x37], bl
mov rcx, qword [0x140020180]
mov rax, qword [0x140020188]
lea rdx, [rbp - 0x50]
call qword [rax + 0x28]
movzx eax, byte [0x140020210]
mov ecx, 0x1e
call fcn.140011fc0
test rax, rax
jne 0x14001455d
mov ecx, 2
mov edx, 0x1e
call fcn.140016e50
jmp 0x140014328
mov qword [rbp + 0x450], r15
mov byte [rbp + 0x47f], r14b
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 0
xor r15d, r15d
lea rsi, str.RUST_BACKTRACEfailed_to_write_the_buffered_data
mov rbx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
xor r14d, r14d
xor r12d, r12d
jmp 0x1400145af
mov word [rax + r15*2], r12w
inc r15
mov qword [rbp - 0x40], r15
mov r12d, r13d
test r12w, r12w
jne 0x140014640
cmp r14, 0xe
je 0x140014718
movzx edx, byte [r14 + rsi]
movzx r12d, dl
test r12b, r12b
js 0x1400145d6
inc r14
jmp 0x140014640
mov ecx, r12d
and ecx, 0x1f
movzx r8d, byte [r14 + rsi + 1]
and r8d, 0x3f
cmp r12b, 0xdf
jbe 0x140014630
movzx r12d, byte [r14 + rsi + 2]
shl r8d, 6
and r12d, 0x3f
or r12d, r8d
cmp dl, 0xf0
jb 0x140014692
movzx edx, byte [r14 + rsi + 3]
add r14, 4
and ecx, 7
shl ecx, 0x12
shl r12d, 6
and edx, 0x3f
or edx, r12d
or edx, ecx
mov r12d, edx
cmp r12d, 0xffff
jbe 0x140014640
jmp 0x1400146a5
add r14, 2
shl ecx, 6
or ecx, r8d
mov r12d, ecx
nop dword [rax]
xor r13d, r13d
cmp r15, qword [rbp - 0x50]
jne 0x1400145a0
mov r8d, 0xe
sub r8, r14
add r8, 3
cmovb r8, rbx
shr r8, 2
cmp r13w, 1
sbb r8, 0
add r8, 2
mov qword [rsp + 0x20], 2
mov r9d, 2
mov rcx, rdi
mov rdx, r15
call fcn.140017940
mov rax, qword [rbp - 0x48]
jmp 0x1400145a0
add r14, 3
shl ecx, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x140014640
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r13d, r12d
mov r12d, ecx
cmp r15, qword [rbp - 0x50]
jne 0x1400145a0
jmp 0x14001464d
mov rcx, qword [rbp - 0x48]
mov rax, r15
mov r8, rcx
mov eax, ecx
mov dword [rbp + 0x430], 0
mov byte [rbp + 0x434], 0
lea rax, [rbp + 0x428]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140013e60]
mov qword [rbp + 0x3f8], rax
lea rax, [rbp + 0x3d8]
mov qword [rbp + 0x400], rax
lea rax, [0x140002d60]
mov qword [rbp + 0x408], rax
lea rax, [0x14001b2d0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3f0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x430]
jmp 0x140014ebe
call qword [rdx + 0x30]
test rax, rax
mov ecx, 1
cmovne rcx, rax
cmove rdx, rax
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x438], rdx
mov dword [rbp + 0x3c0], 0
mov byte [rbp + 0x3c4], 0
lea rax, [rbp + 0x428]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140013e60]
mov qword [rbp + 0x3f8], rax
lea rax, [rbp + 0x430]
mov qword [rbp + 0x400], rax
lea rax, [0x14000e110]
mov qword [rbp + 0x408], rax
lea rax, str.panicked_at_:_nstd_srcpath.rs
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3f0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x3c0]
lea rdx, [rbp - 0x50]
call fcn.14000c560
test rax, rax
je 0x140014ed4
mov rcx, rax
call fcn.14000c6e0
mov ecx, 7
int 0x29
ud2