Function at 0x102b418
Capabilities:
Get token membership

Disassembly:
mov eax, 0x103643b
call fcn.01027f58
sub esp, 0x68
mov eax, dword [0x10400ac]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x100d248
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x74], esp
xor ebx, ebx
push ebx
push 0x4000
push 0xa8
mov edi, 0x100d134
push edi
mov esi, 0x100d0b8
push esi
call fcn.01011a74
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011ae8
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x102b505
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x102b4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102b4d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
push 0x100d214
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x6c], esp
push ebx
push 0x4000
push 0xc5
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.01028eb0
add esp, 0x4c
mov byte [ebp - 4], 3
cmp byte [ebp + 0xc], bl
jne 0x102b520
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov dword [ebp - 0x2c], eax
jmp 0x102b55f
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0102b212
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.0102b238
test eax, eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
je 0x102b54a
push dword [ebp - 0x24]
jmp 0x102b54b
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0102b212
cmp dword [ebp - 0x2c], ebx
jne 0x102b653
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x102b57a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102b58a
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
push 0x100d1e8
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x54], esp
push ebx
push 0x4000
push 0xdf
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.01028eb0
add esp, 0x4c
jmp 0x102b653
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], ebx
je 0x102b70e
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x102b70e
mov dword [ebp - 4], 1
cmp esi, ebx
jge 0x102b72a
mov dword [ebp - 0x4c], esi
push 0x1037534
lea eax, [ebp - 0x4c]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp - 0x28], ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011b91
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 8