Function at 0x140072970
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 r14, rcx
movabs r15, 0x8000000000000000
lea rcx, [rsp + 0x78]
call fcn.140077270
mov rax, qword [rsp + 0x78]
cmp rax, r15
jne 0x140072a0d
mov rax, qword [rsp + 0x80]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140072a05
test rcx, rcx
je 0x140072a05
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 0x1400729f4
cmp qword [rsi + 0x10], 0x11
jb 0x1400729e3
mov rbx, qword [rbx - 8]
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov qword [r14], r15
jmp 0x140072c2c
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x50], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r12d, r12d
cmp r8, 0x201
jae 0x140072a90
jmp 0x140072a7f
jae 0x140072b44
cmp r8, 0x201
jae 0x140072a90
mov edi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x140072abf
sub r8, r12
sub rsi, r12
cmp rsi, r8
jb 0x140072b23
cmp rbx, r14
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rsp + 0x50], r12
mov rsi, rbx
mov rdi, r12
mov r13, qword [rsp + 0x20]
mov rbp, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140072aea
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140072c41
mov r8d, r15d
cmp rbp, r8
jne 0x140072a70
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140072c7a
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140072a7f
jmp 0x140072a90
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400c5870
mov rbx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
jmp 0x140072a9f
cmp rdi, r8
jb 0x140072c7a
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.140065d50
mov rsi, qword [rsp + 0x30]
movabs rdi, 0x8000000000000000
mov r15, qword [rsp + 0x28]
test rbx, rbx
je 0x140072b86
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0x58], rdi
jne 0x140072bf0
mov qword [rsi], rdi
mov rax, qword [rsp + 0x60]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140072c01
test rcx, rcx
je 0x140072c01
lea r14, [rax - 1]
mov rbx, qword [rax - 1]
mov rsi, qword [rax + 7]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x140072bdd
cmp qword [rsi + 0x10], 0x11
jb 0x140072bcc
mov rbx, qword [rbx - 8]
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
jmp 0x140072c01
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r15, r15
je 0x140072c2c
mov rcx, qword [0x140228110]
xor edx, edx
mov r8, qword [rsp + 0x38]
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.kernel32.dll_HeapFree
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x58], rdi
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
test rbx, rbx
jne 0x140072b73
jmp 0x140072b86
ud2