Function at 0x49ad8c
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 0x49afc9
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 0x49afb3
xor edx, edx
push ebp
push 0x49afac
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.004045a4
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 0x49ae4c
xor eax, eax
push ebp
push 0x49ae45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004045d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ae54
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
ret
mov eax, dword [ebp - 4]
call fcn.0049acf0
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.004045a4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x49af8e
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 0x49af78
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jbe 0x49af78
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
test eax, eax
jb 0x49af78
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.004045a4
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x49af65
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 0x49af4f
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.004089d8
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x49aabc]
call fcn.0049ac74
mov edx, eax
mov eax, ebx
call fcn.00441770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49af6c
mov eax, dword [ebp - 0x14]
call fcn.004045d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49af95
mov eax, dword [ebp - 8]
call fcn.004045d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49afd0
lea eax, [ebp - 0x28]
call fcn.00407aec
ret