Function at 0x1400d1480
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 [0x140148058]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14b, r9b
mov dword [rsp + 0x30], r8d
mov rbx, rdx
mov rsi, rcx
mov r12, qword [rbp + 0xd0]
mov qword [rsp + 0x40], r12
lea r13, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, r13
je 0x1400d14fc
test byte [rcx + 0x1c], 1
je 0x1400d14fc
cmp byte [rcx + 0x19], 5
jb 0x1400d14fc
movzx eax, r9b
mov dword [rsp + 0x20], eax
mov r9d, r8d
mov rcx, qword [rcx + 0x10]
call fcn.1400d0c20
and qword [rsp + 0x38], 0
lea rcx, [rbp - 0x30]
call fcn.1400d015c
nop
and dword [r12], 0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov edi, eax
mov rcx, qword [0x140148ea8]
cmp rcx, r13
je 0x1400d1558
test byte [rcx + 0x1c], 2
je 0x1400d1558
cmp byte [rcx + 0x19], 4
jb 0x1400d1558
mov edx, DispGetParam
mov r9d, eax
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rcx, qword [0x140148ea8]
cmp edi, 1
jne 0x1400d176f
xor edi, edi
mov rdx, qword [rsp + 0x38]
test rdx, rdx
setne dil
cmp rcx, r13
je 0x1400d15a4
test byte [rcx + 0x1c], 2
je 0x1400d15a4
cmp byte [rcx + 0x19], 4
jb 0x1400d15a4
mov edx, DispGetParam
mov r9d, edi
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rdx, qword [rsp + 0x38]
mov rcx, qword [0x140148ea8]
cmp edi, 1
jne 0x1400d176f
lea rcx, [rbp - 0x30]
call fcn.1400d0220
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
call fcn.1400d015c
nop
xor r15d, r15d
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, rsi
call rbx
test eax, eax
je 0x1400d1705
mov rax, qword [rsi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140015690]
mov edx, r15d
mov rcx, rsi
call rbx
mov r12, rax
lea rbx, [rax + 8]
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400d1671
mov ecx, dword [rbx + 0x50]
mov dword [rbp - 0x60], ecx
lea rdx, [rbx + 0x58]
lea rcx, [rbp - 0x58]
call fcn.1400115a8
lea rdx, [rbx + 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400115a8
lea rdx, [rbx + 0x68]
lea rcx, [rbp - 0x48]
call fcn.1400115a8
mov al, byte [rbx + 0x4c]
mov byte [rbp - 0x64], al
test al, al
je 0x1400d1671
lea rcx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea r8, [rbx + 8]
lea rdx, [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1400d16e8
mov r13d, dword [r12 + 0x80]
mov rax, qword [r12]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, r12
call rbx
mov bl, al
mov r12b, byte [r12 + 0x84]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400d16c6
test bl, bl
jne 0x1400d16c6
cmp r13d, dword [rsp + 0x30]
jne 0x1400d16c6
mov al, r14b
and al, r12b
cmp al, r14b
je 0x1400d1757
inc r15d
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, rsi
call rbx
cmp r15d, eax
jae 0x1400d16f9
jmp 0x1400d15f2
call fcn.14002a0d0
mov byte [rbp - 0x64], 0
mov ecx, eax
call fcn.1400119f0
int3
mov r12, qword [rsp + 0x40]
lea r13, [0x140148ea8]
mov r9b, r14b
mov r8d, dword [rsp + 0x30]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140015f14
movzx edi, al
mov rcx, qword [0x140148ea8]
cmp rcx, r13
je 0x1400d174c
test byte [rcx + 0x1c], 2
je 0x1400d174c
cmp byte [rcx + 0x19], 4
jb 0x1400d174c
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9d, edi
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
cmp edi, 1
jne 0x1400d175e
mov dword [r12], edi
jmp 0x1400d175e
lea r13, [0x140148ea8]
lea rcx, [rsp + 0x50]
call fcn.1400159e8
mov rcx, qword [0x140148ea8]
cmp rcx, r13
je 0x1400d1799
test byte [rcx + 0x1c], 1
je 0x1400d1799
cmp byte [rcx + 0x19], 5
jb 0x1400d1799
mov edx, 0x1c
mov r9d, edi
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
lea rcx, [rbp - 0x30]
call fcn.1400159e8
mov eax, edi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140001000
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret