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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0760
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50d174]
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
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea esi, [ecx + 1]
mov byte [ebp - 0x28], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e210
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405510
xor ebx, ebx
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x50], ebx
xor edi, edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov dword [eax], edi
cmp dword [0x51ecfc], edi
je 0x41e37c
mov eax, dword [0x51ed04]
test eax, eax
je 0x41e37c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x41e2a7
mov esi, dword [ebp - 0x34]
push esi
push 1
push 1
push edi
push 0x2000000
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push 0x1a
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e37f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x41e37c
xor ecx, ecx
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x44], ecx
jbe 0x41e37c
xor ebx, ebx
nop dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
cmp dword [ecx + ebx], eax
jne 0x41e366
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ecx + ebx + 8]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004a4dfc
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
je 0x41e331
add eax, 4
add eax, ebx
cmp edi, esi
je 0x41e31f
mov eax, dword [eax]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x4c], esi
jmp 0x41e366
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.004182c0
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x4c]
jmp 0x41e366
push dword [ebx + eax + 4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x41e366
push dword [ebp - 0x34]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41e3af
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
add ebx, 0x10
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x44]
jb 0x41e2e0
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x34]
cmp dword [esi], 0
setne byte [ebp - 0x29]
test ebx, ebx
je 0x41e3e9
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x41e3df
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e438
jmp 0x41e3df
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
add ecx, ecx
push dword [eax + ecx*8 + 4]
push dword [ebp + 8]
push str.GetSessionToken__Session_ID___d__PID:__d_
call fcn.00427f40
add esp, 0xc
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x50]
cmp dword [eax], 0
jmp 0x41e382
push edi
push ebx
call fcn.0042a02e
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41e419
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e40f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e43d
push edx
push ecx
call fcn.0042a02e
add esp, 8
mov al, byte [ebp - 0x29]
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.0042a04a
mov esp, ebp
pop ebp
ret
call fcn.004a0469
call fcn.004a0469
int3