Function at 0x14001731f
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x518
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x490], 0xfffffffffffffffe
mov byte [rbp + 0x48f], r9b
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x408], rdx
mov qword [rbp + 0x420], r8
lock inc qword [0x1400261c0]
jle 0x140017f44
mov eax, dword [0x140026244]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x30], 0
jne 0x140017fbc
mov eax, dword [0x140026244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x28]
mov byte [rax + 0x30], 1
mov eax, dword [0x1400261a0]
cmp eax, 0x3ffffffd
ja 0x1400174c7
lea ecx, [rax + 1]
lock cmpxchg dword [0x1400261a0], ecx
jne 0x1400174c7
mov bl, byte [rbp + 0x500]
mov al, byte [0x1400261a8]
cmp qword [0x1400261b0], 0
jne 0x1400175e3
mov rdi, qword [rbp + 0x420]
mov r14, qword [rbp + 0x400]
mov r15, qword [rbp + 0x408]
mov rcx, r14
call qword [r15 + 0x28]
mov r12, rax
mov r13, rdx
mov sil, 3
test bl, bl
jne 0x140017449
mov eax, dword [0x140026244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov sil, 1
cmp qword [rax + 0x28], 1
ja 0x140017449
mov sil, byte [0x140026198]
dec sil
cmp sil, 3
jae 0x14001769f
mov eax, dword [0x1400261a0]
cmp eax, 0x3fffffff
jne 0x1400174ef
push 0xffffffffffffff9d
pop rcx
pause
mov eax, dword [0x1400261a0]
cmp eax, 0x3fffffff
jne 0x1400174ef
lea edx, [rcx + 1]
test ecx, ecx
mov ecx, edx
jne 0x1400174d7
push 0xffffffffffffff9d
pop rbx
lea rsi, [0x1400261a0]
lea rdi, [rbp - 0x58]
push 4
pop r14
push 0xffffffffffffffff
pop r15
mov r12, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress]
mov r13, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
and ecx, 0x3fffffff
cmp ecx, 0x3ffffffe
setb dl
cmp eax, 0x40000000
setb r8b
test r8b, dl
je 0x140017544
lea ecx, [rax + 1]
lock cmpxchg dword [0x1400261a0], ecx
jne 0x140017513
jmp 0x1400173d2
cmp ecx, 0x3ffffffe
je 0x1400175b2
bt eax, 0x1e
jb 0x140017566
mov ecx, eax
or ecx, 0x40000000
lock cmpxchg dword [0x1400261a0], ecx
jne 0x140017513
jmp 0x140017568
mov ecx, eax
mov dword [rbp - 0x58], ecx
mov rcx, rsi
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call r12
cmp eax, 1
je 0x140017582
call r13
mov eax, dword [0x1400261a0]
cmp eax, 0x3fffffff
jne 0x140017513
mov ecx, ebx
pause
mov eax, dword [0x1400261a0]
lea edx, [rcx + 1]
cmp eax, 0x3fffffff
jne 0x140017513
test ecx, ecx
mov ecx, edx
jne 0x140017591
jmp 0x140017513
lea rax, str.too_many_active_read_locks_on_RwLock
lea rcx, [rbp - 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.std_src_sys_sync_rwlock_futex.rs8
call fcn.14001a1a0
mov rsi, qword [rbp + 0x420]
mov r14, qword [rbp + 0x400]
mov r15, qword [rbp + 0x408]
mov rcx, r14
call qword [r15 + 0x28]
lea r8, [rbp - 0x58]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rsi
mov al, byte [rbp + 0x48f]
mov byte [r8 + 0x18], al
mov byte [r8 + 0x19], bl
mov rcx, qword [0x1400261b0]
mov rax, qword [0x1400261b8]
mov rdx, r8
call qword [rax + 0x28]
mov al, byte [0x140026240]
push 0x1e
pop rdx
xor ecx, ecx
call fcn.140015120
test rax, rax
jne 0x140017857
push 2
pop rcx
push 0x1e
pop rdx
call fcn.140019ff0
sub dword [rax], eax
add bl, ch
invalid
mov qword [rbp + 0x478], r13
mov qword [rbp + 0x470], rdi
mov qword [rbp + 0x468], r12
mov qword [rbp + 0x460], r15
mov qword [rbp + 0x458], r14
lea rcx, [rbp - 0x58]
mov qword [rcx], 0xf
mov qword [rcx + 8], rax
and qword [rcx + 0x10], 0
xor r13d, r13d
lea rsi, str.RUST_BACKTRACEfailed_to_write_the_buffered_data
push 0xe
pop rdi
push 0xffffffffffffffff
pop r14
xor r15d, r15d
xor ebx, ebx
test bx, bx
jne 0x140017952
cmp r15, 0xe
je 0x1400179de
mov dl, byte [r15 + rsi]
movzx ebx, dl
test bl, bl
js 0x1400178ca
inc r15
jmp 0x140017952
mov ecx, ebx
and ecx, 0x1f
movzx r8d, byte [r15 + rsi + 1]
and r8d, 0x3f
cmp bl, 0xdf
jbe 0x140017911
movzx ebx, byte [r15 + rsi + 2]
shl r8d, 6
and ebx, 0x3f
or ebx, r8d
cmp dl, 0xf0
jb 0x14001791f
movzx edx, byte [r15 + rsi + 3]
add r15, 4
and ecx, 7
shl ecx, 0x12
shl ebx, 6
and edx, 0x3f
or edx, ebx
or edx, ecx
mov ebx, edx
jmp 0x140017928
add r15, 2
shl ecx, 6
or ecx, r8d
mov ebx, ecx
jmp 0x140017952
add r15, 3
shl ecx, 0xc
or ebx, ecx
cmp ebx, 0xffff
jbe 0x140017952
lea ecx, [rbx + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and ebx, 0x3ff
or ebx, 0xdc00
mov r12d, ebx
mov ebx, ecx
jmp 0x140017955
xor r12d, r12d
cmp r13, qword [rbp - 0x58]
jne 0x140017997
mov r8, rdi
sub r8, r15
add r8, 3
cmovb r8, r14
shr r8, 2
cmp r12w, 1
sbb r8, 0
add r8, 2
mov qword [rsp + 0x20], 2
lea rcx, [rbp - 0x58]
mov rdx, r13
push 2
pop r9
call fcn.14001ab30
mov rax, qword [rbp - 0x50]
mov word [rax + r13*2], bx
inc r13
mov qword [rbp - 0x48], r13
mov ebx, r12d
jmp 0x1400178a4
mov rdx, qword [rbp - 0x50]
mov rax, r13
lea rcx, [rbp + 0x3e8]
and dword [rcx], 0
mov byte [rcx + 4], 0
lea rax, [rbp + 0x420]
lea r8, [rbp + 0x3a8]
mov qword [r8], rax
lea rax, [0x140017100]
mov qword [r8 + 8], rax
lea rax, [rbp + 0x400]
mov qword [r8 + 0x10], rax
lea rax, [0x1400206a8]
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x140006070]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.14000f970
lea rcx, [rbp + 0x428]
jmp 0x140018047
push 1
pop rsi
call qword [rdx + 0x30]
test rax, rax
cmovne rsi, rax
cmove rdx, rax
lea rax, [rbp + 0x428]
lea rcx, [rbp + 0x3d8]
and dword [rcx], 0
mov qword [rax], rsi
mov qword [rax + 8], rdx
mov byte [rcx + 4], 0
lea rdx, [rbp + 0x420]
lea r8, [rbp + 0x3a8]
mov qword [r8], rdx
lea rdx, [0x140017100]
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rax
lea rax, str.panicked_at_:_nstd_srcpath.rs
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x140006050]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.14000f970
lea rcx, [rbp + 0x3e8]
mov qword [rcx], rax
call fcn.14000fad0
push 7
pop rcx
int 0x29
ud2