Function at 0x42ee80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x260]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x2710
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call fcn.00405e80
cmp dword [0x49672c], 0
mov dword [esp + 0x28], eax
je 0x42f0c2
mov ecx, dword [esp + 0x10]
mov edx, dword [0x49672c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42eef7
cmp eax, 0x102
jne 0x42eed8
jmp 0x42eeff
mov dword [esp + 0x10], 0x3a98
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x38], esi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x42ef48
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x42ef42
lea eax, [edx + 8]
jmp 0x42ef30
cmp dword [eax], 0
jne 0x42ef36
inc esi
add eax, 0xc
sub ecx, 1
jne 0x42ef30
mov dword [esp + 0x24], esi
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
push esi
push str.dwCountOfSessionActive:__d
call fcn.00404c20
add esp, 8
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x42eed8
push 0x228
lea edx, [esp + 0x38]
push edi
push edx
call fcn.004416b0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42f0ae
lea ecx, [ecx]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jne 0x42eff2
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x42eff2
cmp eax, 4
je 0x42eff2
mov ecx, str.svchost.exe
lea eax, [esp + 0x54]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42efe6
test dx, dx
je 0x42efe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42efe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42efc0
xor eax, eax
jmp 0x42efeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42eff2
lea ebx, [eax + 1]
mov ecx, 0x478fa0
lea eax, [esp + 0x54]
jmp 0x42f000
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f026
test dx, dx
je 0x42f022
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f026
add eax, 4
add ecx, 4
test dx, dx
jne 0x42f000
xor eax, eax
jmp 0x42f02b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42f088
mov ecx, dword [esp + 0x38]
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42f070
inc edi
push edi
push str.dwCountOfExplorer:__d
call fcn.00404c20
add esp, 8
cmp edi, dword [esp + 0x24]
jb 0x42f063
mov dword [esp + 0x10], 0x1b7740
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
jmp 0x42f08c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_process_error:__d
call fcn.00404c20
mov esi, dword [esp + 0x1c]
add esp, 8
test ebx, ebx
je 0x42f09b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [edx]
call fcn.00425f90
lea eax, [esp + 0x30]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42efa0
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42eed8
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x25c
ret 4