Function at 0x10010a58c
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, [0x100002fb0]
cmp rcx, r14
je 0x10010a5e9
test byte [rcx + 0x1c], 1
je 0x10010a5e9
cmp byte [rcx + 0x19], 4
jb 0x10010a5e9
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3a]
mov r8, r15
call fcn.10001c7b8
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 0x10010a62b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10010a7a9
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010a654
test byte [rcx + 0x1c], 1
je 0x10010a654
cmp byte [rcx + 0x19], 5
jb 0x10010a654
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r15
call fcn.10001c7b8
lea rcx, [rsp + 0x20]
call fcn.100069e00
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x10010a67f
lea r8, [0x100007ad0]
lea rcx, [0x1000079b0]
mov edx, 0x1c4
call fcn.100099ad8
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.100069f8c
test bl, bl
jne 0x10010a612
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010a6d4
test byte [rcx + 0x1c], 1
je 0x10010a6d4
cmp byte [rcx + 0x19], 5
jb 0x10010a6d4
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, r15
call fcn.10001c7b8
lea rcx, [rsp + 0x20]
call fcn.100069b2c
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x10010a6ff
lea r8, [0x100007ad0]
lea rcx, [0x1000079b0]
mov edx, 0x1c4
call fcn.100099ad8
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.100069f8c
test bl, bl
jne 0x10010a612
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010a7e0
test byte [rcx + 0x1c], 1
lea rax, [0x100004bf8]
lea rbx, [0x100004c00]
je 0x10010a77d
cmp byte [rcx + 0x19], 4
jb 0x10010a77d
cmp dword [rsi], edi
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov edx, 0x3f
mov r8, r15
cmovne r9, rax
call fcn.10001da24
mov rcx, qword [0x1001653b8]
lea rax, [0x100004bf8]
cmp rcx, r14
je 0x10010a7e0
test byte [rcx + 0x1c], 1
je 0x10010a7e0
cmp byte [rcx + 0x19], 4
jb 0x10010a7e0
cmp dword [rbp], edi
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
cmovne rbx, rax
mov r8, r15
mov r9, rbx
call fcn.10001da24
test edi, edi
jns 0x10010a7d9
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010a7e0
test byte [rcx + 0x1c], 1
je 0x10010a7e0
cmp byte [rcx + 0x19], 2
jb 0x10010a7e0
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, edi
mov r8, r15
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0xc0], 0xffffffffffffffff
je 0x10010a800
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10010a822
test byte [rcx + 0x1c], 1
je 0x10010a822
cmp byte [rcx + 0x19], 4
jb 0x10010a822
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
mov r8, r15
call fcn.10001c7b8
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