Function at 0x140007c40
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 [0x140024020]
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 edi, 7
mov qword [rcx + 0x18], rdi
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 0x140007ce7
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001406c
mov rsi, rax
mov r8d, ebp
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007e98
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140007d16
test eax, eax
jle 0x140007d00
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.140007400
lea rcx, [rsp + 0x50]
call fcn.14000f610
mov rsi, rax
cmp rbx, rax
je 0x140007d89
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140007d63
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140007d5e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007dc2
mov rcx, r8
call fcn.140013da0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rdi
mov word [rbx], r14w
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdi
mov word [rsi], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140007dce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007dc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007dc9
call fcn.140013da0
cmp qword [rbx + 0x10], 0
jne 0x140007e71
mov dword [rsp + 0x3c], r14d
mov qword [rsp + 0x40], 5
mov qword [rsp + 0x48], rdi
movsd xmm0, qword [str.win10]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x14001d708]
mov word [rsp + 0x38], ax
mov word [rsp + 0x3a], r14w
mov dword [rsp + 0x20], 3
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140007e6a
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140007e59
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140007e54
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007e91
mov rcx, r8
call fcn.140013da0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
cmp qword [rbx + 0x10], 0
je 0x140007eac
lea rdx, [0x14001d7b4]
mov rcx, rbx
call fcn.140004ff0
mov rdx, qword [0x14001cae8]
mov rcx, rbx
call fcn.140004ff0
jmp 0x140007eac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, rbx
call fcn.140008890
mov rcx, rsi
call fcn.140013da0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140013d80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret