Function at 0x40fc86
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c8
cmp dword [0x56969c], 0
push esi
push edi
je 0x40ffc4
and dword [0x5696a0], 0
push str.Modules_____:
push 0x100000
push dword [0x55dde8]
call fcn.004245ca
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 0x50fd5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x40ffc4
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 0x40ffc4
push 0x424
lea eax, [esp + 0x98]
mov byte [esp + 0xf], 1
push 0
push eax
call fcn.0041d750
add esp, 0xc
mov dword [esp + 0x90], 0x428
lea eax, [esp + 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x40ffb5
lea eax, [esp + 0x2b0]
mov edx, 0x104
push eax
lea ecx, [esp + 0x5c4]
call fcn.00408f4f
pop ecx
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [esp + 0xb0]
mov edx, 0x104
push eax
lea ecx, [esp + 0x4bc]
call fcn.00408f4f
pop ecx
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
cdq
push edx
push eax
lea eax, [esp + 0x4c4]
push eax
lea eax, [esp + 0x5d0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymLoadModule64]
or eax, edx
je 0x40ffbd
mov ecx, dword [0x56969c]
test ecx, ecx
je 0x40ffbd
mov edx, dword [0x5696a0]
cmp edx, 0x100
jae 0x40ffbd
imul eax, edx, 0x220
add eax, ecx
je 0x40fe19
push 0xffffffffffffffff
lea ecx, [esp + 0x2b4]
push ecx
push 0x100
push eax
call fcn.0042a644
mov edx, dword [0x5696a0]
add esp, 0x10
mov ecx, dword [0x56969c]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x5696a0], 0x220
mov ecx, dword [0x56969c]
mov eax, dword [esp + 0xa4]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x5696a0], 0x220
mov eax, dword [esp + 0xa8]
add eax, dword [esp + 0xa4]
mov ecx, dword [0x56969c]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul esi, dword [0x5696a0], 0x220
cmp byte [esp + 0xb], 0
mov edx, dword [0x56969c]
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 0x40fece
push str.____________:
push 0x100000
push dword [0x55dde8]
call fcn.004245ca
add esp, 0xc
jmp 0x40fed3
mov byte [esp + 0xb], 0
and dword [esp + 0xc], 0
lea eax, [esp + 0x10]
push 0x80
push 0
push eax
call fcn.0041d750
add esp, 0xc
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.0040fb7e
pop ecx
pop ecx
test al, al
je 0x40ff4a
lea eax, [esp + 0x10]
push eax
imul eax, dword [0x5696a0], 0x220
add eax, dword [0x56969c]
push eax
push dword [esp + 0xb0]
lea eax, [esp + 0x6d4]
push dword [esp + 0xb0]
push str.__.8X__.8X__s___s__r_n
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401bd6
add esp, 0x20
jmp 0x40ff85
imul eax, dword [0x5696a0], 0x220
add eax, dword [0x56969c]
push eax
push dword [esp + 0xac]
lea eax, [esp + 0x6d0]
push dword [esp + 0xac]
push str.__.8X__.8X__s_r_n
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401bd6
add esp, 0x1c
lea eax, [esp + 0x6c8]
push eax
push 0x100000
push dword [0x55dde8]
call fcn.004245ca
add esp, 0xc
lea eax, [esp + 0x90]
inc dword [0x5696a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40fd43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret