Function at 0x14002f0c0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x78]
call fcn.14002f400
mov rcx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rax, rcx
neg rax
jno 0x14002f15f
mov eax, ebp
and eax, 3
cmp eax, 1
jne 0x14002f157
mov rbx, qword [rbp - 1]
mov rsi, qword [rbp + 7]
mov rax, qword [rsi]
test rax, rax
je 0x14002f11e
mov rcx, rbx
call rax
dec rbp
cmp qword [rsi + 8], 0
je 0x14002f145
cmp qword [rsi + 0x10], 0x11
jb 0x14002f133
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141db1a00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141db1a00]
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], r14
jmp 0x14002f3cc
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
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 ebx, ebx
xor r14d, r14d
xor r15d, r15d
cmp r8, 0x201
jae 0x14002f1e0
jmp 0x14002f1c2
mov rbp, rdi
jae 0x14002f2ba
cmp r8, 0x201
jae 0x14002f1e0
mov esi, 0x200
lea r12, [rsp + 0x78]
mov r13, r8
jmp 0x14002f214
sub r8, r15
sub r14, r15
cmp r8, r14
ja 0x14002f28a
mov eax, 0xffffffff
cmp rbx, rax
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x38], r15
mov r14, rbx
mov rsi, r15
mov r12, qword [rsp + 0x50]
mov r13, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rbp
mov rcx, rbp
mov rdx, r12
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14002f242
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002f312
mov r8d, ebp
cmp r13, r8
jne 0x14002f1b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002f3f9
mov rbp, rdi
lea r8, [r13*2]
cmp r13, 0x7fffffff
mov eax, 0xffffffff
cmova r8, rax
cmp r8, 0x201
jb 0x14002f1c2
jmp 0x14002f1e0
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400580b0
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x14002f1ef
cmp rsi, r8
jb 0x14002f3f9
lea rcx, [rsp + 0x58]
mov rdx, r12
call fcn.14002e370
cmp qword [rsp + 0x28], 0
mov rsi, qword [rsp + 0x48]
movabs rdi, 0x8000000000000000
mov r14, qword [rsp + 0x40]
je 0x14002f300
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141db1a00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x58], rdi
jne 0x14002f3e1
mov rbx, qword [rsp + 0x60]
jmp 0x14002f35a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsp + 0x60], rbx
cmp qword [rsp + 0x28], 0
je 0x14002f343
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141db1a00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rdi
mov rsi, qword [rsp + 0x48]
movabs rdi, 0x8000000000000000
mov r14, qword [rsp + 0x40]
mov qword [rsi], rdi
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14002f3b5
mov rdi, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rax, qword [rsi]
test rax, rax
je 0x14002f37c
mov rcx, rdi
call rax
dec rbx
cmp qword [rsi + 8], 0
je 0x14002f3a3
cmp qword [rsi + 0x10], 0x11
jb 0x14002f391
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141db1a00]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141db1a00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x14002f3cc
mov rcx, qword [0x141db1a00]
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r14, r14
jne 0x14002f3ba
jmp 0x14002f3cc
ud2