Function at 0x14000e160
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140024020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xor r14d, r14d
mov qword [r11 - 0x48], r14
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x30], 7
mov word [r11 - 0x48], r14w
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
jne 0x14000e1f8
mov qword [r11 - 0x38], r14
mov word [r11 - 0x48], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_DEFAULT_INSTALL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14000e241
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000e1f8
test eax, eax
jle 0x14000e1e2
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_DEFAULT_INSTALL_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140006e10
mov dword [rsp + 0x24], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14000e223
cmp dword [rsp + 0x24], 0
lea rcx, str.ProgramFiles_x86_
jne 0x14000e22a
lea rcx, str.ProgramFiles
mov rdx, rsi
call fcn.140007ac0
test al, al
jne 0x14000e2d3
xor bl, bl
jmp 0x14000e37d
mov eax, 2
mul rbp
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400139dc
mov rdi, rax
mov r8d, ebp
mov rdx, rax
lea rcx, str._DOTNET_TEST_DEFAULT_INSTALL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000e1c9
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000e280
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400051b0
mov rcx, rdi
call fcn.140013710
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x14000e37b
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400051b0
jmp 0x14000e37b
lea rdx, str.dotnet
mov rcx, rsi
call fcn.1400071b0
xor edx, edx
mov r8d, 0x800
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x14000e312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Could_not_load_kernel32.dll:__u
call fcn.140006b20
jmp 0x14000e37b
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000e37b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rax, rbx
call qword [0x14001a418]
test eax, eax
jne 0x14000e360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Call_to_IsWow64Process2_failed:__u
call fcn.140006b20
jmp 0x14000e37b
mov eax, 0x8664
cmp word [rsp + 0x20], ax
je 0x14000e37b
lea rdx, [0x14001d5e0]
mov rcx, rsi
call fcn.1400071b0
mov bl, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000e3c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e3bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e3bd
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 [rsp + 0x50]
xor rcx, rsp
call fcn.1400136f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret