Function at 0x462297
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5d7aa4
push str.CUserPrivilege::HasAdmin
xor esi, esi
xor edi, edi
and dword [ebp - 0x10], esi
push 5
call fcn.00424dad
xor eax, eax
mov word [ebp - 8], 0x500
add esp, 0xc
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4622e1
mov dword [ebp - 0x14], ebx
mov ebx, str.CUserPrivilege::HasAdmin
jmp 0x46234b
push str.OpenThreadToken._n
mov ebx, str.CUserPrivilege::HasAdmin
push ebx
push 5
call fcn.00424dad
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 0x46234b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4624b4
push str.OpenProcessToken._n
push ebx
push 5
call fcn.00424dad
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 0x4624b4
push str.GetTokenInformation._n
push ebx
push 5
call fcn.00424dad
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x4624b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4624b4
push 0x3a
push str...CommonPrivilege.cpp
push dword [ebp - 0x18]
call fcn.0045a88d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4624b4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x4624b4
push str.AllocateAndInitializeSid._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
add esp, 0xc
lea eax, [ebp - 0x10]
xor ebx, ebx
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 0x4624b4
push str.Check_groups._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
add esp, 0xc
cmp dword [esi], ebx
jbe 0x462488
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 0x462432
mov eax, dword [ebp - 0x1c]
inc ebx
add eax, 8
mov dword [ebp - 0x1c], eax
cmp ebx, dword [esi]
jb 0x462413
jmp 0x462488
test byte [esi + ebx*8 + 8], 4
je 0x462452
push str.PRIV_ADMIN._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
xor edi, edi
add esp, 0xc
inc edi
jmp 0x462488
test byte [esi + ebx*8 + 8], 0x10
je 0x462472
push str.PRIV_ADMIN_DENYONLY._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
add esp, 0xc
push 2
pop edi
jmp 0x462488
push str.PRIV_NONE._n
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
add esp, 0xc
xor edi, edi
push 0x5d7ac0
push str.CUserPrivilege::HasAdmin
push 5
call fcn.00424dad
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x10], 0
push esi
call fcn.0045a8a4
pop ecx
mov eax, edi
jmp 0x4624e0
push esi
call fcn.0045a8a4
mov dword [esp], str.____failed._n
mov esi, str.CUserPrivilege::HasAdmin
push esi
push 5
call fcn.00424dad
push 0x5d7ac0
push esi
push 5
call fcn.00424dad
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret 4