Function at 0x14002bea0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4b8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x420], xmm6
mov qword [rbp + 0x418], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rbp - 0x58]
call fcn.14003aa20
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f8], rax
test rax, rax
je 0x14002c027
mov qword [rbp + 0x3c8], rdi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x3d0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14002bf60
jmp 0x14002bf4f
jae 0x14002c039
cmp r8, 0x201
jae 0x14002bf60
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14002bfb8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002bf8f
lea rcx, [rbp + 0x3d0]
mov rdx, r12
call fcn.140040e10
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3d8]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3e0], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x410]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x3f8]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14002bfe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002c163
mov r8d, r14d
cmp r15, r8
jne 0x14002bf40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002c1c3
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002bf4f
jmp 0x14002bf60
lea rcx, [rbp - 0x58]
call fcn.140029f90
mov byte [rdi + 0x18], 2
jmp 0x14002c145
cmp rsi, r8
jb 0x14002c1dd
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140030a60
mov rsi, qword [rbp + 0x3a8]
movups xmm6, xmmword [rbp + 0x3b0]
movzx ebx, byte [rbp + 0x3c0]
mov eax, dword [rbp + 0x3c1]
mov dword [rbp + 0x408], eax
mov eax, dword [rbp + 0x3c4]
mov dword [rbp + 0x40b], eax
test rdi, rdi
je 0x14002c099
mov rcx, qword [0x14005a228]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp bl, 2
mov rdi, qword [rbp + 0x3c8]
jne 0x14002c109
mov byte [rdi + 0x18], 2
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14002c125
test rax, rax
je 0x14002c125
lea rax, [rsi - 1]
mov qword [rbp + 0x410], rax
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x3f0], rax
call qword [rax]
mov rax, qword [rbp + 0x3f0]
cmp qword [rax + 8], 0
je 0x14002c19d
cmp qword [rax + 0x10], 0x11
jae 0x14002c183
mov r8, qword [rbp + 0x400]
jmp 0x14002c18e
mov eax, dword [rbp + 0x408]
mov ecx, dword [rbp + 0x40b]
mov dword [rdi + 0x1c], ecx
mov dword [rdi + 0x19], eax
mov qword [rdi], rsi
movups xmmword [rdi + 8], xmm6
mov byte [rdi + 0x18], bl
cmp qword [rbp + 0x3e8], 0
je 0x14002c145
mov rcx, qword [0x14005a228]
xor edx, edx
mov r8, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
movaps xmm6, xmmword [rbp + 0x420]
add rsp, 0x4b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov bl, 2
test rdi, rdi
jne 0x14002c083
jmp 0x14002c099
mov r8, qword [rbp + 0x400]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14005a228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14005a228]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x3e8], 0
jne 0x14002c12f
jmp 0x14002c145
lea rcx, str.internal_error:_entered_unreachable_code_rustc_08d00b40aef2017fe6dba3ff7d6476efa0c10888library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003fd30
jmp 0x14002c1f2
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140040100
ud2