Function at 0x14000eff0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140024020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor r13d, r13d
mov qword [rcx + 0x10], r13
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x14000f033
mov rax, qword [rcx]
mov word [rax], r13w
mov qword [rbp - 0x11], r13
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
mov rbx, 0xffffffffffffffff
cmp al, 0x65
jne 0x14000f0b2
mov qword [rbp - 1], r13
mov word [rbp - 0x11], r13w
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000f121
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000f0b2
test eax, eax
jle 0x14000f09c
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140006e10
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], r13w
lea r8, [rbp - 0x39]
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x31]
call fcn.14000e3f0
mov qword [rbp - 0x41], r13
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f19e
mov edx, eax
lea rcx, str.Cant_open_the_SDK_installed_location_registry_key__result:_0x_X
call fcn.140006a90
jmp 0x14000f32d
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1400139dc
mov rdi, rax
mov r8d, esi
mov rdx, rax
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000f083
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000f153
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.1400051b0
mov rcx, rdi
call fcn.140013710
lea rax, [rbp - 0x11]
cmp r15, rax
je 0x14000f197
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
mov r8, qword [rbp - 1]
mov rcx, r15
call fcn.1400051b0
mov bl, 1
jmp 0x14000f383
mov dword [rbp - 0x49], r13d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 2
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000f315
mov ecx, dword [rbp - 0x49]
test ecx, ecx
je 0x14000f315
mov esi, ecx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov r14, r13
mov qword [rbp - 0x19], r13
cmp rcx, 2
jb 0x14000f262
and rsi, 0xfffffffffffffffe
cmp rsi, 0x1000
jb 0x14000f22b
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14000f3f1
call fcn.140013718
test rax, rax
je 0x14000f304
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000f240
test rsi, rsi
je 0x14000f23d
mov rcx, rsi
call fcn.140013718
mov rdi, rax
jmp 0x14000f240
mov rdi, r13
mov qword [rbp - 0x29], rdi
lea r14, [rsi + rdi]
mov qword [rbp - 0x19], r14
mov r8, r14
sub r8, rdi
xor edx, edx
mov rcx, rdi
call fcn.140015700
mov qword [rbp - 0x21], r14
jmp 0x14000f266
mov rdi, qword [rbp - 0x29]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov r9d, 2
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000f2b0
mov edx, eax
lea rcx, str.Cant_get_the_value_of_the_SDK_location_registry_value__result:_0x_X
call fcn.140006a90
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x14000f2d4
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000f2b0
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.1400051b0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
test rdi, rdi
je 0x14000f32f
sub r14, rdi
sar r14, 1
lea rdx, [r14 + r14]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000f30b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f30b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140013710
jmp 0x14000f32f
mov edx, eax
lea rcx, str.Cant_get_the_size_of_the_SDK_location_registry_value_or_its_empty__result:_0x_X
call fcn.140006a90
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000f372
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f36d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f36d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013710
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], r13w
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000f3c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f3c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f3c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013710
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400136f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.140001410
nop
int3