Function at 0x140002e60
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rdi
push r13
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400c87d8]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov qword [rbp - 0x29], rcx
lea r9, [rbp - 0x49]
mov dword [rbp - 0x49], r15d
xor r8d, r8d
mov rdi, rcx
mov ebx, r15d
lea edx, [r15 + 4]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov r13d, eax
cmp eax, 0x7a
jne 0x140002ee3
mov ecx, dword [rbp - 0x49]
call fcn.14000df2c
mov rbx, rax
test rax, rax
je 0x140011cbc
lea r9, [rbp - 0x49]
mov r8, rax
lea edx, [r15 + 4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov r13d, eax
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xf8], r14
test r13d, r13d
jne 0x140003004
xor eax, eax
mov dword [rbp - 0x45], r15d
test rbx, rbx
mov qword [rbp - 0x39], r15
mov rcx, rbx
mov dword [rbp - 0x31], r15d
cmove rcx, r15
mov qword [rbp + 0x17], rax
lea r9, [rbp - 0x31]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x45]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x140011cc6
cmp dword [rbp - 0x45], r15d
je 0x140011dc6
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140011dc6
test r13d, r13d
jne 0x140003004
lea r9d, [r13 + 2]
lea r8d, [r13 + 0xc]
lea rdx, [rbp + 0x17]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAclInformation]
nop dword [rax + rax]
test eax, eax
je 0x140011db2
mov r12d, r15d
mov r14d, r15d
mov esi, r15d
cmp dword [rbp + 0x17], r15d
jbe 0x140011cf6
nop word [rax + rax]
mov rcx, qword [rbp - 0x39]
lea r8, [rbp - 0x41]
mov edx, esi
mov qword [rbp - 0x41], r15
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140011cda
mov rdi, qword [rbp - 0x41]
cmp byte [rdi], r15b
jne 0x140002feb
test dword [rdi + 4], 0x20019
je 0x140002feb
test r12d, r12d
je 0x14000306f
test dword [rdi + 4], 0x20019
je 0x140002feb
test r14d, r14d
je 0x140003048
inc esi
cmp esi, dword [rbp + 0x17]
jb 0x140002fa0
test r12d, r12d
je 0x140011cf6
test r14d, r14d
je 0x140011cf6
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
test rbx, rbx
je 0x140003029
mov rcx, rbx
call fcn.14000df6c
mov eax, r13d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000e2c0
add rsp, 0xb0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [0x1400ca128]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
mov eax, 1
cmovne r14d, eax
jmp 0x140002feb
mov rdx, qword [0x1400ca130]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x140002fdd
mov r12d, 1
jmp 0x140002fdd
mov eax, 8
jmp 0x14000302c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x140002f43
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
test eax, eax
jne 0x140003004
jmp 0x140002ff2
mov rax, qword [rbp - 0x21]
test r12d, r12d
mov qword [rbp - 0x41], r15
mov esi, 1
cmove rax, qword [0x1400ca130]
sete r15b
mov qword [rbp - 0x21], rax
test r14d, r14d
jne 0x140011d2d
mov rax, qword [0x1400ca128]
mov ecx, r15d
inc r15d
mov qword [rbp + rcx*8 - 0x21], rax
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, r15d
lea rdx, [rbp - 0x21]
call fcn.1400784fc
mov rdi, qword [rbp - 0x41]
mov r13d, eax
test eax, eax
jne 0x140011da4
mov edx, esi
lea rcx, [rbp - 0x11]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
je 0x140011d95
xor r9d, r9d
lea rcx, [rbp - 0x11]
mov r8, rdi
mov edx, esi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x140011d95
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x11]
call fcn.1400782ec
jmp 0x140011da1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
mov rcx, rdi
call fcn.14000df6c
nop
jmp 0x140003004
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x140003004
mov r13d, 1
jmp 0x140003004