Function at 0x140014780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140031020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov qword [rbp - 0x50], rcx
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
je 0x14001481d
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400209dc
mov rdi, rax
mov r8d, r14d
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140014a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14001484c
test eax, eax
jle 0x140014836
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.DOTNET_RUNTIME_ID
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140013e10
lea rcx, [rbp - 0x28]
call fcn.14001c400
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x1400148cd
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14001489d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014898
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014904
call fcn.140020710
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140014910
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001490b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001490b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140020710
mov r8, qword [rbp - 0x38]
test r8, r8
jne 0x1400149a3
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov r8d, 5
lea rdx, str.win10
lea rcx, [rbp - 0x28]
call fcn.1400121b0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140014986
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014981
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014981
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140020710
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x38], xmm1
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x140014a81
mov r9, qword [rbp - 0x30]
mov rax, r9
sub rax, r8
lea rcx, [rbp - 0x48]
cmp rax, 1
jb 0x1400149db
lea rdx, [r8 + 1]
mov qword [rbp - 0x38], rdx
cmp r9, 8
cmovae rcx, qword [rbp - 0x48]
movzx eax, word [0x14002a60c]
mov word [rcx + r8*2], ax
mov word [rcx + rdx*2], r15w
jmp 0x1400149f5
mov qword [rsp + 0x20], 1
lea r9, [0x14002a60c]
mov edx, 1
call fcn.1400127d0
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x140014a3b
lea rdi, [rcx + 3]
mov qword [rbp - 0x38], rdi
lea rbx, [rbp - 0x48]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 6
lea rdx, [0x14002a5e0]
call fcn.140021fb0
mov word [rbx + rdi*2], r15w
jmp 0x140014a81
mov qword [rsp + 0x20], 3
lea r9, [0x14002a5e0]
mov edx, 3
lea rcx, [rbp - 0x48]
call fcn.1400127d0
jmp 0x140014a81
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140014a60
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400121b0
mov rcx, rdi
call fcn.140020710
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400206f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret