Function at 0x10017fc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4a10
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x38]
push esi
mov dword [ebp - 0x154], esi
call dword [0x1011d084]
mov dword [ebp - 4], 0
lea eax, [edi + 0x3c]
cmp dword [eax], 0
mov dword [ebp - 0x150], eax
jne 0x1001825e
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x10018262
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x10018262
push ecx
push eax
push str.BaseNamedObjectsNODCOMM_08XTo_08XCommPortAlpc
push 0xffffffffffffffff
lea eax, [ebp - 0xe0]
push 0x40
push eax
call fcn.10018b30
add esp, 0x18
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [0x1011d0ec]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001808d
mov edi, 1
mov ebx, edi
jmp 0x10018151
push 0x4c
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.100c0600
add esp, 0xc
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x148]
mov edi, 1
mov ebx, edi
push eax
push 0x4c
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10018145
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push edi
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
push eax
mov word [ebp - 0xe4], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10018145
push dword [ebp - 0x60]
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x140]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
test edi, edi
sete al
xor ebx, ebx
test edi, edi
mov dword [ebp - 0x140], eax
mov edi, eax
sete bl
push dword [ebp - 0x144]
call dword [0x1011d08c]
push 0
push 0
lea eax, [edi + 1]
shl ebx, 0x10
mov dword [ebp - 0x10c], eax
xorps xmm0, xmm0
mov ax, word [ebp - 0x156]
push 0
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x100], 0
push eax
push 0
push 0x20000
lea eax, [ebp - 0x114]
mov dword [ebp - 0xec], 0
push eax
push 0
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x114], ebx
push eax
push dword [ebp - 0x150]
mov dword [ebp - 0x104], 0xffef
mov dword [ebp - 0xf4], 0xffffffff
mov dword [ebp - 0xf0], 0xffffffff
mov dword [ebp - 0xfc], 0xffffffff
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 0x110], 0xc
mov word [ebp - 0x108], 1
movlpd qword [ebp - 0x138], xmm0
movlpd qword [ebp - 0x130], xmm0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x13c], 0x280010
mov dword [ebp - 0x124], 0x43646f4e
mov dword [ebp - 0x120], 0x206d6d6f
mov dword [ebp - 0x11c], 2
mov dword [ebp - 0x118], 0xffcf
mov dword [ebp - 0x14c], 0x28
call dword [0x1011d05c]
test eax, eax
js 0x10018262
xor edi, edi
jmp 0x10018267
mov edi, 4
mov dword [ebp - 4], 0xffffffff
push esi
call dword [0x1011d0c4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret