Function at 0x40e600
Capabilities:
Enumerate process modules
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a44
call fcn.00417e60
mov eax, dword [0x4460f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_IsOS]
push edi
push 0x12
mov dword [ebp - 0x1a44], eax
mov dword [ebp - 0x1a38], 0xffffffff
call esi
test eax, eax
jne 0x40e64d
push 0x1d
call esi
mov dword [ebp - 0x1a3c], 0
test eax, eax
je 0x40e657
mov dword [ebp - 0x1a3c], 1
cmp byte [0x44779c], 0
jne 0x40e696
lea eax, [ebp - 0x1a34]
mov dword [ebp - 0x1a34], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x1a34], 0
mov byte [0x44779c], 1
setne al
mov byte [0x44779d], al
jmp 0x40e69b
mov al, byte [0x44779d]
test al, al
jne 0x40e781
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x22c
mov esi, eax
lea eax, [ebp - 0x1a30]
push 0
push eax
call fcn.0041ad60
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [ebp + 8]
mov edi, eax
cmp dword [ebp - 0x1a28], edi
je 0x40e728
push dword [ebp - 0x1a44]
lea eax, [ebp - 0x1a0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40e728
cmp dword [ebp - 0x1a3c], eax
je 0x40e757
lea eax, [ebp - 0x1a34]
push eax
push dword [ebp - 0x1a28]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp - 0x1a34], ebx
je 0x40e757
lea eax, [ebp - 0x1a30]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e6e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1a28]
push esi
mov dword [ebp - 0x1a38], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0041ad60
add esp, 0xc
mov dword [ebp - 0x1a40], 0
lea eax, [ebp - 0x1a40]
push eax
push 0x400
lea eax, [ebp - 0x1804]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40e8f6
mov ebx, dword [ebp - 0x1a40]
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x40e8f6
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + edi*4 - 0x1804]
test eax, eax
je 0x40e8ed
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40e80e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e8ed
push 0x208
lea eax, [ebp - 0x1a0c]
push 0
push eax
call fcn.0041ad60
add esp, 0xc
lea eax, [ebp - 0x1a0c]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
jne 0x40e8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x40e8ed
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041ad60
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x40e882
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e8ed
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.00419feb
add eax, 2
push eax
lea eax, [ebp - 0x1a0c]
push 0x104
push eax
call fcn.0041dea4
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1a44]
lea eax, [ebp - 0x1a0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40e8ed
cmp dword [ebp - 0x1a3c], eax
je 0x40e90a
lea eax, [ebp - 0x1a38]
push eax
push dword [ebp + edi*4 - 0x1804]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1a38], eax
je 0x40e90a
inc edi
cmp edi, ebx
jb 0x40e7e0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + edi*4 - 0x1804]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e4f
mov esp, ebp
pop ebp
ret