Function at 0x100069c28
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x80
mov rax, rdx
xor r14d, r14d
mov r13, rcx
lea rdx, [r11 - 0x48]
mov rcx, rax
mov bpl, r9b
mov r12d, r8d
mov qword [r11 - 0x50], r14
mov qword [r11 - 0x48], r14
mov qword [r11 - 0x40], r14
call sub.ADVAPI32.dll_ConvertStringSidToSidW
lea edi, [r14 + 4]
mov ebx, eax
cmp eax, r14d
je 0x100069d02
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
cmp eax, r14d
je 0x100069cbd
mov ecx, eax
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, r14d
je 0x100069ea7
mov rcx, qword [rsp + 0x48]
mov r9d, 2
lea rdx, [rsp + 0x68]
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov ebx, eax
cmp eax, r14d
je 0x100069d02
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r9d, 1
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov ebx, eax
cmp ebx, r14d
je 0x100069ea7
mov edi, r14d
cmp dword [rsp + 0x68], r14d
jbe 0x100069d72
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x60]
mov edx, edi
mov qword [rsp + 0x60], r14
call qword [sym.imp.ADVAPI32.dll_GetAce]
mov ebx, eax
cmp eax, r14d
je 0x100069ea7
mov rcx, qword [rsp + 0x60]
cmp byte [rcx], r14b
jne 0x100069d6a
cmp dword [rcx + 4], r12d
jne 0x100069d6a
mov al, byte [rcx + 1]
and al, bpl
cmp al, bpl
jne 0x100069d6a
mov rdx, qword [rsp + 0x50]
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r14d
jne 0x100069e9d
inc edi
cmp edi, dword [rsp + 0x68]
jb 0x100069d15
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, 0x216
lea edi, [rax + 8]
cmp edi, 8
jae 0x100069d95
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, r14d
mov ecx, dword [rsp + 0x6c]
add edi, ecx
cmp edi, ecx
jae 0x100069dad
mov ecx, esi
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, r14d
mov rsi, r14
cmp ebx, r14d
je 0x100069de9
mov ecx, edi
call fcn.10007fa96
mov rsi, rax
cmp rax, r14
jne 0x100069dd2
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, r14d
cmp ebx, r14d
je 0x100069de9
mov r8d, dword [rsp + 0x40]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov ebx, eax
mov edi, r14d
cmp dword [rsp + 0x68], r14d
jbe 0x100069e41
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x60]
mov edx, edi
mov qword [rsp + 0x60], r14
call qword [sym.imp.ADVAPI32.dll_GetAce]
cmp eax, r14d
je 0x100069ea7
mov r9, qword [rsp + 0x60]
mov edx, dword [rsp + 0x40]
or r8d, 0xffffffff
movzx eax, word [r9 + 2]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AddAce]
mov ebx, eax
cmp eax, r14d
je 0x100069ea7
inc edi
cmp edi, dword [rsp + 0x68]
jb 0x100069df3
cmp ebx, r14d
je 0x100069ea7
mov rax, qword [rsp + 0x50]
mov edx, dword [rsp + 0x40]
movzx r8d, bpl
mov r9d, r12d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
mov ebx, eax
cmp eax, r14d
je 0x100069ea7
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov rcx, r13
lea edx, [r9 + 4]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r8d, edx
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
cmp eax, r14d
je 0x100069e9d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, r14d
cmp ebx, r14d
je 0x100069ea7
mov ebx, r14d
jmp 0x100069eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret