Function at 0x140007b40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov esi, 7
mov qword [rcx + 0x18], rsi
mov dword [rsp + 0x20], 1
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
je 0x140007be7
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140013e5c
mov rdi, rax
mov r8d, ebp
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140007c16
test eax, eax
jle 0x140007c00
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.140007430
lea rcx, [rsp + 0x50]
call fcn.14000f620
mov rdi, rax
cmp rbx, rax
je 0x140007c89
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140007c63
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140007c5e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007cc2
mov rcx, r8
call fcn.140013ba0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rsi
mov word [rbx], r14w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], rsi
mov word [rdi], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140007cce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007cc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007cc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013ba0
cmp qword [rbx + 0x10], 0
jne 0x140007db4
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov r8d, 5
lea rdx, str.win10
lea rcx, [rsp + 0x30]
call fcn.1400058b0
mov dword [rsp + 0x20], 3
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140007d68
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140007d4f
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140007d4a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007da1
mov rcx, r8
call fcn.140013ba0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x30], r14w
jmp 0x140007d6d
mov rsi, qword [rsp + 0x48]
cmp rsi, 7
jbe 0x140007dad
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007da8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013ba0
cmp qword [rbx + 0x10], 0
je 0x140007de8
lea rdx, [0x14001e7b4]
mov rcx, rbx
call fcn.140004db0
mov rdx, qword [0x14001dae8]
mov rcx, rbx
call fcn.140004db0
jmp 0x140007de8
mov rdx, rdi
mov rcx, rbx
call fcn.1400087c0
mov rcx, rdi
call fcn.140013ba0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140013b80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret