Function at 0x4882cd
Capabilities:
Get token membership

Disassembly:
push 0xf8
mov eax, 0x44ef36
call fcn.0043bccd
mov edi, ecx
mov dword [ebp - 0xc8], edi
xor ebx, ebx
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xdc], ebx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc4]
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 - 0xbc], esi
test esi, esi
jne 0x488352
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3f0
jne 0x48840b
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xbc], 1
push 0x4a0d24
push 1
push 0x4a0d08
lea ecx, [ebp - 0xd0]
call fcn.0041e651
push 0x4a0cf0
push 2
push 0x4a0d00
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.0041e651
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0xd8]
push eax
push esi
push dword [ebp - 0xc4]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov edi, dword [ebp - 0xd4]
lea eax, [ebp - 0xdc]
push eax
push edi
push dword [ebp - 0xc4]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
cmp dword [ebp - 0xc4], 0
je 0x4883cd
push dword [ebp - 0xc4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test edi, edi
je 0x4883e6
mov byte [ebp - 4], 2
push edi
mov edi, dword [0x402f60]
mov ecx, edi
call dword [0x4a3670]
call edi
test esi, esi
je 0x4883ff
mov byte [ebp - 4], 3
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
mov esi, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc0], 0
jl 0x48841e
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
test esi, esi
je 0x48869e
cmp dword [ebp - 0xd8], 0
jne 0x48843c
cmp dword [ebp - 0xdc], 0
je 0x48869e
lea eax, [edi + 0x2c]
lea ecx, [edi + 0x30]
push eax
push ecx
lea ecx, [ebp - 0x100]
call fcn.0042407d
push 1
push 0x4a189c
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 4
call fcn.00486155
mov esi, eax
mov dword [ebp - 0xd0], esi
test esi, esi
js 0x488661
push dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
call fcn.0043579d
test eax, eax
je 0x488564
push eax
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00435756
mov ecx, dword [esi + 0x24]
sub ecx, 0x10
mov dword [ebp - 0xd4], eax
call fcn.00429040
add eax, 0x10
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x38], 0
jne 0x4884fe
mov eax, dword [0x4a18b0]
lea ecx, [ebp - 0xc8]
push dword [eax - 0xc]
lea eax, [ebp - 0xc0]
push eax
call fcn.004224ed
push dword [0x4a18b0]
or dword [ebp - 0xcc], 1
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov byte [ebp - 0xb5], bl
pop ecx
pop ecx
test eax, eax
je 0x488505
mov byte [ebp - 0xb5], 1
mov eax, dword [ebp - 0xcc]
test al, 1
je 0x488526
mov ecx, dword [ebp - 0xc0]
and eax, 0xfffffffe
mov dword [ebp - 0xcc], eax
lea ecx, [ecx - 0x10]
call fcn.00429900
cmp byte [ebp - 0xb5], 0
je 0x48853e
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x100]
call fcn.004874b1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xc8]
add ecx, 0xfffffff0
call fcn.00429900
mov eax, dword [ebp - 0xd4]
test eax, eax
jne 0x488491
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x100]
mov ecx, edi
push eax
call fcn.00484d0a
push 0x4a1724
lea ecx, [ebp - 0xbc]
call fcn.004240ea
lea eax, [edi + 0x30]
mov byte [ebp - 4], 7
push eax
mov edx, 0x4a18a8
lea ecx, [ebp - 0xc0]
call fcn.00423f7c
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.004258e2
mov ecx, dword [ebp - 0xc0]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov dword [ebp - 4], 6
jmp 0x4885ea
test esi, esi
js 0x488653
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], 0xa
lea ecx, [ebp - 0xb4]
mov esi, dword [ebp - 0xbc]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00429520
test eax, eax
js 0x488646
push dword [edi + 0x2c]
lea ecx, [ebp - 0xb4]
call fcn.0046fbc0
lea ecx, [ebp - 0xb4]
call fcn.0042535f
jmp 0x488659
mov esi, dword [ebp - 0xbc]
lea ecx, [esi - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0xe4]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00429900
lea ecx, [ebp - 0x100]
call fcn.0042bd87
cmp dword [ebp - 0xec], 0
je 0x48869e
push dword [ebp - 0xec]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.0043bc1f
ret