Function at 0x53019ec
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x54183c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xb8], eax
call fcn.05300bc7
test al, al
jne 0x5301a1b
inc al
jmp 0x5301cd2
push edi
or dword [ebp - 0xac], 0xffffffff
xor edi, edi
lea eax, [ebp - 0xb0]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xa5], 0
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x5301aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x5301c9c
test byte [ecx + 0x1c], 1
je 0x5301c9c
cmp byte [ecx + 0x19], 2
jb 0x5301c9c
push eax
push 0x53f22e8
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.05308899
add esp, 0x14
jmp 0x5301c9c
push esi
lea eax, [ebp - 0xac]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5301b23
call esi
cmp eax, 0x3f0
jne 0x5301aee
lea eax, [ebp - 0xac]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5301b23
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x5301c9b
test byte [ecx + 0x1c], 1
je 0x5301c9b
cmp byte [ecx + 0x19], 2
jb 0x5301c9b
push eax
push 0x53f22e8
push 0x10
jmp 0x5301b7e
lea eax, [ebp - 0xb4]
push eax
push edi
push edi
push 2
push dword [ebp - 0xac]
mov dword [ebp - 0xb4], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5301b91
call esi
cmp eax, 0x7a
je 0x5301b91
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x5301c9b
test byte [ecx + 0x1c], 1
je 0x5301c9b
cmp byte [ecx + 0x19], 2
jb 0x5301c9b
push eax
push 0x53f22e8
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.05308899
add esp, 0x14
jmp 0x5301c9b
lea ecx, [ebp - 0xa4]
call fcn.05303c42
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xa4]
call fcn.05303e79
mov edi, eax
test edi, edi
jne 0x5301bf8
mov dword [ebx + 4], 0xe
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x5301c8e
test byte [eax + 0x1c], 1
je 0x5301c8e
cmp byte [eax + 0x19], 2
jb 0x5301c8e
push 0x53f22e8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
jmp 0x5301c8e
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
push edi
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5301c4f
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x5301c8e
test byte [ecx + 0x1c], 1
je 0x5301c8e
cmp byte [ecx + 0x19], 2
jb 0x5301c8e
push eax
push 0x53f22e8
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.05308899
add esp, 0x14
jmp 0x5301c8e
xor esi, esi
cmp dword [edi], esi
jbe 0x5301c8e
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5301c74
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x5301c58
jmp 0x5301c8e
mov eax, dword [edi + esi*8 + 8]
mov ecx, dword [ebp - 0xb8]
shr eax, 2
not al
and al, 1
mov byte [ecx], al
mov byte [ebp - 0xa5], 1
lea ecx, [ebp - 0xa4]
call fcn.05303e6e
xor edi, edi
pop esi
cmp dword [ebp - 0xb0], edi
je 0x5301cb6
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0xb0], edi
cmp dword [ebp - 0xac], 0xffffffff
pop edi
je 0x5301ccc
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xa5]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0534fc81
leave
ret 4