Function at 0x14001b160
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 [0x140031020]
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 0x14001b1f8
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 0x14001b241
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14001b1f8
test eax, eax
jle 0x14001b1e2
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.140013e10
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 0x14001b223
cmp dword [rsp + 0x24], 0
lea rcx, str.ProgramFiles_x86_
jne 0x14001b22a
lea rcx, str.ProgramFiles
mov rdx, rsi
call fcn.140014ac0
test al, al
jne 0x14001b2d3
xor bl, bl
jmp 0x14001b37d
mov eax, 2
mul rbp
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400209dc
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 0x14001b1c9
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001b280
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400121b0
mov rcx, rdi
call fcn.140020710
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x14001b37b
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400121b0
jmp 0x14001b37b
lea rdx, str.dotnet
mov rcx, rsi
call fcn.1400141b0
xor edx, edx
mov r8d, 0x800
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x14001b312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Could_not_load_kernel32.dll:__u
call fcn.140013b20
jmp 0x14001b37b
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001b37b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rax, rbx
call qword [0x140027418]
test eax, eax
jne 0x14001b360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Call_to_IsWow64Process2_failed:__u
call fcn.140013b20
jmp 0x14001b37b
mov eax, 0x8664
cmp word [rsp + 0x20], ax
je 0x14001b37b
lea rdx, [0x14002a5e0]
mov rcx, rsi
call fcn.1400141b0
mov bl, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001b3c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b3bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b3bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140020710
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400206f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret