Function at 0x140067610
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, qword [rbp + 0xd0]
xor esi, esi
mov dword [rsp + 0x60], esi
mov dword [rbp + 0x98], esi
mov word [rbp + 0x9c], 0x500
lea r14, vtable.std::_Func_impl_no_alloc_void____ptr64____cdecl___void____ptr64___void____ptr64__void____ptr64_.0
mov qword [rbp + 0x48], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x40]
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 + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14006791f
mov ebx, 1
mov dword [rsp + 0x60], ebx
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400677c1
mov qword [rbp - 0x38], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rbp], rax
lea rax, [rbp - 0x40]
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 + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140067948
mov ebx, 3
mov dword [rsp + 0x60], ebx
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400677c1
mov qword [rsp + 0x78], r14
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 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 + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400678f5
lea ebx, [rsi + 7]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400677c1
xor dil, dil
jmp 0x1400677c4
mov dil, 1
test bl, 4
je 0x14006781e
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14006781e
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x90], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
mov rax, qword [rax + 0x10]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14006781e
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cc851.0]
mov qword [rbp - 0x50], rsi
test bl, 2
je 0x140067876
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rcx, qword [rbp]
test rcx, rcx
je 0x140067876
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x90], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
mov rax, qword [rax + 0x10]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbp]
test rcx, rcx
je 0x140067876
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cc851.0]
mov qword [rbp], rsi
test bl, 1
je 0x1400678ca
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400678ca
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x90], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
mov rax, qword [rax + 0x10]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400678ca
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400cc851.0]
nop
movzx eax, dil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140133600
lea r11, [rsp + 0x1b0]
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, [0x1401e1e60]
lea rcx, [rbp + 0x10]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp + 0x10]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x1401e1e60]
lea rcx, [rbp + 0x10]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp + 0x10]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x1401e1e60]
lea rcx, [rbp + 0x10]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp + 0x10]
call fcn.140135f84
int3