Function at 0x4886a4
Capabilities:
Get token membership

Disassembly:
push 0x130
mov eax, 0x44efb6
call fcn.0043bccd
mov edi, ecx
mov dword [ebp - 0xc8], edi
xor ebx, ebx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], ebx
push eax
push 1
push 8
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
mov esi, eax
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x488723
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4887dc
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xb8], 1
push 0x4a0d24
push 1
push 0x4a0d08
lea ecx, [ebp - 0xd4]
call fcn.0041e651
push 0x4a0cf0
push 2
push 0x4a0d00
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041e651
mov esi, dword [ebp - 0xd4]
lea eax, [ebp - 0xcc]
push eax
push esi
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov edi, dword [ebp - 0xc4]
lea eax, [ebp - 0xd0]
push eax
push edi
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
cmp dword [ebp - 0xc0], 0
je 0x48879e
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test edi, edi
je 0x4887b7
mov byte [ebp - 4], 2
push edi
mov edi, dword [0x402f60]
mov ecx, edi
call dword [0x4a3670]
call edi
test esi, esi
je 0x4887d0
mov byte [ebp - 4], 3
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
mov esi, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xc8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xbc], 0
jl 0x4887ef
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
test esi, esi
je 0x488aa7
cmp dword [ebp - 0xcc], 0
jne 0x48880d
cmp dword [ebp - 0xd0], 0
je 0x488aa7
lea esi, [edi + 0x2c]
lea eax, [edi + 0x30]
push esi
push eax
lea ecx, [ebp - 0xf8]
call fcn.004237a5
push esi
lea eax, [edi + 0x30]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x13c]
call fcn.0042407d
push esi
lea eax, [edi + 0x30]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x11c]
call fcn.0042407d
push ecx
push ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
call fcn.00485fd0
test eax, eax
js 0x4889f0
push ebx
push 0x4a1898
lea ecx, [ebp - 0x11c]
call fcn.00486155
test eax, eax
js 0x4889f0
push ebx
push 0x4a189c
lea ecx, [ebp - 0x13c]
call fcn.00486155
mov esi, eax
mov dword [ebp - 0xc4], esi
test esi, esi
js 0x4889f0
push dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
call fcn.00435809
test eax, eax
je 0x4888e5
push eax
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.004357c2
mov ecx, dword [edi + 0x54]
mov dword [ebp - 0xbc], eax
lea eax, [esi + 4]
push eax
push dword [esi]
call fcn.00422084
mov eax, dword [ebp - 0xbc]
test eax, eax
jne 0x4888b3
mov esi, dword [ebp - 0xc4]
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00484d0a
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.00484d0a
push 0x4a1724
lea ecx, [ebp - 0xb8]
call fcn.004240ea
lea eax, [edi + 0x30]
mov byte [ebp - 4], 8
push eax
mov edx, 0x4a18a4
lea ecx, [ebp - 0xbc]
call fcn.00423f7c
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 9
call fcn.004258e2
mov ecx, dword [ebp - 0xbc]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov dword [ebp - 4], 7
jmp 0x488979
test esi, esi
js 0x4889e2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb4], 0x401524
call fcn.004253b2
mov dword [ebp - 0xb4], 0x4014c0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x2001f
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xb4]
mov esi, dword [ebp - 0xb8]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00429520
test eax, eax
js 0x4889d5
push dword [edi + 0x2c]
lea ecx, [ebp - 0xb4]
call fcn.0046fbc0
lea ecx, [ebp - 0xb4]
call fcn.0042535f
jmp 0x4889e8
mov esi, dword [ebp - 0xb8]
lea ecx, [esi - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0x104]
lea ecx, [ecx - 0x10]
call fcn.00429900
lea ecx, [ebp - 0x11c]
call fcn.0042bd87
cmp dword [ebp - 0x108], 0
je 0x488a2d
push dword [ebp - 0x108]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 0x120]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0x124]
lea ecx, [ecx - 0x10]
call fcn.00429900
lea ecx, [ebp - 0x13c]
call fcn.0042bd87
cmp dword [ebp - 0x128], 0
je 0x488a6a
push dword [ebp - 0x128]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 0xdc]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0xe0]
lea ecx, [ecx - 0x10]
call fcn.00429900
lea ecx, [ebp - 0xf8]
call fcn.00423320
cmp dword [ebp - 0xe4], 0
je 0x488aa7
push dword [ebp - 0xe4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.0043bc1f
ret