Function at 0x140101dec
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor edi, edi
mov r14, rdx
or qword [rbp - 0x69], 0xffffffffffffffff
mov rsi, rcx
mov rcx, qword [0x14017a048]
lea r13, [0x14017a048]
cmp rcx, r13
je 0x140101e51
test byte [rcx + 0x1c], 1
je 0x140101e51
cmp byte [rcx + 0x19], 4
jb 0x140101e51
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x32]
lea r8, [0x140166440]
call fcn.140006b98
and dword [rsi], edi
and dword [r14], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rbp - 0x69]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140101fb6
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140101eb3
test byte [rcx + 0x1c], 1
je 0x140101eb3
cmp byte [rcx + 0x19], 5
jb 0x140101eb3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166440]
mov edx, 0x35
call fcn.140006b98
mov r9d, 0x20
mov dword [rsp + 0x20], 0x220
lea rdx, [0x1401582c8]
lea rcx, [rbp - 0x59]
lea r8d, [r9 - 0x1e]
call fcn.14006223c
cmp byte [rbp - 0xd], dil
jne 0x140101ef3
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.14008ac24
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x51]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rbp - 0x59]
sete bl
call fcn.140062624
test bl, bl
jne 0x140101fb6
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140101f4d
test byte [rcx + 0x1c], 1
je 0x140101f4d
cmp byte [rcx + 0x19], 5
jb 0x140101f4d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166440]
mov edx, 0x36
call fcn.140006b98
mov r9d, 0x20
mov dword [rsp + 0x20], 0x227
lea rdx, [0x1401582c8]
lea rcx, [rbp - 0x59]
lea r8d, [r9 - 0x1e]
call fcn.14006223c
cmp byte [rbp - 0xd], dil
jne 0x140101f8d
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.14008ac24
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x51]
mov r8, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rbp - 0x59]
sete bl
call fcn.140062624
test bl, bl
je 0x14010201a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140101fd1
movzx edi, ax
or edi, 0x80070000
test edi, edi
jns 0x14010209c
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x1401020a3
test byte [rcx + 0x1c], 1
je 0x1401020a3
cmp byte [rcx + 0x19], 2
jb 0x1401020a3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166440]
mov edx, 0x39
mov r9d, edi
call fcn.140006bc4
jmp 0x14010209c
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x1401020a3
test byte [rcx + 0x1c], 1
lea rax, [0x1401592a0]
lea rbx, [0x140159298]
je 0x14010206c
cmp byte [rcx + 0x19], 4
jb 0x14010206c
cmp dword [rsi], edi
lea r8, [0x140166440]
mov rcx, qword [rcx + 0x10]
mov r9, rbx
cmove r9, rax
mov edx, 0x37
call fcn.1400112c8
mov rcx, qword [0x14017a048]
lea rax, [0x1401592a0]
cmp rcx, r13
je 0x1401020a3
test byte [rcx + 0x1c], 1
je 0x1401020a3
cmp byte [rcx + 0x19], 4
jb 0x1401020a3
cmp dword [r14], edi
lea r8, [0x140166440]
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
cmove rbx, rax
mov r9, rbx
call fcn.1400112c8
mov rcx, qword [0x14017a048]
cmp qword [rbp - 0x69], 0xffffffffffffffff
je 0x1401020c1
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x1401020e7
test byte [rcx + 0x1c], 1
je 0x1401020e7
cmp byte [rcx + 0x19], 4
jb 0x1401020e7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166440]
mov edx, 0x3a
call fcn.140006b98
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001d90
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret