Function at 0x14000fe04
Capabilities:
Query environment variable

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov rax, qword [0x140023250]
xor rax, rbp
mov qword [rbp + 0x30], rax
mov esi, edx
mov r15, rcx
and qword [rbp], 0
lea rdi, [rsi + rsi]
mov eax, 0xffffffff
cmp rdi, rax
ja 0x140010081
xor ebx, ebx
mov qword [rbp], rbx
test edi, edi
je 0x14000febc
mov edx, edi
cmp rdx, qword [0x140023ea8]
ja 0x14000febc
mov rcx, qword [0x140023eb0]
add rcx, 8
add rcx, rdx
cmp rcx, rdx
jb 0x14000febc
call fcn.140018c28
test eax, eax
je 0x14000febc
lea eax, [rdi + 8]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x14000fe92
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140018ec0
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp], rbx
test rbx, rbx
je 0x14000febc
mov dword [rbx], 0x6b637453
add rbx, 8
mov qword [rbp], rbx
jne 0x14000fef6
lea eax, [rdi + 8]
cmp eax, edi
jb 0x14000fef6
mov ecx, eax
movabs r10, 0xa7f48fd31453a870
mov rax, qword [0x140023eb8]
call qword [vtable._SH_HAHHtH.0]
mov rbx, rax
mov qword [rbp], rax
test rax, rax
je 0x14000fef6
mov dword [rax], 0x70616548
add rbx, 8
mov qword [rbp], rbx
mov r8, r15
mov rdx, rsi
mov rcx, rbx
call fcn.14000472c
mov edi, eax
test eax, eax
jns 0x14000ff57
lea rdx, [0x140023008]
mov rcx, qword [0x140023008]
cmp rcx, rdx
je 0x14000ff3b
test byte [rcx + 0x1c], 1
je 0x14000ff3b
mov edx, 0xa
mov r9d, esi
lea r8, [0x14001d9b8]
mov rcx, qword [rcx + 0x10]
call fcn.140008338
mov edx, edi
lea rcx, [rbp + 0x10]
call fcn.14000fb68
lea rdx, [0x140021720]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll__CxxThrowException
int3
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ffe8
lea rdx, [0x140023008]
mov rax, qword [0x140023008]
cmp rax, rdx
je 0x14000ffb4
test byte [rax + 0x1c], 1
je 0x14000ffb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, SafeArrayDestroy
mov r9d, eax
lea r8, [0x14001d9b8]
mov rcx, qword [0x140023008]
mov rcx, qword [rcx + 0x10]
call fcn.1400079a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000ffcc
movzx eax, ax
or eax, 0x80070000
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.14000fb68
lea rdx, [0x140021720]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll__CxxThrowException
int3
cmp esi, eax
jae 0x140010055
lea rdx, [0x140023008]
mov rcx, qword [0x140023008]
cmp rcx, rdx
je 0x140010021
test byte [rcx + 0x1c], 1
je 0x140010021
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x14001d9b8]
mov rcx, qword [rcx + 0x10]
call fcn.1400038a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140010039
movzx eax, ax
or eax, 0x80070000
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.14000fb68
lea rdx, [0x140021720]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rbp]
call fcn.14000fbb4
mov rcx, qword [rbp + 0x30]
xor rcx, rbp
call fcn.140001700
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop rbp
ret
mov dword [rbp + 8], 0x80070216
lea rdx, [0x1400216b8]
lea rcx, [rbp + 8]
call sub.msvcrt.dll__CxxThrowException
int3