Function at 0x10d26f5
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 [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x10d2735
test byte [eax + 0x1c], 1
je 0x10d2735
cmp byte [eax + 0x19], 4
jb 0x10d2735
push 0x100fe68
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x10d2774
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10d276c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10d28a8
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10d279b
test byte [eax + 0x1c], 1
je 0x10d279b
cmp byte [eax + 0x19], 5
jb 0x10d279b
push 0x100fe68
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea eax, [ebp - 0x68]
push eax
call fcn.01054f94
mov ecx, eax
call fcn.010527cb
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.01054aaf
test bl, bl
je 0x10d27d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10d2762
jmp 0x10d276c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2802
test byte [eax + 0x1c], 1
je 0x10d2802
cmp byte [eax + 0x19], 5
jb 0x10d2802
push 0x100fe68
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea eax, [ebp - 0x68]
push eax
call fcn.01054fc3
mov ecx, eax
call fcn.010527cb
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.01054aaf
test bl, bl
jne 0x10d27cc
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d28e0
test byte [eax + 0x1c], 1
mov ebx, 0x1002558
mov esi, 0x100254c
je 0x10d2876
cmp byte [eax + 0x19], 4
jb 0x10d2876
cmp dword [edi], 0
mov ecx, ebx
jne 0x10d285e
mov ecx, esi
push ecx
push 0x100fe68
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d28e0
test byte [eax + 0x1c], 1
je 0x10d28e0
cmp byte [eax + 0x19], 4
jb 0x10d28e0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
mov ecx, ebx
jne 0x10d2895
mov ecx, esi
push ecx
push 0x100fe68
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
cmp dword [ebp - 4], 0
jge 0x10d28db
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d28e0
test byte [eax + 0x1c], 1
je 0x10d28e0
cmp byte [eax + 0x19], 2
jb 0x10d28e0
push dword [ebp - 4]
push 0x100fe68
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp dword [ebp - 8], 0xffffffff
pop edi
pop esi
pop ebx
je 0x10d28f7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d291c
test byte [eax + 0x1c], 1
je 0x10d291c
cmp byte [eax + 0x19], 4
jb 0x10d291c
push 0x100fe68
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
leave
ret 8