Function at 0x452de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x453022
cmp eax, 0xffffffff
je 0x453022
mov dword [ebp - 0x1c], 0
call fcn.00402fa0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x452e3a
push 0x80004005
call fcn.00402d70
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
call fcn.00402fa0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x452e69
push 0x80004005
call fcn.00402d70
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
call fcn.00402fa0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x452e96
push 0x80004005
call fcn.00402d70
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x48]
je 0x452f04
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
test edx, edx
je 0x452eca
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx + 0x10]
mov edx, dword [ebp - 0x14]
je 0x452ed4
mov ecx, dword [ebp - 0x10]
add eax, 4
cmp eax, dword [ecx + 0x48]
jne 0x452eb0
jmp 0x452f04
lea eax, [edx + 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406fe0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
add eax, 0x14
push eax
call fcn.00406fe0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406fe0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x250], 0x22c
cmp eax, 0xffffffff
je 0x452f7e
lea ecx, [ebp - 0x250]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x452f6f
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.004a8ccd
add esp, 8
test eax, eax
je 0x452f59
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x452f30
jmp 0x452f6f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 1
lea ecx, [ecx + 0x14]
call fcn.00406fe0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x452fb3
cmp dword [edi - 0xc], 0
je 0x452fa9
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x452fa9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406fe0
mov dword [ebp - 0x1c], 1
jmp 0x452fb3
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0xffffffff
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x452fd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452ff0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
pop edi
test ebx, ebx
pop ebx
jg 0x453010
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret