Function at 0x10147ef
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 0x1014846
test byte [0x102407c], 0x10
je 0x1014a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002310
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x1014a34
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 0x1014888
test byte [0x102407c], 0x10
je 0x1014a33
push 0x1002310
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x1014a33
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x10148c3
test byte [0x102407c], 0x10
je 0x1014a32
call edi
push eax
push 0x1002310
push 0x12
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x1014a32
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 0x10148f0
test byte [0x102407c], 0x10
je 0x1014a32
call edi
push eax
push 0x1002310
push 0x13
jmp 0x10148ad
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push 3
push dword [ebp - 8]
call esi
test eax, eax
jne 0x101492d
test byte [0x102407c], 0x10
je 0x1014a32
push 0x1002310
push 0x14
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x1014a32
and dword [ebp - 0x10], 0
cmp dword [ebx], 0
jbe 0x10149df
lea esi, [ebx + 8]
xor edi, edi
cmp dword [ebp + 8], edi
mov byte [ebp - 1], 0
jbe 0x101499b
cmp byte [ebp - 1], 0
jne 0x10149c8
mov eax, dword [esi - 4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + edi*8]
jne 0x101498f
mov ecx, dword [esi]
cmp ecx, dword [edx + edi*8 + 4]
jne 0x101498c
test byte [0x102407c], 0x10
je 0x1014988
push dword [esi + 4]
push eax
push ecx
push edi
push 0x1002310
push 0x15
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003414
mov byte [ebp - 1], 1
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, dword [ebp + 8]
jb 0x1014948
cmp byte [ebp - 1], 0
jne 0x10149c8
test byte [0x102407c], 0x10
je 0x10149c1
push dword [esi - 4]
push dword [esi]
push 0x1002310
push 0x16
push dword [0x1024074]
push dword [0x1024070]
call fcn.010033e2
mov dword [esi + 4], 4
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 0xc
cmp eax, dword [ebx]
jb 0x101493d
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 0x1014a0d
test byte [0x102407c], 0x10
je 0x1014a32
call edi
push eax
push 0x1002310
push 0x17
jmp 0x10148ad
test byte [0x102407c], 0x10
je 0x1014a2e
push 0x1002310
push 0x18
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov byte [ebp - 2], 1
pop edi
pop esi
cmp dword [ebp - 8], 0
je 0x1014a47
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
test ebx, ebx
je 0x1014a52
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp byte [ebp - 2], al
pop ebx
setne al
leave
ret 8