Function at 0x140047080
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
movaps xmmword [rsp + 0x1f0], xmm6
mov rbx, r9
mov rcx, r8
mov rsi, rdx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
xor r14d, r14d
mov qword [rsp + 0x1d8], r14
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x1cc], 0xaaaaaaaa
mov qword [rsp + 0x1c0], r14
lea rdi, [rsp + 0x1b0]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi - 8], rdi
cmp byte [r8 + 0x17], 0
jns 0x140047102
mov rcx, qword [rcx]
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov edx, 1
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov edi, 0
test eax, eax
jne 0x14004716a
mov rcx, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x1cc]
lea r8, [rsp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
je 0x1400471d7
xor r14d, r14d
xor edi, edi
mov byte [rsi], r14b
mov byte [rsi + 1], dil
lea rcx, [rsp + 0x1a8]
mov rdx, qword [rcx + 8]
call fcn.140047f50
mov rcx, qword [rsp + 0x1c0]
test rcx, rcx
je 0x140047195
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x1d8]
test rcx, rcx
je 0x1400471a8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.14012cf50
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rsi
cmp dword [rsp + 0x1cc], 0
je 0x1400471f8
xor ebx, ebx
xorps xmm6, xmm6
xor r15d, r15d
jmp 0x1400472ca
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 2
cmp qword [rsp + 0x1b8], rax
sete r14b
mov dil, 1
mov rsi, qword [rsp + 0x60]
jmp 0x14004716a
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140047231
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor r14d, r14d
jmp 0x140047217
mov rax, qword [rsi]
mov rdi, rsi
test rax, rax
je 0x140047264
mov rsi, rax
mov eax, dword [rax + 0x20]
cmp r14d, eax
jl 0x14004723f
jle 0x1400472b9
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14004724a
lea rdi, [rsi + 8]
mov ecx, 0x28
call fcn.14012c3a0
cmp rax, 0xffffffffffffffe0
je 0x1400474a4
mov dword [rax + 0x20], r14d
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rsi
mov qword [rdi], rax
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400472a1
mov qword [rsp + 0x1a8], rcx
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x1b0]
mov rdx, rax
call fcn.1400cd500
inc qword [rsp + 0x1b8]
inc r15d
cmp r15d, dword [rsp + 0x1cc]
jae 0x1400471f8
mov r12, qword [rsp + 0x1c0]
mov r15d, r15d
mov ecx, 2
call fcn.1400f1360
test al, al
je 0x140047325
lea rsi, [rsp + 0x70]
mov rcx, rsi
lea rdx, str.....operadesktopwindowscommon_access_control_access_control_utils_impl.cc
mov r8d, 0x1b9
mov r9d, 2
call fcn.140096900
lea rax, [r15 + r15*2]
shl rax, 4
mov edx, dword [r12 + rax + 4]
lea rcx, [rsp + 0x80]
call fcn.1400252c0
mov rcx, rsi
call fcn.140096f50
lea rsi, [r15 + r15*2]
shl rsi, 4
mov dil, 1
cmp dword [r12 + rsi + 0x1c], 0
jne 0x14004723a
mov rbp, qword [r12 + rsi + 0x28]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x1e0], ebx
mov word [rsp + 0x1e4], 0x500
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x1e0]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov r13, qword [rsp + 0x70]
test eax, eax
je 0x140047489
xor r14d, r14d
test r13, r13
je 0x140047217
mov rcx, r13
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140047455
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x1e0], ebx
mov word [rsp + 0x1e4], 0x500
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x1e0]
mov dl, 1
mov r8d, shutdown
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140047221
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140047231
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
mov r14d, 0
adc r14d, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor ebx, ebx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp r14d, 3
je 0x14004723a
cmp dword [r12 + rsi + 4], 1
jne 0x14004723a
mov rax, qword [rsp + 0x1b0]
lea rsi, [rsp + 0x1b0]
jmp 0x140047242
test r13, r13
mov rsi, qword [rsp + 0x60]
je 0x14004749c
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor r14d, r14d
jmp 0x14004716a
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140168c70
int3