Function at 0x180015190
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1801483c0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, rcx
lea rbx, [rcx + 0x60]
mov qword [rbp - 0x80], rbx
mov rcx, rbx
call qword [0x180148108]
nop
lea r12, [rdi + 0x68]
cmp qword [r12], 0
je 0x1800151e9
xor esi, esi
jmp 0x18001541b
mov eax, dword [rdi + 0x50]
test eax, eax
je 0x180015416
mov ecx, dword [rdi + 0x54]
test ecx, ecx
je 0x180015416
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea r9, str.BaseNamedObjectsNODCOMM_08XTo_08XCommPortAlpc
mov edx, 0x40
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0xa0]
call fcn.180015bd0
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x70]
call qword [0x1801481e0]
xor esi, esi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, 1
mov r14d, edi
test eax, eax
je 0x18001533c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x90], eax
mov dword [rsp + 0x60], esi
mov r15d, edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x54
lea r8, [rbp + 0x40]
mov edx, edi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18001532e
mov qword [rsp + 0x68], rsi
mov dword [rbp - 0x60], esi
mov word [rbp - 0x5c], 0x500
lea rax, [rsp + 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
mov r8d, 0x12
movzx edx, dil
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x18001532e
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov r15d, esi
test edi, edi
sete r15b
mov r14d, esi
test edi, edi
sete r14b
mov rcx, qword [rsp + 0x70]
call qword [0x180148118]
mov edi, r15d
lea eax, [rdi + 1]
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x10], rsi
shl r14d, 0x10
mov dword [rbp - 0x50], r14d
mov qword [rbp - 0x40], 0xffff
mov qword [rbp - 0x20], 0xffffffffffffffff
mov qword [rbp - 0x18], 0xffffffffffffffff
mov qword [rbp - 0x30], 0xffffffffffffffff
mov qword [rbp - 0x28], 0xffffffffffffffff
mov dword [rbp - 0x4c], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rbp - 0x48], eax
mov word [rbp - 0x44], 1
movzx eax, word [rbp - 0x76]
mov word [rbp - 0x42], ax
xorps xmm0, xmm0
movdqu xmmword [rbp + 4], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x14], xmm1
mov dword [rbp + 0x24], esi
mov dword [rbp], 0x380010
mov eax, 0x38
mov dword [rbp + 0x28], 0x43646f4e
mov dword [rbp + 0x2c], 0x206d6d6f
mov dword [rbp + 0x30], 2
mov dword [rbp + 0x34], 0xffcf
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x20000
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [0x1801480c8]
test eax, eax
jns 0x18001541b
mov esi, 4
mov rcx, rbx
call qword [case.0x1800d57d5.0]
mov eax, esi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800d5000
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret