Function at 0x459d18
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x240]
mov edx, dword [0x458cd8]
call fcn.004048d8
lea eax, [ebp - 0x24c]
mov edx, dword [0x458cd8]
call fcn.004048d8
xor eax, eax
push ebp
push 0x459fbc
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d24]
call fcn.004050c4
add esp, 4
cmp dword [ebp - 4], 0
je 0x459f85
mov eax, dword [ebp - 4]
push eax
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x459f85
cmp edi, 0xffffffff
je 0x459f85
mov dword [ebp - 0x234], 0x224
lea eax, [ebp - 0x234]
push eax
push edi
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x459e91
inc esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d24]
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, 0x459fd4
call fcn.00404570
dec eax
jne 0x459e2d
lea eax, [ebp - 8]
mov ecx, 4
mov edx, 1
call fcn.004044cc
mov edx, dword [ebp - 8]
mov eax, 0x459fe4
call fcn.00404570
dec eax
jne 0x459e6b
lea eax, [ebp - 8]
mov ecx, 0xc
mov edx, 1
call fcn.004044cc
lea eax, [ebp - 0x250]
call fcn.00459858
mov edx, dword [ebp - 0x250]
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 0x459dc3
push edi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00459ff4
test al, al
je 0x459f85
mov byte [ebp - 9], 0
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.00459ab8
mov eax, esi
dec eax
test eax, eax
jl 0x459f28
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.0045918c
test al, al
je 0x459f22
lea eax, [ebp - 0x24c]
mov edx, dword [ebx]
mov ecx, dword [0x458cd8]
call fcn.00404af8
mov eax, dword [ebx]
lea edx, [edi + edi*2]
mov ecx, dword [ebx]
lea edx, [ecx + edx*4]
mov ecx, dword [0x458cd8]
call fcn.00404af8
lea eax, [edi + edi*2]
mov edx, dword [ebx]
lea eax, [edx + eax*4]
lea edx, [ebp - 0x24c]
mov ecx, dword [0x458cd8]
call fcn.00404af8
mov byte [ebp - 9], 1
jmp 0x459f28
inc edi
dec dword [ebp - 0x10]
jne 0x459ec3
cmp byte [ebp - 9], 0
jne 0x459f85
inc esi
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x458d24]
call fcn.004050c4
add esp, 4
lea eax, [ebp - 0x24c]
mov edx, dword [ebx]
mov ecx, dword [0x458cd8]
call fcn.00404af8
mov eax, dword [ebx]
lea edx, [ebp - 0x240]
mov ecx, dword [0x458cd8]
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 [0x458cd8]
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459fc3
lea eax, [ebp - 0x250]
call fcn.00403f6c
lea eax, [ebp - 0x24c]
mov edx, dword [0x458cd8]
mov ecx, 2
call fcn.004049e8
lea eax, [ebp - 8]
call fcn.00403f6c
ret