Function at 0x140030e80
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 rsi, rcx
lea rdi, [rbp - 0x60]
mov rcx, rdi
call fcn.14003a500
cmp qword [rbp - 0x60], 0
je 0x140030ef1
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f0], rax
lea rcx, [rbp + 0x3f0]
call fcn.14002e5a0
mov qword [rsi], 0
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 0x58]
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x3d0], xmm0
test rbx, rbx
je 0x140030ed3
mov qword [rbp + 0x3e8], rsi
movaps xmm0, xmmword [rbp + 0x3d0]
movups xmmword [rbp + 0x3c0], xmm0
mov qword [rbp + 0x3b8], rbx
mov rcx, rdi
xor edi, edi
mov r8d, 0x400
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov esi, 0x200
mov eax, 2
mov qword [rbp + 0x408], rax
cmp rsi, 0x201
jae 0x140030f85
jmp 0x140030fd0
mov rsi, r8
mov rbx, r13
jae 0x140031037
cmp rsi, 0x201
jb 0x140030fd0
mov r8, rsi
sub r8, rdi
mov rax, qword [rbp + 0x3f8]
sub rax, rdi
cmp rax, r8
jae 0x140030fb7
lea rcx, [rbp + 0x3f0]
mov rdx, rdi
call fcn.14004c020
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x400], rsi
mov rdi, rsi
mov r15, qword [rbp + 0x408]
mov r12, r15
mov r14, rsi
jmp 0x140030fdd
lea r15, [rbp - 0x60]
mov r12, r15
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r13, rbx
mov rcx, rbx
mov rdx, r15
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x140031007
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140031075
mov r8d, ebx
cmp rsi, r8
jne 0x140030f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003111d
mov rbx, r13
add rsi, rsi
cmp rsi, 0x201
jae 0x140030f85
jmp 0x140030fd0
cmp r14, r8
jb 0x140031137
lea rcx, [rbp + 0x3d0]
mov rdx, r12
call fcn.140033260
mov rsi, qword [rbp + 0x3d0]
movups xmm0, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3a0], xmm0
mov dil, 1
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x140031096
jmp 0x1400310b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
xor edi, edi
mov rbx, r13
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x1400310b7
cmp qword [rbp + 0x408], 0
je 0x1400310b7
add rdx, rdx
je 0x1400310b7
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140015540
test dil, dil
je 0x1400310d6
mov rax, qword [rbp + 0x3e8]
mov qword [rax], rsi
mov rsi, rax
movaps xmm0, xmmword [rbp + 0x3a0]
movups xmmword [rax + 8], xmm0
jmp 0x1400310f1
mov qword [rbp - 0x60], rsi
mov rsi, qword [rbp + 0x3e8]
mov qword [rsi], 0
lea rcx, [rbp - 0x60]
call fcn.14002e5a0
mov rdx, qword [rbp + 0x3c0]
test rdx, rdx
je 0x140030eda
add rdx, rdx
je 0x140030eda
mov r8d, 2
mov rcx, rbx
call fcn.140015540
jmp 0x140030eda
lea rcx, str.internal_error:_entered_unreachable_code_rustc_fe5b13d681f25ee6474be29d748c65adcd91f69elibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14004ca30
jmp 0x14003114c
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14004cc90
ud2