Function at 0x10010aa1c
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
xor edi, edi
or qword [rax + 8], 0xffffffffffffffff
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
lea r15, [0x100002f70]
cmp rcx, r14
je 0x10010aa79
test byte [rcx + 0x1c], 1
je 0x10010aa79
cmp byte [rcx + 0x19], 4
jb 0x10010aa79
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3a]
mov r8, r15
call fcn.10001c854
and dword [rsi], edi
and dword [rbp], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 8
lea r9, [rsp + 0xc0]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x10010aabb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10010ac39
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010aae4
test byte [rcx + 0x1c], 1
je 0x10010aae4
cmp byte [rcx + 0x19], 5
jb 0x10010aae4
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r15
call fcn.10001c854
lea rcx, [rsp + 0x20]
call fcn.10006a0f4
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x10010ab0f
lea r8, [0x100007a50]
lea rcx, [0x100007938]
mov edx, 0x1c4
call fcn.10009a050
mov rcx, qword [rsp + 0xc0]
lea rdx, [rbx + 8]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rsp + 0x20]
test eax, eax
sete bl
call fcn.10006a2d0
test bl, bl
jne 0x10010aaa2
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010ab64
test byte [rcx + 0x1c], 1
je 0x10010ab64
cmp byte [rcx + 0x19], 5
jb 0x10010ab64
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, r15
call fcn.10001c854
lea rcx, [rsp + 0x20]
call fcn.100069e20
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x10010ab8f
lea r8, [0x100007a50]
lea rcx, [0x100007938]
mov edx, 0x1c4
call fcn.10009a050
mov rcx, qword [rsp + 0xc0]
lea rdx, [rbx + 8]
mov r8, rbp
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rsp + 0x20]
test eax, eax
sete bl
call fcn.10006a2d0
test bl, bl
jne 0x10010aaa2
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010ac70
test byte [rcx + 0x1c], 1
lea rax, [0x100004b98]
lea rbx, [0x100004ba0]
je 0x10010ac0d
cmp byte [rcx + 0x19], 4
jb 0x10010ac0d
cmp dword [rsi], edi
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov edx, 0x3f
mov r8, r15
cmovne r9, rax
call fcn.10001db08
mov rcx, qword [0x1001653b8]
lea rax, [0x100004b98]
cmp rcx, r14
je 0x10010ac70
test byte [rcx + 0x1c], 1
je 0x10010ac70
cmp byte [rcx + 0x19], 4
jb 0x10010ac70
cmp dword [rbp], edi
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
cmovne rbx, rax
mov r8, r15
mov r9, rbx
call fcn.10001db08
test edi, edi
jns 0x10010ac69
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010ac70
test byte [rcx + 0x1c], 1
je 0x10010ac70
cmp byte [rcx + 0x19], 2
jb 0x10010ac70
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, edi
mov r8, r15
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0xc0], 0xffffffffffffffff
je 0x10010ac90
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010acb2
test byte [rcx + 0x1c], 1
je 0x10010acb2
cmp byte [rcx + 0x19], 4
jb 0x10010acb2
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
mov r8, r15
call fcn.10001c854
lea r11, [rsp + 0xa0]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret