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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b77b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x280
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
jne 0x403e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
push 1
push 2
lea ecx, [ebp - 0x150]
call fcn.00422b90
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
push str.WTSEnumerateProcesses_failed__0x
lea edx, [ebp - 0x150]
push edx
call fcn.00409c40
add esp, 8
mov dword [ebp - 0x7c], eax
push 0x442c30
mov ecx, dword [ebp - 0x7c]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x94]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x68], eax
push 0x4acbe4
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00409c40
add esp, 8
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x150]
call fcn.0044ad00
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00429c80
push 0x4c4e90
lea edx, [ebp - 0xac]
push edx
call sub.MSVCR110.dll__CxxThrowException
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0042a460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00432780
cmp dword [ebp - 0x50], 0
jbe 0x403fa2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x403f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
push 1
push 2
lea ecx, [ebp - 0x1e8]
call fcn.00422b90
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 3
push str.ProcessIdToSessionId_failed__0x
lea edx, [ebp - 0x1e8]
push edx
call fcn.00409c40
add esp, 8
mov dword [ebp - 0x88], eax
push 0x442c30
mov ecx, dword [ebp - 0x88]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x60]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x8c], eax
push 0x4acc30
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00409c40
add esp, 8
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1e8]
call fcn.0044ad00
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00429c80
push 0x4c4e90
lea edx, [ebp - 0xb8]
push edx
call sub.MSVCR110.dll__CxxThrowException
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0042a460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e8]
call fcn.00432780
mov dword [ebp - 0x4c], 0
jmp 0x403f43
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x50]
jae 0x403fa2
mov edx, dword [ebp - 0x4c]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + edx]
cmp ecx, dword [ebp - 0x54]
jne 0x403fa0
mov edx, dword [ebp - 0x4c]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + edx + 4]
cmp ecx, dword [ebp - 0x58]
je 0x403fa0
push 0x4accc4
mov edx, dword [ebp - 0x4c]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + edx + 8]
push ecx
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x403fa0
mov edx, dword [ebp - 0x4c]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x5c], ecx
jmp 0x403fa2
jmp 0x403f3a
jmp 0x404062
mov dword [ebp - 4], 0xffffffff
jmp 0x404072
cmp dword [ebp - 0x48], 0
je 0x404081
mov eax, dword [ebp - 0x48]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret