Function at 0x1400ff290
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 [0x140173708]
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 [0x140173048]
lea r12, [0x140173048]
lea r13, [0x14015ec30]
cmp rcx, r12
je 0x1400ff2f9
test byte [rcx + 0x1c], 1
je 0x1400ff2f9
cmp byte [rcx + 0x19], 4
jb 0x1400ff2f9
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x32]
mov r8, r13
call fcn.14000c328
and dword [rsi], edi
and dword [r14], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rsp + 0x20]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400ff3f9
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400ff358
test byte [rcx + 0x1c], 1
je 0x1400ff358
cmp byte [rcx + 0x19], 5
jb 0x1400ff358
mov rcx, qword [rcx + 0x10]
mov edx, 0x35
mov r8, r13
call fcn.14000c328
lea rcx, [rsp + 0x30]
call fcn.140065c88
mov rcx, rax
call fcn.14006f114
mov rcx, qword [rsp + 0x20]
mov r8, rsi
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.140064bf0
test bl, bl
jne 0x1400ff3f9
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400ff3bd
test byte [rcx + 0x1c], 1
je 0x1400ff3bd
cmp byte [rcx + 0x19], 5
jb 0x1400ff3bd
mov rcx, qword [rcx + 0x10]
mov edx, 0x36
mov r8, r13
call fcn.14000c328
lea rcx, [rsp + 0x30]
call fcn.14006697c
mov rcx, rax
call fcn.14006f114
mov rcx, qword [rsp + 0x20]
mov r8, r14
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x30]
sete bl
call fcn.140064bf0
test bl, bl
je 0x1400ff456
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400ff414
movzx edi, ax
or edi, 0x80070000
test edi, edi
jns 0x1400ff4d0
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400ff4d7
test byte [rcx + 0x1c], 1
je 0x1400ff4d7
cmp byte [rcx + 0x19], 2
jb 0x1400ff4d7
mov rcx, qword [rcx + 0x10]
mov edx, 0x39
mov r9d, edi
mov r8, r13
call fcn.14000c354
jmp 0x1400ff4d0
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400ff4d7
test byte [rcx + 0x1c], 1
lea rax, [0x1401517c0]
lea rbx, [0x1401517b8]
je 0x1400ff4a4
cmp byte [rcx + 0x19], 4
jb 0x1400ff4a4
cmp dword [rsi], edi
mov r9, rbx
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
cmove r9, rax
mov r8, r13
call fcn.140015150
mov rcx, qword [0x140173048]
lea rax, [0x1401517c0]
cmp rcx, r12
je 0x1400ff4d7
test byte [rcx + 0x1c], 1
je 0x1400ff4d7
cmp byte [rcx + 0x19], 4
jb 0x1400ff4d7
cmp dword [r14], edi
mov edx, 0x38
mov rcx, qword [rcx + 0x10]
mov r8, r13
cmove rbx, rax
mov r9, rbx
call fcn.140015150
mov rcx, qword [0x140173048]
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400ff4f7
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400ff519
test byte [rcx + 0x1c], 1
je 0x1400ff519
cmp byte [rcx + 0x19], 4
jb 0x1400ff519
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r8, r13
call fcn.14000c328
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret