Function at 0x164f923d0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, qword [rbp + 0xc0]
xor esi, esi
mov dword [rsp + 0x60], esi
mov dword [rbp + 0x88], esi
mov word [rbp + 0x8c], 0x500
lea r14, vtable.std::_Func_impl_no_alloc_void____ptr64____cdecl___void____ptr64___void____ptr64__void____ptr64_.0
mov qword [rbp + 0x38], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x30]
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 + 0x88]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x164f926d2
mov ebx, 1
mov dword [rsp + 0x60], ebx
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x164f9257a
mov qword [rbp - 0x18], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x20], rax
lea rax, [rbp - 0x20]
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 + 0x13]
movzx edx, bl
lea rcx, [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x164f926fd
mov ebx, 3
mov dword [rsp + 0x60], ebx
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x164f9257a
mov qword [rbp - 0x68], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x70]
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 + 0x14]
mov dl, 1
lea rcx, [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x164f926a6
lea ebx, [rsi + 7]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x164f9257a
xor dil, dil
jmp 0x164f9257d
mov dil, 1
test bl, 4
je 0x164f925d5
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x164f925d5
mov rax, qword [rbp - 0x70]
mov qword [rbp + 0x80], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x164f925d5
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
mov qword [rbp - 0x30], rsi
test bl, 2
je 0x164f9262d
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x164f9262d
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x80], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x164f9262d
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
mov qword [rbp + 0x20], rsi
test bl, 1
je 0x164f9267b
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x164f9267b
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x80], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x164f9267b
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, [0x1650cfab8]
lea rcx, [rsp + 0x68]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x68]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x1650cfab8]
lea rcx, [rsp + 0x68]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x68]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x1650cfab8]
lea rcx, [rsp + 0x68]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x68]
call fcn.165003be0
int3