Function at 0x14002ecd0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov r14, rcx
movabs r15, 0x8000000000000000
lea rcx, [rsp + 0x68]
call fcn.14002d9b0
mov rax, qword [rsp + 0x68]
cmp rax, r15
jne 0x14002ed71
mov rdi, qword [rsp + 0x70]
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14002ed69
test rax, rax
je 0x14002ed69
mov rbx, qword [rdi - 1]
mov rsi, qword [rdi + 7]
mov rax, qword [rsi]
test rax, rax
je 0x14002ed32
mov rcx, rbx
call rax
dec rdi
cmp qword [rsi + 8], 0
je 0x14002ed58
cmp qword [rsi + 0x10], 0x11
jb 0x14002ed47
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov qword [r14], r15
jmp 0x14002efd4
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r14
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x30], 0
mov r8d, 0x200
mov r14d, 2
xor ebx, ebx
xor r15d, r15d
cmp r8, 0x201
jae 0x14002ede0
jmp 0x14002edcf
jae 0x14002ee9a
cmp r8, 0x201
jae 0x14002ede0
mov esi, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x14002ee12
sub r8, r15
mov rax, rbx
sub rax, r15
cmp r8, rax
ja 0x14002ee7e
mov eax, 0xffffffff
cmp rbx, rax
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x30], r15
mov rsi, r15
mov r12, r14
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov rdx, r12
mov r8d, r13d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebp, eax
test eax, eax
jne 0x14002ee3a
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14002ef5c
mov r8d, ebp
cmp r13, r8
jne 0x14002edc0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002efe9
lea r8, [r13*2]
cmp r13, 0x7fffffff
mov eax, 0xffffffff
cmova r8, rax
cmp r8, 0x201
jb 0x14002edcf
jmp 0x14002ede0
lea rcx, [rsp + 0x20]
mov rdx, r15
call fcn.1400312b0
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
jmp 0x14002edf2
cmp rsi, r8
jb 0x14002efe9
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140033010
cmp qword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x40]
movabs rbx, 0x8000000000000000
je 0x14002eeda
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov r15, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rbx
jne 0x14002efad
mov qword [rsi], rbx
mov rsi, qword [rsp + 0x50]
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14002efbe
test rax, rax
je 0x14002efbe
mov rbx, qword [rsi - 1]
mov r14, qword [rsi + 7]
mov rax, qword [r14]
test rax, rax
je 0x14002ef23
mov rcx, rbx
call rax
dec rsi
cmp qword [r14 + 8], 0
je 0x14002ef49
cmp qword [r14 + 0x10], 0x11
jb 0x14002ef38
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
jmp 0x14002efbe
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x50], rax
movabs rbx, 0x8000000000000000
mov qword [rsp + 0x48], rbx
cmp qword [rsp + 0x20], 0
je 0x14002ef98
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rbx
je 0x14002eeea
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r15, r15
je 0x14002efd4
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2