Function at 0x14008bc84
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r15, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov r13d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r14d
mov dword [rsp + 0x40], r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
nop dword [rax + rax]
mov esi, eax
mov dword [rsp + 0x38], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x30]
lea edx, [r14 + 8]
lea r8d, [r14 + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
jne 0x14008bd2e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x14008bdb1
mov qword [rsp + 0x30], r14
lea r12d, [r14 + 1]
lea rcx, [rsp + 0x50]
call fcn.1400312d0
nop
lea rcx, [rsp + 0x48]
call fcn.14003129c
lea r8, [rsp + 0x3c]
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008bd95
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14008bda3
mov rcx, rbx
call fcn.14003759c
nop
test rdi, rdi
je 0x14008bdb1
mov rcx, rdi
call fcn.14003759c
nop
test esi, esi
js 0x14008bdc1
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
test r12d, r12d
je 0x14008c0fa
cmp dword [rsp + 0x3c], r14d
jne 0x14008bddc
cmp dword [rsp + 0x40], r14d
je 0x14008c0fa
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0xa
mov qword [rsp + 0xa8], r14
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0xb0]
call fcn.14001a960
nop
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0xb8]
call fcn.14001a960
nop
lea rbx, [r15 + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.1400202e0
lea rdx, [r15 + 0x50]
lea rcx, [rsp + 0xb8]
call fcn.1400202e0
nop
mov r8b, 1
lea rdx, [0x1400d25f0]
lea rcx, [rsp + 0x80]
call fcn.140089674
test eax, eax
js 0x14008c0ed
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.1400222ec
mov rsi, rax
test rax, rax
je 0x14008bfcf
mov r12, rsi
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140020410
mov rsi, rax
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0x58], rax
lea rbx, [rax - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
movabs r10, 0xb3651e715a5ef170
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rcx, rax
cmp dword [rbx + 0x10], r14d
jl 0x14008beee
cmp rax, qword [rbx]
jne 0x14008beee
lock inc dword [rbx + 0x10]
jmp 0x14008bf3c
mov rax, qword [rax]
lea rdi, [rbx + 8]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [rdi]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rbx, rax
test rax, rax
je 0x14008c026
mov eax, dword [rdi]
mov dword [rbx + 8], eax
lea rcx, [rbx + 0x18]
mov eax, dword [rdi]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
mov r8, qword [rsp + 0x58]
call fcn.1400111d4
lea rax, [rbx + 0x18]
mov qword [rsp + 0x60], rax
cmp dword [r12 + 0x5c], r14d
jne 0x14008bf87
mov rax, qword [0x1400d2618]
mov r8d, dword [rax - 0x10]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.14001a564
or r13d, 1
mov rdx, qword [0x1400d2618]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
mov dil, r14b
je 0x14008bf8a
mov dil, 1
test r13b, 1
je 0x14008bfa2
and r13d, 0xfffffffe
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
test dil, dil
je 0x14008bfba
lea rdx, [r12 + 0x40]
lea rcx, [rsp + 0x80]
call fcn.14008aee8
nop
mov rcx, rbx
call fcn.1400182a0
test rsi, rsi
jne 0x14008be9c
lea rbx, [r15 + 0x58]
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1400876f0
nop
lea rdx, [0x1400d2518]
lea rcx, [rsp + 0x30]
call fcn.14001a960
nop
mov r8, rbx
lea rdx, [0x1400d2608]
lea rcx, [rsp + 0x48]
call fcn.14001e718
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400202e0
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
nop
jmp 0x14008c03f
call fcn.140064078
nop
xor r14d, r14d
cmp dword [rsp + 0x38], r14d
jl 0x14008c0de
mov r15, qword [rsp + 0x70]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 0x41
mov word [rsp + 0xf0], r14w
lea rax, [0x1400a2bc8]
mov qword [rsp + 0xd8], rax
lea rax, [0x1400a2b08]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x178], r14d
mov qword [rsp + 0x180], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
mov rbx, qword [rsp + 0x30]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xd0]
call fcn.140013564
test eax, eax
js 0x14008c0cf
mov rdx, qword [r15 + 0x50]
lea rcx, [rsp + 0xd0]
call fcn.14006a1d0
nop
lea rcx, [rsp + 0xd0]
call fcn.140014d5c
jmp 0x14008c0e3
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.1400182a0
nop
lea rcx, [rsp + 0x80]
call fcn.1400125e8
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret