Function at 0x140013534
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 eax, eax
xor edi, edi
cmp ecx, 1
mov qword [rsp + 0x78], rdi
mov r13d, r8d
mov r15, rdx
sete al
mov ebx, ecx
neg r9d
mov dword [rsp + 0x70], eax
sbb r12d, r12d
and r12d, 0xffffff80
add r12d, 0x100
xor esi, esi
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
mov r14b, 4
cmp rcx, rax
je 0x1400135bb
test byte [rcx + 0x1c], r14b
je 0x1400135bb
cmp byte [rcx + 0x19], 5
jb 0x1400135bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
mov edx, 0x1c9
call fcn.14000459c
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
test r15, r15
jne 0x1400135eb
cmp rcx, rax
je 0x140013619
test byte [rcx + 0x1c], r14b
je 0x140013619
cmp byte [rcx + 0x19], 2
jb 0x140013619
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
mov edx, 0x1ca
xor r9d, r9d
call fcn.1400102c4
jmp 0x140013619
cmp ebx, 1
jbe 0x140013623
cmp rcx, rax
je 0x140013619
test byte [rcx + 0x1c], r14b
je 0x140013619
cmp byte [rcx + 0x19], 2
jb 0x140013619
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
mov edx, 0x1cb
mov r9d, ebx
call fcn.140004994
mov eax, 0x57
jmp 0x140013817
call fcn.140048bcc
mov rbp, rax
test rax, rax
jne 0x140013686
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400137f9
test byte [rcx + 0x1c], r14b
je 0x1400137f9
cmp byte [rcx + 0x19], 2
jb 0x1400137f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
mov edx, 0x1cc
mov r9d, ebx
call fcn.140004994
jmp 0x1400137f9
cmp ebx, 1
jne 0x140013692
test r13d, r12d
cmove rsi, rbp
mov r14, qword [rsp + 0x90]
mov r9, rsi
mov r8d, dword [rsp + 0x70]
mov rdx, r15
mov qword [rsp + 0x20], r14
call fcn.14000c0cc
mov ebx, eax
test eax, eax
je 0x1400136f2
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400136e4
test byte [rcx + 0x1c], 4
je 0x1400136e4
cmp byte [rcx + 0x19], 2
jb 0x1400136e4
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.140023adc
cmp ebx, 2
jne 0x1400137f9
jmp 0x1400137f4
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14001370f
add rax, 2
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rax
call fcn.1400066d8
mov ebx, eax
test eax, eax
je 0x140013766
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14001375c
test byte [rcx + 0x1c], 4
je 0x14001375c
cmp byte [rcx + 0x19], 2
jb 0x14001375c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
mov edx, 0x1ce
mov r9d, ebx
call fcn.140004900
mov rdi, qword [rsp + 0x78]
jmp 0x1400137f9
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x1400137a5
lea edx, [rdi + 1]
mov ecx, r13d
call fcn.1400523a8
test eax, eax
jne 0x1400137f9
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400137f4
test byte [rcx + 0x1c], 4
je 0x1400137f4
cmp byte [rcx + 0x19], 2
jb 0x1400137f4
mov edx, 0x1cf
jmp 0x1400137e4
test r13d, r12d
jne 0x1400137f9
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x1400137f9
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x1400137f4
test byte [rcx + 0x1c], 4
je 0x1400137f4
cmp byte [rcx + 0x19], 2
jb 0x1400137f4
mov edx, 0x1d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092f08]
call fcn.14000459c
mov ebx, 0x1b61
mov rcx, rbp
call fcn.14006a328
test rdi, rdi
je 0x140013815
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
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