Function at 0x4048a0
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50682b
push eax
mov eax, 0x281c
mov dword fs:[0], esp
call fcn.00435360
mov eax, dword [0x543c98]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x2834], esi
call fcn.0047a5d0
test eax, eax
jne 0x40491b
lea ecx, [esp + 0x10]
push str.CEnablePrivilege::IsAdminProc___win_9x_granted____r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push esi
push 2
push edx
call fcn.0041e3a0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
mov eax, 1
jmp 0x404ba7
lea eax, [esp + 0x14]
lea ebx, [esp + 0x2c]
push eax
push 8
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.CEnablePrivilege::IsAdminProc___OpenProcessToken___failed___error___u__r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x1c]
push esi
push 2
push edx
call fcn.0041e3a0
add esp, 0x18
jmp 0x404ae7
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
push 0x2800
push ecx
push 2
push edx
call ebp
cmp eax, esi
jne 0x404a33
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x404ab5
mov edi, dword [esp + 0x18]
push edi
call fcn.004eae0a
mov esi, eax
add esp, 4
test esi, esi
jne 0x4049fa
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call ebx
push eax
push str.CEnablePrivilege::IsAdminProc___malloc_buffer_failed___error___u__buffersize___u_r_n
lea edx, [esp + 0x1c]
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x20]
push 0
push 2
push eax
jmp 0x404adf
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push 2
push edx
call ebp
test eax, eax
jne 0x404a31
push esi
call fcn.004eae33
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call ebx
push eax
push str.CEnablePrivilege::IsAdminProc___GetTokenInformation___failed___error___u__buffersize___u_r_n
jmp 0x4049e2
mov ebx, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea ecx, [esp + 0x40]
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x404b02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.CEnablePrivilege::IsAdminProc___AllocateAndInitializeSid___failed___error___u__r_n
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x1c]
push edi
push 2
push eax
call fcn.0041e3a0
add esp, 0x18
cmp esi, edi
je 0x404a9a
push esi
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x404ba7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call ebx
push eax
lea eax, [esp + 0x18]
push str.CEnablePrivilege::IsAdminProc___GetTokenInformation___failed___error___u__buffersize___u_r_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x20]
push esi
push 2
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x404ba7
mov eax, dword [ebx]
mov dword [esp + 0x28], edi
test eax, eax
jbe 0x404b36
lea ebp, [ebx + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x404b2e
mov eax, dword [ebx]
inc edi
add ebp, 8
cmp edi, eax
jb 0x404b0f
jmp 0x404b36
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x404b4e
push esi
call fcn.004eae33
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404b91
call fcn.0047a6b0
test eax, eax
je 0x404b91
push 0xc0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x404b8a
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x404ba7
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
mov eax, esi
mov ecx, dword [esp + 0x282c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2828
ret