Function at 0x40fc4f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
cmp dword [0x5686ac], 0
push esi
push edi
je 0x40ff60
and dword [0x5686b0], 0
push str.Modules_____:
push 0x100000
push dword [0x55cdf8]
call fcn.0042456a
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 0x50ed5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x40ff60
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 0x40ff60
push 0x424
lea eax, [esp + 0x20]
mov byte [esp + 0x13], 1
push 0
push eax
call fcn.0041d6f0
add esp, 0xc
mov dword [esp + 0x18], 0x428
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x40ff51
lea eax, [esp + 0x238]
mov edx, 0x104
push eax
lea ecx, [esp + 0x54c]
call fcn.00408f4f
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.00408f4f
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 0x40ff59
mov ecx, dword [0x5686ac]
test ecx, ecx
je 0x40ff59
mov edx, dword [0x5686b0]
cmp edx, 0x100
jae 0x40ff59
imul eax, edx, 0x220
add eax, ecx
je 0x40fdcd
push 0xffffffffffffffff
lea ecx, [esp + 0x23c]
push ecx
push 0x100
push eax
call fcn.0042a5e4
mov edx, dword [0x5686b0]
add esp, 0x10
mov ecx, dword [0x5686ac]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x5686b0], 0x220
mov ecx, dword [0x5686ac]
mov eax, dword [esp + 0x2c]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x5686b0], 0x220
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov ecx, dword [0x5686ac]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul esi, dword [0x5686b0], 0x220
cmp byte [esp + 0xf], 0
mov edx, dword [0x5686ac]
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 0x40fe79
push str.____________:
push 0x100000
push dword [0x55cdf8]
call fcn.0042456a
add esp, 0xc
jmp 0x40fe7e
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.0040fb6e
test al, al
je 0x40feef
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 [0x5686b0], 0x220
shr ecx, 0x10
push ecx
add eax, dword [0x5686ac]
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.00401bd1
add esp, 0x2c
jmp 0x40ff24
imul eax, dword [0x5686b0], 0x220
add eax, dword [0x5686ac]
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.00401bd1
add esp, 0x1c
lea eax, [esp + 0x650]
push eax
push 0x100000
push dword [0x55cdf8]
call fcn.0042456a
add esp, 0xc
lea eax, [esp + 0x18]
inc dword [0x5686b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40fd03
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret