Function at 0x459d44
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x240]
mov edx, dword [0x458ce0]
call fcn.004048d8
lea eax, [ebp - 0x24c]
mov edx, dword [0x458ce0]
call fcn.004048d8
xor eax, eax
push ebp
push 0x45a01d
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d2c]
call fcn.004050c4
add esp, 4
cmp dword [ebp - 4], 0
je 0x459fe1
mov eax, dword [ebp - 4]
push eax
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x459fe1
cmp edi, 0xffffffff
je 0x459fe1
mov dword [ebp - 0x234], 0x224
lea eax, [ebp - 0x234]
push eax
push edi
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x459eed
inc esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d2c]
call fcn.004050c4
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x218]
mov dword [edx + eax*4 - 0xc], ecx
lea eax, [esi + esi*2]
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x21c]
mov dword [edx + eax*4 - 8], ecx
lea eax, [ebp - 8]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004041dc
mov edx, dword [ebp - 8]
mov eax, 0x45a038
call fcn.00404570
dec eax
jne 0x459e65
lea eax, [ebp - 8]
mov ecx, 4
mov edx, 1
call fcn.004044cc
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 8]
call fcn.00459204
mov eax, dword [ebp - 0x250]
push eax
lea edx, [ebp - 0x254]
mov eax, 0x45a048
call fcn.00459204
mov eax, dword [ebp - 0x254]
pop edx
call fcn.00404570
dec eax
jne 0x459ec7
lea eax, [ebp - 8]
mov ecx, 0xc
mov edx, 1
call fcn.004044cc
lea eax, [ebp - 0x258]
call fcn.0045984c
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00404278
lea eax, [esi + esi*2]
mov edx, dword [ebx]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ebp - 8]
call fcn.00403fc0
lea eax, [ebp - 0x234]
push eax
push edi
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x459dfb
push edi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0045a058
test al, al
je 0x459fe1
mov byte [ebp - 9], 0
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.00459aac
mov eax, esi
dec eax
test eax, eax
jl 0x459f84
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [edi + edi*2]
mov edx, dword [ebx]
mov edx, dword [edx + eax*4 + 8]
mov eax, dword [ebp - 0x238]
call fcn.00459194
test al, al
je 0x459f7e
lea eax, [ebp - 0x24c]
mov edx, dword [ebx]
mov ecx, dword [0x458ce0]
call fcn.00404af8
mov eax, dword [ebx]
lea edx, [edi + edi*2]
mov ecx, dword [ebx]
lea edx, [ecx + edx*4]
mov ecx, dword [0x458ce0]
call fcn.00404af8
lea eax, [edi + edi*2]
mov edx, dword [ebx]
lea eax, [edx + eax*4]
lea edx, [ebp - 0x24c]
mov ecx, dword [0x458ce0]
call fcn.00404af8
mov byte [ebp - 9], 1
jmp 0x459f84
inc edi
dec dword [ebp - 0x10]
jne 0x459f1f
cmp byte [ebp - 9], 0
jne 0x459fe1
inc esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d2c]
call fcn.004050c4
add esp, 4
lea eax, [ebp - 0x24c]
mov edx, dword [ebx]
mov ecx, dword [0x458ce0]
call fcn.00404af8
mov eax, dword [ebx]
lea edx, [ebp - 0x240]
mov ecx, dword [0x458ce0]
call fcn.00404af8
lea eax, [esi + esi*2]
mov edx, dword [ebx]
lea eax, [edx + eax*4 - 0xc]
lea edx, [ebp - 0x24c]
mov ecx, dword [0x458ce0]
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a024
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00403f90
lea eax, [ebp - 0x24c]
mov edx, dword [0x458ce0]
mov ecx, 2
call fcn.004049e8
lea eax, [ebp - 8]
call fcn.00403f6c
ret