Function at 0x42bbf7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x456594
push str.CUserPrivilege::HasAdmin
xor esi, esi
and dword [ebp - 0x10], esi
push 5
xor edi, edi
call fcn.00405a24
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov word [ebp - 8], 0x500
test ebx, ebx
je 0x42bc41
mov dword [ebp - 0x14], ebx
mov ebx, str.CUserPrivilege::HasAdmin
jmp 0x42bcab
push str.OpenThreadToken._n
mov ebx, str.CUserPrivilege::HasAdmin
push ebx
push 5
call fcn.00405a24
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 0x42bcab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x42be14
push str.OpenProcessToken._n
push ebx
push 5
call fcn.00405a24
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 0x42be14
push str.GetTokenInformation._n
push ebx
push 5
call fcn.00405a24
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 0x42be14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42be14
push 0x3a
push str...CommonPrivilege.cpp
push dword [ebp - 0x18]
call fcn.0042ae50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42be14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x42be14
push str.AllocateAndInitializeSid._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
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 0x42be14
push str.Check_groups._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
add esp, 0xc
cmp dword [esi], ebx
jbe 0x42bde8
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 0x42bd92
mov eax, dword [ebp - 0x1c]
inc ebx
add eax, 8
mov dword [ebp - 0x1c], eax
cmp ebx, dword [esi]
jb 0x42bd73
jmp 0x42bde8
test byte [esi + ebx*8 + 8], 4
je 0x42bdb2
push str.PRIV_ADMIN._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
xor edi, edi
add esp, 0xc
inc edi
jmp 0x42bde8
test byte [esi + ebx*8 + 8], 0x10
je 0x42bdd2
push str.PRIV_ADMIN_DENYONLY._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
add esp, 0xc
push 2
pop edi
jmp 0x42bde8
push str.PRIV_NONE._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
add esp, 0xc
xor edi, edi
push 0x4565b0
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00405a24
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x10], 0
push esi
call fcn.0042afb6
pop ecx
mov eax, edi
jmp 0x42be40
push esi
call fcn.0042afb6
mov dword [esp], str.____failed._n
mov esi, str.CUserPrivilege::HasAdmin
push esi
push 5
call fcn.00405a24
push 0x4565b0
push esi
push 5
call fcn.00405a24
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret 4