Function at 0x140041640
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov dword [rsp + 0x4c], r8d
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x70], 0
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x7c], 2
lea rbp, [0x1401bda00]
mov qword [rsp + 0x68], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x8c], xmm0
cmp byte [rcx + 0x17], 0
jns 0x1400416ae
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400416f9
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0xa8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov edx, 1
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x140041701
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14d, r14d
jmp 0x140041a90
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x14004172c
lea r14, [rsp + 0x68]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov rcx, r14
mov rdx, rbx
call fcn.140042ba0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0xa8], 0
je 0x140041a86
mov rdi, qword [r15]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rdi
cmp rdi, rax
mov r15d, dword [rsp + 0x4c]
je 0x140041a2f
lea rbx, [rsp + 0x68]
mov rax, qword [rsp + 0x68]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x140041977
mov rax, qword [rsp + 0x50]
lea r14, [rax + 8]
xor r12d, r12d
mov rcx, rsi
call fcn.140042f90
mov rax, qword [rsp + 0x68]
mov rdi, rbx
mov rcx, rbx
mov edx, r12d
call qword [rax + 0x20]
mov rbp, rax
add rax, 8
cmp rax, rsi
je 0x140041827
mov eax, dword [rbp + 0x58]
mov dword [rsp + 0xf8], eax
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x100]
call fcn.140043810
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x108]
call fcn.140043810
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x110]
call fcn.140043810
mov al, byte [rbp + 0x54]
mov byte [rsp + 0xf4], al
test al, al
je 0x140041827
mov rbx, rbp
add rbx, 0x10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x140041b9c
mov ebx, dword [rbp + 0x80]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
mov r13d, eax
mov bpl, byte [rbp + 0x84]
cmp byte [rsp + 0xf4], 0
je 0x140041890
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140041890
mov rax, qword [rsp + 0x50]
cmp byte [rax + 0x4c], 0
je 0x140041890
mov r15, r14
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140041894
lea rcx, [rsp + 0xb0]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140041896
xor eax, eax
jmp 0x14004189b
xor eax, eax
mov r15d, dword [rsp + 0x4c]
lea rcx, [0x1401bd9f8]
mov qword [rsp + 0xa8], rcx
mov rdx, qword [rsp + 0x118]
mov ecx, 0xffffffff
lock xadd dword [rdx - 8], ecx
and ebx, r15d
add rdx, 0xffffffffffffffe8
dec ecx
cmp ebx, r15d
jne 0x1400418e1
and bpl, 3
cmp bpl, 3
jne 0x1400418e1
test r13b, r13b
jne 0x1400418e1
test al, al
jne 0x140041997
test ecx, ecx
mov rbx, rdi
jg 0x1400418f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x110]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x140041916
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x108]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14004193b
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x100]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x140041960
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
mov rax, qword [rsp + 0x68]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r12d, eax
jb 0x14004178c
mov rcx, rbx
mov rdx, qword [rsp + 0x50]
mov r8d, r15d
mov r9b, 3
call fcn.140043720
test al, al
jne 0x140041a16
jmp 0x140041a86
test ecx, ecx
mov rbx, rdi
jg 0x1400419a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x110]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400419cc
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x108]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400419f1
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x100]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x140041a16
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x50]
add rax, 0x78
mov qword [rsp + 0x50], rax
cmp rax, qword [rsp + 0x60]
jne 0x14004176d
mov rsi, qword [rsp + 0x58]
cmp byte [rsi + 0x17], 0
jns 0x140041a3d
mov rsi, qword [rsi]
test rsi, rsi
je 0x140041a86
lea rcx, [rsp + 0x68]
call fcn.1400438e0
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov edx, 1
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete r14b
jmp 0x140041a89
xor r14d, r14d
lea rbp, [0x1401bda00]
lea rbx, [rsp + 0x88]
mov qword [rbx - 0x20], rbp
mov rdi, qword [rbx - 8]
test rdi, rdi
je 0x140041af3
mov rbp, qword [rsp + 0x88]
test rbp, rbp
je 0x140041adf
xor esi, esi
mov rcx, qword [rdi + rsi*8]
test rcx, rcx
je 0x140041ac7
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + rsi*8], 0
inc rsi
cmp rbp, rsi
jne 0x140041ab4
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call fcn.14006b690
mov qword [rsp + 0x80], 0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [rsp + 0x70]
call fcn.14006b690
mov qword [rsp + 0x70], 0
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140041b62
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140041b53
xor esi, esi
mov rcx, qword [rdi + rsi*8]
test rcx, rcx
je 0x140041b3b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + rsi*8], 0
inc rsi
cmp rbx, rsi
jne 0x140041b28
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call fcn.14006b690
mov rcx, qword [rsp + 0x70]
jmp 0x140041b64
xor ecx, ecx
lea rax, [0x1401bda30]
mov qword [rsp + 0x68], rax
call fcn.14006b690
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140180700
mov eax, r14d
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140042390
mov byte [rsp + 0xf4], 0
mov ecx, eax
call fcn.140097620
int3