Function at 0x451580
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff940
xor ecx, ecx
mov dword [ebp - 0x6bc], ecx
mov dword [ebp - 0x6c0], ecx
mov dword [ebp - 0x6b4], ecx
mov dword [ebp - 0x6b8], ecx
mov dword [ebp - 0x6b0], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45197a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x45194f
xor eax, eax
push ebp
push 0x451948
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x25c]
mov edx, 0x22c
call fcn.0042b000
mov dword [ebp - 0x25c], 0x22c
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Process32FirstW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x451927
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.004072c0
mov eax, dword [ebp - 4]
call fcn.0042cca0
test eax, eax
jle 0x45164b
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042ce90
lea eax, [ebp - 0x6b0]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x451994
call fcn.00407404
mov edx, dword [ebp - 0x6b0]
mov eax, dword [ebp - 4]
call fcn.0042ce90
mov eax, dword [ebp - 0x254]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6b8]
call fcn.0041d1e0
mov ecx, dword [ebp - 0x6b8]
lea eax, [ebp - 0x6b4]
mov edx, 0x4519b4
call fcn.00407404
mov edx, dword [ebp - 0x6b4]
mov eax, dword [ebp - 4]
call fcn.0042ce90
cmp byte [ebp - 5], 0
jne 0x45190e
mov eax, dword [ebp - 0x254]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45190e
xor eax, eax
push ebp
push 0x451907
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004508a0
cmp dword [ebp - 0x20], 0
je 0x4516fd
push ebp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004513f0
pop ecx
lea eax, [ebp - 0x6ac]
mov edx, 0x28
call fcn.0042b000
mov dword [ebp - 0x6ac], 0x28
mov eax, dword [0x5dffc8]
cmp dword [eax], 0
je 0x451779
mov eax, dword [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6ac]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x5dffc8]
mov eax, dword [eax]
call eax
test eax, eax
je 0x451779
mov eax, dword [ebp - 0x6a0]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c0]
call fcn.0041d1e0
mov ecx, dword [ebp - 0x6c0]
lea eax, [ebp - 0x6bc]
mov edx, 0x4519dc
call fcn.00407404
mov edx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 4]
call fcn.0042ce90
mov eax, dword [ebp - 0x254]
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4518f0
xor eax, eax
push ebp
push 0x4518e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x684]
mov edx, 0x428
call fcn.0042b000
mov dword [ebp - 0x684], 0x428
lea eax, [ebp - 0x684]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Module32FirstW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x16], al
mov dl, 1
mov eax, dword [0x427200]
call fcn.00405008
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4518cb
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x451847
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x668]
mov eax, dword [ebp - 0x14]
call fcn.004508a0
cmp dword [ebp - 0x20], 0
je 0x45182e
mov eax, dword [ebp - 0x28]
call fcn.0042cca0
test eax, eax
jle 0x451821
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0042ce90
push ebp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004513f0
pop ecx
lea eax, [ebp - 0x684]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Module32NextW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x16], al
cmp byte [ebp - 0x16], 0
jne 0x4517f4
mov eax, dword [ebp - 0x28]
call fcn.0042cca0
test eax, eax
jle 0x4518b5
mov edx, 0x451a04
mov eax, dword [ebp - 4]
call fcn.0042ce90
mov eax, dword [ebp - 0x28]
call fcn.0042cca0
dec eax
test eax, eax
jl 0x4518b5
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0042ca50
cmp dword [ebp - 0x24], 0
je 0x4518a2
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x451a24
call fcn.00407404
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0042ce90
inc dword [ebp - 0x2c]
dec dword [ebp - 0x30]
jne 0x45187e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4518d2
mov eax, dword [ebp - 0x28]
call fcn.00405038
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45190e
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Process32NextW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x451622
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45194f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451981
lea eax, [ebp - 0x6c0]
mov edx, 5
call fcn.00406670
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406670
ret