Function at 0x10146a5
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x28
push 0xffffffffffffffff
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 2], bl
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10146fc
test byte [0x102407c], 0x10
je 0x10148ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10022d8
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x10148ea
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 3
push dword [ebp - 8]
call esi
test eax, eax
je 0x101473e
test byte [0x102407c], 0x10
je 0x10148e9
push 0x10022d8
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
jmp 0x10148e9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x1014779
test byte [0x102407c], 0x10
je 0x10148e8
call edi
push eax
push 0x10022d8
push 0x12
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x10148e8
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
jne 0x10147a6
test byte [0x102407c], 0x10
je 0x10148e8
call edi
push eax
push 0x10022d8
push 0x13
jmp 0x1014763
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push 3
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10147e3
test byte [0x102407c], 0x10
je 0x10148e8
push 0x10022d8
push 0x14
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
jmp 0x10148e8
and dword [ebp - 0x10], 0
cmp dword [ebx], 0
jbe 0x1014895
lea esi, [ebx + 8]
xor edi, edi
cmp dword [ebp + 8], edi
mov byte [ebp - 1], 0
jbe 0x1014851
cmp byte [ebp - 1], 0
jne 0x101487e
mov eax, dword [esi - 4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + edi*8]
jne 0x1014845
mov ecx, dword [esi]
cmp ecx, dword [edx + edi*8 + 4]
jne 0x1014842
test byte [0x102407c], 0x10
je 0x101483e
push dword [esi + 4]
push eax
push ecx
push edi
push 0x10022d8
push 0x15
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003388
mov byte [ebp - 1], 1
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, dword [ebp + 8]
jb 0x10147fe
cmp byte [ebp - 1], 0
jne 0x101487e
test byte [0x102407c], 0x10
je 0x1014877
push dword [esi - 4]
push dword [esi]
push 0x10022d8
push 0x16
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003433
mov dword [esi + 4], 4
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 0xc
cmp eax, dword [ebx]
jb 0x10147f3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
push eax
push eax
push dword [ebp - 0xc]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10148c3
test byte [0x102407c], 0x10
je 0x10148e8
call edi
push eax
push 0x10022d8
push 0x17
jmp 0x1014763
test byte [0x102407c], 0x10
je 0x10148e4
push 0x10022d8
push 0x18
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov byte [ebp - 2], 1
pop edi
pop esi
cmp dword [ebp - 8], 0
je 0x10148fd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
test ebx, ebx
je 0x1014908
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp byte [ebp - 2], al
pop ebx
setne al
leave
ret 8