Function at 0x4770a8
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 0x4772e5
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 0x4772cf
xor edx, edx
push ebp
push 0x4772c8
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 0x477168
xor eax, eax
push ebp
push 0x477161
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 0x477170
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
ret
mov eax, dword [ebp - 4]
call fcn.0047700c
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 0x4772aa
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 0x477294
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jbe 0x477294
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
test eax, eax
jb 0x477294
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 0x477281
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 0x47726b
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 [0x476dd8]
call fcn.00476f90
mov edx, eax
mov eax, ebx
call fcn.0043ce9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477288
mov eax, dword [ebp - 0x14]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4772b1
mov eax, dword [ebp - 8]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4772ec
lea eax, [ebp - 0x28]
call fcn.00406b40
ret