Function at 0x405ed0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x468
mov eax, dword [0x42aa60]
mov edx, dword [esp + 0x470]
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [esp + 0x478]
mov dword [esp + 0x470], eax
mov eax, dword [ebx + 0x10]
push edi
mov edi, dword [ebx + 0x14]
lea ecx, [eax + esi]
lea ecx, [ecx + edx + 0xa]
sub edi, ecx
mov dword [esp + 0x20], ecx
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov eax, dword [ebx + 0x10]
add esi, 0xfffffff6
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], 0x224
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
call fcn.00410c31
mov esi, eax
and esi, 0x80000007
jns 0x405f49
dec esi
or esi, 0xfffffff8
inc esi
lea ecx, [esp + 0x2c]
push ecx
push ebp
inc esi
mov dword [esp + 0x2c], 0
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x406011
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
inc ecx
push edx
mov dword [esp + 0x28], ecx
call fcn.0040a480
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x405ff6
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push edx
push str..text
push ecx
push eax
call fcn.00405d40
add esp, 0x14
test al, al
jne 0x405ff6
cmp dword [esp + 0x24], esi
jbe 0x405ff6
mov eax, dword [esp + 0x28]
cmp eax, 0x10000
jbe 0x405ff6
mov ebp, dword [esp + 0x10]
add eax, 0xffffe000
cmp eax, ebp
ja 0x405fca
mov ebp, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00405ab0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, ebp
sub eax, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x406011
lea ecx, [esp + 0x2c]
push ecx
push ebp
mov dword [esp + 0x34], 0x224
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405f65
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x250], 0x224
mov dword [esp + 0x10], edx
mov ebp, edi
call fcn.00410c31
mov esi, eax
and esi, 0x80000007
jns 0x406053
dec esi
or esi, 0xfffffff8
inc esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x250]
push eax
push ecx
inc esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40611b
mov edx, dword [esp + 0x26c]
inc edi
push edx
mov dword [esp + 0x24], edi
call fcn.0040a480
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4060f6
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x270]
lea edx, [esp + 0x1c]
push edx
push str..text
push ecx
push eax
call fcn.00405d40
add esp, 0x14
test al, al
jne 0x4060f6
cmp edi, esi
jbe 0x4060f6
mov eax, dword [esp + 0x1c]
cmp eax, 0x10000
jbe 0x4060f6
lea edi, [eax - 0x2000]
cmp edi, ebp
jbe 0x4060d2
mov edi, ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
mov ecx, ebx
call fcn.00405ab0
mov ecx, dword [esp + 0x10]
add ecx, edi
sub ebp, edi
mov dword [esp + 0x10], ecx
je 0x40611b
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x250]
push ecx
push edx
mov dword [esp + 0x258], 0x224
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x406070
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.00410c16
add esp, 0x468
ret 8