Function at 0x140003410
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 [0x1400c77d8]
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 0x140003493
mov ecx, dword [rbp - 0x49]
call fcn.14000ecd8
mov rbx, rax
test rax, rax
je 0x140012a30
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 0x1400035b4
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 0x140012a3a
cmp dword [rbp - 0x45], r15d
je 0x140012b3a
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140012b3a
test r13d, r13d
jne 0x1400035b4
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 0x140012b26
mov r12d, r15d
mov r14d, r15d
mov esi, r15d
cmp dword [rbp + 0x17], r15d
jbe 0x140012a6a
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 0x140012a4e
mov rdi, qword [rbp - 0x41]
cmp byte [rdi], r15b
jne 0x14000359b
test dword [rdi + 4], 0x20019
je 0x14000359b
test r12d, r12d
je 0x14000361f
test dword [rdi + 4], 0x20019
je 0x14000359b
test r14d, r14d
je 0x1400035f8
inc esi
cmp esi, dword [rbp + 0x17]
jb 0x140003550
test r12d, r12d
je 0x140012a6a
test r14d, r14d
je 0x140012a6a
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
test rbx, rbx
je 0x1400035d9
mov rcx, rbx
call fcn.14000eccc
mov eax, r13d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000f060
add rsp, 0xb0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [0x1400c9148]
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 0x14000359b
mov rdx, qword [0x1400c9150]
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 0x14000358d
mov r12d, 1
jmp 0x14000358d
mov eax, 8
jmp 0x1400035dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400034f3
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 0x1400035b4
jmp 0x1400035a2
mov rax, qword [rbp - 0x21]
test r12d, r12d
mov qword [rbp - 0x41], r15
mov esi, 1
cmove rax, qword [0x1400c9150]
sete r15b
mov qword [rbp - 0x21], rax
test r14d, r14d
jne 0x140012aa1
mov rax, qword [0x1400c9148]
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.1400779a0
mov rdi, qword [rbp - 0x41]
mov r13d, eax
test eax, eax
jne 0x140012b18
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 0x140012b09
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 0x140012b09
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x11]
call fcn.140077728
jmp 0x140012b15
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.14000eccc
nop
jmp 0x1400035b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400035b4
mov r13d, 1
jmp 0x1400035b4