Function at 0x140141770
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jne 0x1401417bf
mov rcx, qword [rsp + 0xa0]
call sym.core::ptr::drop_in_place_std::io::error::Error_::he1a1f231b7e07eb9
mov qword [rsi], rdi
jmp 0x14014197d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140141850
jmp 0x14014182f
jae 0x1401418fb
cmp r8, 0x201
jae 0x140141850
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x140141897
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140141877
lea rcx, [rsp + 0x48]
mov rdx, r13
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h0f5ccd690f57f673
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x1401418c2
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1401419b1
mov r8d, r15d
cmp r12, r8
jne 0x140141820
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401419db
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14014182f
jmp 0x140141850
cmp rdi, r8
jb 0x1401419f5
lea rcx, [rsp + 0x78]
mov rdx, rbp
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h6f5d44c9f5a0aff1
movabs r14, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x14014194d
mov rcx, qword [0x1403610c8]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.14014aabc
cmp rsi, r14
jne 0x140141992
mov rax, qword [rsp + 0x38]
mov qword [rax], r14
mov rcx, rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::he1a1f231b7e07eb9
cmp qword [rsp + 0x40], 0
je 0x14014197d
mov rcx, qword [0x1403610c8]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.14014aabc
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov qword [rax + 8], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14014196a
jmp 0x14014197d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
movabs r14, 0x8000000000000000
mov rsi, r14
test rbx, rbx
jne 0x14014193a
jmp 0x14014194d
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call sym.core::panicking::panic::haa5ab648900af052
jmp 0x140141a0a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h3c6c4e0795fc400a
ud2