Function at 0x14011db88
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 [0x14017d140]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
or qword [rsp + 0x20], 0xffffffffffffffff
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
lea r13, [0x140012500]
cmp rcx, r12
je 0x14011dbf1
test byte [rcx + 0x1c], 1
je 0x14011dbf1
cmp byte [rcx + 0x19], 4
jb 0x14011dbf1
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3a]
mov r8, r13
call fcn.14001dd24
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 0x14011dc30
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14011dda8
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011dc59
test byte [rcx + 0x1c], 1
je 0x14011dc59
cmp byte [rcx + 0x19], 5
jb 0x14011dc59
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r13
call fcn.14001dd24
lea rcx, [rsp + 0x30]
call fcn.14007963c
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x14011dc84
lea r8, [0x140007580]
lea rcx, [0x140007638]
mov edx, 0x1c4
call fcn.1400a8be8
mov rcx, qword [rsp + 0x20]
lea rdx, [rbx + 8]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rsp + 0x30]
test eax, eax
sete bl
call fcn.14007a330
test bl, bl
jne 0x14011dc17
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011dcd6
test byte [rcx + 0x1c], 1
je 0x14011dcd6
cmp byte [rcx + 0x19], 5
jb 0x14011dcd6
mov rcx, qword [rcx + 0x10]
mov edx, 0x3e
mov r8, r13
call fcn.14001dd24
lea rcx, [rsp + 0x30]
call fcn.14007935c
mov rbx, rax
cmp byte [rax + 0x4c], dil
jne 0x14011dd01
lea r8, [0x140007580]
lea rcx, [0x140007638]
mov edx, 0x1c4
call fcn.1400a8be8
mov rcx, qword [rsp + 0x20]
lea rdx, [rbx + 8]
mov r8, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rsp + 0x30]
test eax, eax
sete bl
call fcn.14007a330
test bl, bl
jne 0x14011dc17
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011dddf
test byte [rcx + 0x1c], 1
lea rax, [0x1400042c8]
lea rbx, [0x1400042d0]
je 0x14011dd7c
cmp byte [rcx + 0x19], 4
jb 0x14011dd7c
cmp dword [rsi], edi
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov edx, 0x3f
mov r8, r13
cmovne r9, rax
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
lea rax, [0x1400042c8]
cmp rcx, r12
je 0x14011dddf
test byte [rcx + 0x1c], 1
je 0x14011dddf
cmp byte [rcx + 0x19], 4
jb 0x14011dddf
cmp dword [r14], edi
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
cmovne rbx, rax
mov r8, r13
mov r9, rbx
call fcn.14001ec40
test edi, edi
jns 0x14011ddd8
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011dddf
test byte [rcx + 0x1c], 1
je 0x14011dddf
cmp byte [rcx + 0x19], 2
jb 0x14011dddf
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, edi
mov r8, r13
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x14011ddf9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011de1b
test byte [rcx + 0x1c], 1
je 0x14011de1b
cmp byte [rcx + 0x19], 4
jb 0x14011de1b
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
mov r8, r13
call fcn.14001dd24
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret