Function at 0x40cb43
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450b11
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x464140]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
mov eax, dword [0x464140]
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.004061b9
xor ebx, ebx
mov dword [esp + 0x698], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x40cbe3
add eax, 0xfffffff0
call fcn.00402c12
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.00438e18
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 0x40cbfb
mov eax, dword [esp + 0x14]
jmp 0x40cbb3
push 0x228
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00438e30
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 0x40cc48
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00402c12
mov eax, esi
jmp 0x40cbbd
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
call fcn.004061b9
mov byte [esp + 0x698], 1
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
call fcn.004086cb
test eax, eax
je 0x40cd81
push dword [esp + 0x34]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cd4e
push 0x424
lea eax, [esp + 0x264]
push ebx
push eax
call fcn.00438e30
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 0x40cd47
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x480]
call fcn.004061b9
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x6a0], 2
call fcn.004086cb
test eax, eax
je 0x40cd1d
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.00402c12
cmp esi, ebx
jne 0x40ccc7
jmp 0x40cd47
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x20], 1
call fcn.00402b88
mov byte [esp + 0x698], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00402c12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 1
je 0x40cd96
mov byte [esp + 0x698], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00402c12
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40cc4c
jmp 0x40cda2
push dword [esp + 0x28]
mov dword [esp + 0x1c], 1
push dword [esp + 0x28]
call fcn.00402b88
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00402c12
mov esi, dword [esp + 0x18]
jmp 0x40cc2b