Function at 0x1400f7d68
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 [0x140172608]
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 [0x1401720a0]
lea r12, [0x1401720a0]
lea r13, [0x140157df0]
cmp rcx, r12
je 0x1400f7dd1
test byte [rcx + 0x1c], 1
je 0x1400f7dd1
cmp byte [rcx + 0x19], 4
jb 0x1400f7dd1
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3a]
mov r8, r13
call fcn.140004b74
and dword [rsi], edi
and dword [r14], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 8
lea r9, [rsp + 0x20]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400f7e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400f7f88
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x1400f7e39
test byte [rcx + 0x1c], 1
je 0x1400f7e39
cmp byte [rcx + 0x19], 5
jb 0x1400f7e39
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r13
call fcn.140004b74
lea rcx, [rsp + 0x30]
call fcn.1400628ac
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x1400f7e64
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008410c
mov rcx, qword [rsp + 0x20]
lea rdx, [rbx + 8]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.1400636d0
test bl, bl
jne 0x1400f7df7
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x1400f7eb6
test byte [rcx + 0x1c], 1
je 0x1400f7eb6
cmp byte [rcx + 0x19], 5
jb 0x1400f7eb6
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, r13
call fcn.140004b74
lea rcx, [rsp + 0x30]
call fcn.1400625b0
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x1400f7ee1
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.14008410c
mov rcx, qword [rsp + 0x20]
lea rdx, [rbx + 8]
mov r8, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.1400636d0
test bl, bl
jne 0x1400f7df7
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x1400f7fbf
test byte [rcx + 0x1c], 1
lea rax, [0x14014abd8]
lea rbx, [0x14014abe0]
je 0x1400f7f5c
cmp byte [rcx + 0x19], 4
jb 0x1400f7f5c
cmp dword [rsi], edi
mov r9, rbx
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
cmovne r9, rax
mov r8, r13
call fcn.140005afc
mov rcx, qword [0x1401720a0]
lea rax, [0x14014abd8]
cmp rcx, r12
je 0x1400f7fbf
test byte [rcx + 0x1c], 1
je 0x1400f7fbf
cmp byte [rcx + 0x19], 4
jb 0x1400f7fbf
cmp dword [r14], edi
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
mov r8, r13
cmovne rbx, rax
mov r9, rbx
call fcn.140005afc
test edi, edi
jns 0x1400f7fb8
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x1400f7fbf
test byte [rcx + 0x1c], 1
je 0x1400f7fbf
cmp byte [rcx + 0x19], 2
jb 0x1400f7fbf
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, edi
mov r8, r13
call fcn.140004b98
mov rcx, qword [0x1401720a0]
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400f7fd9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x1400f7ffb
test byte [rcx + 0x1c], 1
je 0x1400f7ffb
cmp byte [rcx + 0x19], 4
jb 0x1400f7ffb
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
mov r8, r13
call fcn.140004b74
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret