Function at 0x40fe7f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
cmp dword [0x4c649c], 0
push esi
push edi
je 0x410190
and dword [0x4c64a0], 0
push str.Modules_____:
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
call dword [sym.imp.dbghelp.dll_SymGetOptions]
or eax, 0x206
push eax
call dword [sym.imp.dbghelp.dll_SymSetOptions]
push 0
push 0x4727f4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x410190
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x410190
push 0x424
lea eax, [esp + 0x20]
mov byte [esp + 0x13], 1
push 0
push eax
call fcn.0041c9b0
add esp, 0xc
mov dword [esp + 0x18], 0x428
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x410181
lea eax, [esp + 0x238]
mov edx, 0x104
push eax
lea ecx, [esp + 0x54c]
call fcn.00409349
pop ecx
lea eax, [esp + 0x238]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [esp + 0x38]
mov edx, 0x104
push eax
lea ecx, [esp + 0x444]
call fcn.00409349
pop ecx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cdq
push edx
push eax
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x558]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymLoadModule64]
or eax, edx
je 0x410189
mov ecx, dword [0x4c649c]
test ecx, ecx
je 0x410189
mov edx, dword [0x4c64a0]
cmp edx, 0x100
jae 0x410189
imul eax, edx, 0x220
add eax, ecx
je 0x40fffd
push 0xffffffffffffffff
lea ecx, [esp + 0x23c]
push ecx
push 0x100
push eax
call fcn.004290da
mov edx, dword [0x4c64a0]
add esp, 0x10
mov ecx, dword [0x4c649c]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x4c64a0], 0x220
mov ecx, dword [0x4c649c]
mov eax, dword [esp + 0x2c]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x4c64a0], 0x220
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov ecx, dword [0x4c649c]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul esi, dword [0x4c64a0], 0x220
cmp byte [esp + 0xf], 0
mov edx, dword [0x4c649c]
mov eax, dword [esi + edx + 0x208]
mov ecx, dword [esi + edx + 0x20c]
mov dword [esi + edx + 0x218], eax
mov dword [esi + edx + 0x21c], ecx
jne 0x4100a9
push str.____________:
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
jmp 0x4100ae
mov byte [esp + 0xf], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x10]
and dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040fd9e
test al, al
je 0x41011f
mov ecx, dword [esp + 0x10]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
movzx eax, cx
push eax
imul eax, dword [0x4c64a0], 0x220
shr ecx, 0x10
push ecx
add eax, dword [0x4c649c]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x668]
push dword [esp + 0x44]
push str.__.8X__.8X__s___u._u._u._u__r_n
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x2c
jmp 0x410154
imul eax, dword [0x4c64a0], 0x220
add eax, dword [0x4c649c]
push eax
push dword [esp + 0x34]
lea eax, [esp + 0x658]
push dword [esp + 0x34]
push str.__.8X__.8X__s_r_n
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x650]
push eax
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
lea eax, [esp + 0x18]
inc dword [0x4c64a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40ff33
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret