Function at 0x14007a1f0
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rax - 0x108], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r13, rcx
mov qword [rsp + 0x98], rcx
xor r14d, r14d
mov r15d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
mov esi, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x40]
lea edx, [r14 + 8]
lea r8d, [r14 + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
mov r12d, eax
test eax, eax
jne 0x14007a28d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14007a300
mov qword [rsp + 0x40], r14
lea r12d, [r14 + 1]
lea rcx, [rsp + 0x58]
call fcn.1400274f8
nop
lea rcx, [rsp + 0x60]
call fcn.1400274cc
nop
lea r8, [rsp + 0x34]
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
lea r8, [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007a2e4
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x14007a2f2
mov rcx, rbx
call fcn.14000e5b8
nop
test rdi, rdi
je 0x14007a300
mov rcx, rdi
call fcn.14000e5b8
nop
test esi, esi
js 0x14007a30b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop
test r12d, r12d
je 0x14007a664
cmp dword [rsp + 0x34], r14d
jne 0x14007a326
cmp dword [rsp + 0x38], r14d
je 0x14007a664
lea rbx, [r13 + 0x48]
lea r8, [r13 + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.140014500
nop
mov r8b, 1
lea rdx, [0x1400ca1d0]
lea rcx, [rsp + 0xa0]
call fcn.140075480
mov edi, eax
test eax, eax
js 0x14007a621
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140015bd4
mov r12, rax
test rax, rax
je 0x14007a4dc
mov r9, r12
mov qword [rsp + 0x70], r12
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140046284
mov r12, rax
lea rax, [r9 + 0x40]
mov qword [rsp + 0x88], rax
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
lea rbx, [rax - 0x18]
mov r9, qword [rbx]
mov rax, qword [r9]
mov rax, qword [rax + 0x20]
lea rcx, [fcn.140016910]
cmp rax, rcx
je 0x14007a3d6
mov rcx, r9
call qword [case.0x14000702c.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x14007a3f0
cmp r9, qword [rbx]
jne 0x14007a3f0
lock inc dword [rbx + 0x10]
mov r15d, dword [rsp + 0x30]
jmp 0x14007a438
lea rsi, [rbx + 8]
mov rax, qword [r9]
mov r8d, 2
mov edx, dword [rsi]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x14000702c.0]
mov rbx, rax
test rax, rax
je 0x14007a538
mov ecx, dword [rsi]
mov dword [rax + 8], ecx
mov ecx, dword [rsi]
inc ecx
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rax + 0x18]
mov r9, rdx
mov r8, qword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_memcpy_s]
lea rsi, [rbx + 0x18]
mov qword [rsp + 0x78], rsi
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x5c], r14d
jne 0x14007a48a
mov rax, qword [0x1400ca1f8]
mov r8d, dword [rax - 0x10]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.140006b14
nop
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [0x1400ca1f8]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
mov bl, r14b
je 0x14007a48c
mov bl, 1
test r15b, 1
je 0x14007a4ac
and r15d, 0xfffffffe
mov dword [rsp + 0x30], r15d
mov rcx, qword [rsp + 0x80]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
test bl, bl
je 0x14007a4c6
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xa0]
call fcn.1400309c4
nop
lea rcx, [rsi - 0x18]
call fcn.1400176e0
test r12, r12
jne 0x14007a381
lea rbx, [r13 + 0x48]
lea rdx, [rsp + 0xa0]
mov rcx, r13
call fcn.1400719d4
lea rdx, [0x1400c9e30]
lea rcx, [rsp + 0x48]
call fcn.1400446e8
nop
mov r8, rbx
lea rdx, [0x1400ca1e8]
lea rcx, [rsp + 0x90]
call fcn.140070940
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140016510
nop
mov rcx, qword [rsp + 0x90]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
nop
jmp 0x14007a54d
call fcn.140056cd8
nop
xor r14d, r14d
mov edi, dword [rsp + 0x30]
mov r13, qword [rsp + 0x98]
test edi, edi
js 0x14007a612
lea rax, [0x14008cac0]
mov qword [rsp + 0xf0], rax
lea rax, fcn.14001b680
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 0x41
mov word [rsp + 0x110], r14w
lea rax, fcn.140008d70
mov qword [rsp + 0xf8], rax
lea rax, [0x14008b078]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x198], r14d
mov qword [rsp + 0x1a0], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xf0]
call fcn.1400177b0
test eax, eax
js 0x14007a603
mov rdx, qword [r13 + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.14005b1c0
nop
lea rcx, [rsp + 0xf0]
call fcn.140017740
jmp 0x14007a617
mov rbx, qword [rsp + 0x48]
lea rcx, [rbx - 0x18]
call fcn.1400176e0
nop
mov rcx, qword [rsp + 0xd8]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
mov rcx, qword [rsp + 0xd0]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
lea rcx, [rsp + 0xa0]
call fcn.140015c00
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14007a664
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret