Function at 0x140013300
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 [0x140036b80]
jle 0x14001407c
mov eax, dword [0x140036c00]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x30], 0
jne 0x1400140ff
mov r14d, r9d
mov eax, dword [0x140036c00]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x28]
mov byte [rax + 0x30], 1
mov eax, dword [0x140036b60]
cmp eax, 0x3ffffffd
ja 0x1400133a7
lea ecx, [rax + 1]
lock cmpxchg dword [0x140036b60], ecx
je 0x1400133ac
call fcn.1400250d0
movzx ebx, byte [rbp + 0x4f0]
movzx eax, byte [0x140036b68]
cmp qword [0x140036b70], 0
jne 0x1400134ba
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 0x14001342c
mov eax, dword [0x140036c00]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dil, 1
cmp qword [rax + 0x28], 1
ja 0x14001342c
movzx edi, byte [0x140036b58]
dec dil
cmp dil, 3
jae 0x14001357a
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 [0x140036b70]
mov rax, qword [0x140036b78]
lea rdx, [rbp - 0x50]
call qword [rax + 0x28]
movzx eax, byte [0x140036b10]
mov ecx, 0x1e
call fcn.140011270
test rax, rax
jne 0x140013836
mov ecx, 2
mov edx, 0x1e
call fcn.140024270
jmp 0x140013608
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 0x14001388f
mov word [rax + r15*2], r12w
inc r15
mov qword [rbp - 0x40], r15
mov r12d, r13d
test r12w, r12w
jne 0x140013920
cmp r14, 0xe
je 0x1400139f8
movzx edx, byte [r14 + rsi]
movzx r12d, dl
test r12b, r12b
js 0x1400138b6
inc r14
jmp 0x140013920
mov ecx, r12d
and ecx, 0x1f
movzx r8d, byte [r14 + rsi + 1]
and r8d, 0x3f
cmp r12b, 0xdf
jbe 0x140013910
movzx r12d, byte [r14 + rsi + 2]
shl r8d, 6
and r12d, 0x3f
or r12d, r8d
cmp dl, 0xf0
jb 0x140013972
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 0x140013920
jmp 0x140013985
add r14, 2
shl ecx, 6
or ecx, r8d
mov r12d, ecx
nop dword [rax]
xor r13d, r13d
cmp r15, qword [rbp - 0x50]
jne 0x140013880
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.140024ce0
mov rax, qword [rbp - 0x48]
jmp 0x140013880
add r14, 3
shl ecx, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x140013920
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 0x140013880
jmp 0x14001392d
mov rcx, qword [rbp - 0x48]
mov rax, r15
mov r8, rcx
cmp r15, 8
jb 0x140013a5d
mov r8, rcx
mov rax, r15
nop
mov dword [rbp + 0x430], 0
mov byte [rbp + 0x434], 0
lea rax, [rbp + 0x428]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140013140]
mov qword [rbp + 0x3f8], rax
lea rax, [rbp + 0x3d8]
mov qword [rbp + 0x400], rax
lea rax, [0x140003540]
mov qword [rbp + 0x408], rax
lea rax, [0x1400298e8]
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 0x14001419e
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, [0x140013140]
mov qword [rbp + 0x3f8], rax
lea rax, [rbp + 0x430]
mov qword [rbp + 0x400], rax
lea rax, [0x140003520]
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.14000cc70
test rax, rax
je 0x1400141b4
mov rcx, rax
call fcn.14000cdf0
mov ecx, 7
int 0x29
ud2