Function at 0x1029683
Capabilities:
Get token privileges

Disassembly:
mov eax, 0x107679f
call fcn.0101eabc
sub esp, 0xe0
mov eax, dword [0x108e558]
or dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push 0x28
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10296e7
push 0x73
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov byte [ebp - 4], 1
call fcn.01018d79
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x1004274
jmp 0x10298ea
push esi
push edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
inc eax
lea ecx, [ebp - 0x78]
push ecx
neg eax
push ebx
sbb eax, eax
and eax, dword [ebp - 0x74]
push ebx
push 3
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x1029740
push 0x81
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
push 0x8000ffff
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0105cff5
push 0x1004254
jmp 0x10298ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
je 0x1029786
push 0x8b
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
cmp edi, ebx
mov byte [ebp - 4], 4
jle 0x1029773
and edi, 0xffff
or edi, 0x80070000
push edi
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x1004238
jmp 0x10298ea
push 0x10022ce
push dword [ebp - 0x78]
call fcn.0101d413
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x10297af
push 0x8e
push 0x1004110
push 0x8007000e
call fcn.0105c842
lea ecx, [ebp - 0x7c]
call fcn.0101cbe9
mov eax, dword [ebp - 0x74]
inc eax
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x78]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x74]
push edi
push 3
push eax
mov dword [ebp - 0x7c], edi
call esi
test eax, eax
jne 0x10297f4
push 0x99
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov byte [ebp - 4], 5
call fcn.01018d79
push eax
jmp 0x1029774
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x84]
push eax
push 0x1004208
push ebx
call esi
test eax, eax
jne 0x102983b
push 0xa5
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov byte [ebp - 4], 6
call fcn.01018d79
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x10041ec
jmp 0x10298ea
lea eax, [ebp - 0x8c]
push eax
push 0x10041b0
push ebx
call esi
test eax, eax
jne 0x1029866
push 0xae
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov byte [ebp - 4], 7
jmp 0x1029823
xor edx, edx
cmp dword [edi], ebx
jbe 0x10298a2
lea eax, [edi + 8]
mov ecx, dword [eax - 4]
cmp ecx, dword [ebp - 0x84]
jne 0x1029881
mov esi, dword [eax]
cmp esi, dword [ebp - 0x80]
je 0x102989a
cmp ecx, dword [ebp - 0x8c]
jne 0x1029893
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x88]
je 0x102989a
mov dword [eax + 4], 4
inc edx
add eax, 0xc
cmp edx, dword [edi]
jb 0x102986f
mov eax, dword [ebp - 0x74]
push ebx
push ebx
push dword [ebp - 0x78]
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x74]
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
pop edi
pop esi
jne 0x1029915
push 0xca
push 0x1004110
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov byte [ebp - 4], 8
call fcn.01018d79
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x1004190
lea eax, [ebp - 0x70]
push eax
call fcn.0105cf3a
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xec]
call fcn.0101c3dd
push 0x107e340
lea eax, [ebp - 0xec]
push eax
call fcn.0101e3fa
lea ecx, [ebp - 0x7c]
call fcn.0101cbe9
lea ecx, [ebp - 0x74]
call fcn.01019ebe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d2f1
leave
ret