Function at 0x10d26d4
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
or dword [ebp - 8], 0xffffffff
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x10d2714
test byte [eax + 0x1c], 1
je 0x10d2714
cmp byte [eax + 0x19], 4
jb 0x10d2714
push 0x100fe68
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x10d2753
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10d274b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10d2887
mov eax, dword [0x111024c]
cmp eax, esi
je 0x10d277a
test byte [eax + 0x1c], 1
je 0x10d277a
cmp byte [eax + 0x19], 5
jb 0x10d277a
push 0x100fe68
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0x68]
push eax
call fcn.010550b4
mov ecx, eax
call fcn.010529ab
mov esi, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push edi
push eax
push dword [ebp - 8]
call esi
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x68]
inc bl
call fcn.01054bcf
test bl, bl
je 0x10d27b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10d2741
jmp 0x10d274b
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d27e1
test byte [eax + 0x1c], 1
je 0x10d27e1
cmp byte [eax + 0x19], 5
jb 0x10d27e1
push 0x100fe68
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0x68]
push eax
call fcn.010550e3
mov ecx, eax
call fcn.010529ab
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call esi
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x68]
inc bl
call fcn.01054bcf
test bl, bl
jne 0x10d27ab
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d28bf
test byte [eax + 0x1c], 1
mov ebx, 0x1002558
mov esi, 0x100254c
je 0x10d2855
cmp byte [eax + 0x19], 4
jb 0x10d2855
cmp dword [edi], 0
mov ecx, ebx
jne 0x10d283d
mov ecx, esi
push ecx
push 0x100fe68
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d28bf
test byte [eax + 0x1c], 1
je 0x10d28bf
cmp byte [eax + 0x19], 4
jb 0x10d28bf
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
mov ecx, ebx
jne 0x10d2874
mov ecx, esi
push ecx
push 0x100fe68
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
cmp dword [ebp - 4], 0
jge 0x10d28ba
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d28bf
test byte [eax + 0x1c], 1
je 0x10d28bf
cmp byte [eax + 0x19], 2
jb 0x10d28bf
push dword [ebp - 4]
push 0x100fe68
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0xffffffff
pop edi
pop esi
pop ebx
je 0x10d28d6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d28fb
test byte [eax + 0x1c], 1
je 0x10d28fb
cmp byte [eax + 0x19], 4
jb 0x10d28fb
push 0x100fe68
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 8