Function at 0x140017340
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov r14, r8
mov r15, rdx
mov qword [rbp + 0x418], rcx
lea rdi, [r8*2 + 2]
movzx eax, byte [0x140045208]
mov rcx, rdi
call fcn.140018320
test rax, rax
je 0x14001785f
lea rcx, [r14 + 1]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 0
add r14, r15
xor ebx, ebx
mov rsi, 0xffffffffffffffff
lea r13, [rbp - 0x60]
xor r12d, r12d
jmp 0x1400173fc
mov r8, r14
sub r8, r15
add r8, 3
cmovb r8, rsi
shr r8, 2
cmp di, 1
sbb r8, 0
add r8, 2
mov rcx, r13
mov rdx, rbx
call fcn.14001bb80
mov rax, qword [rbp - 0x58]
mov word [rax + rbx*2], r12w
inc rbx
mov qword [rbp - 0x50], rbx
mov r12d, edi
test r12w, r12w
jne 0x140017480
cmp r15, r14
je 0x1400174d8
movzx edx, byte [r15]
movzx r12d, dl
test r12b, r12b
js 0x14001741d
inc r15
jmp 0x140017480
mov ecx, r12d
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp r12b, 0xdf
jbe 0x140017470
movzx r12d, byte [r15 + 2]
shl r8d, 6
and r12d, 0x3f
or r12d, r8d
cmp dl, 0xf0
jb 0x140017491
movzx edx, byte [r15 + 3]
add r15, 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 0x140017480
jmp 0x1400174a4
add r15, 2
shl ecx, 6
or ecx, r8d
mov r12d, ecx
nop dword [rax]
xor edi, edi
cmp rbx, qword [rbp - 0x60]
jne 0x1400173ed
jmp 0x1400173c0
add r15, 3
shl ecx, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x140017480
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov edi, r12d
mov r12d, ecx
cmp rbx, qword [rbp - 0x60]
jne 0x1400173ed
jmp 0x1400173c0
mov rcx, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
mov rax, rbx
mov rdx, rcx
cmp rbx, 8
jb 0x14001753d
mov rdx, rcx
mov rax, rbx
cmp word [rdx], 0
je 0x140017561
cmp word [rdx + 2], 0
je 0x140017561
cmp word [rdx + 4], 0
je 0x140017561
cmp word [rdx + 6], 0
je 0x140017561
cmp word [rdx + 8], 0
je 0x140017561
cmp word [rdx + 0xa], 0
je 0x140017561
cmp word [rdx + 0xc], 0
je 0x140017561
cmp word [rdx + 0xe], 0
je 0x140017561
add rax, 0xfffffffffffffff8
add rdx, 0x10
cmp rax, 7
ja 0x1400174f8
add rax, rax
xor r8d, r8d
nop word cs:[rax + rax]
cmp rax, r8
je 0x140017589
cmp word [rdx + r8], 0
lea r8, [r8 + 2]
jne 0x140017550
lea rax, [0x140041190]
mov qword [rbp + 0x3c8], rax
mov qword [rbp + 0x3c0], rdi
cmp qword [rbp - 0x60], 0
je 0x1400175c3
mov edx, 2
call fcn.140001e60
jmp 0x1400175c3
cmp rbx, qword [rbp - 0x60]
jne 0x14001759c
lea rcx, [rbp - 0x60]
call fcn.140016530
mov rcx, qword [rbp - 0x58]
mov word [rcx + rbx*2], 0
inc rbx
mov qword [rbp + 0x3d0], rbx
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x3c0], xmm0
mov rax, qword [rbp + 0x3c0]
cmp rax, rdi
jne 0x1400175ed
lea rcx, [rbp + 0x3c8]
mov rsi, qword [rbp + 0x418]
call fcn.1400120f0
mov qword [rsi], rdi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 0
mov qword [rbp + 0x408], 2
mov qword [rbp + 0x410], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jb 0x140017663
jmp 0x140017680
lea r13, [rbp - 0x60]
jae 0x14001774a
cmp r8, 0x201
jae 0x140017680
mov r15d, 0x200
mov r12, r13
mov r13, r8
jmp 0x1400176d8
sub r8, r14
sub rbx, r14
cmp r8, rbx
jbe 0x1400176af
lea rcx, [rbp + 0x400]
mov rdx, r14
call fcn.14001bb80
mov rdi, qword [rbp + 0x400]
mov rax, qword [rbp + 0x408]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x410], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3f8]
mov rdx, r12
mov r8d, r13d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140017707
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400177ca
mov r8d, esi
cmp r13, r8
jne 0x140017650
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140017845
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
lea r13, [rbp - 0x60]
cmp r8, 0x201
jb 0x140017663
jmp 0x140017680
cmp r15, r8
jb 0x14001786c
lea rcx, [rbp + 0x3c0]
mov rdx, r12
call fcn.140014cd0
movups xmm0, xmmword [rbp + 0x3c0]
movups xmm1, xmmword [rbp + 0x3d0]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
cmp qword [rbp + 0x400], 0
je 0x140017799
mov rcx, qword [rbp + 0x408]
mov edx, 2
call fcn.140001e60
movabs rsi, 0x8000000000000000
cmp qword [rbp + 0x3a0], rsi
mov rax, qword [rbp + 0x418]
je 0x140017812
movaps xmm0, xmmword [rbp + 0x3a0]
movaps xmm1, xmmword [rbp + 0x3b0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x140017821
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3a8], rax
movabs rsi, 0x8000000000000000
mov qword [rbp + 0x3a0], rsi
cmp qword [rbp + 0x400], 0
je 0x14001780b
mov rcx, qword [rbp + 0x408]
mov edx, 2
call fcn.140001e60
mov rax, qword [rbp + 0x418]
mov qword [rax], rsi
lea rcx, [rbp + 0x3a8]
call fcn.1400120f0
cmp qword [rbp + 0x3f0], 0
je 0x1400175d9
mov edx, 2
mov rcx, qword [rbp + 0x3f8]
call fcn.140001e60
jmp 0x1400175d9
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5069856495870486134dd2ca0b0e2516308c5c2alibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001b440
jmp 0x140017881
mov ecx, 2
mov rdx, rdi
call fcn.14001b1b0
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001b3d0
ud2