Function at 0x7ff74aee830
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rdi
push r12
sub rsp, 0x70
and dword [rax + 8], 0
and dword [rax + 0x18], 0
cmp qword [rcx + 8], 0
mov rbp, rdx
mov rdi, rcx
jne 0x7ff74afb848
cmp qword [rcx + 0x18], 0
jne 0x7ff74afae87
mov rcx, qword [rcx + 0xb8]
lea rdx, [rsp + 0xa8]
mov r8, qword [rcx]
call qword [r8 + 0x50]
test eax, eax
js 0x7ff74aee892
xor ecx, ecx
cmp dword [rsp + 0xa8], 1
sete cl
test ecx, ecx
jne 0x7ff74afae87
mov eax, 1
jmp 0x7ff74aee899
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r12
pop rdi
pop rbp
ret
mov r12d, dword [rdi + 0x34]
xor ebx, ebx
test r12d, r12d
jne 0x7ff74b20321
mov rcx, qword [rbp + 0x18]
lea r8, [rsp + 0xa0]
mov edx, 1
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x7ff74b202ca
mov rcx, qword [rdi + 0xb8]
lea rdx, [rsp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x50]
xor r9d, r9d
test eax, eax
js 0x7ff74afaee1
cmp dword [rsp + 0xa8], 1
sete r9b
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x48], r8
mov r8, qword [0x7ff74b58398]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rdi + 0x54]
lea rcx, [0x7ff74b4a7e0]
mov qword [rsp + 0x20], rdx
lea rdx, [0x7ff74b4effe]
call sub.RPCRT4.dll_NdrClientCall2
mov rcx, qword [rbp + 0x18]
mov edx, dword [rsp + 0xa0]
add rcx, 8
mov rbx, rax
mov rax, qword [rcx]
call qword [rax + 0x20]
test ebx, ebx
jne 0x7ff74b20329
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x7ff74aee899
test byte [rdi + 0x3c], 2
je 0x7ff74aee899
jmp 0x7ff74b20374
mov rcx, qword [rdx + 0x18]
and dword [rax + 0x20], 0
and dword [rax - 0x38], 0
add rcx, 8
lea r8, [rsp + 0xa0]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x7ff74b20315
mov r8, qword [0x7ff74b58398]
lea rax, [rsp + 0x90]
lea r12, [rdi + 0xa4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
movdqu xmm0, xmmword [r12]
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
lea rdx, [0x7ff74b4f04c]
lea rcx, [0x7ff74b4a7e0]
mov qword [rsp + 0x20], rax
call sub.RPCRT4.dll_NdrClientCall2
mov rcx, qword [rbp + 0x18]
mov edx, dword [rsp + 0xa0]
add rcx, 8
mov rbx, rax
mov rax, qword [rcx]
call qword [rax + 0x20]
test ebx, ebx
jne 0x7ff74b202d1
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x7ff74aee899
cmp dword [rsp + 0xa8], 1
mov r8d, dword [rsp + 0x50]
je 0x7ff74b2027e
cmp dword [rsp + 0xa8], 3
je 0x7ff74b2027e
cmp r8d, dword [rbp + 0x60]
je 0x7ff74aee899
jmp 0x7ff74b2027e
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b202ca
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b202ca
test byte [rcx + 0x1c], 2
je 0x7ff74b202ca
mov eax, dword [rbp + 0x60]
mov r9, qword [rdi + 8]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, [0x7ff74b51730]
mov edx, 0x14
mov qword [rsp + 0x20], r12
call fcn.7ff74b3b460
xor eax, eax
jmp 0x7ff74aee899
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b20315
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b20315
test byte [rcx + 0x1c], 2
je 0x7ff74b20315
mov r9, qword [rdi + 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51730]
mov edx, 0x15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
call fcn.7ff74b3b3a8
mov eax, dword [rsp + 0x90]
jmp 0x7ff74aee899
mov ebx, dword [rdi + 0x30]
jmp 0x7ff74afae96
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b202ca
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b202ca
test byte [rcx + 0x1c], 2
je 0x7ff74b202ca
mov edx, 0x16
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51730]
lea r9, [rdi + 0xa4]
call fcn.7ff74b2f1d0
jmp 0x7ff74b202ca
mov rax, qword [rbp + 0x18]
mov rdx, qword [rdi + 0xc0]
lea r8, [rsp + 0x90]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_CheckTokenMembership]
test eax, eax
jne 0x7ff74b20315
cmp dword [0x7ff74b582c8], eax
je 0x7ff74b202ca
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b202ca
test byte [rcx + 0x1c], 2
je 0x7ff74b202ca
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x7ff74b58350]
mov edx, 0x17
mov dword [rsp + 0x20], eax
jmp 0x7ff74b20358