Function at 0x1400014a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
mov rbx, rdx
movsxd r14, ecx
mov dword [rsp + 0x98], 5
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xb0], xmm1
xor r8d, r8d
lea rdx, [0x140016394]
lea rcx, [rsp + 0xa0]
call fcn.140002fa4
mov edi, 1
mov byte [rsp + 0xc0], dil
xor esi, esi
cmp r14d, edi
jle 0x14000154a
mov dword [rsp + 0x98], esi
lea rdx, str.install
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001607
mov dword [rsp + 0x98], edi
mov byte [rsp + 0x20], sil
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftVisualStudio17.0
lea edi, [r9 + 0x4f]
mov ecx, edi
call fcn.140012218
mov ecx, 0x1f4
call fcn.140011ff8
xor edx, edx
mov r8d, 0xd0
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xe0]
call fcn.14000769c
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xe0]
call fcn.1400077d4
mov ebx, eax
lea rcx, [rsp + 0xe0]
call fcn.140001c40
nop
mov ecx, 0x225
call fcn.140011ff8
mov ecx, edi
call fcn.140012474
nop
lea rcx, [rsp + 0xa0]
call fcn.140003208
mov eax, ebx
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.140012650
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.uninstall
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000162c
mov dword [rsp + 0x98], 2
jmp 0x14000154a
lea rdx, str.stop
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001651
mov dword [rsp + 0x98], 4
jmp 0x14000154a
lea rdx, str.start
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001676
mov dword [rsp + 0x98], 3
jmp 0x14000154a
lea rdx, str.test
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000169b
mov dword [rsp + 0x98], 7
jmp 0x14000154a
lea rdx, str.testOneCore
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400016c0
mov dword [rsp + 0x98], 8
jmp 0x14000154a
lea rdx, str.authorize
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400018d4
cmp r14d, 3
jge 0x1400016f3
lea rcx, [rsp + 0xa0]
call fcn.140003208
mov eax, edi
jmp 0x1400015da
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x10]
call fcn.140002eac
test eax, eax
js 0x140001b62
mov byte [rsp + 0x30], sil
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140001bfb
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x90], rsi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x140016310]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x140016300]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140001b78
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0xd0], rsi
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x20]
call qword [0x140015878]
test eax, eax
js 0x140001b8e
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x18]
call qword [0x140015878]
test eax, eax
js 0x140001ba4
mov qword [rsp + 0xc8], rsi
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
call fcn.140009aec
test eax, eax
js 0x140001bba
mov qword [rsp + 0x88], rsi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
lea rdx, [0x1400162e0]
mov rax, qword [rax]
call qword [0x140015878]
nop
test eax, eax
js 0x140001bd0
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x18]
call qword [0x140015878]
test eax, eax
js 0x140001be5
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000184c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015878]
nop
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140001868
mov rax, qword [rcx]
mov edx, edi
mov rax, qword [rax]
call qword [0x140015878]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x14000188f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015878]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400018a7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015878]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400018c2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015878]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1400018cf
jmp 0x140001b4e
mov r13, r14
lea rdx, str.merge
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001a53
lea rcx, [rsp + 0x30]
call fcn.140001350
cmp r14d, 4
jge 0x14000190a
mov esi, 0x57
jmp 0x140001b4e
mov r12, qword [rbx + 0x10]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r15, rsi
mov qword [rsp + 0x80], rsi
mov r14, qword [rsp + 0x78]
cmp r13, 3
jbe 0x140001971
add rbx, 0x18
add r13, 0xfffffffffffffffd
cmp r14, r15
je 0x14000194b
mov rax, qword [rbx]
mov qword [r14], rax
add r14, 8
mov qword [rsp + 0x78], r14
jmp 0x140001968
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140002034
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
add rbx, 8
sub r13, rdi
jne 0x140001935
xor r8d, r8d
xor edx, edx
lea rcx, str.XPERF_EmbeddedPdbPath
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
neg eax
sbb ebx, ebx
and ebx, 0x100
add ebx, 0x1f
xor r8d, r8d
xor edx, edx
lea rcx, str.DIAGHUB_DataInjectOnly
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, ebx
bts edi, 0x1e
test eax, eax
cmove edi, ebx
xor edx, edx
mov r8d, 0x130
lea rcx, [rsp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x1b0]
call fcn.14000a2cc
nop
mov rbx, qword [rsp + 0x70]
sub r14, rbx
sar r14, 3
mov dword [rsp + 0x20], edi
mov r9d, r14d
mov r8, rbx
mov rdx, r12
lea rcx, [rsp + 0x1b0]
call fcn.14000a4a8
mov edi, eax
lea rcx, [rsp + 0x1b0]
call fcn.14000a480
nop
test rbx, rbx
je 0x140001b4c
sub r15, rbx
sar r15, 3
lea rdx, [r15*8]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a46
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001269c
jmp 0x140001b4c
lea rdx, str.service
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001b3c
mov dword [rsp + 0x98], 6
mov byte [rsp + 0xc0], dil
cmp r13, 2
jbe 0x14000154a
lea r15d, [rax + 2]
mov r12, qword [rbx + r15*8]
add r12, 2
lea rdx, [0x1400161b8]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov r14, rax
test rax, rax
je 0x140001acb
mov word [rax], si
add r14, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], si
jne 0x140001ab8
neg rax
sbb rax, rax
and r14, rax
lea rdx, str.LaunchCompleteEventName
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001b04
test r14, r14
je 0x140001b30
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], si
jne 0x140001ae8
mov rdx, r14
lea rcx, [rsp + 0xa0]
call fcn.140001ec4
jmp 0x140001b1f
lea rdx, str.NoTimeout
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
neg eax
sbb cl, cl
and byte [rsp + 0xc0], cl
add r15, rdi
cmp r15, r13
jl 0x140001a8d
jmp 0x14000154a
mov rdx, r12
lea rcx, str.Invalid_argument_for_flag:__s_n
jmp 0x140001b47
mov rdx, qword [rbx + 8]
lea rcx, str.Unrecognized_option:__s_n
call fcn.140002268
mov esi, edi
lea rcx, [rsp + 0xa0]
call fcn.140003208
mov eax, esi
jmp 0x1400015da
mov dword [rsp + 0x34], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x38], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x3c], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x3c]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x40], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x44], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x48], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x4c], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x50], eax
lea rdx, [0x14001c338]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3