Function at 0x140020400
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 r14, rcx
mov bl, 3
cmp byte [rcx + 0x19], 0
jne 0x140020a48
mov eax, dword [0x140060244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov bl, 1
cmp qword [rax + 0x28], 1
ja 0x140020a48
movzx ebx, byte [0x140060198]
dec bl
cmp bl, 3
jb 0x140020a48
mov qword [rbp + 0x440], r14
movzx eax, byte [0x140060240]
mov edx, 0x1e
xor ecx, ecx
call fcn.14001dfe0
test rax, rax
je 0x14002108a
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 0
xor ebx, ebx
lea r14, str.RUST_BACKTRACEfailed_to_write_the_buffered_data
mov r15, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
xor r12d, r12d
xor r13d, r13d
jmp 0x14002050e
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.140024560
mov rax, qword [rbp - 0x48]
mov word [rax + rbx*2], r13w
inc rbx
mov qword [rbp - 0x40], rbx
mov r13d, esi
test r13w, r13w
je 0x140020520
xor esi, esi
cmp rbx, qword [rbp - 0x50]
jne 0x1400204ff
jmp 0x1400204c0
cmp r12, 0xe
je 0x14002060a
movzx edx, byte [r12 + r14]
movzx r13d, dl
test r13b, r13b
js 0x140020548
inc r12
xor esi, esi
cmp rbx, qword [rbp - 0x50]
jne 0x1400204ff
jmp 0x1400204c0
mov ecx, r13d
and ecx, 0x1f
movzx r8d, byte [r12 + r14 + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x1400205a2
movzx r13d, byte [r12 + r14 + 2]
shl r8d, 6
and r13d, 0x3f
or r13d, r8d
cmp dl, 0xf0
jb 0x1400205c0
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 0x140020514
jmp 0x1400205d7
add r12, 2
shl ecx, 6
or ecx, r8d
mov r13d, ecx
xor esi, esi
cmp rbx, qword [rbp - 0x50]
jne 0x1400204ff
jmp 0x1400204c0
add r12, 3
shl ecx, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x140020514
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 - 0x50]
jne 0x1400204ff
jmp 0x1400204c0
mov r8, qword [rbp - 0x48]
mov rax, rbx
mov rcx, r8
cmp rbx, 8
mov r14, qword [rbp + 0x440]
jb 0x14002066c
mov rcx, r8
mov rax, rbx
cmp word [rcx], 0
je 0x140020694
cmp word [rcx + 2], 0
je 0x140020694
cmp word [rcx + 4], 0
je 0x140020694
cmp word [rcx + 6], 0
je 0x140020694
cmp word [rcx + 8], 0
je 0x140020694
cmp word [rcx + 0xa], 0
je 0x140020694
cmp word [rcx + 0xc], 0
je 0x140020694
cmp word [rcx + 0xe], 0
je 0x140020694
add rax, 0xfffffffffffffff8
add rcx, 0x10
cmp rax, 7
ja 0x140020627
add rax, rax
xor edx, edx
nop word cs:[rax + rax]
cmp rax, rdx
je 0x140020736
cmp word [rcx + rdx], 0
lea rdx, [rdx + 2]
jne 0x140020680
cmp qword [rbp - 0x50], 0
je 0x1400206aa
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
lea r8, [0x14005a6a8]
mov eax, r8d
and eax, 3
cmp eax, 1
jne 0x140020a24
lea rax, [r8 - 1]
mov qword [rbp + 0x440], rax
mov rax, qword [r8 - 1]
mov qword [rbp + 0x428], rax
mov rax, qword [r8 + 7]
mov qword [rbp + 0x438], rax
mov rax, qword [rax]
test rax, rax
je 0x1400206f2
mov rcx, qword [rbp + 0x428]
call rax
mov r8, qword [rbp + 0x428]
mov bl, 2
mov sil, 3
mov rax, qword [rbp + 0x438]
cmp qword [rax + 8], 0
je 0x1400208b5
cmp qword [rax + 0x10], 0x11
jb 0x14002071b
mov r8, qword [r8 - 8]
mov r15, qword [rbp + 0x440]
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400208bc
mov rcx, qword [rbp - 0x50]
cmp rbx, rcx
jne 0x140020757
lea rcx, [rbp - 0x50]
call fcn.14001d140
mov rcx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov r14, qword [rbp + 0x440]
mov word [r8 + rbx*2], 0
mov rax, rcx
neg rax
jo 0x1400206b1
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x428], r8
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x438], rax
xor edi, edi
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jb 0x1400207cf
jmp 0x1400207e0
jae 0x1400208d3
cmp r8, 0x201
jae 0x1400207e0
mov r15d, 0x200
lea r12, [rbp - 0x50]
mov r13, r8
jmp 0x140020847
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x14002081e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x408]
mov rdx, r14
call fcn.140024560
mov rdi, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x438], 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 + 0x438]
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 0x140020876
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140020934
mov r8d, ebx
cmp r13, r8
jne 0x1400207c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002106d
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jae 0x1400207e0
jmp 0x1400207cf
mov r15, qword [rbp + 0x440]
mov rcx, qword [0x1400601e0]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140020a29
cmp r15, r8
jb 0x140021099
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001c210
mov rdi, qword [rbp + 0x3c8]
mov r15, qword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x3d8]
cmp qword [rbp + 0x408], 0
mov r14, qword [rbp + 0x440]
je 0x140020927
mov r8, qword [rbp + 0x410]
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rdi
neg rax
jo 0x14002096c
jmp 0x1400209f8
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
shl r15, 0x20
cmp qword [rbp + 0x408], 0
je 0x140020961
mov r8, qword [rbp + 0x410]
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
or r15, 2
mov r14, qword [rbp + 0x440]
mov eax, r15d
and eax, 3
movabs rdi, 0x8000000000000000
cmp eax, 1
jne 0x1400209f8
lea rax, [r15 - 1]
mov qword [rbp + 0x3f8], rax
mov rax, qword [r15 - 1]
mov qword [rbp + 0x438], rax
mov rax, qword [r15 + 7]
mov qword [rbp + 0x440], rax
mov rax, qword [rax]
test rax, rax
je 0x1400209b3
mov rcx, qword [rbp + 0x438]
call rax
mov r8, qword [rbp + 0x438]
mov rax, qword [rbp + 0x440]
cmp qword [rax + 8], 0
je 0x1400209e2
cmp qword [rax + 0x10], 0x11
jb 0x1400209d3
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400601e0]
xor edx, edx
mov r8, qword [rbp + 0x3f8]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x430], 0
je 0x140020a18
mov rcx, qword [0x1400601e0]
xor edx, edx
mov r8, qword [rbp + 0x428]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rdi
neg rax
jno 0x140021019
mov bl, 2
mov sil, 3
xor eax, eax
lock cmpxchg byte [0x140060198], sil
je 0x140020a48
mov bl, 3
cmp al, 4
jae 0x140020a48
shl al, 3
mov ebx, 0x2010003
mov ecx, eax
shr ebx, cl
mov rax, qword [r14 + 0x10]
mov qword [rbp + 0x3c0], rax
mov rdi, qword [r14]
mov rax, qword [r14 + 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 0x140020ab7
mov rcx, rdi
call rsi
movabs rcx, 0x82930b0819a7447e
xor rcx, rax
movabs rax, 0x112bdb54d658b6a5
xor rax, rdx
or rax, rcx
jne 0x140020ac0
lea rcx, [rdi + 8]
mov eax, 0x10
mov rcx, qword [rcx]
mov rax, qword [rdi + rax]
jmp 0x140020acc
lea rcx, str.Box_dyn_Any_aborting_due_to_panic_at
mov eax, 0xc
mov qword [rbp + 0x3b0], rcx
mov qword [rbp + 0x3b8], rax
mov eax, dword [0x140060244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
test eax, eax
je 0x140020aff
cmp eax, 1
je 0x140020b1e
jmp 0x140020b7b
call fcn.14001a300
mov eax, dword [0x140060244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x140060244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rdi, qword [rax + 0x58]
test rdi, rdi
je 0x140020fd5
lock inc qword [rdi]
jle 0x140020ffe
test rdi, rdi
je 0x140020b7b
mov qword [rbp + 0x400], rdi
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140020f10
cmp eax, 2
jne 0x140020f21
mov eax, 9
lea rcx, str._unnamed_thread__panicked_at__n
jmp 0x140020b94
mov qword [rbp + 0x400], 0
mov eax, 9
lea rcx, str._unnamed_thread__panicked_at__n
xor edi, edi
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x20]
dec rax
jmp 0x140020b94
cld
invalid
invalid
call fcn.140024420
mov eax, dword [0x140060244]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rdi, qword [rax + 0x58]
lock inc qword [rdi]
jg 0x140020b4b
ud2
cmp rsi, 4
je 0x14002103e
cmp rsi, 1
jne 0x140021047
cmp byte [r15], 0x30
jne 0x140021047
mov bl, 2
mov sil, 3
test rdi, rdi
jne 0x1400208bc
jmp 0x140020a29
cmp dword [r15], 0x6c6c7566
je 0x14002105a
mov sil, 1
xor ebx, ebx
test rdi, rdi
jne 0x1400208bc
jmp 0x140020a29
mov bl, 1
mov sil, 2
test rdi, rdi
jne 0x1400208bc
jmp 0x140020a29
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.140022fc0
jmp 0x140020ffe
mov ecx, 2
mov edx, 0x1e
call fcn.140022d00
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140022f50
jmp 0x140020ffe