Function at 0x405c30
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x41095b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x278], 0x128
mov dword [esp + 0x54], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x270]
push eax
push esi
mov dword [esp + 0x28], esi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [esp + 0x3a8]
cmp eax, edi
je 0x405e47
push ebp
mov ecx, dword [esp + 0x27c]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x50]
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x30], ebp
call sub.KERNEL32.dll_Module32First
cmp eax, edi
je 0x405e25
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp esi, eax
je 0x405cf0
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x405ccd
mov eax, 0x41135c
lea ecx, [esp + 0x170]
push ecx
push eax
call fcn.0040adc0
add esp, 8
test eax, eax
je 0x405de9
mov eax, dword [ebx + 8]
add esi, 0x10
cmp esi, eax
jne 0x405cc1
mov al, byte [esp + 0x170]
test al, al
je 0x405e0e
lea edx, [esp + 0x2c]
lea eax, [esp + 0x170]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x405e0e
cmp dword [esp + 0x48], edi
jne 0x405e0e
cmp dword [esp + 0x4c], 0x409000
jae 0x405e0e
lea ecx, [esp + 0x170]
push ecx
mov ecx, 0x417920
call fcn.00406d40
test eax, eax
jne 0x405e0e
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea edi, [esp + 0x170]
or ecx, 0xffffffff
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov byte [esp + 0x1c], dl
call fcn.00405fb0
test al, al
je 0x405da7
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x170]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00405f90
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
xor esi, esi
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x3b0], esi
call fcn.004060d0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3a4], 0xffffffff
cmp eax, esi
je 0x405dfc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405df3
cmp al, 0xff
je 0x405df3
dec al
mov byte [ecx], al
jmp 0x405dfc
mov byte [esp + 0x170], 0
jmp 0x405e0e
push ecx
call fcn.004080ac
add esp, 4
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
xor edi, edi
lea edx, [esp + 0x50]
push edx
push ebp
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405cb7
mov esi, dword [esp + 0x24]
cmp ebp, edi
je 0x405e30
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x274]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405c8f
pop ebp
cmp esi, edi
je 0x405e52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 4]
cmp ecx, edi
jne 0x405e5d
xor eax, eax
jmp 0x405e65
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
mov ecx, dword [esp + 0x398]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x398
ret