Function at 0x1400a7740
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp byte [rcx + 0x6c], 0
je 0x1400a79c7
mov rdi, rdx
mov r14, rcx
lea rsi, [rsp + 0x40]
mov qword [rsi], 0
mov rcx, qword [rcx + 0x60]
mov edx, 2
mov r8, rsi
call fcn.14005acc0
mov r12, qword [rsi]
test eax, eax
mov qword [rsp + 0x38], r12
jne 0x1400a7a09
xor esi, esi
test r12, r12
je 0x1400a79cc
cmp dword [r12], 0
je 0x1400a79bb
lea r13, [r12 + 8]
lea rax, [r14 + 0x30]
mov qword [rsp + 0x28], rax
xor r15d, r15d
xorps xmm6, xmm6
mov qword [rsp + 0x30], r13
mov rsi, r15
shl rsi, 4
test dword [r13 + rsi + 8], 0xc0000020
je 0x1400a77fc
inc r15
mov eax, dword [r12]
cmp r15, rax
jb 0x1400a77d9
jmp 0x1400a79bb
add rsi, r13
test rdi, rdi
je 0x1400a7854
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x1400a7854
mov ebp, 1
xor ebx, ebx
mov rdx, qword [rsi]
mov rcx, rbx
shl rcx, 6
lea rcx, [rcx + rbx*4]
add rcx, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400a77eb
mov ebx, ebp
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
sub rdx, rax
sar rdx, 2
movabs rcx, 0xf0f0f0f0f0f0f0f1
imul rdx, rcx
inc ebp
cmp rdx, rbx
ja 0x1400a7814
mov r8, qword [rsi]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x80], 0
mov ecx, 0x44
lea rsi, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rbp, qword [r14 + 0x38]
mov rax, qword [r14 + 0x40]
cmp rbp, rax
jae 0x1400a78b4
mov r8d, 0x44
mov rcx, rbp
mov rdx, rsi
call fcn.1400f5740
add rbp, 0x44
mov qword [r14 + 0x38], rbp
jmp 0x1400a77eb
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
sub rbp, rdx
sar rbp, 2
movabs rsi, 0xf0f0f0f0f0f0f0f1
imul rbp, rsi
lea rcx, [rbp + 1]
movabs rbx, 0x3c3c3c3c3c3c3c3
cmp rcx, rbx
ja 0x1400a79fa
sub rax, rdx
sar rax, 2
imul rax, rsi
lea r13, [rax + rax]
cmp r13, rcx
cmovb r13, rcx
movabs rcx, 0x1e1e1e1e1e1e1e1
cmp rax, rcx
cmovae r13, rbx
test r13, r13
je 0x1400a7932
cmp r13, rbx
ja 0x1400a7a04
mov rax, r13
shl rax, 6
lea rcx, [rax + r13*4]
call fcn.1400f045c
mov rsi, rax
jmp 0x1400a7934
xor esi, esi
mov rax, rbp
shl rax, 6
lea r12, [rax + rbp*4]
lea rbp, [rsi + r12]
mov rax, r13
shl rax, 6
lea rbx, [rax + r13*4]
add rbx, rsi
mov r8d, 0x44
mov rcx, rbp
lea rdx, [rsp + 0x40]
call fcn.1400f5740
mov rdx, qword [r14 + 0x30]
mov r8, qword [r14 + 0x38]
sub r8, rdx
sub rbp, r8
test r8, r8
jle 0x1400a7987
mov rcx, rbp
call fcn.1400f5740
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax]
mov r13, qword [rsp + 0x30]
lea rax, [rsi + r12]
add rax, 0x44
mov qword [r14 + 0x30], rbp
mov qword [r14 + 0x38], rax
mov qword [r14 + 0x40], rbx
test rdx, rdx
mov r12, qword [rsp + 0x38]
je 0x1400a77eb
mov rcx, rdx
call fcn.1400f0498
jmp 0x1400a77eb
mov rcx, r12
call fcn.1400f04a0
xor esi, esi
jmp 0x1400a79cc
mov esi, 0x3f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400f32c0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x28]
call fcn.1401261c0
call fcn.1400f1940
mov esi, eax
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1400a79cc
mov rcx, qword [rsp + 0x38]
call fcn.1400f04a0
jmp 0x1400a79cc