Function at 0x14008aac4
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x50], rax
movzx r12d, r9b
mov dword [rsp + 0x30], r8d
mov rbx, rdx
mov r14, rcx
mov r15, qword [rbp + 0xd0]
mov qword [rsp + 0x40], r15
lea rsi, [0x1400cf018]
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x14008ab3f
test byte [rcx + 0x1c], 1
je 0x14008ab3f
cmp byte [rcx + 0x19], 5
jb 0x14008ab3f
mov dword [rsp + 0x20], r12d
mov r9d, r8d
mov rcx, qword [rcx + 0x10]
call fcn.14008a1e4
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea rcx, [rbp - 0x30]
call fcn.140089690
nop
mov dword [r15], r13d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x14008aba0
test byte [rcx + 0x1c], 2
je 0x14008aba0
cmp byte [rcx + 0x19], 4
jb 0x14008aba0
lea edx, [r13 + 0x19]
mov r9d, eax
lea r8, [0x1400b97d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
cmp edi, 1
jne 0x14008ad89
mov edi, r13d
mov rdx, qword [rsp + 0x38]
test rdx, rdx
setne dil
cmp rcx, rsi
je 0x14008abed
test byte [rcx + 0x1c], 2
je 0x14008abed
cmp byte [rcx + 0x19], 4
jb 0x14008abed
mov edx, DispGetParam
mov r9d, edi
lea r8, [0x1400b97d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rdx, qword [rsp + 0x38]
mov rcx, qword [0x1400cf018]
cmp edi, 1
jne 0x14008ad89
lea rcx, [rbp - 0x30]
call fcn.140089740
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x50]
call fcn.140089690
nop
mov esi, r13d
cmp dword [r14 + 0x20], r13d
jbe 0x14008ad19
mov ecx, esi
cmp rcx, qword [r14 + 0x20]
jae 0x14008addf
mov rax, qword [r14 + 0x18]
mov r15, qword [rax + rcx*8]
lea rbx, [r15 + 8]
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x14008acb5
mov eax, dword [rbx + 0x50]
mov dword [rbp - 0x60], eax
lea rdx, [rbx + 0x58]
lea rcx, [rbp - 0x58]
call fcn.140004c84
lea rdx, [rbx + 0x60]
lea rcx, [rbp - 0x50]
call fcn.140004c84
lea rdx, [rbx + 0x68]
lea rcx, [rbp - 0x48]
call fcn.140004c84
mov al, byte [rbx + 0x4c]
mov byte [rbp - 0x64], al
test al, al
je 0x14008acb5
lea rcx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
lea r8, [rbx + 8]
lea rdx, [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_CopySid]
nop dword [rax + rax]
test eax, eax
je 0x14008adea
mov r13d, dword [r15 + 0x80]
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
mov bl, al
mov r15b, byte [r15 + 0x84]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x14008ad04
test bl, bl
jne 0x14008ad04
cmp r13d, dword [rsp + 0x30]
jne 0x14008ad04
mov al, r12b
and al, r15b
cmp al, r12b
je 0x14008ad71
inc esi
cmp esi, dword [r14 + 0x20]
jae 0x14008ad14
xor r13d, r13d
jmp 0x14008ac2d
mov r15, qword [rsp + 0x40]
mov r9b, r12b
mov r8d, dword [rsp + 0x30]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.14000983c
movzx edi, al
mov rcx, qword [0x1400cf018]
lea rsi, [0x1400cf018]
cmp rcx, rsi
je 0x14008ad67
test byte [rcx + 0x1c], 2
je 0x14008ad67
cmp byte [rcx + 0x19], 4
jb 0x14008ad67
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9d, edi
lea r8, [0x1400b97d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
cmp edi, 1
jne 0x14008ad78
mov dword [r15], edi
jmp 0x14008ad78
lea rsi, [0x1400cf018]
lea rcx, [rsp + 0x50]
call fcn.1400092c0
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x14008adb3
test byte [rcx + 0x1c], 1
je 0x14008adb3
cmp byte [rcx + 0x19], 5
jb 0x14008adb3
mov edx, 0x1c
mov r9d, edi
lea r8, [0x1400b97d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
nop
lea rcx, [rbp - 0x30]
call fcn.1400092c0
mov eax, edi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400a37d0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140005068
int3
call fcn.1400171f4
mov byte [rbp - 0x64], r13b
mov ecx, eax
call fcn.140005068
int3