Function at 0x140019138
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x80], rax
and dword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rsp + 0x28]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400194a4
mov ebx, 0x44
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
mov dword [rsp + 0x30], ebx
xor edx, edx
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, ebx
mov dword [rsp + 0x34], ebx
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.msvcrt.dll_memset
mov r8d, ebx
mov dword [rsp + 0x38], ebx
xor edx, edx
lea rcx, [rbp + 0x30]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x30]
mov dword [rsp + 0x3c], ebx
lea r8, [rsp + 0x40]
xor edx, edx
lea ecx, [rbx - 0x2a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
lea rdi, [0x14009c698]
lea rbx, [0x1400b72f8]
test eax, eax
je 0x140019262
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x14001929b
and dword [rsp + 0x20], eax
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x1400192a6
test byte [rax + 0x44], 1
je 0x1400192a6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xe
jmp 0x140019285
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x14001929b
test byte [rax + 0x44], 1
je 0x14001929b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
mov rcx, qword [0x1400b72f8]
mov r9d, eax
mov r8, rdi
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
cmp dword [rsp + 0x20], 0
jne 0x1400194f4
xor edx, edx
lea r9, [rsp + 0x34]
lea r8, [rbp - 0x70]
lea ecx, [rdx + 0x26]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x14001930b
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x140019344
and dword [rsp + 0x20], eax
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x14001934f
test byte [rax + 0x44], 1
je 0x14001934f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x10
jmp 0x14001932e
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x140019344
test byte [rax + 0x44], 1
je 0x140019344
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x11
mov rcx, qword [0x1400b72f8]
mov r9d, eax
mov r8, rdi
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
cmp dword [rsp + 0x20], 0
jne 0x1400194f4
xor edx, edx
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x20]
lea ecx, [rdx + 0x29]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x1400193b4
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x1400193ed
and dword [rsp + 0x20], eax
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x1400193f8
test byte [rax + 0x44], 1
je 0x1400193f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x12
jmp 0x1400193d7
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x1400193ed
test byte [rax + 0x44], 1
je 0x1400193ed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x13
mov rcx, qword [0x1400b72f8]
mov r9d, eax
mov r8, rdi
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
cmp dword [rsp + 0x20], 0
jne 0x1400194f4
xor edx, edx
lea r9, [rsp + 0x3c]
lea r8, [rbp + 0x30]
lea ecx, [rdx + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x140019469
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x1400194f4
and dword [rsp + 0x20], eax
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x1400194f4
test byte [rax + 0x44], 1
je 0x1400194f4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x14
jmp 0x14001948c
mov rax, qword [0x1400b72f8]
cmp rax, rbx
je 0x1400194f4
test byte [rax + 0x44], 1
je 0x1400194f4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x15
mov rcx, qword [0x1400b72f8]
mov r9d, eax
mov r8, rdi
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
jmp 0x1400194f4
mov rax, qword [0x1400b72f8]
lea rbx, [0x1400b72f8]
cmp rax, rbx
je 0x1400194f4
test byte [rax + 0x44], 1
je 0x1400194f4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400194d5
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c698]
mov edx, 0x16
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001950a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400133c0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret