Function at 0x4088a8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x4301d8
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x444158]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408b04
pop ecx
xor ebx, ebx
mov cl, byte [eax + 4]
mov esi, dword [eax]
mov byte [ebp + 0xb], cl
mov dword [ebp - 0x14], esi
mov byte [eax + 4], bl
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], cl
mov dword [ebp - 4], 1
cmp byte [ebp - 0x24], bl
je 0x408913
push dword [ebp - 0x28]
mov byte [ebp - 0x24], bl
call fcn.004080ee
pop ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], bl
push eax
push ebx
push ebx
push 2
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x10]
mov esi, ebx
mov dword [ebp + 4], eax
mov edi, ebx
mov dword [ebp - 0x20], esi
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov edx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp], ecx
test eax, eax
je 0x408986
cmp eax, 0x7fffffff
ja 0x408a90
push eax
cmp eax, 0x1000
jb 0x408960
call fcn.004013e8
jmp 0x408965
call fcn.004106f4
mov edi, dword [ebp + 4]
mov esi, eax
pop ecx
add edi, esi
mov dword [ebp - 0x20], esi
push edi
push esi
mov dword [ebp - 0x18], edi
call fcn.0040845c
pop ecx
pop ecx
mov edx, edi
mov dword [ebp], esi
mov dword [ebp - 0x1c], edx
mov ecx, esi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
sub edx, ecx
push edx
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408a95
lea eax, [ebp + 0xc]
push eax
call fcn.004086e1
mov eax, dword [ebp]
pop ecx
cmp dword [eax], ebx
jbe 0x4089dd
lea ecx, [eax + 4]
mov dword [ebp + 4], ecx
push dword [ecx]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x408a44
mov eax, dword [ebp]
inc ebx
mov ecx, dword [ebp + 4]
add ecx, 8
mov dword [ebp + 4], ecx
cmp ebx, dword [eax]
jb 0x4089bc
test esi, esi
je 0x408a0f
sub edi, esi
mov dword [ebp], esi
mov dword [ebp + 4], edi
cmp edi, 0x1000
jb 0x408a06
lea eax, [ebp + 4]
push eax
lea eax, [ebp]
push eax
call fcn.00402af7
mov edi, dword [ebp + 4]
mov esi, dword [ebp]
pop ecx
pop ecx
push edi
push esi
call fcn.00410724
pop ecx
pop ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 6
je 0x408a25
push dword [ebp - 0x14]
call fcn.004080ee
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00410737
add ebp, 0x78
leave
ret
test esi, esi
je 0x408a76
sub edi, esi
mov dword [ebp], esi
mov dword [ebp + 4], edi
cmp edi, 0x1000
jb 0x408a6d
lea eax, [ebp + 4]
push eax
lea eax, [ebp]
push eax
call fcn.00402af7
mov edi, dword [ebp + 4]
mov esi, dword [ebp]
pop ecx
pop ecx
push edi
push esi
call fcn.00410724
pop ecx
pop ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 5
je 0x408a8c
push dword [ebp - 0x14]
call fcn.004080ee
pop ecx
mov al, 1
jmp 0x408a27
call fcn.0040314a
push str.GetTokenInformation_TokenGroup__failed
lea ecx, [ebp - 0xd8]
call fcn.00401ed9
push 0x4325e4
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407da2
mov esi, eax
push 0xb1
push str.security::isUserAdmin
push 0x432f78
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00401d7d
push eax
lea eax, [ebp + 0x50]
push esi
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp + 0x50]
push 0x441054
push eax
call fcn.00413602
int3