Function at 0x451990
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 0x451d8a
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 0x451d5f
xor eax, eax
push ebp
push 0x451d58
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x25c]
mov edx, 0x22c
call fcn.0042b0a0
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 0x451d37
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.004072c0
mov eax, dword [ebp - 4]
call fcn.0042cd40
test eax, eax
jle 0x451a5b
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042cf30
lea eax, [ebp - 0x6b0]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x451da4
call fcn.00407404
mov edx, dword [ebp - 0x6b0]
mov eax, dword [ebp - 4]
call fcn.0042cf30
mov eax, dword [ebp - 0x254]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6b8]
call fcn.0041d270
mov ecx, dword [ebp - 0x6b8]
lea eax, [ebp - 0x6b4]
mov edx, 0x451dc4
call fcn.00407404
mov edx, dword [ebp - 0x6b4]
mov eax, dword [ebp - 4]
call fcn.0042cf30
cmp byte [ebp - 5], 0
jne 0x451d1e
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 0x451d1e
xor eax, eax
push ebp
push 0x451d17
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00450cb0
cmp dword [ebp - 0x20], 0
je 0x451b0d
push ebp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00451800
pop ecx
lea eax, [ebp - 0x6ac]
mov edx, 0x28
call fcn.0042b0a0
mov dword [ebp - 0x6ac], 0x28
mov eax, dword [0x5dd09c]
cmp dword [eax], 0
je 0x451b89
mov eax, dword [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6ac]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x5dd09c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x451b89
mov eax, dword [ebp - 0x6a0]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c0]
call fcn.0041d270
mov ecx, dword [ebp - 0x6c0]
lea eax, [ebp - 0x6bc]
mov edx, 0x451dec
call fcn.00407404
mov edx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 4]
call fcn.0042cf30
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 0x451d00
xor eax, eax
push ebp
push 0x451cf9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x684]
mov edx, 0x428
call fcn.0042b0a0
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 [0x4272a0]
call fcn.00405008
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x451cdb
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x451c57
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x668]
mov eax, dword [ebp - 0x14]
call fcn.00450cb0
cmp dword [ebp - 0x20], 0
je 0x451c3e
mov eax, dword [ebp - 0x28]
call fcn.0042cd40
test eax, eax
jle 0x451c31
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0042cf30
push ebp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.00451800
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 0x451c04
mov eax, dword [ebp - 0x28]
call fcn.0042cd40
test eax, eax
jle 0x451cc5
mov edx, 0x451e14
mov eax, dword [ebp - 4]
call fcn.0042cf30
mov eax, dword [ebp - 0x28]
call fcn.0042cd40
dec eax
test eax, eax
jl 0x451cc5
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.0042caf0
cmp dword [ebp - 0x24], 0
je 0x451cb2
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x451e34
call fcn.00407404
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0042cf30
inc dword [ebp - 0x2c]
dec dword [ebp - 0x30]
jne 0x451c8e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451ce2
mov eax, dword [ebp - 0x28]
call fcn.00405038
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451d1e
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 0x451a32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451d5f
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 0x451d91
lea eax, [ebp - 0x6c0]
mov edx, 5
call fcn.00406670
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406670
ret