Function at 0x406320
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1110
call fcn.004128f0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
push 0x14
push 0x583eb0
mov dword [ebx + 0x74], ebp
call fcn.00403a10
add esp, 8
mov esi, 0x5835c8
mov edi, 0x583eb0
mov eax, dword [edi]
cmp eax, ebp
je 0x40639d
push 0x14
push 0x583e60
push eax
call fcn.00403b50
add esp, 0xc
test eax, eax
jne 0x40639d
mov edx, dword [edi]
xor ecx, ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov eax, 0x583e60
cmp dword [eax], ebp
je 0x406387
add eax, 4
inc ecx
cmp eax, 0x583eb0
jl 0x406376
jmp 0x40638e
mov dword [ecx*4 + 0x583e60], edx
push ebp
push ebp
push ebp
push ebp
push esi
push 0x406620
call fcn.00515c6b
add edi, 4
add esi, 8
cmp edi, 0x583f00
jl 0x40634e
mov eax, dword [ebx + 0x258]
push 0x14
push 0x583eb0
push eax
call fcn.00403b50
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
add esp, 0xc
push 0x56f244
push ebp
call esi
push eax
call fcn.005116b3
test eax, eax
je 0x4063e3
mov dword [ebx + 0x25c], 5
mov ecx, ebx
call fcn.00408170
and eax, 0xff
dec eax
je 0x406401
dec eax
jne 0x40640b
mov dword [ebx + 0x25c], 0xa
jmp 0x40640b
mov dword [ebx + 0x25c], 5
push 0x56f2e0
push ebp
call esi
push eax
call fcn.005116b3
test eax, eax
je 0x406427
mov dword [ebx + 0x25c], 6
mov ecx, dword [0x56f2d0]
mov edx, dword [0x56f2d4]
mov eax, dword [0x56f2d8]
mov dword [esp + 0x1c], ecx
mov cx, word [0x56f2dc]
mov dword [esp + 0x20], edx
mov dl, byte [0x56f2de]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x2b]
mov byte [esp + 0x2a], dl
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x120]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x406613
mov eax, dword [esp + 0x14]
shr eax, 2
je 0x406613
lea ebp, [esp + 0x120]
mov dword [esp + 0x10], eax
mov edi, 1
mov edx, dword [ebp]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406601
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4065fa
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
push 0xa
lea ecx, [esp + 0x20]
push 0x56f2c4
push ecx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x406514
mov dword [ebx + 0x25c], 6
push 0xb
lea edx, [esp + 0x20]
push 0x56f2b8
push edx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x406536
mov dword [ebx + 0x25c], 6
push 0xd
lea eax, [esp + 0x20]
push 0x56f2a8
push eax
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x406558
mov dword [ebx + 0x25c], 5
push 0xa
lea ecx, [esp + 0x20]
push 0x56f29c
push ecx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x406573
mov dword [ebx + 0x74], edi
push 0xb
lea edx, [esp + 0x20]
push 0x56f290
push edx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x40658e
mov dword [ebx + 0x74], edi
push 0xe
lea eax, [esp + 0x20]
push 0x56f280
push eax
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x4065a9
mov dword [ebx + 0x74], edi
push 0xe
lea ecx, [esp + 0x20]
push 0x56f270
push ecx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x4065c4
mov dword [ebx + 0x74], edi
push 0xe
lea edx, [esp + 0x20]
push 0x56f264
push edx
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x4065df
mov dword [ebx + 0x74], edi
push 0x11
lea eax, [esp + 0x20]
push 0x56f250
push eax
call fcn.00418150
add esp, 0xc
test eax, eax
jne 0x4065fa
mov dword [ebx + 0x74], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4064a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1110
ret