Function at 0x10003b750
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
xor r14d, r14d
xor r15d, r15d
and qword [rax + 0x20], rsi
xor ebp, ebp
mov r13, rcx
mov dword [rax + 0x18], r14d
mov dword [rax + 0x10], r15d
mov qword [rax - 0x40], rsi
mov qword [rax - 0x48], rbp
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x88]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10003b7d4
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x20]
mov rcx, r13
call fcn.10003b644
mov rcx, qword [rsp + 0x88]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x20]
jmp 0x10003b7dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x10003b987
and qword [rsp + 0x20], rsi
call qword [sym.imp.USER32.dll_GetShellWindow]
test rax, rax
je 0x10003b868
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x10003b868
lea r8, [rsp + 0x20]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10003b868
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rcx, r13
call fcn.10003b644
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x28]
jmp 0x10003b870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x10003b987
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10003b987
call qword [sym.imp.USER32.dll_GetShellWindow]
test rax, rax
je 0x10003b987
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x10003b987
and qword [rsp + 0x20], r14
lea r8, [rsp + 0x20]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10003b90d
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x78]
mov rcx, r13
call fcn.10003b550
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [rsp + 0x78]
jmp 0x10003b915
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10003b987
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x78], r14
lea r8, [rsp + 0x78]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10003b96e
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x80]
mov rcx, r13
call fcn.10003b550
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x80]
jmp 0x10003b976
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x10003b987
lea eax, [rbx + 1]
movzx edi, dil
cmp r14d, r15d
cmove edi, eax
test rbp, rbp
je 0x10003b995
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x10003b9a3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret