Function at 0x4088f2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x42dd28
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x44106c]
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.00408b4e
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 0x40895d
push dword [ebp - 0x28]
mov byte [ebp - 0x24], bl
call fcn.00408138
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 0x4089d0
cmp eax, 0x7fffffff
ja 0x408ada
push eax
cmp eax, 0x1000
jb 0x4089aa
call fcn.00401448
jmp 0x4089af
call fcn.004100da
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.004084a6
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 0x408adf
lea eax, [ebp + 0xc]
push eax
call fcn.0040872b
mov eax, dword [ebp]
pop ecx
cmp dword [eax], ebx
jbe 0x408a27
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 0x408a8e
mov eax, dword [ebp]
inc ebx
mov ecx, dword [ebp + 4]
add ecx, 8
mov dword [ebp + 4], ecx
cmp ebx, dword [eax]
jb 0x408a06
test esi, esi
je 0x408a59
sub edi, esi
mov dword [ebp], esi
mov dword [ebp + 4], edi
cmp edi, 0x1000
jb 0x408a50
lea eax, [ebp + 4]
push eax
lea eax, [ebp]
push eax
call fcn.00402b57
mov edi, dword [ebp + 4]
mov esi, dword [ebp]
pop ecx
pop ecx
push edi
push esi
call fcn.0041010a
pop ecx
pop ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 6
je 0x408a6f
push dword [ebp - 0x14]
call fcn.00408138
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.0041011d
add ebp, 0x78
leave
ret
test esi, esi
je 0x408ac0
sub edi, esi
mov dword [ebp], esi
mov dword [ebp + 4], edi
cmp edi, 0x1000
jb 0x408ab7
lea eax, [ebp + 4]
push eax
lea eax, [ebp]
push eax
call fcn.00402b57
mov edi, dword [ebp + 4]
mov esi, dword [ebp]
pop ecx
pop ecx
push edi
push esi
call fcn.0041010a
pop ecx
pop ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 5
je 0x408ad6
push dword [ebp - 0x14]
call fcn.00408138
pop ecx
mov al, 1
jmp 0x408a71
call fcn.004031aa
push str.GetTokenInformation_TokenGroup__failed
lea ecx, [ebp - 0xd8]
call fcn.00401f39
push 0x42f5d4
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.00407ded
mov esi, eax
push 0xab
push str.security::isUserAdmin
push 0x42ff48
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00401ddd
push eax
lea eax, [ebp + 0x50]
push esi
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp + 0x50]
push 0x43de64
push eax
call fcn.00412fe2
int3