Function at 0x140039f40
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
lea rcx, [rsp + 0x98]
call sym._ZN3std3sys7windows7to_u16s5inner17h72803db06e208d27E.llvm.5057072051123309613
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003a0ab
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
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 0x14003a000
jmp 0x140039fdf
jae 0x14003a0be
cmp r8, 0x201
jae 0x14003a000
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x14003a047
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14003a027
lea rcx, [rsp + 0x48]
mov rdx, r13
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h472c0a9b36bab741
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
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 0x14003a072
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14003a182
mov r8d, r15d
cmp r12, r8
jne 0x140039fd0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14003a1a2
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140039fdf
jmp 0x14003a000
mov rcx, qword [rsp + 0xa0]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5ca44348856e2937E.llvm.15837262642225002792
mov byte [rsi + 0x18], 2
jmp 0x14003a13d
cmp rdi, r8
jb 0x14003a1bc
lea rcx, [rsp + 0x60]
mov rdx, rbp
call sym.std::sys_common::wtf8::Wtf8Buf::from_wide::h2650bf38899dc036
mov rdi, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx esi, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x23], eax
test rbx, rbx
je 0x14003a10f
mov edx, 2
mov rcx, qword [rsp + 0x28]
call sym.__rust_dealloc
cmp sil, 2
jne 0x14003a152
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov rcx, rdi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5ca44348856e2937E.llvm.15837262642225002792
cmp qword [rsp + 0x40], 0
je 0x14003a13d
mov edx, 2
mov rcx, qword [rsp + 0x30]
call sym.__rust_dealloc
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rdi
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], sil
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rsp + 0x40], 0
jne 0x14003a12e
jmp 0x14003a13d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov sil, 2
test rbx, rbx
jne 0x14003a100
jmp 0x14003a10f
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_injected___worker_thread.is_null__cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction
lea r8, str.j_t_
mov edx, 0x28
call sym.core::panicking::panic::h7eca2dca7d5f1519
jmp 0x14003a1d1
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::hb9e1ad6ed19e23ce
ud2