Function at 0x4b6250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eed1
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5bf094]
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
lea eax, [ebp - 0xf8]
push eax
xor edi, edi
push 8
mov dword [ebp - 0x110], ecx
mov byte [ecx], 0
mov dword [ebp - 0xf8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4b62d4
push 1
push str.mailru::is_admin::is_admin
push str.is_admin.cpp
push 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00403e00
push 0x5a15c8
lea ecx, [ebp - 0x7c]
push ecx
call fcn.004b9346
mov esi, dword [ebp - 0xf8]
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edx
mov byte [ebp - 0x114], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xec], edi
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.004b6710
add eax, 4
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push esi
call edi
test eax, eax
sete bl
dec dword [ebp - 0x100]
jne 0x4b6356
mov eax, dword [ebp - 0x108]
cmp dword [ebp - 0x104], eax
jae 0x4b6356
mov ecx, dword [ebp - 0x10c]
push eax
call fcn.00412010
test bl, bl
je 0x4b63fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4b637c
push 1
push str.mailru::is_admin::is_admin
push str.is_admin.cpp
push 0x1d
jmp 0x4b62bd
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0xf4]
call fcn.004b6710
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xf0]
add eax, 4
push eax
sub ecx, edx
push ecx
push edx
push 2
push esi
call edi
test eax, eax
sete bl
dec dword [ebp - 0x100]
jne 0x4b63ce
mov eax, dword [ebp - 0x108]
cmp dword [ebp - 0x104], eax
jae 0x4b63ce
mov ecx, dword [ebp - 0x10c]
push eax
call fcn.00412010
test bl, bl
je 0x4b63fd
push 1
push str.mailru::is_admin::is_admin
push str.is_admin.cpp
push 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0x7c]
push eax
jmp 0x4b62cf
lea ecx, [ebp - 0x11c]
call fcn.004574c0
xor esi, esi
lea ecx, [ebp - 0xe4]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4b646e
push 1
push str.mailru::is_admin::is_admin
push str.is_admin.cpp
push 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xe0]
push eax
jmp 0x4b62cf
lea ecx, [ebp - 0xe4]
lea edx, [ebp - 0xfc]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf4]
sub eax, ecx
mov byte [ebp - 4], 2
je 0x4b64d9
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, dword [ebp - 0x110]
cmp esi, dword [ecx]
jae 0x4b64e3
cmp byte [edi], 0
jne 0x4b64e3
test eax, eax
je 0x4b64d9
mov eax, dword [ecx + esi*8 + 4]
mov ecx, dword [ebp - 0xe4]
push eax
push ecx
call ebx
test eax, eax
je 0x4b64c8
mov byte [edi], 1
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf4]
inc esi
sub eax, ecx
jne 0x4b64a0
push str.invalid_vector_T__subscript
call fcn.00469b64
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xf4]
xor esi, esi
cmp eax, esi
je 0x4b6507
push eax
call fcn.004b8946
add esp, 4
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
je 0x4b652d
lea ecx, [ebp - 0x11c]
call fcn.004574c0
mov eax, edi
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.004b92b7
mov esp, ebp
pop ebp
ret