Function at 0x14004b550
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 [0x1402bf200]
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 0x14004b852
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 0x14004b6fa
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 0x14004b87d
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 0x14004b6fa
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 0x14004b826
lea ebx, [rsi + 7]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14004b6fa
xor dil, dil
jmp 0x14004b6fd
mov dil, 1
test bl, 4
je 0x14004b755
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14004b755
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.0x1400617cf.0]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14004b755
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400617cf.0]
mov qword [rbp - 0x30], rsi
test bl, 2
je 0x14004b7ad
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14004b7ad
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.0x1400617cf.0]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14004b7ad
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400617cf.0]
mov qword [rbp + 0x20], rsi
test bl, 1
je 0x14004b7fb
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14004b7fb
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.0x1400617cf.0]
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14004b7fb
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400617cf.0]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14019acb0
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, [0x14023fbe0]
lea rcx, [rsp + 0x68]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x68]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x14023fbe0]
lea rcx, [rsp + 0x68]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x68]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x14023fbe0]
lea rcx, [rsp + 0x68]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x68]
call fcn.14019cd80
int3