Function at 0x140001494
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, 0x320
mov rax, qword [0x140017230]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rbx, rdx
movsxd r14, ecx
mov esi, 1
mov dword [rsp + 0x48], esi
lea r13d, [rsi + 3]
mov r8d, r13d
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0x4c], esi
mov r8d, r13d
lea rdx, [rsp + 0x4c]
lea r15d, [rsi + 1]
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0x50], esi
mov r8d, r13d
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea r12d, [rsi + 2]
mov dword [rsp + 0x54], r12d
mov r8d, r13d
lea rdx, [rsp + 0x54]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0xc8], 5
mov qword [rsp + 0xe8], 7
xor edi, edi
mov qword [rsp + 0xe0], rdi
mov word [rsp + 0xd0], di
mov byte [rsp + 0xf0], sil
cmp r14d, esi
jle 0x1400015a3
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400015de
mov dword [rsp + 0xc8], esi
lea rcx, [rsp + 0x110]
call fcn.1400031b8
nop
mov r8d, dword [rsp + 0xc8]
test r8d, r8d
jle 0x140001c57
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x110]
call fcn.1400032c4
mov ebx, eax
jmp 0x140001c5a
lea rdx, str.uninstall
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001603
mov dword [rsp + 0xc8], r15d
jmp 0x1400015a3
lea rdx, str.stop
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000162b
mov dword [rsp + 0xc8], r13d
jmp 0x1400015a3
lea rdx, str.start
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001653
mov dword [rsp + 0xc8], r12d
jmp 0x1400015a3
lea rdx, str.test
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000167e
mov dword [rsp + 0xc8], 7
jmp 0x1400015a3
lea rdx, str.testOneCore
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1400016a9
mov dword [rsp + 0xc8], 8
jmp 0x1400015a3
lea rdx, str.authorize
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001999
cmp r14d, r12d
jge 0x1400016e1
lea rcx, [rsp + 0xd0]
call fcn.140002728
mov eax, esi
jmp 0x140001d43
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x14000179d
mov rax, qword [0x1400170d0]
lea rcx, [0x1400170d0]
mov rax, qword [rax + 0x18]
call qword [case.0x14000e5e6.0]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov r8, rbx
lea rdx, str._s
lea rcx, [rsp + 0x90]
call fcn.140002244
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140001774
movups xmm0, xmmword [0x140011020]
movdqu xmmword [rsp + 0xf8], xmm0
cmp word [rbx], 0x7b
jne 0x14000176c
lea rdx, [rsp + 0xf8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x14000176c
mov r14d, edi
jmp 0x14000177a
mov r14d, 0x8007000d
jmp 0x14000177a
mov r14d, 0x80070057
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400017a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000e5e6.0]
jmp 0x1400017a3
mov r14d, 0x80070057
test r14d, r14d
js 0x140001d71
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]
nop dword [rax + rax]
test eax, eax
js 0x140001e0b
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x88], rdi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [0x140011380]
mov r8d, r13d
xor edx, edx
lea rcx, [0x140011370]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x140001d88
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xf8]
mov rax, qword [rax + 0x20]
call qword [case.0x14000e5e6.0]
test eax, eax
js 0x140001d9e
mov qword [rsp + 0x80], rdi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x80]
mov rax, qword [rax + 0x18]
call qword [case.0x14000e5e6.0]
test eax, eax
js 0x140001db4
mov qword [rsp + 0x98], rdi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x14000188c
mov eax, 0x80004003
jmp 0x140001dca
lea rdx, [rsp + 0x98]
call fcn.14000b110
test eax, eax
js 0x140001dca
mov qword [rsp + 0x78], rdi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x140011360]
mov rax, qword [rax]
call qword [case.0x14000e5e6.0]
test eax, eax
js 0x140001de0
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0xf8]
mov rax, qword [rax + 0x18]
call qword [case.0x14000e5e6.0]
test eax, eax
js 0x140001df5
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001905
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140001921
mov rax, qword [rcx]
mov edx, esi
mov rax, qword [rax]
call qword [case.0x14000e5e6.0]
nop
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000194e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001966
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140001981
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
nop
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
jmp 0x140001994
jmp 0x140001c43
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]
nop dword [rax + rax]
test eax, eax
jne 0x140001b43
cmp r14d, 4
jge 0x1400019c9
lea edi, [rax + 0x57]
jmp 0x140001c43
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov r15, rdi
mov qword [rsp + 0xb0], rdi
mov r14, qword [rsp + 0xa8]
cmp r13, r12
jle 0x140001a48
mov rax, qword [rbx + r12*8]
mov qword [rsp + 0xb8], rax
cmp r15, r14
je 0x140001a18
mov qword [r14], rax
add r14, 8
mov qword [rsp + 0xa8], r14
jmp 0x140001a40
lea r8, [rsp + 0xb8]
mov rdx, r14
lea rcx, [rsp + 0xa0]
call fcn.1400022f4
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xa8]
add r12, rsi
cmp r12, r13
jl 0x1400019f6
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]
nop dword [rax + rax]
mov esi, 0x1f
mov ecx, 0x11f
test eax, eax
cmovne esi, 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]
nop dword [rax + rax]
test eax, eax
je 0x140001a8f
bts esi, 0x1e
lea rcx, [rsp + 0x1e0]
call fcn.14000b380
nop
mov rbx, qword [rsp + 0xa0]
sub r14, rbx
sar r14, 3
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8, rbx
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x1e0]
call fcn.14000b4d0
mov esi, eax
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x140001ae3
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
lea rcx, [rsp + 0x1f8]
call fcn.14000a3b8
nop
test rbx, rbx
je 0x140001c41
sub r15, rbx
sar r15, 3
mov rdx, r15
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001b36
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b36
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
mov rcx, rbx
call fcn.14000d238
jmp 0x140001c41
lea rdx, str.service
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001c31
mov dword [rsp + 0xc8], 6
mov byte [rsp + 0xf0], sil
cmp r13, r15
jle 0x1400015a3
mov r12, qword [rbx + r15*8]
add r12, 2
lea rdx, [0x140011280]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140001bc2
mov word [rax], di
add r14, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], di
jne 0x140001baf
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]
nop dword [rax + rax]
test eax, eax
jne 0x140001bf3
test r14, r14
je 0x140001c25
mov rdx, r14
lea rcx, [rsp + 0xd0]
call fcn.1400020f8
jmp 0x140001c14
lea rdx, str.NoTimeout
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
neg eax
sbb cl, cl
and byte [rsp + 0xf0], cl
add r15, rsi
cmp r15, r13
jge 0x1400015a3
jmp 0x140001b7e
mov rdx, r12
lea rcx, str.Invalid_argument_for_flag:__s_n
jmp 0x140001c3c
mov rdx, qword [rbx + 8]
lea rcx, str.Unrecognized_option:__s_n
call fcn.14000e09c
mov edi, esi
lea rcx, [rsp + 0xd0]
call fcn.140002728
mov eax, edi
jmp 0x140001d43
or ebx, 0xffffffff
cmp byte [rsp + 0x1d8], dil
je 0x140001ccf
mov rcx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x140001ccf
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
nop dword [rax + rax]
test eax, eax
je 0x140001cb3
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]
nop dword [rax + rax]
mov edx, esi
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_WaitForThreadpoolTimerCallbacks]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolTimer]
nop dword [rax + rax]
mov qword [rsp + 0x1d0], rdi
lea rcx, [rsp + 0x160]
call fcn.140002010
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x140001cf6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x140001d10
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000e5e6.0]
mov rcx, qword [rsp + 0x140]
cmp rcx, 0xffffffffffffffff
je 0x140001d34
or qword [rsp + 0x140], 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0xd0]
call fcn.140002728
mov eax, ebx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14000d210
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 + 0x58], r14d
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x5c], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x5c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x60], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x64], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x64]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x68], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x68]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x6c], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x6c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
mov dword [rsp + 0x70], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x74], eax
lea rdx, [0x140013ef8]
lea rcx, [rsp + 0x74]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3