Function at 0x495bec
Capabilities:
List groups for user account
List user accounts

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x495bf4
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495e5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 2
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00407bf4
push eax
call sub.netapi32.dll_NetUserEnum
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x495e37
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jbe 0x495e37
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
dec eax
test eax, eax
jl 0x495e37
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
add eax, 0xffffffec
mov edx, dword [ebp - 8]
shl edx, 2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov edx, dword [ecx + edx*8]
call fcn.00407c4c
push 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00407bf4
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xffffffec
mov dl, 1
call fcn.00495870
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, 0xffffffd8
call fcn.0040743c
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov eax, dword [edx + eax*8 + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
and eax, 2
test al, 2
jne 0x495e2b
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x1c], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x20], edx
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
push eax
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
push eax
push 1
push 0
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov eax, dword [edx + eax*8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00407bf4
push eax
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x495e1f
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1c], 0
jbe 0x495df3
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
shl edx, 2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov edx, dword [ecx + edx*8]
call fcn.00407c4c
mov eax, dword [ebp - 0x18]
call fcn.00495aa8
pop ecx
test al, al
je 0x495df3
mov eax, dword [ebp + 8]
push dword [eax - 0x28]
push 0x495e78
mov eax, dword [ebp + 8]
push dword [eax - 0x14]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407ed8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x495df3
mov eax, dword [ebp + 8]
push dword [eax - 0x28]
push 0x495e78
mov eax, dword [ebp + 8]
push dword [eax - 0x14]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00407ed8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
shl eax, 2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov ecx, dword [ecx + eax*8 + 0xc]
add ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp + 8]
push dword [eax - 0x28]
push 0x495e78
mov eax, dword [ebp + 8]
push dword [eax - 0x14]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407ed8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.netapi32.dll_NetApiBufferFree
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x495c8d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.netapi32.dll_NetApiBufferFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495e65
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00407074
ret