Function at 0x140013690
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov r14, r8
mov r15, rdx
mov qword [rbp + 0x400], rcx
lea rdi, [r8*2 + 2]
movzx eax, byte [0x140025240]
mov rcx, rdi
call fcn.1400155a0
test rax, rax
je 0x140013c6c
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 0x14001374c
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.14001a860
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 0x1400137d0
cmp r15, r14
je 0x140013828
movzx edx, byte [r15]
movzx r12d, dl
test r12b, r12b
js 0x14001376d
inc r15
jmp 0x1400137d0
mov ecx, r12d
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp r12b, 0xdf
jbe 0x1400137c0
movzx r12d, byte [r15 + 2]
shl r8d, 6
and r12d, 0x3f
or r12d, r8d
cmp dl, 0xf0
jb 0x1400137e1
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 0x1400137d0
jmp 0x1400137f4
add r15, 2
shl ecx, 6
or ecx, r8d
mov r12d, ecx
nop dword [rax]
xor edi, edi
cmp rbx, qword [rbp - 0x60]
jne 0x14001373d
jmp 0x140013710
add r15, 3
shl ecx, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x1400137d0
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 0x14001373d
jmp 0x140013710
mov r8, qword [rbp - 0x58]
mov rax, rbx
mov rcx, r8
cmp rbx, 8
jb 0x140013883
mov rcx, r8
mov rax, rbx
cmp word [rcx], 0
je 0x1400138a4
cmp word [rcx + 2], 0
je 0x1400138a4
cmp word [rcx + 4], 0
je 0x1400138a4
cmp word [rcx + 6], 0
je 0x1400138a4
cmp word [rcx + 8], 0
je 0x1400138a4
cmp word [rcx + 0xa], 0
je 0x1400138a4
cmp word [rcx + 0xc], 0
je 0x1400138a4
cmp word [rcx + 0xe], 0
je 0x1400138a4
add rax, 0xfffffffffffffff8
add rcx, 0x10
cmp rax, 7
ja 0x14001383e
add rax, rax
xor edx, edx
nop dword [rax + rax]
cmp rax, rdx
je 0x14001396b
cmp word [rcx + rdx], 0
lea rdx, [rdx + 2]
jne 0x140013890
cmp qword [rbp - 0x60], 0
je 0x1400138ba
mov rcx, qword [0x1400251e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
lea r8, [0x1400200e8]
mov eax, r8d
and eax, 3
cmp eax, 1
jne 0x140013943
lea rax, [r8 - 1]
mov qword [rbp + 0x3f0], rax
mov rax, qword [r8 - 1]
mov qword [rbp + 0x3f8], rax
mov rax, qword [r8 + 7]
mov qword [rbp + 0x408], rax
mov rax, qword [rax]
test rax, rax
je 0x1400138fe
mov rcx, qword [rbp + 0x3f8]
call rax
mov r8, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x408]
cmp qword [rax + 8], 0
je 0x14001392d
cmp qword [rax + 0x10], 0x11
jb 0x14001391e
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400251e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400251e0]
xor edx, edx
mov r8, qword [rbp + 0x3f0]
call qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 0x400]
mov qword [rcx], rax
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp - 0x60]
cmp rbx, rcx
jne 0x140013985
lea rcx, [rbp - 0x60]
call fcn.1400133c0
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x58]
mov word [r8 + rbx*2], 0
mov rax, rcx
neg rax
jo 0x1400138c1
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], r8
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x408], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jb 0x140013a03
jmp 0x140013a20
lea r13, [rbp - 0x60]
jae 0x140013aea
cmp r8, 0x201
jae 0x140013a20
mov r15d, 0x200
mov r12, r13
mov r13, r8
jmp 0x140013a78
sub r8, r14
sub rbx, r14
cmp r8, rbx
jbe 0x140013a4f
lea rcx, [rbp + 0x3d8]
mov rdx, r14
call fcn.14001a860
mov rdi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x408], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3e8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x408]
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 0x140013aa7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140013b64
mov r8d, esi
cmp r13, r8
jne 0x1400139f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013c52
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
lea r13, [rbp - 0x60]
cmp r8, 0x201
jae 0x140013a20
jmp 0x140013a03
cmp r15, r8
jb 0x140013c79
lea rcx, [rbp + 0x3a0]
mov rdx, r12
call fcn.1400125f0
mov rsi, qword [rbp + 0x3a0]
mov rdi, qword [rbp + 0x3a8]
movups xmm0, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3c0], xmm0
cmp qword [rbp + 0x3d8], 0
je 0x140013b3e
mov r8, qword [rbp + 0x3e0]
mov rcx, qword [0x1400251e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
neg rax
jo 0x140013b94
movaps xmm0, xmmword [rbp + 0x3c0]
mov rax, qword [rbp + 0x400]
movups xmmword [rax + 0x10], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rdi
jmp 0x140013c29
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
cmp qword [rbp + 0x3d8], 0
je 0x140013b90
mov r8, qword [rbp + 0x3e0]
mov rcx, qword [0x1400251e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
or rdi, 2
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 0x400]
mov qword [rcx], rax
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x140013c29
lea rax, [rdi - 1]
mov qword [rbp + 0x3d0], rax
mov rax, qword [rdi - 1]
mov qword [rbp + 0x408], rax
mov rax, qword [rdi + 7]
mov qword [rbp + 0x400], rax
mov rax, qword [rax]
test rax, rax
je 0x140013be4
mov rcx, qword [rbp + 0x408]
call rax
mov r8, qword [rbp + 0x408]
mov rax, qword [rbp + 0x400]
cmp qword [rax + 8], 0
je 0x140013c13
cmp qword [rax + 0x10], 0x11
jb 0x140013c04
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400251e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400251e0]
xor edx, edx
mov r8, qword [rbp + 0x3d0]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x3f0], 0
je 0x140013957
mov rcx, qword [0x1400251e0]
xor edx, edx
mov r8, qword [rbp + 0x3f8]
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140013957
lea rcx, str.internal_error:_entered_unreachable_code_rustc_28a58f2fa7f0c46b8fab8237c02471a915924fe5library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140019a50
jmp 0x140013c8e
mov ecx, 2
mov rdx, rdi
call fcn.1400197e0
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.1400199e0
ud2