Function at 0x40b7fa
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44f151
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x463140]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
mov eax, dword [0x463140]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00404da4
xor ebx, ebx
mov dword [esp + 0x698], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x40b89a
add eax, 0xfffffff0
call fcn.0040507e
xor eax, eax
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.00437608
mov esp, ebp
pop ebp
ret 4
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x40b8b2
mov eax, dword [esp + 0x14]
jmp 0x40b86a
push 0x228
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00437620
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x34], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40b8ff
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040507e
mov eax, esi
jmp 0x40b874
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
call fcn.00404da4
mov byte [esp + 0x698], 1
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
call fcn.00406d30
test eax, eax
je 0x40ba38
push dword [esp + 0x34]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ba05
push 0x424
lea eax, [esp + 0x264]
push ebx
push eax
call fcn.00437620
add esp, 0xc
lea eax, [esp + 0x25c]
push eax
push edi
mov dword [esp + 0x264], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
cmp eax, ebx
je 0x40b9fe
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x480]
call fcn.00404da4
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x6a0], 2
call fcn.00406d30
test eax, eax
je 0x40b9d4
lea eax, [esp + 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
mov esi, eax
mov byte [esp + 0x698], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040507e
cmp esi, ebx
jne 0x40b97e
jmp 0x40b9fe
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x20], 1
call fcn.00404f36
mov byte [esp + 0x698], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040507e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 1
je 0x40ba4d
mov byte [esp + 0x698], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040507e
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40b903
jmp 0x40ba59
push dword [esp + 0x28]
mov dword [esp + 0x1c], 1
push dword [esp + 0x28]
call fcn.00404f36
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040507e
mov esi, dword [esp + 0x18]
jmp 0x40b8e2