Function at 0x10466db
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 3
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call esi
push dword [ebp - 0x10]
call sub.NMSUPP.dll_AllocMemory
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x24], edi
jne 0x1046724
mov dword [ebp - 4], 0xe
jmp 0x10468ce
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 3
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1046745
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10468a4
mov eax, dword [edi]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.NMSUPP.dll_AllocMemory
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x1046768
mov dword [ebp - 4], 0xe
jmp 0x10468a4
push 0x20a
mov ebx, 0x104
call sub.NMSUPP.dll_AllocMemory
test eax, eax
mov dword [ebp + 8], eax
jne 0x104678a
mov dword [ebp - 4], 0xe
jmp 0x10468a2
and dword [ebp - 0x1c], 0
cmp dword [edi], 0
jbe 0x1046891
add edi, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
push 0
call esi
test eax, eax
jne 0x104683b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 4], eax
jne 0x1046891
cmp dword [ebp - 8], ebx
jbe 0x1046891
push dword [ebp + 8]
and dword [ebp - 4], 0
call sub.NMSUPP.dll_FreeMemory
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
call sub.NMSUPP.dll_AllocMemory
mov edx, eax
test edx, edx
mov dword [ebp + 8], edx
je 0x104687f
mov ecx, dword [ebp - 8]
lea ecx, [ecx + ecx + 2]
mov ebx, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ebx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push edx
push dword [ebp - 0xc]
push 0
call esi
test eax, eax
je 0x1046888
xor esi, esi
push dword [esi + 0x1004ea0]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1046868
add esi, 4
cmp esi, 4
jb 0x104683d
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
inc dword [ebp - 0x20]
add dword [ebp - 0x18], 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0xc], 0xc
cmp ecx, dword [eax]
jb 0x10467a0
jmp 0x1046891
mov dword [ebp - 4], 0xe
jmp 0x104689f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x104689f
push dword [ebp + 8]
call sub.NMSUPP.dll_FreeMemory
mov edi, dword [ebp - 0x24]
xor ebx, ebx
push edi
call sub.NMSUPP.dll_FreeMemory
cmp dword [ebp - 4], ebx
jne 0x10468c1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x10468ce
cmp dword [ebp - 0x14], ebx
je 0x10468ce
push dword [ebp - 0x14]
call sub.NMSUPP.dll_FreeMemory
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc