Function at 0x14001d03c
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.___t_]
lea rax, str.___t_
mov r14b, 4
cmp rcx, rax
je 0x14001d0c3
test byte [rcx + 0x1c], r14b
je 0x14001d0c3
cmp byte [rcx + 0x19], 5
jb 0x14001d0c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
mov edx, 0x1c6
call fcn.140001024
mov rcx, qword [str.___t_]
lea rax, str.___t_
test r15, r15
jne 0x14001d0f3
cmp rcx, rax
je 0x14001d121
test byte [rcx + 0x1c], r14b
je 0x14001d121
cmp byte [rcx + 0x19], 2
jb 0x14001d121
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
mov edx, 0x1c7
xor r9d, r9d
call fcn.14000a2bc
jmp 0x14001d121
cmp ebx, 1
jbe 0x14001d12b
cmp rcx, rax
je 0x14001d121
test byte [rcx + 0x1c], r14b
je 0x14001d121
cmp byte [rcx + 0x19], 2
jb 0x14001d121
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
mov edx, 0x1c8
mov r9d, ebx
call fcn.140001048
mov eax, 0x57
jmp 0x14001d307
call fcn.140044c84
mov rbp, rax
test rax, rax
jne 0x14001d188
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14001d2ef
test byte [rcx + 0x1c], r14b
je 0x14001d2ef
cmp byte [rcx + 0x19], 2
jb 0x14001d2ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
mov edx, 0x1c9
mov r9d, ebx
call fcn.140001048
jmp 0x14001d2ef
cmp ebx, 1
jne 0x14001d194
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.140008fc0
mov ebx, eax
test eax, eax
je 0x14001d1f4
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14001d1e6
test byte [rcx + 0x1c], 4
je 0x14001d1e6
cmp byte [rcx + 0x19], 2
jb 0x14001d1e6
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.14000e578
cmp ebx, 2
jne 0x14001d2ef
jmp 0x14001d2ea
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14001d20b
add rax, 2
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rax
call fcn.140008b04
mov ebx, eax
test eax, eax
je 0x14001d262
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14001d258
test byte [rcx + 0x1c], 4
je 0x14001d258
cmp byte [rcx + 0x19], 2
jb 0x14001d258
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
mov edx, 0x1cb
mov r9d, ebx
call fcn.140001048
mov rdi, qword [rsp + 0x78]
jmp 0x14001d2ef
mov rdi, qword [rsp + 0x78]
test rdi, rdi
jne 0x14001d2a1
lea edx, [rdi + 1]
mov ecx, r13d
call fcn.14004ea94
test eax, eax
jne 0x14001d2ef
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14001d2ea
test byte [rcx + 0x1c], 4
je 0x14001d2ea
cmp byte [rcx + 0x19], 2
jb 0x14001d2ea
mov edx, 0x1cc
jmp 0x14001d2da
test r13d, r12d
jne 0x14001d2ef
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14001d2ef
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14001d2ea
test byte [rcx + 0x1c], 4
je 0x14001d2ea
cmp byte [rcx + 0x19], 2
jb 0x14001d2ea
mov edx, 0x1cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082628]
call fcn.140001024
mov ebx, 0x1b61
mov rcx, rbp
call fcn.1400634d4
test rdi, rdi
je 0x14001d305
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