Function at 0x40a8b0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4cfd54
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
test byte [0x508f58], 1
mov eax, dword [esp + 0x274]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
jne 0x40a948
or dword [0x508f58], 1
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x1b]
push eax
mov ecx, 0x508f38
mov dword [esp + 0x274], 0
call fcn.0040bff0
push 0x4d14f0
call fcn.004a180a
add esp, 4
mov dword [esp + 0x26c], 0xffffffff
cmp dword [0x508f54], 0
je 0x40a957
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40aac2
mov ecx, dword [0x508f50]
mov edx, dword [ecx + 4]
push edx
mov ecx, 0x508f38
call fcn.0040c2a0
mov eax, dword [0x508f50]
mov dword [eax + 4], eax
mov eax, dword [0x508f50]
mov dword [0x508f54], 0
mov dword [eax], eax
mov eax, dword [0x508f50]
push 0x228
mov dword [eax + 8], eax
lea eax, [esp + 0x34]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov edi, 0x22c
push ebp
mov dword [esp + 0x34], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40aabb
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x14]
call fcn.00404030
lea ecx, [esp + 0x10]
mov dword [esp + 0x26c], 1
call fcn.0040bf00
mov ecx, eax
call fcn.0040bf50
mov edx, dword [esp + 0x10]
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 0x40aa1f
push esi
lea ecx, [esp + 0x14]
call fcn.00404aa0
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.004a2562
add esp, 8
test esi, esi
jl 0x40ab57
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x40ab57
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x508f38
call fcn.0040b760
mov ecx, eax
call fcn.0040bae0
push edi
lea edx, [esp + 0x30]
push 0
push edx
call fcn.004a0bd0
mov dword [esp + 0x278], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a9d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404030
lea ecx, [esp + 0x18]
mov dword [esp + 0x26c], 2
call fcn.00404fb0
mov ebp, dword [0x508f50]
mov edi, dword [0x508f38]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x508f38
call fcn.0040b910
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x40ab10
cmp eax, edi
je 0x40ab15
call fcn.004a0da7
cmp dword [esi + 4], ebp
je 0x40ab61
lea edx, [esp + 0x18]
push edx
mov ecx, 0x508f38
call fcn.0040b760
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x40ab61
lea edx, [esp + 0x18]
push edx
mov ecx, 0x508f38
call fcn.0040b760
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040b9f0
mov esi, 1
jmp 0x40ab65
push 0x80070057
call fcn.00404d40
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x26c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x260
ret