Function at 0x14002c158
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
xor r15d, r15d
cmp ecx, 1
sete r15b
neg r9d
mov r14d, r8d
sbb ebp, ebp
mov r13, rdx
mov ebx, ecx
and ebp, 0xffffff80
mov qword [rsp + 0x78], rdi
add ebp, 0x100
xor esi, esi
mov dword [rsp + 0x70], ebp
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c1db
test byte [rcx + 0x1c], 4
je 0x14002c1db
cmp byte [rcx + 0x19], 5
jb 0x14002c1db
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1c6
call fcn.14000ffa8
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
test r13, r13
jne 0x14002c213
cmp rcx, rax
je 0x14002c209
test byte [rcx + 0x1c], 4
je 0x14002c209
cmp byte [rcx + 0x19], 2
jb 0x14002c209
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1c7
xor r9d, r9d
call fcn.140019464
mov eax, 0x57
jmp 0x14002c445
test ebx, ebx
je 0x14002c247
cmp ebx, 1
je 0x14002c247
cmp rcx, rax
je 0x14002c209
test byte [rcx + 0x1c], 4
je 0x14002c209
cmp byte [rcx + 0x19], 2
jb 0x14002c209
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1c8
mov r9d, ebx
call fcn.1400100e0
jmp 0x14002c209
call fcn.140055818
mov r12, rax
test rax, rax
jne 0x14002c2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c42d
test byte [rcx + 0x1c], 4
je 0x14002c42d
cmp byte [rcx + 0x19], 2
jb 0x14002c42d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1c9
mov r9d, ebx
call fcn.1400100e0
jmp 0x14002c42d
test r15d, r15d
je 0x14002c2b0
test r14d, ebp
cmove rsi, rax
mov rbp, qword [rsp + 0x90]
mov rcx, qword [0x1400a3c58]
mov r9, rsi
mov r8d, r15d
mov rdx, r13
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rbp
call fcn.14001804c
mov ebx, eax
test eax, eax
je 0x14002c329
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c31b
test byte [rcx + 0x1c], 4
je 0x14002c31b
cmp byte [rcx + 0x19], 2
jb 0x14002c31b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1ca
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.14001d6f8
cmp ebx, 2
jne 0x14002c42d
jmp 0x14002c428
mov edx, 0x5c
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14002c340
add rax, 2
mov rcx, qword [0x1400a3c58]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rax
call fcn.140017b48
mov ebx, eax
test eax, eax
je 0x14002c39e
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c394
test byte [rcx + 0x1c], 4
je 0x14002c394
cmp byte [rcx + 0x19], 2
jb 0x14002c394
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
mov edx, 0x1cb
mov r9d, ebx
call fcn.1400100e0
mov rdi, qword [rsp + 0x78]
jmp 0x14002c42d
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x14002c3dd
lea edx, [rdi + 1]
mov ecx, r14d
call fcn.14005fec4
test eax, eax
jne 0x14002c42d
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c428
test byte [rcx + 0x1c], 4
je 0x14002c428
cmp byte [rcx + 0x19], 2
jb 0x14002c428
mov edx, 0x1cc
jmp 0x14002c418
test dword [rsp + 0x70], r14d
jne 0x14002c42d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14002c42d
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14002c428
test byte [rcx + 0x1c], 4
je 0x14002c428
cmp byte [rcx + 0x19], 2
jb 0x14002c428
mov edx, 0x1cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009848]
call fcn.14000ffa8
mov ebx, 0x1b61
mov rcx, r12
call fcn.140076afc
test rdi, rdi
je 0x14002c443
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret