Function at 0x4054a0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x41431b
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], pe_nt_image_headers32
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 0x405741
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 0x40571f
lea eax, [esp + 0x160]
push eax
push ebx
call fcn.00405450
add esp, 8
test eax, eax
jne 0x405708
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 0x405708
cmp dword [esp + 0x38], ebp
jne 0x405708
cmp dword [esp + 0x3c], 0x409000
jae 0x405708
lea eax, [esp + 0x160]
mov ecx, 0x41db68
push eax
call fcn.00405ff0
test eax, eax
jne 0x405708
mov ecx, dword [0x419030]
lea edx, [esp + 0x160]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x40567e
lea eax, [esp + 0x160]
shr eax, 0x10
jne 0x405644
xor edi, edi
lea ecx, [esp + 0x160]
lea edx, [esp + 0x38c]
mov di, cx
push 0x100
push edx
push edi
call fcn.004031a0
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x4055f8
lea edx, [esp + 0x38c]
lea ecx, [esp + 0x10]
push edx
call fcn.00402ea0
jmp 0x40567e
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00402f70
cmp eax, ebp
je 0x405637
push esi
push eax
push edi
call fcn.004031a0
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x405637
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00402f70
cmp eax, ebp
jne 0x40560f
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403020
jmp 0x40567e
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x40567e
push esi
lea ecx, [esp + 0x14]
call fcn.00404b10
test eax, eax
je 0x40567e
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x164]
inc esi
push ecx
push esi
push edx
call fcn.00403ff0
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 0x40569d
mov ecx, eax
mov dword [eax], ecx
cmp edi, ebp
mov ecx, edi
jne 0x4056a7
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.00404d80
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x18]
add esp, 8
inc edx
mov dword [ebx + 8], edx
mov ecx, dword [0x419034]
lea edx, [eax - 0xc]
mov dword [esp + 0x494], 0xffffffff
cmp edx, ecx
je 0x405704
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405704
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00413190
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 0x405527
mov edi, dword [esp + 0x18]
cmp esi, ebp
je 0x40572a
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 0x4054ff
pop esi
cmp edi, ebp
je 0x40574c
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