Function at 0x140002210
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 0x140002293
mov ecx, dword [rbp - 0x49]
call fcn.14000d114
mov rbx, rax
test rax, rax
je 0x1400103bc
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 0x1400023b4
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 0x1400103c6
cmp dword [rbp - 0x45], r15d
je 0x1400104c6
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400104c6
test r13d, r13d
jne 0x1400023b4
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 0x1400104b2
mov r12d, r15d
mov r14d, r15d
mov esi, r15d
cmp dword [rbp + 0x17], r15d
jbe 0x1400103f6
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 0x1400103da
mov rdi, qword [rbp - 0x41]
cmp byte [rdi], r15b
jne 0x14000239b
test dword [rdi + 4], 0x20019
je 0x14000239b
test r12d, r12d
je 0x14000241f
test dword [rdi + 4], 0x20019
je 0x14000239b
test r14d, r14d
je 0x1400023f8
inc esi
cmp esi, dword [rbp + 0x17]
jb 0x140002350
test r12d, r12d
je 0x1400103f6
test r14d, r14d
je 0x1400103f6
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
test rbx, rbx
je 0x1400023d9
mov rcx, rbx
call fcn.14000d154
mov eax, r13d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000d4b0
add rsp, 0xb0
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [0x1400c9090]
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 0x14000239b
mov rdx, qword [0x1400c9098]
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 0x14000238d
mov r12d, 1
jmp 0x14000238d
mov eax, 8
jmp 0x1400023dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400022f3
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 0x1400023b4
jmp 0x1400023a2
mov rax, qword [rbp - 0x21]
test r12d, r12d
mov qword [rbp - 0x41], r15
mov esi, 1
cmove rax, qword [0x1400c9098]
sete r15b
mov qword [rbp - 0x21], rax
test r14d, r14d
jne 0x14001042d
mov rax, qword [0x1400c9090]
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.1400772ac
mov rdi, qword [rbp - 0x41]
mov r13d, eax
test eax, eax
jne 0x1400104a4
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 0x140010495
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 0x140010495
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x11]
call fcn.14007709c
jmp 0x1400104a1
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.14000d154
nop
jmp 0x1400023b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400023b4
mov r13d, 1
jmp 0x1400023b4