Function at 0x40989c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa54
push ebx
push esi
push edi
lea ecx, [esp + 0x650]
call fcn.00409bff
mov esi, 0x104
lea eax, [esp + 0x18]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004183a0
push esi
lea eax, [esp + 0x558]
push ebx
push eax
call fcn.004183a0
push str.Modules_____:
push 0x40000
push dword [0x4a22f8]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x33], 1
call fcn.0041cb4f
add esp, 0x24
call dword [sym.imp.dbghelp.dll_SymGetOptions]
or eax, 0x206
push eax
call dword [sym.imp.dbghelp.dll_SymSetOptions]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 0x45d4c8
call ebx
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x409bcd
cmp dword [0x4ab0a4], 0
jne 0x40994f
push 4
push 0x3000
push 0x22000
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [0x4ab0a4], eax
and dword [0x4ab0a8], 0
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 0x409bcd
lea eax, [esp + 0x120]
mov dword [esp + 0x120], 0x428
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Module32FirstW]
jmp 0x409bbe
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409784
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x550]
call fcn.00409784
pop ecx
pop ecx
lea eax, [esp + 0x340]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [esp + 0x138]
mov eax, dword [esp + 0x138]
cdq
push edx
push eax
lea eax, [esp + 0x554]
push eax
lea eax, [esp + 0x28]
push eax
push 0
call ebx
push eax
call dword [sym.imp.dbghelp.dll_SymLoadModule64]
or eax, edx
je 0x409bc6
mov ecx, dword [0x4ab0a4]
test ecx, ecx
je 0x409bc6
mov edx, dword [0x4ab0a8]
cmp edx, 0x100
jae 0x409bc6
imul eax, edx, 0x220
add eax, ecx
je 0x409a51
push 0xffffffffffffffff
lea ecx, [esp + 0x344]
push ecx
push 0x100
push eax
call fcn.00423035
mov edx, dword [0x4ab0a8]
add esp, 0x10
mov ecx, dword [0x4ab0a4]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x4ab0a8], 0x220
mov ecx, dword [0x4ab0a4]
mov eax, dword [esp + 0x134]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x4ab0a8], 0x220
mov eax, dword [esp + 0x134]
add eax, dword [esp + 0x138]
mov ecx, dword [0x4ab0a4]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul edx, dword [0x4ab0a8], 0x220
mov ecx, dword [0x4ab0a4]
mov eax, dword [edx + ecx + 0x208]
mov dword [edx + ecx + 0x218], eax
mov eax, dword [edx + ecx + 0x20c]
mov dword [edx + ecx + 0x21c], eax
inc dword [0x4ab0a8]
cmp byte [esp + 0xf], 0
jne 0x409b0c
push str.____________:
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
jmp 0x409b11
mov byte [esp + 0xf], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x148]
call fcn.004097c9
test al, al
je 0x409b6d
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
shr ecx, 0x10
lea eax, [esp + 0x24]
push ecx
push eax
push dword [esp + 0x14c]
lea eax, [esp + 0x668]
push dword [esp + 0x14c]
push str.__.8X__.8X__S___u._u._u._u__r_n
push eax
call fcn.0040c813
add esp, 0x24
jmp 0x409b95
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x13c]
lea eax, [esp + 0x658]
push dword [esp + 0x13c]
push str.__.8X__.8X__S_r_n
push eax
call fcn.0040c813
add esp, 0x14
push dword [esp + 0x654]
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Module32NextW]
test eax, eax
jne 0x40998f
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret