Function at 0x14022a8d0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.14020d660
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14022a91f
lea rcx, [rsp + 0xb0]
call fcn.14020c560
mov qword [rsi], rdi
jmp 0x14022ab44
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 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 + 0x58], rax
xor r14d, r14d
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x14022a9b0
jmp 0x14022a98f
jae 0x14022aa64
cmp r8, 0x201
jae 0x14022a9b0
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x14022a9f7
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x14022a9d7
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.14020db00
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp r14, rbx
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov r12, r15
mov r13, qword [rsp + 0x58]
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x40]
mov rdx, r13
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x14022aa21
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14022aadb
mov r8d, edi
cmp rbp, r8
jne 0x14022a980
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14022ab59
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x14022a98f
jmp 0x14022a9b0
cmp r12, r8
jb 0x14022ab73
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.14020fa70
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x28], 0
mov rsi, qword [rsp + 0x48]
je 0x14022aac1
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140373e30]
xor edx, edx
call fcn.140272814
cmp qword [rsp + 0x60], rdi
je 0x14022ab1c
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14022ab29
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
cmp qword [rsp + 0x28], 0
je 0x14022ab17
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x140373e30]
xor edx, edx
call fcn.140272814
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.14020c560
cmp qword [rsp + 0x50], 0
je 0x14022ab44
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, qword [rsp + 0x40]
call fcn.140272814
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codeUtf8Errorvalid_up_to
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14015d2f0
jmp 0x14022ab88
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14015cf40
ud2