Function at 0x461192
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5d19f4
push str.CUserPrivilege::HasAdmin
xor esi, esi
and dword [ebp - 0x10], esi
push 5
xor edi, edi
call fcn.00423f75
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov word [ebp - 8], 0x500
test ebx, ebx
je 0x4611dc
mov dword [ebp - 0x14], ebx
mov ebx, str.CUserPrivilege::HasAdmin
jmp 0x461246
push str.OpenThreadToken._n
mov ebx, str.CUserPrivilege::HasAdmin
push ebx
push 5
call fcn.00423f75
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x461246
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4613af
push str.OpenProcessToken._n
push ebx
push 5
call fcn.00423f75
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4613af
push str.GetTokenInformation._n
push ebx
push 5
call fcn.00423f75
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x4613af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4613af
push 0x3a
push str...CommonPrivilege.cpp
push dword [ebp - 0x18]
call fcn.0045976f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4613af
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x4613af
push str.AllocateAndInitializeSid._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4613af
push str.Check_groups._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
add esp, 0xc
cmp dword [esi], ebx
jbe 0x461383
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x46132d
mov eax, dword [ebp - 0x1c]
inc ebx
add eax, 8
mov dword [ebp - 0x1c], eax
cmp ebx, dword [esi]
jb 0x46130e
jmp 0x461383
test byte [esi + ebx*8 + 8], 4
je 0x46134d
push str.PRIV_ADMIN._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
xor edi, edi
add esp, 0xc
inc edi
jmp 0x461383
test byte [esi + ebx*8 + 8], 0x10
je 0x46136d
push str.PRIV_ADMIN_DENYONLY._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
add esp, 0xc
push 2
pop edi
jmp 0x461383
push str.PRIV_NONE._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
add esp, 0xc
xor edi, edi
push 0x5d1a10
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00423f75
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x10], 0
push esi
call fcn.00459786
pop ecx
mov eax, edi
jmp 0x4613db
push esi
call fcn.00459786
mov dword [esp], str.____failed._n
mov esi, str.CUserPrivilege::HasAdmin
push esi
push 5
call fcn.00423f75
push 0x5d1a10
push esi
push 5
call fcn.00423f75
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret 4