Function at 0x1400dc840
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov r14, rcx
movabs r15, 0x8000000000000000
lea rcx, [rsp + 0x98]
call fcn.1400e2bb0
mov rax, qword [rsp + 0x98]
cmp rax, r15
jne 0x1400dc8e3
mov rax, qword [rsp + 0xa0]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400dc8db
test rcx, rcx
je 0x1400dc8db
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov rsi, qword [rax + 7]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400dc8ca
cmp qword [rsi + 0x10], 0x11
jb 0x1400dc8b9
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov qword [r14], r15
jmp 0x1400dcb61
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x50], rax
xor edi, edi
mov esi, 0xffffffff
xor ebx, ebx
xor r15d, r15d
cmp r8, 0x201
jae 0x1400dc970
jmp 0x1400dc94f
jae 0x1400dca23
cmp r8, 0x201
jae 0x1400dc970
mov r14d, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x1400dc99f
sub r8, r15
sub rbx, r15
cmp rbx, r8
jb 0x1400dca02
cmp rdi, rsi
mov r15d, 0xffffffff
cmovb r15, rdi
mov qword [rsp + 0x38], r15
mov rbx, rdi
mov r14, r15
mov r12, qword [rsp + 0x50]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x58]
mov rdx, r12
mov r8d, r13d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebp, eax
test eax, eax
jne 0x1400dc9c9
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400dca9c
mov r8d, ebp
cmp r13, r8
jne 0x1400dc940
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400dcb76
add r13, r13
cmp r13, rsi
cmovae r13, rsi
mov r8, r13
cmp r8, 0x201
jb 0x1400dc94f
jmp 0x1400dc970
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400e6fe0
mov rdi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x1400dc97f
cmp r14, r8
jb 0x1400dcb76
lea rcx, [rsp + 0x78]
mov rdx, r12
call fcn.1400e74f0
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x28], 0
mov rdi, qword [rsp + 0x48]
movabs r14, 0x8000000000000000
je 0x1400dca7d
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp rsi, r14
mov r12, qword [rsp + 0x40]
je 0x1400dcada
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm0
jmp 0x1400dcb36
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
cmp qword [rsp + 0x28], 0
je 0x1400dcac2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
or rbx, 2
mov rdi, qword [rsp + 0x48]
movabs r14, 0x8000000000000000
mov r12, qword [rsp + 0x40]
mov qword [rdi], r14
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400dcb36
test rax, rax
je 0x1400dcb36
lea rsi, [rbx - 1]
mov r15, qword [rbx - 1]
mov rdi, qword [rbx + 7]
mov rcx, r15
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1400dcb25
cmp qword [rdi + 0x10], 0x11
jb 0x1400dcb14
mov r15, qword [r15 - 8]
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
test r12, r12
je 0x1400dcb61
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, qword [rsp + 0x58]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2