Function at 0x478740
Capabilities:
Get session information
Get session user name
Get user security identifier
List groups for user account

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7beb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41c], ebx
call fcn.0048b870
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4787a4
push 0x80004005
call fcn.004091f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x43c], esi
xor eax, eax
push 0x1fe
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.005a7690
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0
call fcn.005a7690
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x420], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x47896a
mov edi, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x430]
push eax
push 5
push dword [ebp - 0x414]
push 0
call edi
test eax, eax
je 0x47896a
cmp dword [ebp - 0x430], 0
je 0x47896a
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x434]
push eax
push 7
push dword [ebp - 0x414]
push 0
call edi
test eax, eax
je 0x47896a
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x47897b
push dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x43c]
push 0x60e0d4
push eax
call fcn.0041c0f0
mov esi, dword [ebp - 0x43c]
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x438]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetLocalGroups]
test eax, eax
jne 0x47896a
xor edi, edi
cmp dword [ebp - 0x418], edi
jbe 0x47896a
mov ebx, dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
mov edi, edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x420], 0x200
mov dword [ebp - 0x424], 0x100
push dword [eax + edi*4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x478968
push 0x1a
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x4789dc
inc edi
cmp edi, dword [ebp - 0x418]
jb 0x478900
xor ebx, ebx
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x47897b
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x47898c
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x47899d
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4789be
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x47896a