Function at 0x410322
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
cmp dword [0x4c6ef4], 0
push esi
push edi
je 0x410633
and dword [0x4c6ef8], 0
push str.Modules_____:
push 0x100000
push dword [0x4bb638]
call fcn.00424510
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 0x47290c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x410633
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 0x410633
push 0x424
lea eax, [esp + 0x20]
mov byte [esp + 0x13], 1
push 0
push eax
call fcn.0041de00
add esp, 0xc
mov dword [esp + 0x18], 0x428
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x410624
lea eax, [esp + 0x238]
mov edx, 0x104
push eax
lea ecx, [esp + 0x54c]
call fcn.00409622
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.00409622
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 0x41062c
mov ecx, dword [0x4c6ef4]
test ecx, ecx
je 0x41062c
mov edx, dword [0x4c6ef8]
cmp edx, 0x100
jae 0x41062c
imul eax, edx, 0x220
add eax, ecx
je 0x4104a0
push 0xffffffffffffffff
lea ecx, [esp + 0x23c]
push ecx
push 0x100
push eax
call fcn.0042a52a
mov edx, dword [0x4c6ef8]
add esp, 0x10
mov ecx, dword [0x4c6ef4]
imul eax, edx, 0x220
mov dword [eax + ecx + 0x200], edx
and dword [eax + ecx + 0x204], 0
imul esi, dword [0x4c6ef8], 0x220
mov ecx, dword [0x4c6ef4]
mov eax, dword [esp + 0x2c]
cdq
mov dword [esi + ecx + 0x208], eax
mov dword [esi + ecx + 0x20c], edx
imul esi, dword [0x4c6ef8], 0x220
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov ecx, dword [0x4c6ef4]
cdq
mov dword [esi + ecx + 0x210], eax
mov dword [esi + ecx + 0x214], edx
imul esi, dword [0x4c6ef8], 0x220
cmp byte [esp + 0xf], 0
mov edx, dword [0x4c6ef4]
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 0x41054c
push str.____________:
push 0x100000
push dword [0x4bb638]
call fcn.00424510
add esp, 0xc
jmp 0x410551
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.00410241
test al, al
je 0x4105c2
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 [0x4c6ef8], 0x220
shr ecx, 0x10
push ecx
add eax, dword [0x4c6ef4]
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 0x4105f7
imul eax, dword [0x4c6ef8], 0x220
add eax, dword [0x4c6ef4]
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 [0x4bb638]
call fcn.00424510
add esp, 0xc
lea eax, [esp + 0x18]
inc dword [0x4c6ef8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x4103d6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret