Function at 0x1401db2b0
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]
mov qword [rbp + 0x430], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1401f0dd0
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x1401db476
mov qword [rbp + 0x410], rsi
mov rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3b8], rcx
mov qword [rbp + 0x3c0], rdi
mov qword [rbp + 0x3c8], rax
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x420], rax
xor eax, eax
mov qword [rbp + 0x428], rax
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1401db3a0
jmp 0x1401db382
mov rdi, rsi
jae 0x1401db4e3
cmp r8, 0x201
jae 0x1401db3a0
lea r12, [rbp - 0x60]
mov r15d, 0x200
mov r14, r8
jmp 0x1401db406
sub r8, r13
sub rbx, r13
cmp rbx, r8
mov rbx, qword [rbp + 0x428]
jae 0x1401db3d6
lea rcx, [rbp + 0x3f8]
mov rdx, r13
call fcn.1402167d0
mov rbx, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x420], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x408], r13
mov rax, rbx
mov qword [rbp + 0x428], rbx
mov r12, qword [rbp + 0x420]
mov r15, r13
mov r14, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rsi, rdi
mov rcx, rdi
mov rdx, r12
mov r8d, r14d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x1401db434
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401db627
mov r8d, edi
cmp r14, r8
jne 0x1401db370
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401db652
mov rdi, rsi
add r14, r14
mov eax, 0xffffffff
cmp r14, rax
cmovae r14, rax
mov r8, r14
cmp r8, 0x201
jb 0x1401db382
jmp 0x1401db3a0
mov rdx, qword [rbp - 0x60]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1401db4da
lea rax, [rdx - 1]
mov qword [rbp + 0x428], rax
mov rcx, qword [rdx - 1]
mov qword [rbp + 0x420], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp + 0x420]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rdi, qword [rbp + 0x428]
je 0x1401db4c7
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.14001c240
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.14001c240
mov byte [rsi + 0x18], 2
jmp 0x1401db610
cmp r15, r8
jb 0x1401db66c
lea rcx, [rbp + 0x3d0]
mov rdx, r12
call fcn.1401ded30
mov rbx, qword [rbp + 0x3d0]
movups xmm0, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3a0], xmm0
movzx r14d, byte [rbp + 0x3e8]
mov eax, dword [rbp + 0x3e9]
mov dword [rbp + 0x418], eax
mov eax, dword [rbp + 0x3ec]
mov dword [rbp + 0x41b], eax
mov rdx, qword [rbp + 0x428]
test rdx, rdx
je 0x1401db551
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x420]
call fcn.14001c240
cmp r14b, 2
jne 0x1401db5c8
mov rsi, qword [rbp + 0x410]
mov byte [rsi + 0x18], 2
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1401db5f3
lea rax, [rbx - 1]
mov qword [rbp + 0x428], rax
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
mov qword [rbp + 0x420], rbx
call qword [rax]
mov rax, qword [rbp + 0x420]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rbx, qword [rbp + 0x428]
je 0x1401db5b3
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.14001c240
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.14001c240
jmp 0x1401db5f3
movaps xmm0, xmmword [rbp + 0x3a0]
mov rsi, qword [rbp + 0x410]
movups xmmword [rsi + 8], xmm0
mov eax, dword [rbp + 0x418]
mov ecx, dword [rbp + 0x41b]
mov dword [rsi + 0x19], eax
mov dword [rsi + 0x1c], ecx
mov qword [rsi], rbx
mov byte [rsi + 0x18], r14b
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
je 0x1401db610
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14001c240
mov rax, rsi
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 ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14b, 2
mov rdi, rsi
mov rdx, qword [rbp + 0x428]
test rdx, rdx
jne 0x1401db53c
jmp 0x1401db551
lea rcx, str.internal_error:_entered_unreachable_codeX7_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140217b70
jmp 0x1401db681
lea rax, str.Me_
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140218040
ud2