Function at 0x404f30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41d1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
mov dword [ebp - 0x14], 0
push eax
push esi
push 0x1fffff
mov dword [ebp - 0x10], 0x32
mov dword [ebp - 0xc], esi
mov word [ebp - 8], 0x500
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4050c4
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x404fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4050c4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405028
call edi
cmp eax, 0x7a
je 0x404feb
call edi
mov ebx, eax
jmp 0x4050c4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x405008
call edi
mov ebx, eax
jmp 0x4050c4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x405028
call edi
mov ebx, eax
jmp 0x4050c4
mov ebx, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea eax, [ebp - 0xc]
push eax
call ebx
test eax, eax
jne 0x405054
call edi
mov ebx, eax
jmp 0x4050c4
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea eax, [ebp - 0xc]
push eax
call ebx
test eax, eax
jne 0x40507a
call edi
mov ebx, eax
jmp 0x4050c4
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4050b4
lea edi, [esi + 4]
push dword [ebp - 0x18]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
push ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40511b
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x405116
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x405083
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x4050c2
mov dword [eax], 1
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x4050d4
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4050de
push eax
call edi
test esi, esi
je 0x4050e9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4050f9
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x405103
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040688e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
jmp 0x4050bc
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x4050c2