Function at 0x180011970
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov rax, qword [0x180036040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor esi, esi
mov dword [rbp + 0x58], esi
mov dword [rbp + 0x60], esi
mov word [rbp + 0x64], 0x500
mov qword [rbp + 0x68], rsi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8d, [rsi + 0x12]
mov dl, 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1800119f9
lea r8, [rbp + 0x58]
mov rdx, qword [rbp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp + 0x58], esi
setne bl
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x180011a0e
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
jne 0x180011cfd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, qword [rbp + 0x98]
test eax, eax
js 0x180011d2a
mov qword [rbp + 0x68], rsi
lea rcx, [rbp + 0x68]
call fcn.180013644
mov rbx, qword [rbp + 0x68]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [rsp + 0x78]
movsd qword [rbp - 0x80], xmm0
lea rcx, [rbp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [rbp + 0x50]
movsd qword [rbp - 0x78], xmm0
lea rcx, [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbp - 0x10], xmm0
movsd xmm0, qword [rbp + 0x38]
movsd qword [rsp + 0x60], xmm0
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp - 0x20], xmm0
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x10], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp], xmm0
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rbp + 0x20]
movsd qword [rbp - 0x60], xmm1
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x180011b4e
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180003324
jmp 0x180011ce3
mov rbx, qword [rbp + 0x68]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov qword [rbp + 0x70], rsi
lea rcx, [rsp + 0x60]
call fcn.18001398c
mov rdx, qword [rax]
test rdx, rdx
je 0x180011b74
mov rdx, qword [rdx]
jmp 0x180011b77
mov rdx, rsi
lea r8, [rbp + 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.180013918
test ebx, ebx
jns 0x180011ba3
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180003324
jmp 0x180011cd3
mov rbx, qword [rbp + 0x70]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x68]
mov qword [rbp + 0x60], rsi
lea rdx, str.OpenGlass_Legacy_Host
lea rcx, [rsp + 0x60]
call fcn.180013888
mov rdx, qword [rax]
test rdx, rdx
je 0x180011bd0
mov rdx, qword [rdx]
jmp 0x180011bd3
mov rdx, rsi
lea r8, [rbp + 0x60]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.180013918
cmp ebx, 0x80070002
jne 0x180011bf7
mov ebx, 0x80070424
jmp 0x180011c22
test ebx, ebx
js 0x180011c22
mov word [rbp + 0x58], si
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
lea rdx, [rbp + 0x58]
call qword [rax + 0x50]
mov ebx, eax
test eax, eax
jns 0x180011c17
mov edx, eax
jmp 0x180011c24
cmp word [rbp + 0x58], si
jne 0x180011c35
mov ebx, 0x80041326
mov edx, ebx
mov rcx, qword [rbp + 0x98]
call fcn.180003324
jmp 0x180011cc3
mov rbx, qword [rbp + 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x68]
mov qword [rbp + 0x78], rsi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [rbp - 0x60], xmm1
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x60]
call fcn.180013918
test ebx, ebx
jns 0x180011cb1
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180003324
jmp 0x180011cb3
mov ebx, esi
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x180011cc3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x180011cd3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x180011ce3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x180011cf3
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x180011d02
call fcn.18000ed38
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180023360
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov edx, eax
call fcn.18000a450
int3