Function at 0x402440
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x479cfd
push 0x528
mov eax, 0x49223c
call fcn.00401820
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x460], esi
call fcn.00404e50
push eax
mov ecx, ebx
call fcn.00405600
xor edi, edi
mov dword [ebp - 4], esi
inc edi
lea ecx, [ebp - 0x534]
push edi
mov dword [ebp - 0x460], edi
call fcn.004050c0
push 0x220
lea eax, [ebp - 0x454]
mov dword [ebp - 4], edi
push esi
push eax
call fcn.00486538
add esp, 0xc
mov dword [ebp - 0x458], 0x224
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 3
cmp eax, 0xffffffff
je 0x479f3a
lea ecx, [ebp - 0x458]
push ecx
push eax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x479f3a
lea eax, [ebp - 0x524]
push str._nLOADED_MODULES:_n
push eax
call fcn.00403e10
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00486538
push str.File_Version
push str.Name
push str.____150s____s
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00402bb0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00403e10
add esp, 0x2c
mov ecx, eax
push 0x401530
call dword [0x4c93f0]
push esi
push 0x80
push 3
push esi
push edi
push esi
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x479ed5
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00486538
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push 0x104
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
test eax, eax
je 0x479f11
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.004073f0
pop ecx
pop ecx
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
push str.____150s____s
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00402bb0
mov ecx, dword [ebp - 0x468]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.00406610
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x524]
jmp 0x479efc
lea eax, [ebp - 0x524]
push 0x4abacc
push eax
call fcn.00403e10
pop ecx
pop ecx
lea ecx, [ebp - 0x338]
push ecx
push eax
call fcn.00403e10
pop ecx
pop ecx
push 0x4abac8
push eax
call fcn.00403e10
pop ecx
pop ecx
push 0x401530
mov ecx, eax
call dword [0x4c93f0]
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 3
call fcn.00405a20
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x46c]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x479e13
lea eax, [ebp - 0x524]
push str._END_OF_MODULES
push eax
call fcn.00403e10
pop ecx
pop ecx
push 0x401530
mov ecx, eax
call dword [0x4c93f0]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x51c]
call fcn.00407950
or edi, 2
mov dword [ebp - 0x460], edi
cmp dword [ebp - 0x220], 0x10
lea edi, [ebp - 0x234]
mov byte [ebp - 4], 5
jb 0x479f92
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x479f9b
push edi
call fcn.00486690
pop ecx
mov esi, eax
push esi
push edi
mov ecx, ebx
call fcn.004047d0
lea ecx, [ebp - 0x234]
call fcn.004031c0
lea ecx, [ebp - 0x47c]
call fcn.00405a20
jmp 0x47a02a
lea ecx, [ebp - 0x4cc]
call fcn.00401010
lea ecx, [ebp - 0x4cc]
call dword [0x4c9404]
mov eax, ebx
call fcn.00404a50
ret