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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b657b
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x61f138]
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
lea eax, [ebp - 0x34]
xor edi, edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], edi
push eax
push 1
push edi
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x453f9d
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x34], edi
jbe 0x453f94
xor ebx, ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0x5ece04
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 0
push eax
mov eax, dword [ebp - 0x2c]
push 5
push dword [ebx + eax]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x453cb0
cmp dword [ebp - 0x38], 1
jbe 0x453cb0
sub esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00442390
mov dword [ebp - 4], 0
mov edx, str.STATION_id:
mov esi, dword [ebp - 0x2c]
push dword [esi + ebx + 8]
push dword [esi + ebx]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.0044a500
add esp, 4
mov ecx, eax
call fcn.00442ba0
mov edx, 0x5eca30
mov ecx, eax
call fcn.0044a500
mov edx, dword [esi + ebx + 4]
mov ecx, eax
call fcn.0044a500
mov edx, str._USER:
mov ecx, eax
call fcn.0044a500
mov edx, dword [ebp - 0x30]
mov ecx, eax
call fcn.0044a500
push ecx
mov edx, str.__status:
mov ecx, eax
call fcn.0044a500
add esp, 4
mov ecx, eax
call fcn.00442d30
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004466f0
or edi, 1
push 0x135
mov edx, str.service.cpp
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004c37b0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x453c90
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x453c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45407d
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.0043ae30
push dword [ebp - 0x30]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x453f81
mov dword [ebp - 0xf8], 0x5ec86c
mov dword [ebp - 0xe8], 0x5ec864
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x90]
or edi, 2
mov dword [ebp - 0x90], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x94], 0x50
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
call fcn.00436840
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x54], 0
push 0x20
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x58], eax
call fcn.00448c30
cmp dword [ebp - 0x58], 0
mov word [ebp - 0x50], ax
jne 0x453d42
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x90]
push 0
or eax, 4
push eax
call fcn.004367c0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xec], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xfc], eax
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xe0]
call fcn.004485b0
mov dword [ebp - 0xe0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 8
mov edx, str.STATION_id:
mov esi, dword [ebp - 0x2c]
push dword [esi + ebx + 8]
push dword [esi + ebx]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.0044a500
add esp, 4
mov ecx, eax
call fcn.00442ba0
mov edx, 0x5eca30
mov ecx, eax
call fcn.0044a500
mov edx, dword [esi + ebx + 4]
mov ecx, eax
call fcn.0044a500
push ecx
mov edx, str.__status:
mov ecx, eax
call fcn.0044a500
add esp, 4
mov ecx, eax
call fcn.00442d30
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004466f0
or edi, 0x20
push 0x139
mov edx, str.service.cpp
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.004c37b0
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x453eb3
mov eax, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x453ea9
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x45407d
push edx
push eax
call fcn.0056eec5
add esp, 8
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xe0]
call fcn.00442a20
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xfc], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xec], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xfc], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.0055c7c7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x3c]
add ebx, 0xc
inc esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [ebp - 0x34]
jb 0x453b71
push dword [ebp - 0x2c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
sub esp, 8
lea ecx, [ebp - 0x1a8]
call fcn.00443510
mov dword [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
xor ecx, ecx
shr edx, 6
push edx
call fcn.00452fa0
push eax
push ecx
mov edx, str.ACTIVE:
lea ecx, [ebp - 0x198]
call fcn.00449a40
add esp, 4
mov ecx, eax
call fcn.00456240
push ecx
mov edx, 0x5ece50
mov ecx, eax
call fcn.00449a40
add esp, 4
mov ecx, eax
call fcn.00456240
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.004433d0
push 0x13d
mov edx, str.service.cpp
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004c2da0
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 0x10
jb 0x454056
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45404c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45407d
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0x1a8]
call fcn.0043aef0
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.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
int3