Function at 0x14000d720
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rbp - 0x58]
call fcn.14001d6f0
cmp dword [rbp - 0x58], 1
jne 0x14000d76e
lea rcx, [rbp - 0x58]
call fcn.140008a00
jmp 0x14000d8b9
mov rax, qword [rbp - 0x50]
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp + 0x3c0], xmm0
test rax, rax
je 0x14000d8b9
mov qword [rbp + 0x3f8], rdi
movaps xmm0, xmmword [rbp + 0x3c0]
movups xmmword [rbp + 0x3b0], xmm0
mov qword [rbp + 0x3f0], rax
mov qword [rbp + 0x3a8], rax
xor edi, edi
mov r8d, 0x400
lea rcx, [rbp - 0x58]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r13, qword [0x14002f3b0]
mov qword [rbp + 0x3d8], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x3e0], xmm0
mov esi, 0x200
cmp rsi, 0x201
jae 0x14000d805
jmp 0x14000d850
cmp rsi, r15
mov rsi, r15
ja 0x14000d8de
cmp rsi, 0x201
jb 0x14000d850
mov r8, rsi
sub r8, rdi
mov rax, qword [rbp + 0x3e0]
sub rax, rdi
cmp rax, r8
jae 0x14000d830
lea rcx, [rbp + 0x3d8]
mov rdx, rdi
call fcn.14002c570
mov r13, qword [rbp + 0x3d8]
mov qword [rbp + 0x3e8], rsi
mov rdi, rsi
mov r12, r13
mov r14, rsi
mov rbx, r13
jmp 0x14000d85d
lea rbx, [rbp - 0x58]
mov r12, rbx
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x3f0]
mov rdx, rbx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x14000d88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d918
mov r15d, ebx
cmp rsi, r15
jne 0x14000d7f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d7f0
add rsi, rsi
cmp rsi, 0x201
jae 0x14000d805
jmp 0x14000d850
mov qword [rdi], 0
mov rax, rdi
movaps xmm6, xmmword [rbp + 0x410]
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp r14, r15
jb 0x14000d9f1
lea rcx, [rbp + 0x3c0]
mov rdx, r12
mov r8, r15
call fcn.1400101a0
mov rsi, qword [rbp + 0x3c0]
movdqu xmm6, xmmword [rbp + 0x3c8]
xor edi, edi
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
jne 0x14000d937
jmp 0x14000d94f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
pxor xmm6, xmm6
mov dil, 1
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
je 0x14000d94f
test r13, r13
je 0x14000d94f
add rdx, rdx
je 0x14000d94f
mov r8d, 2
mov rcx, r13
call fcn.140007460
test dil, dil
je 0x14000d9b2
mov rdi, qword [rbp + 0x3f8]
mov qword [rdi], 0
cmp sil, 3
jne 0x14000d9c1
movq rax, xmm6
mov rcx, qword [rax]
mov qword [rbp + 0x400], rax
mov rax, qword [rax + 8]
call qword [rax]
mov rsi, qword [rbp + 0x400]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000d99d
mov rcx, qword [rsi]
mov r8, qword [rax + 0x10]
call fcn.140007460
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140007460
jmp 0x14000d9c1
mov rdi, qword [rbp + 0x3f8]
mov qword [rdi], rsi
movdqu xmmword [rdi + 8], xmm6
mov rdx, qword [rbp + 0x3b0]
test rdx, rdx
je 0x14000d8c0
add rdx, rdx
je 0x14000d8c0
mov r8d, 2
mov rcx, qword [rbp + 0x3f0]
call fcn.140007460
jmp 0x14000d8c0
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r14
call fcn.14002cf20
ud2