Function at 0x481e34
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482071
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebp - 0x18]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48205b
xor edx, edx
push ebp
push 0x482054
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x1c]
call fcn.004044d8
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push 1
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x481ef4
xor eax, eax
push ebp
push 0x481eed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040450c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481efc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
ret
mov eax, dword [ebp - 4]
call fcn.00481d98
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x1c]
call fcn.004044d8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x482036
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
push 3
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x482020
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jbe 0x482020
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
test eax, eax
jb 0x482020
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameW
mov eax, dword [ebp - 0x1c]
inc eax
add eax, eax
call fcn.004044d8
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x48200d
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameW
test eax, eax
je 0x481ff7
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.004079dc
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x481b64]
call fcn.00481d1c
mov edx, eax
mov eax, ebx
call fcn.0043d240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482014
mov eax, dword [ebp - 0x14]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48203d
mov eax, dword [ebp - 8]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482078
lea eax, [ebp - 0x28]
call fcn.00406b40
ret