Function at 0x14002d530
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rbp + 0x68], rax
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
xor r13d, r13d
mov qword [rbp + 0x60], r13
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
lea r9, [rbp + 0x40]
lea edx, [r13 + 8]
lea r8d, [r13 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x14002da01
mov rax, qword [rbp + 0x48]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140007f30]
lea rcx, [rbp + 0x48]
call rbx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x50], rax
xor edx, edx
lea r8d, [r13 + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140119b70
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x11
mov dword [rsp + 0x78], r13d
mov dword [rsp + 0x7c], 0xa
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
movss xmm1, dword [0x140167b8c]
movss dword [rsp + 0x5c], xmm1
movss xmm0, dword [0x140167b88]
movss dword [rsp + 0x60], xmm0
movss xmm1, dword [0x140167b90]
movss dword [rsp + 0x64], xmm1
xor ecx, ecx
movss xmm2, dword [0x140167b98]
movabs rdx, 0x8000000000000000
movss xmm0, dword [0x140167b9c]
comiss xmm2, xmm0
jb 0x14002d660
subss xmm2, xmm0
comiss xmm2, xmm0
jae 0x14002d660
mov rcx, rdx
cvttss2si rax, xmm2
add rax, rcx
mov qword [rsp + 0x68], rax
xor ecx, ecx
movss xmm1, dword [0x140167b94]
comiss xmm1, xmm0
jb 0x14002d688
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14002d688
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
cmp rax, 0x11
cmovb rax, r13
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x70], r13
mov byte [rbp - 0x68], 1
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.14002c040
test al, al
je 0x14002d9f7
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x20]
mov qword [rbp + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.14002e140
cmp qword [rsp + 0x50], 0
je 0x14002d7df
mov ecx, r13d
mov r14, qword [rsp + 0x48]
mov esi, dword [rsp + 0x58]
test esi, esi
je 0x14002d729
nop dword [rax]
mov eax, ecx
cmp qword [r14 + rax*8], 0
jne 0x14002d721
inc ecx
cmp ecx, esi
jb 0x14002d710
jmp 0x14002d729
mov eax, ecx
mov rbx, qword [r14 + rax*8]
jmp 0x14002d72c
mov rbx, r13
test rbx, rbx
je 0x14002d7df
mov rdi, qword [rsp + 0x28]
nop word [rax + rax]
mov r12, rbx
test rbx, rbx
jne 0x14002d74d
mov rbx, r13
jmp 0x14002d781
mov r8, qword [rbx + 0x80]
test r8, r8
jne 0x14002d77e
mov r8, r13
xor edx, edx
mov eax, dword [rbx + 0x88]
div esi
inc edx
cmp edx, esi
jae 0x14002d77e
mov rcx, qword [r14 + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x14002d768
mov rbx, r8
mov r15, rdi
mov qword [rbp - 0x58], rdi
cmp rdi, qword [rsp + 0x30]
jb 0x14002d7a6
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.14002d2e0
test al, al
je 0x14002d7d4
mov rdi, qword [rsp + 0x28]
imul rcx, r15, 0x78
add rcx, qword [rsp + 0x20]
mov qword [rbp - 0x50], rcx
je 0x14002d7c2
mov rdx, r12
call fcn.14002c380
mov rdi, qword [rsp + 0x28]
inc rdi
mov qword [rsp + 0x28], rdi
test rbx, rbx
je 0x14002d7e4
jmp 0x14002d740
mov ecx, 0x8007000e
call fcn.14002cc60
int3
mov rdi, qword [rsp + 0x28]
mov rbx, r13
test rdi, rdi
je 0x14002d948
mov rsi, r13
cmp rbx, rdi
jae 0x14002d93d
mov r12, qword [rsp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.14002cb00
mov r15, rax
lea r14, [r12 + 8]
add r14, rsi
je 0x14002d85d
lea rdi, [rax + 8]
test rdi, rdi
je 0x14002d85d
cmp byte [r12 + rsi + 0x4c], 0
je 0x14002d85d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002d85d
cmp byte [r15 + 0x4c], 0
je 0x14002d85d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002d85d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne dil
jmp 0x14002d860
xor dil, dil
inc rbx
add rsi, 0x78
lea rcx, [rbp - 0x40]
call fcn.14002c760
test dil, dil
jne 0x14002d888
mov rdi, qword [rsp + 0x28]
cmp rbx, rdi
jb 0x14002d7fc
jmp 0x14002d948
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14002d8ce
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x14002d8c5
nop dword [rax]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140007f30]
xor edx, edx
mov rcx, rdi
call rbx
add rdi, 0x78
sub rsi, 1
jne 0x14002d8a0
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140122328
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp - 0x70]
call fcn.140122328
lea rcx, [rsp + 0x48]
call fcn.14002c650
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
test rdx, rdx
je 0x14002d919
test rcx, rcx
je 0x14002d915
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x58], r13
test rcx, rcx
je 0x14002d928
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp + 0x50], r13
mov edx, 8
mov rcx, qword [rbp + 0x60]
call fcn.1400f84e0
mov al, 1
jmp 0x14002da20
mov ecx, 0x80070057
call fcn.14002cc60
nop
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002d98b
test rdi, rdi
je 0x14002d980
nop word [rax + rax]
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140007f30]
xor edx, edx
mov rcx, rsi
call rbx
add rsi, 0x78
sub rdi, 1
jne 0x14002d960
mov rcx, qword [rsp + 0x20]
call fcn.140122328
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp - 0x70]
call fcn.140122328
lea rcx, [rsp + 0x48]
call fcn.14002c650
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
test rdx, rdx
je 0x14002d9d6
test rcx, rcx
je 0x14002d9d2
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x58], r13
test rcx, rcx
je 0x14002d9e5
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp + 0x50], r13
mov edx, 8
mov rcx, qword [rbp + 0x60]
call fcn.1400f84e0
xor al, al
jmp 0x14002da20
lea rcx, [rsp + 0x40]
call fcn.14002c860
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
or eax, 0x80070000
mov dword [rbp + 0x40], eax
lea rdx, [0x1401f5eb0]
lea rcx, [rbp + 0x40]
call fcn.140119a80
nop
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.1400f84b0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret