Function at 0x1400f7b10
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
or qword [rsp + 0x20], 0xffffffffffffffff
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r12, [0x14016a048]
lea r13, [0x140156590]
cmp rcx, r12
je 0x1400f7b79
test byte [rcx + 0x1c], 1
je 0x1400f7b79
cmp byte [rcx + 0x19], 4
jb 0x1400f7b79
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x32]
mov r8, r13
call fcn.14000c0e8
and dword [rsi], edi
and dword [r14], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rsp + 0x20]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400f7c79
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400f7bd8
test byte [rcx + 0x1c], 1
je 0x1400f7bd8
cmp byte [rcx + 0x19], 5
jb 0x1400f7bd8
mov rcx, qword [rcx + 0x10]
mov edx, 0x35
mov r8, r13
call fcn.14000c0e8
lea rcx, [rsp + 0x30]
call fcn.140063fa8
mov rcx, rax
call fcn.140068bb4
mov rcx, qword [rsp + 0x20]
mov r8, rsi
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.1400635bc
test bl, bl
jne 0x1400f7c79
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400f7c3d
test byte [rcx + 0x1c], 1
je 0x1400f7c3d
cmp byte [rcx + 0x19], 5
jb 0x1400f7c3d
mov rcx, qword [rcx + 0x10]
mov edx, 0x36
mov r8, r13
call fcn.14000c0e8
lea rcx, [rsp + 0x30]
call fcn.140064c9c
mov rcx, rax
call fcn.140068bb4
mov rcx, qword [rsp + 0x20]
mov r8, r14
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.1400635bc
test bl, bl
je 0x1400f7cd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400f7c94
movzx edi, ax
or edi, 0x80070000
test edi, edi
jns 0x1400f7d50
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400f7d57
test byte [rcx + 0x1c], 1
je 0x1400f7d57
cmp byte [rcx + 0x19], 2
jb 0x1400f7d57
mov rcx, qword [rcx + 0x10]
mov edx, 0x39
mov r9d, edi
mov r8, r13
call fcn.14000c114
jmp 0x1400f7d50
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400f7d57
test byte [rcx + 0x1c], 1
lea rax, [0x140149570]
lea rbx, [0x140149568]
je 0x1400f7d24
cmp byte [rcx + 0x19], 4
jb 0x1400f7d24
cmp dword [rsi], edi
mov r9, rbx
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
cmove r9, rax
mov r8, r13
call fcn.140014f10
mov rcx, qword [0x14016a048]
lea rax, [0x140149570]
cmp rcx, r12
je 0x1400f7d57
test byte [rcx + 0x1c], 1
je 0x1400f7d57
cmp byte [rcx + 0x19], 4
jb 0x1400f7d57
cmp dword [r14], edi
mov edx, 0x38
mov rcx, qword [rcx + 0x10]
mov r8, r13
cmove rbx, rax
mov r9, rbx
call fcn.140014f10
mov rcx, qword [0x14016a048]
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400f7d77
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400f7d99
test byte [rcx + 0x1c], 1
je 0x1400f7d99
cmp byte [rcx + 0x19], 4
jb 0x1400f7d99
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r8, r13
call fcn.14000c0e8
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret