Function at 0x428e2e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00427bcb
test al, al
je 0x4290e1
push ebx
or dword [ebp - 0xac], 0xffffffff
xor ecx, ecx
lea eax, [ebp - 0xb0]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0xc]
mov bl, cl
push eax
mov byte [ebp - 0xa5], bl
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x428edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4290ad
test byte [eax + 0x1c], 1
je 0x4290ad
cmp byte [eax + 0x19], 2
jb 0x4290ad
push ecx
push 0x4c543c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041e118
add esp, 0x14
jmp 0x4290ad
push edi
lea eax, [ebp - 0xac]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x428f57
call edi
cmp eax, 0x3f0
jne 0x428f22
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 0x428f57
call edi
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4290ac
test byte [eax + 0x1c], 1
je 0x4290ac
cmp byte [eax + 0x19], 2
jb 0x4290ac
push ecx
push 0x4c543c
push 0x15
jmp 0x428fb4
xor ecx, ecx
lea eax, [ebp - 0xb4]
push eax
push ecx
push ecx
push 1
push dword [ebp - 0xac]
mov dword [ebp - 0xb4], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x428fc7
call edi
cmp eax, 0x7a
je 0x428fc7
call edi
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4290ac
test byte [eax + 0x1c], 1
je 0x4290ac
cmp byte [eax + 0x19], 2
jb 0x4290ac
push ecx
push 0x4c543c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041e118
add esp, 0x14
jmp 0x4290ac
lea ecx, [ebp - 0xa4]
call fcn.004251e4
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xa4]
call fcn.004253de
mov ebx, eax
test ebx, ebx
jne 0x42901f
mov dword [esi + 4], 0xe
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x429074
test byte [eax + 0x1c], 1
je 0x429074
cmp byte [eax + 0x19], 2
jb 0x429074
push 0x4c543c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
jmp 0x429074
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
push ebx
push 1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x429087
call edi
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x429074
test byte [eax + 0x1c], 1
je 0x429074
cmp byte [eax + 0x19], 2
jb 0x429074
push ecx
push 0x4c543c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041e118
add esp, 0x14
lea ecx, [ebp - 0xa4]
call fcn.00425236
mov bl, byte [ebp - 0xa5]
jmp 0x4290ac
push dword [ebp - 0xb0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov bl, 1
test eax, eax
jne 0x4290a1
mov bl, byte [ebp - 0xa5]
lea ecx, [ebp - 0xa4]
call fcn.00425236
pop edi
cmp dword [ebp - 0xb0], 0
je 0x4290c9
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xac], 0xffffffff
je 0x4290de
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046aec6
leave
ret