Function at 0x140015280
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 rcx, [rbp - 0x60]
call fcn.140011040
mov rax, qword [rbp - 0x60]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400152e0
mov rcx, qword [rbp - 0x58]
call fcn.14000edb0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400154b7
mov qword [rbp + 0x3f8], rsi
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
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 r12d, r12d
cmp r8, 0x201
jae 0x140015360
jmp 0x14001534f
jae 0x140015427
cmp r8, 0x201
jae 0x140015360
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x1400153b8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001538f
lea rcx, [rbp + 0x3d8]
mov rdx, r12
call fcn.1400290c0
mov rdi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x408], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3e8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x408]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x400]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400153e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400154f1
mov r8d, r14d
cmp r15, r8
jne 0x140015340
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140015519
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001534f
jmp 0x140015360
cmp rsi, r8
jb 0x140015533
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.1400134b0
mov rbx, qword [rbp + 0x3a0]
mov rsi, qword [rbp + 0x3a8]
movups xmm0, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140015476
mov rcx, qword [0x14003cbc0]
xor edx, edx
mov r8, qword [rbp + 0x408]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rcx, 0x8000000000000000
cmp rbx, rcx
jne 0x1400154cc
mov rax, qword [rbp + 0x3f8]
mov qword [rax], rcx
mov rcx, rsi
call fcn.14000edb0
cmp qword [rbp + 0x3f0], 0
je 0x1400154b7
mov rcx, qword [0x14003cbc0]
xor edx, edx
mov r8, qword [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x3f8]
mov qword [rax], rbx
mov qword [rax + 8], rsi
movaps xmm0, xmmword [rbp + 0x3c0]
movups xmmword [rax + 0x10], xmm0
cmp qword [rbp + 0x3f0], 0
jne 0x1400154a1
jmp 0x1400154b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
movabs rbx, 0x8000000000000000
test rdi, rdi
jne 0x140015460
jmp 0x140015476
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140029410
jmp 0x140015548
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140029390
ud2