Function at 0x14001a2e0
Capabilities:
Get common file path
Get token membership

Disassembly:
push rbp
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor edx, edx
lea rcx, [rbp + 0x3c0]
mov r8d, 0x208
call fcn.14001c070
lea rcx, [rbp + 0x3c0]
call fcn.14001a5c0
test eax, eax
je 0x14001a599
mov qword [rsp + 0x6f8], rsi
mov qword [rsp + 0x708], r14
xor r14d, r14d
cmp dword [0x14004ee58], r14d
je 0x14001a398
mov rax, qword [0x14004f1d0]
test rax, rax
je 0x14001a398
lea rdx, str.XSplit_Gamecaster
xor ecx, ecx
call qword [0x1400335f0]
test rax, rax
je 0x14001a398
mov esi, 1
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov edx, esi
lea ecx, [r8 + 6]
call fcn.14000e470
mov r14, qword [rsp + 0x708]
mov eax, 1
mov rsi, qword [rsp + 0x6f8]
jmp 0x14001a59b
mov eax, dword [0x1400479e4]
mov esi, r14d
cmp eax, 2
jne 0x14001a579
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x44], r14d
mov qword [rsp + 0x30], r14
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14001a56f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea edx, [r9 + 0xe]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14001a564
xor edx, edx
mov dword [rsp + 0x40], 0x44
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
cmp dword [rsp + 0x48], 3
jne 0x14001a47b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 8
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14001a564
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.14001c070
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001a564
xor edx, edx
mov qword [rsp + 0x700], rdi
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.14001c070
lea r9, [rbp - 0x60]
mov edx, 0x104
lea r8, str._sShell32.dll
lea rcx, [rbp + 0x1b0]
call fcn.14000afd0
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14001a55c
lea rdx, str.IsUserAnAdmin
mov qword [rsp + 0x6f0], rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001a54b
mov rcx, qword [0x14004a6a8]
lea rax, [0x14004a6a8]
cmp rcx, rax
je 0x14001a53e
test byte [rcx + 0x1c], 8
je 0x14001a53e
mov rcx, qword [rcx + 0x10]
lea rax, str.Get_Shell32_IsUserAnAdmin_function_success
mov qword [rsp + 0x20], rax
call fcn.140019c20
mov rax, rbx
call qword [0x1400335f0]
mov dword [rsp + 0x44], eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rbx, qword [rsp + 0x6f0]
mov rdi, qword [rsp + 0x700]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov dword [0x1400479e4], eax
test eax, eax
jne 0x14001a36b
lea rdx, str.XSplit.ControlMessage.1
lea rcx, [rbp + 0x3c0]
call fcn.140012ff0
jmp 0x14001a37e
xor eax, eax
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.14001a990
add rsp, 0x6e0
pop rbp
ret