Function at 0x410170
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
cmp dword [0x4c6f1c], 0
push esi
push edi
je 0x410481
and dword [0x4c6f20], 0
push str.Modules_____:
push 0x100000
push dword [0x4bb668]
call fcn.004233f0
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 0x47283c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x410481
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 0x410481
push 0x424
lea eax, [esp + 0x20]
mov byte [esp + 0x13], 1
push 0
push eax
call fcn.0041cce0
add esp, 0xc
mov dword [esp + 0x18], 0x428
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x410472
lea eax, [esp + 0x238]
mov edx, 0x104
push eax
lea ecx, [esp + 0x54c]
call fcn.0040958a
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.0040958a
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 0x41047a
mov ecx, dword [0x4c6f1c]
test ecx, ecx
je 0x41047a
mov edx, dword [0x4c6f20]
cmp edx, 0x100
jae 0x41047a
imul eax, edx, 0x220
add eax, ecx
je 0x4102ee
push 0xffffffffffffffff
lea ecx, [esp + 0x23c]
push ecx
push 0x100
push eax
call fcn.0042940a
mov edx, dword [0x4c6f20]
add esp, 0x10
mov ecx, dword [0x4c6f1c]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x4c6f20], 0x220
mov ecx, dword [0x4c6f1c]
mov eax, dword [esp + 0x2c]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x4c6f20], 0x220
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov ecx, dword [0x4c6f1c]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul esi, dword [0x4c6f20], 0x220
cmp byte [esp + 0xf], 0
mov edx, dword [0x4c6f1c]
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 0x41039a
push str.____________:
push 0x100000
push dword [0x4bb668]
call fcn.004233f0
add esp, 0xc
jmp 0x41039f
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.0041008f
test al, al
je 0x410410
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 [0x4c6f20], 0x220
shr ecx, 0x10
push ecx
add eax, dword [0x4c6f1c]
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 0x410445
imul eax, dword [0x4c6f20], 0x220
add eax, dword [0x4c6f1c]
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 [0x4bb668]
call fcn.004233f0
add esp, 0xc
lea eax, [esp + 0x18]
inc dword [0x4c6f20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x410224
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret