Function at 0x407630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba14
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4e9688]
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 [0x4f4610], 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x254], esi
jne 0x4076a1
or dword [0x4f4610], 1
mov dword [ebp - 4], esi
call fcn.00416da0
push 0x4bf990
call fcn.004914a4
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4f4494], esi
je 0x4076c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4f35a0]
sub edx, eax
cmp edx, 0x1388
jbe 0x40784e
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40784e
mov eax, dword [0x4f4490]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x4f4478
call fcn.00417040
mov eax, dword [0x4f4490]
mov dword [eax + 4], eax
mov eax, dword [0x4f4490]
push 0x228
mov dword [0x4f4494], esi
mov dword [eax], eax
mov eax, dword [0x4f4490]
lea edx, [ebp - 0x240]
push esi
push edx
mov dword [eax + 8], eax
call fcn.00497780
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 0x407847
lea ebx, [ebx]
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00424e40
lea edx, [ebp - 0x248]
push edx
mov dword [ebp - 4], 1
call fcn.00414520
push eax
call fcn.004145b0
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 0x407798
mov ecx, esi
lea eax, [ebp - 0x248]
call fcn.00425010
mov edx, dword [ebp - 0x248]
lea eax, [esi + 1]
push eax
push edx
call fcn.00493caf
add esp, 8
test esi, esi
jl 0x4078e1
mov eax, dword [ebp - 0x248]
cmp esi, dword [eax - 8]
jg 0x4078e1
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.00413ff0
add esp, 4
mov edi, eax
call fcn.004126d0
push 0x22c
lea edx, [ebp - 0x244]
push 0
push edx
call fcn.00497780
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 0x407832
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 0x407740
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x24c]
push edx
call fcn.00424e40
lea edi, [ebp - 0x24c]
mov dword [ebp - 4], 2
call fcn.00410e50
mov ebx, dword [0x4f4490]
mov edi, dword [0x4f4478]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00414140
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x40789d
cmp eax, edi
je 0x4078a2
call fcn.00492f40
cmp dword [esi + 4], ebx
je 0x4078eb
lea edx, [ebp - 0x24c]
push edx
call fcn.00413ff0
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x4078eb
lea edx, [ebp - 0x24c]
push edx
call fcn.00413ff0
push eax
mov eax, dword [ebp - 0x250]
push eax
call fcn.004125c0
mov esi, 1
jmp 0x4078f1
push 0x80070057
call fcn.004251c0
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 0x40791a
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.00491281
mov esp, ebp
pop ebp
ret