Function at 0x1400013f8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x320
mov qword [rax - 0x290], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140017230]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rbx, rdx
movsxd r14, ecx
mov esi, 1
mov dword [rsp + 0x40], esi
lea r12d, [rsi + 3]
mov r8d, r12d
lea rdx, [rsp + 0x40]
lea ecx, [rsi + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x44], esi
mov r8d, r12d
lea rdx, [rsp + 0x44]
lea r15d, [rsi + 1]
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x48], esi
mov r8d, r12d
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0x4c], 3
mov r8d, r12d
lea rdx, [rsp + 0x4c]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov dword [rsp + 0xc8], 5
lea r13d, [rsi + 6]
mov qword [rsp + 0xe8], r13
xor edi, edi
mov qword [rsp + 0xe0], rdi
mov word [rsp + 0xd0], di
mov byte [rsp + 0xf0], sil
cmp r14d, esi
jle 0x1400014f4
mov dword [rsp + 0xc8], edi
lea rdx, str.install
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x14000152f
mov dword [rsp + 0xc8], esi
lea rcx, [rsp + 0x110]
call fcn.140002e64
nop
mov r8d, dword [rsp + 0xc8]
test r8d, r8d
jle 0x140001b2b
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x110]
call fcn.140002f58
mov ebx, eax
jmp 0x140001b2e
lea rdx, str.uninstall
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x14000154e
mov dword [rsp + 0xc8], r15d
jmp 0x1400014f4
lea rdx, str.stop
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x14000156d
mov dword [rsp + 0xc8], r12d
jmp 0x1400014f4
lea rdx, str.start
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x140001592
mov dword [rsp + 0xc8], 3
jmp 0x1400014f4
lea rdx, str.test
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x1400015b4
mov dword [rsp + 0xc8], r13d
jmp 0x1400014f4
lea rdx, str.testOneCore
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x1400015d9
mov dword [rsp + 0xc8], 8
jmp 0x1400014f4
lea rdx, str.authorize
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x1400018a3
cmp r14d, 3
jge 0x14000160c
lea rcx, [rsp + 0xd0]
call fcn.140002518
mov eax, esi
jmp 0x140001bf9
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x1400016c2
mov rax, qword [0x1400170d0]
lea rcx, [0x1400170d0]
mov rax, qword [rax + 0x18]
call qword [case.0x14000da76.0]
add rax, 0x18
mov qword [rsp + 0x88], rax
mov r8, rbx
lea rdx, str._s
lea rcx, [rsp + 0x88]
call fcn.1400020ac
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140001699
movups xmm0, xmmword [0x14000ffa0]
movdqu xmmword [rsp + 0xf8], xmm0
cmp word [rbx], 0x7b
jne 0x140001691
lea rdx, [rsp + 0xf8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
test eax, eax
js 0x140001691
mov r14d, edi
jmp 0x14000169f
mov r14d, 0x8007000d
jmp 0x14000169f
mov r14d, 0x80070057
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400016c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000da76.0]
jmp 0x1400016c8
mov r14d, 0x80070057
test r14d, r14d
js 0x140001c26
mov byte [rsp + 0x30], dil
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x140001cc0
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x80], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [0x140010300]
mov r8d, r12d
xor edx, edx
lea rcx, str.Xo.
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x140001c3d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x98], rdi
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xf8]
mov rax, qword [rax + 0x20]
call qword [case.0x14000da76.0]
test eax, eax
js 0x140001c53
mov qword [rsp + 0x78], rdi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov rax, qword [rax + 0x18]
call qword [case.0x14000da76.0]
test eax, eax
js 0x140001c69
mov qword [rsp + 0x90], rdi
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x1400017a2
mov eax, 0x80004003
jmp 0x140001c7f
lea rdx, [rsp + 0x90]
call fcn.14000a398
test eax, eax
js 0x140001c7f
mov qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x1400102c8]
mov rax, qword [rax]
call qword [case.0x14000da76.0]
test eax, eax
js 0x140001c95
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0xf8]
mov rax, qword [rax + 0x18]
call qword [case.0x14000da76.0]
test eax, eax
js 0x140001caa
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000181b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140001837
mov rax, qword [rcx]
mov edx, esi
mov rax, qword [rax]
call qword [case.0x14000da76.0]
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000185e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001876
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140001891
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
nop
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
jmp 0x14000189e
jmp 0x140001b17
mov r13, r14
lea rdx, str.merge
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x140001a2f
cmp r14d, r12d
jge 0x1400018cc
lea edi, [rax + 0x57]
jmp 0x140001b17
mov r12, qword [rbx + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov r14, rdi
mov qword [rsp + 0xb0], rdi
cmp r13, 3
jle 0x140001944
lea r15, [rbx + 0x18]
add r13, 0xfffffffffffffffd
mov rbx, qword [rsp + 0xa8]
cmp r14, rbx
je 0x140001916
mov rax, qword [r15]
mov qword [rbx], rax
add rbx, 8
mov qword [rsp + 0xa8], rbx
jmp 0x140001939
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.14000215c
mov r14, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
add r15, 8
sub r13, rsi
jne 0x1400018fd
jmp 0x14000194c
mov rbx, qword [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
lea rcx, str.XPERF_EmbeddedPdbPath
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov ecx, 0x11f
mov r15d, 0x1f
test eax, eax
cmovne r15d, ecx
xor r8d, r8d
xor edx, edx
lea rcx, str.DIAGHUB_DataInjectOnly
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000198a
bts r15d, 0x1e
lea rcx, [rsp + 0x1e0]
call fcn.14000a600
nop
mov rsi, qword [rsp + 0xa0]
sub rbx, rsi
sar rbx, 3
mov dword [rsp + 0x20], r15d
mov r9d, ebx
mov r8, rsi
mov rdx, r12
lea rcx, [rsp + 0x1e0]
call fcn.14000a74c
mov ebx, eax
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x1400019d7
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea rcx, [rsp + 0x1f8]
call fcn.140009584
nop
test rsi, rsi
je 0x140001a28
sub r14, rsi
sar r14, 3
mov rdx, r14
shl rdx, 3
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001a20
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a20
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14000c668
mov edi, ebx
jmp 0x140001b17
lea rdx, str.service
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x140001b05
mov dword [rsp + 0xc8], 6
mov byte [rsp + 0xf0], sil
cmp r13, r15
jle 0x1400014f4
mov r12, qword [rbx + r15*8]
add r12, 2
lea rdx, [0x140010200]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
mov r14, rax
test rax, rax
je 0x140001aa2
mov word [rax], di
add r14, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], di
jne 0x140001a8f
neg rax
sbb rax, rax
and r14, rax
lea rdx, str.LaunchCompleteEventName
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
jne 0x140001acd
test r14, r14
je 0x140001af9
mov rdx, r14
lea rcx, [rsp + 0xd0]
call fcn.140001f70
jmp 0x140001ae8
lea rdx, str.NoTimeout
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
neg eax
sbb cl, cl
and byte [rsp + 0xf0], cl
add r15, rsi
cmp r15, r13
jge 0x1400014f4
jmp 0x140001a64
mov rdx, r12
lea rcx, str.Invalid_argument_for_flag:__s_n
jmp 0x140001b10
mov rdx, qword [rbx + 8]
lea rcx, str.Unrecognized_option:__s_n
call fcn.14000d520
mov edi, esi
lea rcx, [rsp + 0xd0]
call fcn.140002518
mov eax, edi
jmp 0x140001bf9
or ebx, 0xffffffff
cmp byte [rsp + 0x1d8], dil
je 0x140001b8b
mov rcx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x140001b8b
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x140001b75
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolTimer]
mov edx, esi
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_WaitForThreadpoolTimerCallbacks]
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolTimer]
mov qword [rsp + 0x1d0], rdi
lea rcx, [rsp + 0x160]
call fcn.140001eac
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x140001bb2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x140001bcc
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000da76.0]
mov rcx, qword [rsp + 0x140]
cmp rcx, 0xffffffffffffffff
je 0x140001bea
or qword [rsp + 0x140], 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rsp + 0xd0]
call fcn.140002518
mov eax, ebx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14000c640
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x50], r14d
lea rdx, [0x140014570]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x54], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x54]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x58], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x5c], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x5c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x60], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x64], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x64]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
mov dword [rsp + 0x68], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x68]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x6c], eax
lea rdx, [0x140014570]
lea rcx, [rsp + 0x6c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3