Function at 0x4055c0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x415beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x47c
push ebx
push ebp
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x268], 0x128
mov dword [esp + 0x44], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x260]
push eax
push edi
mov dword [esp + 0x1c], edi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [esp + 0x498]
cmp eax, ebp
je 0x405861
push esi
mov ecx, dword [esp + 0x26c]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x40]
mov esi, eax
push edx
push esi
mov dword [esp + 0x1c], esi
call sub.KERNEL32.dll_Module32First
cmp eax, ebp
je 0x40583f
lea eax, [esp + 0x160]
push eax
push ebx
call fcn.00405570
add esp, 8
test eax, eax
jne 0x405828
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x160]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x405828
cmp dword [esp + 0x38], ebp
jne 0x405828
cmp dword [esp + 0x3c], 0x409000
jae 0x405828
lea eax, [esp + 0x160]
mov ecx, 0x41ef60
push eax
call fcn.00406110
test eax, eax
jne 0x405828
mov ecx, dword [0x41a030]
lea edx, [esp + 0x160]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x40579e
lea eax, [esp + 0x160]
shr eax, 0x10
jne 0x405764
xor edi, edi
lea ecx, [esp + 0x160]
lea edx, [esp + 0x38c]
mov di, cx
push 0x100
push edx
push edi
call fcn.004032b0
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x405718
lea edx, [esp + 0x38c]
lea ecx, [esp + 0x10]
push edx
call fcn.00402fb0
jmp 0x40579e
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00403080
cmp eax, ebp
je 0x405757
push esi
push eax
push edi
call fcn.004032b0
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x405757
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00403080
cmp eax, ebp
jne 0x40572f
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403130
jmp 0x40579e
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x40579e
push esi
lea ecx, [esp + 0x14]
call fcn.00404c20
test eax, eax
je 0x40579e
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x164]
inc esi
push ecx
push esi
push edx
call fcn.00404100
add esp, 0x10
mov esi, dword [ebx + 4]
push 0xc
mov dword [esp + 0x498], ebp
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp esi, ebp
mov ecx, esi
jne 0x4057bd
mov ecx, eax
mov dword [eax], ecx
cmp edi, ebp
mov ecx, edi
jne 0x4057c7
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
add eax, 8
push ecx
push eax
call fcn.00404e90
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x18]
add esp, 8
inc edx
mov dword [ebx + 8], edx
mov ecx, dword [0x41a034]
lea edx, [eax - 0xc]
mov dword [esp + 0x494], 0xffffffff
cmp edx, ecx
je 0x405824
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405824
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00414a60
add esp, 4
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405647
mov edi, dword [esp + 0x18]
cmp esi, ebp
je 0x40584a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x264]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40561f
pop esi
cmp edi, ebp
je 0x40586c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x488]
mov eax, dword [ebx + 8]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x488
ret