Function at 0x140021ab0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rdx
mov rbx, rcx
cmp byte [rcx + 0x40], 0
je 0x140021ce4
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.1400d9a00
call fcn.1400ad640
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x60]
call fcn.14000c6b0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rsp + 0x58], eax
setl byte [rbp + 0x58]
jl 0x140021b79
lea rdx, str.Client_PID:
lea rcx, [rsp + 0x50]
call fcn.140022460
lea rdx, [rbx + 0x30]
mov rcx, rax
call fcn.14001c440
lea rdx, str.__client_createTime:
mov rcx, rax
call fcn.1400224c0
lea rdx, [rbx + 0x38]
mov rcx, rax
call fcn.14001f710
mov byte [rbp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.1400091b0
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.1400d9a00
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x18
mov eax, dword [r14 + rdi]
mov r12d, 0x10
test al, 1
jne 0x140021bcb
or eax, 1
mov dword [r14 + rdi], eax
xor eax, eax
mov qword [rdi + r12], rax
call fcn.1400ad5c0
mov qword [rdi + r12], rax
mov rax, qword [rdi + r12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x60]
call fcn.14000c6b0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rsp + 0x58], eax
setl byte [rbp + 0x58]
jl 0x140021c3b
lea rdx, str.Peer_PID:
lea rcx, [rsp + 0x50]
call fcn.140016730
mov rdx, rsi
mov rcx, rax
call fcn.14001c440
lea rdx, str.__peer_createTime:
mov rcx, rax
call fcn.14001c0d0
lea rdx, [rsi + 8]
mov rcx, rax
call fcn.14001f710
mov byte [rbp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.1400091b0
mov rcx, qword [rsi]
cmp rcx, qword [rbx + 0x30]
jne 0x140021d11
mov rax, qword [rbx + 0x38]
cmp qword [rsi + 8], rax
jne 0x140021d11
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.1400d9a00
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140021c90
or eax, 1
mov dword [r14 + rdi], eax
xor eax, eax
mov qword [rdi + r12], rax
call fcn.1400ad5c0
mov qword [rdi + r12], rax
mov rax, qword [rdi + r12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x60]
call fcn.14000c6b0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rsp + 0x58], eax
setl byte [rbp + 0x58]
jl 0x140021cda
lea rdx, str.Peer_SPID_matches_client_SPID.
lea rcx, [rsp + 0x50]
call fcn.14000f8c0
mov byte [rbp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.1400091b0
mov al, 1
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400d45d0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x48], r15
mov r10, qword [rbx + 0x20]
mov rax, qword [r10]
mov edx, ecx
cmp rdx, rcx
jne 0x140021f3c
mov byte [rsp + 0x20], 0
mov r9d, 0x1000
mov r8d, ecx
lea rdx, [rsp + 0x48]
mov rcx, r10
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
nop
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x48]
lea rdx, [rbp + 0x60]
mov rax, qword [rax + 0x68]
call qword [case.0x1400507c6.0]
mov edx, 0x16
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
je 0x140021e1f
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.1400d9a00
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140021dc0
or eax, 1
mov dword [r14 + rdi], eax
xor eax, eax
mov qword [rdi + r12], rax
mov eax, 8
mov eax, dword [rax + rdi]
cmp dword [0x1401772f4], eax
jg 0x140021ee4
lea rax, vtable.sophlib::logging::Logger.0
mov qword [rdi + r12], rax
mov rax, qword [rdi + r12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x60]
call fcn.14000c6b0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rsp + 0x58], eax
setl byte [rbp + 0x58]
jl 0x140021ebc
lea rdx, str.Peer_SID_is_LocalSystem_Admin.
lea rcx, [rsp + 0x50]
call fcn.14000f8c0
mov byte [rbp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.1400091b0
mov bl, 1
jmp 0x140021ecc
cmp byte [rbx + 0x8c], 0
je 0x140021eca
lea rdx, [rbx + 0x48]
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140021eca
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.1400d9a00
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140021e72
or eax, 1
mov dword [r14 + rdi], eax
xor eax, eax
mov qword [rdi + r12], rax
call fcn.1400ad5c0
mov qword [rdi + r12], rax
mov rax, qword [rdi + r12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x60]
call fcn.14000c6b0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rsp + 0x58], eax
setl byte [rbp + 0x58]
jl 0x140021ebc
lea rdx, str.Peer_is_same_user_as_client.
lea rcx, [rsp + 0x50]
call fcn.140022520
mov byte [rbp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.1400091b0
mov bl, 1
jmp 0x140021ecc
xor bl, bl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140021edc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x140021ce6
lea rcx, [0x1401772f4]
call fcn.1400d4788
cmp dword [0x1401772f4], 0xffffffff
jne 0x140021db5
mov qword [0x14016c058], r15
lea rax, vtable.sophlib::logging::Logger.0
mov qword [vtable.sophlib::logging::Logger.0], rax
lea rcx, [0x14016c058]
call fcn.1400b0aa0
lea rcx, [0x14011b5f0]
call fcn.1400d4bdc
nop
lea rcx, [0x1401772f4]
call fcn.1400d4728
jmp 0x140021db5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.1400102c0
lea rdx, [0x140167a60]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
int3