Function at 0x407860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc5b4
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
test byte [0x4f5678], 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x254], esi
jne 0x4078d1
or dword [0x4f5678], 1
mov dword [ebp - 4], esi
call fcn.004177e0
push 0x4c05a0
call fcn.00491fd4
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4f54fc], esi
je 0x4078f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4f4608]
sub edx, eax
cmp edx, 0x1388
jbe 0x407a7e
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407a7e
mov eax, dword [0x4f54f8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x4f54e0
call fcn.00417a80
mov eax, dword [0x4f54f8]
mov dword [eax + 4], eax
mov eax, dword [0x4f54f8]
push 0x228
mov dword [0x4f54fc], esi
mov dword [eax], eax
mov eax, dword [0x4f54f8]
lea edx, [ebp - 0x240]
push esi
push edx
mov dword [eax + 8], eax
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
push ebx
mov dword [ebp - 0x244], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407a77
lea ebx, [ebx]
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00425750
lea edx, [ebp - 0x248]
push edx
mov dword [ebp - 4], 1
call fcn.00414e00
push eax
call fcn.00414e90
mov edx, dword [ebp - 0x248]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4079c8
mov ecx, esi
lea eax, [ebp - 0x248]
call fcn.00425920
mov edx, dword [ebp - 0x248]
lea eax, [esi + 1]
push eax
push edx
call fcn.004947f0
add esp, 8
test esi, esi
jl 0x407b11
mov eax, dword [ebp - 0x248]
cmp esi, dword [eax - 8]
jg 0x407b11
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x248]
xor ecx, ecx
lea eax, [ebp - 0x23c]
push eax
push ecx
mov word [edx + esi*2], cx
lea ecx, [ebp - 0x248]
push ecx
call fcn.00414920
add esp, 4
mov edi, eax
call fcn.00412f80
push 0x22c
lea edx, [ebp - 0x244]
push 0
push edx
call fcn.004982c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x244]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407970
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x24c]
push edx
call fcn.00425750
lea edi, [ebp - 0x24c]
mov dword [ebp - 4], 2
call fcn.00411720
mov ebx, dword [0x4f54f8]
mov edi, dword [0x4f54e0]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00414a70
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x407acd
cmp eax, edi
je 0x407ad2
call fcn.00493a81
cmp dword [esi + 4], ebx
je 0x407b1b
lea edx, [ebp - 0x24c]
push edx
call fcn.00414920
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x407b1b
lea edx, [ebp - 0x24c]
push edx
call fcn.00414920
push eax
mov eax, dword [ebp - 0x250]
push eax
call fcn.00412e70
mov esi, 1
jmp 0x407b21
push 0x80070057
call fcn.00425ad0
mov esi, dword [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret