Function at 0x4549b0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b60fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x454df5
xor edi, edi
cmp dword [ebp - 0x18], ebx
jbe 0x454dec
xor esi, esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x5e791c
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x10]
push 5
push dword [esi + eax]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x454b3e
cmp dword [ebp - 0x1c], 1
jbe 0x454b3e
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00446140
mov edx, str.STATION_id:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
push dword [esi + ecx]
mov ecx, eax
call fcn.004462d0
mov edx, 0x5e794c
mov ecx, eax
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + ecx + 4]
mov ecx, eax
call fcn.0044d180
mov edx, str._USER:
mov ecx, eax
call fcn.0044d180
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.0044d180
mov edx, str.__status:
mov ecx, eax
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
push dword [esi + ecx + 8]
mov ecx, eax
call fcn.00446440
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004492b0
or ebx, 0x20
push 0x137
mov edx, str.Service.cpp
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004d1c90
mov byte [ebp - 4], 0
add esp, 4
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x454b1e
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454b14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454ec4
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b280
push dword [ebp - 0x14]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x454ddf
mov dword [ebp - 0xe8], 0x5dee48
mov dword [ebp - 0xd8], 0x5dee40
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 2
lea eax, [ebp - 0xd0]
push 0
or ebx, 1
mov dword [ebp - 0x80], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x84], 0x50
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.0044bba0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xdc], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xec], eax
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xd0]
call fcn.0044b960
mov dword [ebp - 0xd0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov edx, str.STATION_id:
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xd8]
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
push dword [esi + ecx]
mov ecx, eax
call fcn.004462d0
mov edx, 0x5e794c
mov ecx, eax
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + ecx + 4]
mov ecx, eax
call fcn.0044d180
mov edx, str.__status:
mov ecx, eax
call fcn.0044d180
mov ecx, dword [ebp - 0x10]
push dword [esi + ecx + 8]
mov ecx, eax
call fcn.00446440
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004492b0
or ebx, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
push 0x13b
mov edx, str.Service.cpp
call fcn.004d1c90
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x454d17
mov eax, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x454d0d
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x454ec4
push edx
push eax
call fcn.00583877
add esp, 8
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xd0]
call fcn.00445d60
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xec], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xdc], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xec], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.0057190c
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0x18]
jb 0x454a03
push dword [ebp - 0x10]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00457390
mov edx, str.ACTIVE:
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x188]
call fcn.0044d510
xor ecx, ecx
mov esi, eax
call fcn.00453e90
push eax
mov ecx, esi
call fcn.00446940
mov edx, 0x5de5ac
mov ecx, eax
call fcn.0044d510
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ecx, esi
shr edx, 6
push edx
call fcn.00446940
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x198]
call fcn.004572c0
push 0x13f
mov edx, str.Service.cpp
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004d1220
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 0x10
jb 0x454ea8
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454e9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454ec4
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x198]
call fcn.00454000
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00591c98
int3