Function at 0x14001a720
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4d8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x450], 0xfffffffffffffffe
mov rdx, rcx
mov bl, 3
cmp byte [rcx + 0x19], 0
jne 0x14001aa43
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov bl, 1
cmp qword [rax + 0x28], 1
ja 0x14001aa43
movzx ebx, byte [0x14002c148]
dec bl
cmp bl, 3
jb 0x14001aa43
mov qword [rbp + 0x430], rdx
movzx eax, byte [0x14002c1f0]
mov edx, 0x1e
xor ecx, ecx
call fcn.140018550
test rax, rax
je 0x14001b2ce
mov qword [rbp - 0x58], 0xf
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
xor ebx, ebx
lea r14, str.RUST_BACKTRACEfailed_to_write_the_buffered_data
mov r15, 0xffffffffffffffff
lea rdi, [rbp - 0x58]
xor r12d, r12d
xor r13d, r13d
jmp 0x14001a82e
mov r8d, 0xe
sub r8, r12
add r8, 3
cmovb r8, r15
shr r8, 2
cmp si, 1
sbb r8, 0
add r8, 2
mov qword [rsp + 0x20], 2
mov r9d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.14001e170
mov rax, qword [rbp - 0x50]
mov word [rax + rbx*2], r13w
inc rbx
mov qword [rbp - 0x48], rbx
mov r13d, esi
test r13w, r13w
jne 0x14001a8c0
cmp r12, 0xe
je 0x14001a917
movzx edx, byte [r12 + r14]
movzx r13d, dl
test r13b, r13b
js 0x14001a855
inc r12
jmp 0x14001a8c0
mov ecx, r13d
and ecx, 0x1f
movzx r8d, byte [r12 + r14 + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x14001a8ab
movzx r13d, byte [r12 + r14 + 2]
shl r8d, 6
and r13d, 0x3f
or r13d, r8d
cmp dl, 0xf0
jb 0x14001a8d1
movzx edx, byte [r12 + r14 + 3]
add r12, 4
and ecx, 7
shl ecx, 0x12
shl r13d, 6
and edx, 0x3f
or edx, r13d
or edx, ecx
mov r13d, edx
cmp r13d, 0xffff
jbe 0x14001a8c0
jmp 0x14001a8e4
add r12, 2
shl ecx, 6
or ecx, r8d
mov r13d, ecx
nop dword [rax + rax]
xor esi, esi
cmp rbx, qword [rbp - 0x58]
jne 0x14001a81f
jmp 0x14001a7e0
add r12, 3
shl ecx, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x14001a8c0
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov esi, r13d
mov r13d, ecx
cmp rbx, qword [rbp - 0x58]
jne 0x14001a81f
jmp 0x14001a7e0
mov rcx, qword [rbp - 0x50]
mov rax, rbx
mov r8, rcx
cmp rbx, 8
jb 0x14001a97a
mov r8, rcx
mov rax, rbx
cmp word [r8], 0
je 0x14001a995
cmp word [r8 + 2], 0
je 0x14001a995
cmp word [r8 + 4], 0
je 0x14001a995
cmp word [r8 + 6], 0
je 0x14001a995
cmp word [r8 + 8], 0
je 0x14001a995
cmp word [r8 + 0xa], 0
je 0x14001a995
cmp word [r8 + 0xc], 0
je 0x14001a995
cmp word [r8 + 0xe], 0
je 0x14001a995
add rax, 0xfffffffffffffff8
add r8, 0x10
cmp rax, 7
ja 0x14001a92d
add rax, rax
xor edx, edx
nop
cmp rax, rdx
je 0x14001afb1
cmp word [r8 + rdx], 0
lea rdx, [rdx + 2]
jne 0x14001a980
cmp qword [rbp - 0x58], 0
je 0x14001a9a6
mov edx, 2
call fcn.1400047f0
lea rcx, [0x140027e30]
mov eax, ecx
and eax, 3
mov bl, 2
mov r14b, 3
cmp eax, 1
jne 0x14001aa1d
lea rax, [rcx - 1]
mov qword [rbp + 0x438], rax
mov rax, qword [rcx - 1]
mov qword [rbp + 0x428], rax
mov rax, qword [rcx + 7]
mov qword [rbp + 0x440], rax
mov rax, qword [rax]
test rax, rax
je 0x14001a9ee
mov rcx, qword [rbp + 0x428]
call rax
mov rcx, qword [rbp + 0x428]
mov rax, qword [rbp + 0x440]
cmp qword [rax + 8], 0
je 0x14001aa0c
mov rdx, qword [rax + 0x10]
call fcn.1400047f0
mov edx, 8
mov rcx, qword [rbp + 0x438]
call fcn.1400047f0
xor eax, eax
lock cmpxchg byte [0x14002c148], r14b
mov rdx, qword [rbp + 0x430]
je 0x14001aa43
mov bl, 3
cmp al, 4
jae 0x14001aa43
shl al, 3
mov ebx, 0x2010003
mov ecx, eax
shr ebx, cl
mov rax, qword [rdx + 0x10]
mov qword [rbp + 0x3b8], rax
mov rdi, qword [rdx]
mov rax, qword [rdx + 8]
mov rsi, qword [rax + 0x18]
mov rcx, rdi
call rsi
movabs rcx, 0xb98b1b7157a64178
xor rcx, rax
movabs r8, 0x63eb502cd6cb5d6d
xor r8, rdx
mov eax, 8
or r8, rcx
mov rcx, rdi
je 0x14001aab2
mov rcx, rdi
call rsi
movabs rcx, 0x82930b0819a7447e
xor rcx, rax
movabs rax, 0x112bdb54d658b6a5
xor rax, rdx
or rax, rcx
jne 0x14001aabb
lea rcx, [rdi + 8]
mov eax, 0x10
mov rcx, qword [rcx]
mov rax, qword [rdi + rax]
jmp 0x14001aac7
lea rcx, str.Box_dyn_Any_aborting_due_to_panic_at
mov eax, 0xc
mov qword [rbp + 0x3a8], rcx
mov qword [rbp + 0x3b0], rax
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
test eax, eax
je 0x14001aafa
cmp eax, 1
je 0x14001ab19
jmp 0x14001ab76
call fcn.140014ad0
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rdi, qword [rax + 0x58]
test rdi, rdi
je 0x14001af86
lock inc qword [rdi]
jle 0x14001afaf
test rdi, rdi
je 0x14001ab76
mov qword [rbp + 0x400], rdi
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14001af49
cmp eax, 2
jne 0x14001af5a
mov eax, 9
lea rcx, str._unnamed_thread__panicked_at__n
jmp 0x14001ab8f
mov qword [rbp + 0x400], 0
mov eax, 9
lea rcx, str._unnamed_thread__panicked_at__n
xor edi, edi
mov qword [rbp + 0x408], rcx
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x410], eax
mov eax, 4
lea rcx, [0x140027048]
jmp 0x14001ab8f
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x20]
dec rax
jmp 0x14001ab8f
call fcn.14001e030
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rdi, qword [rax + 0x58]
lock inc qword [rdi]
jg 0x14001ab46
ud2
mov rdx, qword [rbp - 0x58]
cmp rbx, rdx
jne 0x14001afcb
lea rcx, [rbp - 0x58]
call fcn.1400176e0
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
mov word [rcx + rbx*2], 0
mov rax, rdx
neg rax
jo 0x14001a9ad
mov qword [rbp + 0x438], rdx
mov qword [rbp + 0x428], rcx
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x440], rax
xor edi, edi
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jb 0x14001b03f
jmp 0x14001b050
jae 0x14001b13e
cmp r8, 0x201
jae 0x14001b050
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x14001b0b7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x14001b08e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x408]
mov rdx, r14
call fcn.14001e170
mov rdi, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x440], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x418], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rbp + 0x440]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x428]
mov rdx, r12
mov r8d, r13d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x14001b0e6
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14001b193
mov r8d, ebx
cmp r13, r8
jne 0x14001b030
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001b2b1
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jae 0x14001b050
jmp 0x14001b03f
cmp r15, r8
jb 0x14001b2dd
lea rcx, [rbp + 0x3c0]
mov rdx, r12
call fcn.1400168b0
mov rsi, qword [rbp + 0x3c0]
mov rdi, qword [rbp + 0x3c8]
mov r15, qword [rbp + 0x3d0]
cmp qword [rbp + 0x408], 0
je 0x14001b186
mov rcx, qword [rbp + 0x410]
mov edx, 2
call fcn.1400047f0
mov rax, rsi
neg rax
jo 0x14001b1be
jmp 0x14001b233
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
cmp qword [rbp + 0x408], 0
je 0x14001b1ba
mov rcx, qword [rbp + 0x410]
mov edx, 2
call fcn.1400047f0
or rdi, 2
mov eax, edi
and eax, 3
movabs rsi, 0x8000000000000000
cmp eax, 1
jne 0x14001b233
lea rax, [rdi - 1]
mov qword [rbp + 0x3f0], rax
mov rax, qword [rdi - 1]
mov qword [rbp + 0x440], rax
mov rax, qword [rdi + 7]
mov qword [rbp + 0x3f8], rax
mov rax, qword [rax]
test rax, rax
je 0x14001b204
mov rcx, qword [rbp + 0x440]
call rax
mov rcx, qword [rbp + 0x440]
mov rax, qword [rbp + 0x3f8]
cmp qword [rax + 8], 0
je 0x14001b222
mov rdx, qword [rax + 0x10]
call fcn.1400047f0
mov edx, 8
mov rcx, qword [rbp + 0x3f0]
call fcn.1400047f0
cmp qword [rbp + 0x438], 0
je 0x14001b24e
mov edx, 2
mov rcx, qword [rbp + 0x428]
call fcn.1400047f0
mov bl, 2
mov r14b, 3
mov rax, rsi
neg rax
jo 0x14001aa1d
cmp r15, 4
je 0x14001b272
cmp r15, 1
jne 0x14001b27a
cmp byte [rdi], 0x30
jne 0x14001b27a
jmp 0x14001b29b
cmp dword [rdi], 0x6c6c7566
je 0x14001b296
mov r14b, 1
test rsi, rsi
je 0x14001b28f
mov edx, 1
mov rcx, rdi
call fcn.1400047f0
xor ebx, ebx
jmp 0x14001aa1d
mov bl, 1
mov r14b, 2
test rsi, rsi
je 0x14001aa1d
mov edx, 1
mov rcx, rdi
jmp 0x14001aa18
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001d320
jmp 0x14001afaf
mov ecx, 2
mov edx, 0x1e
call fcn.14001d0c0
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001d2b0
jmp 0x14001afaf