Function at 0x4f2925
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x699250
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x816078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x44
pop esi
xor edi, edi
lea eax, [ebp - 0x54]
push esi
push edi
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
call fcn.0064f890
add esp, 0xc
mov dword [ebp - 0x68], esi
test ebx, ebx
jne 0x4f29b6
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x15b3c8
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4f2998
push eax
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064c681
mov esp, ebp
pop ebp
ret
cmp dword [0x831b60], edi
je 0x4f29ca
mov eax, dword [0x816f84]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x4f299a
lea eax, [ebp - 0x58]
mov dword [ebx], edi
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4f29fd
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x15b3c9
call dword [eax + 4]
jmp 0x4f2b03
lea eax, [ebp - 0x60]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
je 0x4f2a2d
push 0x15b3ca
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
call dword [eax + 4]
xor edi, edi
jmp 0x4f2b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4f2a3f
push 0x15b3cb
jmp 0x4f2a19
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.004319a9
mov esi, dword [ebp - 0x5c]
test al, al
jne 0x4f2a6a
push 0x15b3cc
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
call dword [eax + 4]
xor edi, edi
jmp 0x4f2af8
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
push esi
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
jne 0x4f2a84
push 0x15b3cd
jmp 0x4f2a56
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x4f2aa1
push 0x15b3ce
jmp 0x4f2a56
xor ecx, ecx
mov dword [ebp - 0x64], ecx
test esi, esi
je 0x4f2b1c
lea eax, [esi + 4]
xor edi, edi
mov dword [ebp - 0x5c], eax
inc edi
cmp ecx, dword [esi]
jae 0x4f2aeb
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4f2ad6
mov eax, dword [ebp - 0x5c]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4f2ae5
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
inc ecx
mov dword [ebp - 0x64], ecx
add eax, 8
jmp 0x4f2aad
mov dword [ebx], edi
mov eax, edi
jmp 0x4f2aed
mov eax, dword [ebx]
mov dword [0x831b60], edi
mov dword [0x816f84], eax
test esi, esi
je 0x4f2b03
push esi
call fcn.0064e37d
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4f2b15
and dword [ebp - 0x58], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4f299a
push 0
push 0x8c2697
call fcn.00422704
int3