Function at 0x41a310
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push 0xffffffffffffffff
push 0x423624
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43893c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x44], 0
push eax
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
push 1
push ebp
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x41a498
xor esi, esi
cmp dword [esp + 0x20], esi
jbe 0x41a498
mov ebx, dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QString::compare_class_QString_const___enum_Qt::CaseSensitivity_const]
xor edi, edi
jmp 0x41a380
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push dword [edi + eax + 8]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
push 0
lea eax, [esp + 0x50]
mov byte [esp + 0x48], 1
push eax
lea ecx, [esp + 0x24]
call ebx
test eax, eax
jne 0x41a45a
mov eax, dword [esp + 0x14]
push dword [edi + eax + 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.0041a980
add esp, 8
lea eax, [esp + 0x24]
mov byte [esp + 0x44], 2
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x38]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
mov ecx, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x44], 3
push eax
mov eax, dword [esp + 0x18]
push str._user
push dword [edi + eax + 4]
push str.pid
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___class_QString_const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
push 0
push str.system
push 6
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QString::compare_class_QLatin1String__enum_Qt::CaseSensitivity_const]
mov byte [esp + 0x44], 1
lea ecx, [esp + 0x18]
test eax, eax
jne 0x41a479
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
inc esi
add edi, 0x10
cmp esi, dword [esp + 0x20]
jb 0x41a380
jmp 0x41a498
mov eax, dword [esp + 0x14]
add esi, esi
mov ebp, dword [eax + esi*8 + 4]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push dword [esp + 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4