Function at 0x14006c070
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 [0x140241cc0]
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 0x14006c372
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 0x14006c21a
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 0x14006c39d
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 0x14006c21a
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 0x14006c346
lea ebx, [rsi + 7]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14006c21a
xor dil, dil
jmp 0x14006c21d
mov dil, 1
test bl, 4
je 0x14006c275
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14006c275
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.0x1400cd6b1.0]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14006c275
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cd6b1.0]
mov qword [rbp - 0x30], rsi
test bl, 2
je 0x14006c2cd
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14006c2cd
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.0x1400cd6b1.0]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14006c2cd
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cd6b1.0]
mov qword [rbp + 0x20], rsi
test bl, 1
je 0x14006c31b
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14006c31b
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.0x1400cd6b1.0]
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14006c31b
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cd6b1.0]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140144310
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, [0x14020c340]
lea rcx, [rsp + 0x68]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x14020c340]
lea rcx, [rsp + 0x68]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x14020c340]
lea rcx, [rsp + 0x68]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
int3