Function at 0x1400f3cb4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor edi, edi
mov r14, rdx
or qword [rbp - 0x69], 0xffffffffffffffff
mov rsi, rcx
mov rcx, qword [0x14016d090]
lea r13, [0x14016d090]
cmp rcx, r13
je 0x1400f3d19
test byte [rcx + 0x1c], 1
je 0x1400f3d19
cmp byte [rcx + 0x19], 4
jb 0x1400f3d19
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x3a]
lea r8, [0x140152fc8]
call fcn.140004968
and dword [rsi], edi
and dword [r14], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 8
lea r9, [rbp - 0x69]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400f3d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400f3eff
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x1400f3d84
test byte [rcx + 0x1c], 1
je 0x1400f3d84
cmp byte [rcx + 0x19], 5
jb 0x1400f3d84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x3d
call fcn.140004968
mov r9d, 0x20
mov dword [rsp + 0x20], 0x220
lea rdx, [0x140144f50]
lea rcx, [rbp - 0x59]
lea r8d, [r9 - 0x1e]
call fcn.140060b44
cmp byte [rbp - 0xd], dil
jne 0x1400f3dc4
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140081b60
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x51]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rbp - 0x59]
mov ebx, eax
call fcn.140061a40
test ebx, ebx
je 0x1400f3d3e
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x1400f3e15
test byte [rcx + 0x1c], 1
je 0x1400f3e15
cmp byte [rcx + 0x19], 5
jb 0x1400f3e15
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x3e
call fcn.140004968
mov r9d, 0x20
mov dword [rsp + 0x20], 0x227
lea rdx, [0x140144f50]
lea rcx, [rbp - 0x59]
lea r8d, [r9 - 0x1e]
call fcn.140060b44
cmp byte [rbp - 0xd], dil
jne 0x1400f3e55
lea r8, str.m_bValid
mov edx, 0x1c4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140081b60
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x51]
mov r8, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea rcx, [rbp - 0x59]
mov ebx, eax
call fcn.140061a40
test ebx, ebx
je 0x1400f3d3e
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x1400f3f3a
test byte [rcx + 0x1c], 1
lea rax, [0x140145ee8]
lea rbx, [0x140145ef0]
je 0x1400f3ecf
cmp byte [rcx + 0x19], 4
jb 0x1400f3ecf
cmp dword [rsi], edi
lea r8, [0x140152fc8]
mov rcx, qword [rcx + 0x10]
mov r9, rbx
cmovne r9, rax
mov edx, 0x3f
call fcn.140005868
mov rcx, qword [0x14016d090]
lea rax, [0x140145ee8]
cmp rcx, r13
je 0x1400f3f3a
test byte [rcx + 0x1c], 1
je 0x1400f3f3a
cmp byte [rcx + 0x19], 4
jb 0x1400f3f3a
cmp dword [r14], edi
lea r8, [0x140152fc8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
cmovne rbx, rax
mov r9, rbx
call fcn.140005868
test edi, edi
jns 0x1400f3f33
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x1400f3f3a
test byte [rcx + 0x1c], 1
je 0x1400f3f3a
cmp byte [rcx + 0x19], 2
jb 0x1400f3f3a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x41
mov r9d, edi
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp qword [rbp - 0x69], 0xffffffffffffffff
je 0x1400f3f52
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x1400f3f78
test byte [rcx + 0x1c], 1
je 0x1400f3f78
cmp byte [rcx + 0x19], 4
jb 0x1400f3f78
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x42
call fcn.140004968
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret