Function at 0x4a2468
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4498
call fcn.00522d80
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4488]
xor ebx, ebx
mov dword [ebp - 0x448c], edi
mov dword [ebp - 0x4488], ebx
mov dword [ebp - 0x4484], ebx
call fcn.0043787f
push ebx
push ebx
lea ecx, [ebp - 0x4480]
mov dword [ebp - 0x4488], eax
mov dword [ebp - 0x4480], ebx
mov dword [ebp - 0x447c], ebx
call fcn.004a4028
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4480], ebx
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a26a0
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4a2515
push 0x527fb4
lea ecx, [ebp - 0x4448]
call fcn.004108e3
lea eax, [ebp - 0x4448]
mov dword [ebp - 0x4430], edi
push eax
push ebx
lea ecx, [ebp - 0x4480]
call fcn.004a137b
lea ecx, [ebp - 0x4448]
jmp 0x4a2682
and dword [ebp - 0x441c], 0
lea eax, [esi + 0x20]
and dword [ebp - 0x4418], 0
lea ecx, [ebp - 0x442c]
push eax
call fcn.0041992a
mov ebx, dword [ebp - 0x4418]
lea eax, [ebp - 0x442c]
mov edi, dword [ebp - 0x442c]
cmp ebx, 8
jb 0x4a254b
mov eax, edi
push 0x7e
push 0
push dword [ebp - 0x441c]
push eax
call fcn.0043ebf5
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a25b8
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x442c]
cmp ebx, 8
jb 0x4a2579
mov eax, edi
push 0x208
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x442c]
call fcn.00410dd4
mov ebx, dword [ebp - 0x4418]
mov edi, dword [ebp - 0x442c]
cmp dword [esi + 0x38], 0
mov eax, dword [ebp - 0x441c]
jne 0x4a25cc
test eax, eax
je 0x4a267c
lea edx, [ebp - 0x442c]
cmp ebx, 8
jb 0x4a25d9
mov edx, edi
lea ecx, [ebp - 0x442c]
jb 0x4a25e3
mov ecx, edi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x442c]
jb 0x4a25f0
mov ecx, edi
push sub.msvcrt.dll_towlower
push edx
push eax
push ecx
lea eax, [ebp - 0x4494]
push eax
call fcn.004311ac
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x4444]
and dword [ebp - 0x4434], 0
add esp, 0x14
and dword [ebp - 0x4430], 0
mov dword [ebp - 0x4448], eax
lea eax, [ebp - 0x442c]
push eax
call fcn.0041992a
lea eax, [ebp - 0x4444]
push eax
lea ecx, [ebp - 0x4464]
call fcn.004243ad
mov eax, dword [ebp - 0x4448]
lea ecx, [ebp - 0x4480]
mov dword [ebp - 0x444c], eax
lea eax, [ebp - 0x4464]
push eax
push dword [ebp - 0x4480]
call fcn.004a137b
lea ecx, [ebp - 0x4464]
call fcn.00410d88
lea ecx, [ebp - 0x4444]
call fcn.00410d88
lea ecx, [ebp - 0x442c]
call fcn.00410d88
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
mov ebx, dword [ebp - 0x4480]
cmp esi, dword [eax]
jne 0x4a24da
mov edi, dword [ebp - 0x448c]
lea eax, [ebp - 0x4490]
push eax
push 0x4000
lea eax, [ebp - 0x4414]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4a26f6
lea eax, [ebp - 0x4488]
mov ecx, edi
push eax
call fcn.004a1a29
lea ecx, [ebp - 0x4480]
call fcn.004a4122
push 0x24
push dword [ebp - 0x4480]
call fcn.00404bac
pop ecx
pop ecx
lea ecx, [ebp - 0x4488]
call fcn.00436e55
mov eax, edi
jmp 0x4a2871
mov ebx, dword [ebp - 0x4490]
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x4a2834
mov eax, dword [ebp + edi*4 - 0x4414]
test eax, eax
je 0x4a282b
push eax
lea eax, [ebp - 0x442c]
push eax
call fcn.004a3ae4
cmp dword [ebp - 0x441c], 0
pop ecx
pop ecx
je 0x4a2820
cmp dword [ebp - 0x4418], 8
lea eax, [ebp - 0x442c]
jb 0x4a2749
mov eax, dword [ebp - 0x442c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x4444]
call fcn.004108e3
cmp dword [ebp - 0x4434], 0
je 0x4a2815
mov eax, dword [ebp - 0x4480]
mov esi, dword [eax]
cmp esi, eax
je 0x4a2815
mov eax, dword [ebp + edi*4 - 0x4414]
cmp eax, dword [esi + 0x20]
je 0x4a27be
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x442c]
call fcn.00443ade
test al, al
jne 0x4a27be
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x4444]
call fcn.00443ade
test al, al
jne 0x4a27be
mov esi, dword [esi]
mov eax, dword [ebp + edi*4 - 0x4414]
cmp esi, dword [ebp - 0x4480]
jne 0x4a2780
jmp 0x4a2815
lea eax, [ebp - 0x442c]
add esi, 8
push eax
push esi
lea ecx, [ebp - 0x4478]
call fcn.004a0fe5
lea eax, [ebp - 0x4478]
push eax
lea ecx, [ebp - 0x4488]
call fcn.004a12d1
push eax
add eax, 0x10
lea ecx, [ebp - 0x4488]
push eax
push 0
lea eax, [ebp - 0x4498]
push eax
call fcn.00436bbf
lea ecx, [ebp - 0x4460]
call fcn.00410d88
lea ecx, [ebp - 0x4478]
call fcn.00410d88
lea ecx, [ebp - 0x4444]
call fcn.00410d88
lea ecx, [ebp - 0x442c]
call fcn.00410d88
inc edi
cmp edi, ebx
jb 0x4a2709
mov ecx, dword [ebp - 0x448c]
lea eax, [ebp - 0x4488]
push eax
call fcn.004a1a29
lea ecx, [ebp - 0x4480]
call fcn.004a4122
push 0x24
push dword [ebp - 0x4480]
call fcn.00404bac
pop ecx
pop ecx
lea ecx, [ebp - 0x4488]
call fcn.00436e55
mov eax, dword [ebp - 0x448c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret