Function at 0x41a565
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push 0x48
mov eax, 0x45b4ca
call fcn.0043edd5
lea ecx, [ebp - 0x44]
call fcn.0042fdcb
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x41a768
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41a768
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x34], edi
add edi, 0x400
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x54]
call fcn.0041aa31
mov esi, edi
shl esi, 2
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x54]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41a60a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], ebx
je 0x41a5fa
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x50]
jae 0x41a5f1
inc dword [ebp - 0x20]
jmp 0x41a5e4
push dword [ebp - 0x54]
call fcn.0043b535
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0042fde1
mov eax, ebx
jmp 0x41a773
cmp esi, dword [ebp - 0x2c]
je 0x41a5b1
mov edi, dword [ebp - 0x2c]
shr edi, 2
lea eax, [ebp - 0x54]
call fcn.0041aa31
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], eax
jae 0x41a746
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + ecx*4]
push dword [eax]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x41a72c
lea ecx, [ebp - 0x18]
call fcn.004089d6
mov byte [ebp - 4], 4
mov esi, 0x7fff
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d403
push esi
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41a720
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004053de
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax - 0xc]
push 0x5c
lea esi, [ebp - 0x18]
call fcn.004088b4
sub ebx, eax
dec ebx
push ebx
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.004088d5
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [ebp + 8]
push eax
call fcn.0043ca19
pop ecx
pop ecx
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00401b20
test bl, bl
je 0x41a71e
xor esi, esi
inc esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00401b20
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], eax
je 0x41a711
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
jae 0x41a708
inc dword [ebp - 0x24]
jmp 0x41a6fb
push dword [ebp - 0x54]
call fcn.0043b535
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0042fde1
mov eax, esi
jmp 0x41a773
xor ebx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00401b20
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x41a73e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], ebx
inc dword [ebp - 0x1c]
jmp 0x41a620
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], ebx
je 0x41a765
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x28], eax
jae 0x41a75c
inc dword [ebp - 0x28]
jmp 0x41a752
push dword [ebp - 0x54]
call fcn.0043b535
pop ecx
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.0042fde1
xor eax, eax
call fcn.0043ee7a
ret