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

Disassembly:
push 0xffffffffffffffff
push 0x472870
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
xor edi, edi
push 1
push edi
push edi
mov dword [esi], 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x43f49e
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp edx, edi
jbe 0x43f488
lea ecx, [ebx + 8]
jmp 0x43f470
cmp dword [ecx], edi
je 0x43f480
add eax, 1
add ecx, 0xc
cmp eax, edx
jb 0x43f470
jmp 0x43f488
lea edx, [eax + eax*2]
mov eax, dword [ebx + edx*4]
mov dword [esi], eax
push ebx
call sub.WTSAPI32.dll_WTSFreeMemory
cmp dword [esi], 0xffffffff
jne 0x43f5dc
xor al, al
jmp 0x43f5de
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43f5dc
lea ecx, [esp + 0x30]
push ecx
call fcn.0043e940
add esp, 4
mov dword [esp + 0x58], edi
cmp dword [esp + 0x44], edi
jne 0x43f4fc
push str.Fail_to__ixfGetShellName_n
push 2
call fcn.00434060
mov ecx, str.._srcixCorewindowsixcProcUtilImpl.cpp_1278_:__ix::cmn::ixcProcUtilImpl::GetActiveSessionID_
mov edx, eax
call fcn.00436820
add esp, 8
cmp dword [esp + 0x48], 8
jb 0x43f4f5
mov edx, dword [esp + 0x34]
push edx
call fcn.00452ad1
add esp, 4
xor al, al
jmp 0x43f5de
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x58], 1
mov eax, dword [esi]
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0043efe0
mov bl, al
add esp, 0x10
cmp bl, 1
je 0x43f56e
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x43f539
lea eax, [esp + 0x34]
mov ecx, dword [esi]
push ecx
push eax
push str.Fail_to_GetPIDsFromName__s__false___u__n
push 2
call fcn.00434060
mov ecx, str.._srcixCorewindowsixcProcUtilImpl.cpp_1286_:__ix::cmn::ixcProcUtilImpl::GetActiveSessionID_
mov edx, eax
call fcn.00436820
add esp, 0x10
lea esi, [esp + 0x1c]
call fcn.00429f10
lea ecx, [esp + 0x30]
call fcn.00401510
mov al, bl
jmp 0x43f5de
mov eax, dword [esp + 0x20]
cmp eax, edi
mov dword [esp + 0x10], 0xffffffff
je 0x43f589
mov edx, dword [esp + 0x24]
sub edx, eax
sar edx, 2
jne 0x43f592
call fcn.00452d7b
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x43f5c4
mov esi, str.._srcixCorewindowsixcProcUtilImpl.cpp_1293_:__ix::cmn::ixcProcUtilImpl::GetActiveSessionID_
call fcn.00436c10
lea esi, [esp + 0x1c]
call fcn.00429f10
lea ecx, [esp + 0x30]
call fcn.00401510
xor al, al
jmp 0x43f5de
mov eax, dword [esp + 0x10]
mov dword [esi], eax
lea esi, [esp + 0x1c]
call fcn.00429f10
lea ecx, [esp + 0x30]
call fcn.00401510
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00452816
add esp, 0x4c
ret