Function at 0x415350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x24c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x244], edi
cmp edi, 0xffffffff
jne 0x4153a4
xor eax, eax
jmp 0x4155a1
xor ebx, ebx
call fcn.00416e60
test al, al
jne 0x4153c1
push 4
call fcn.004f04fa
mov ecx, dword [0x578ad4]
add esp, 4
mov dword [eax], ecx
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004f2250
mov eax, dword [0x578ad4]
imul eax, eax
cdq
mov ecx, 0x16
idiv ecx
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
cmp edx, 8
jne 0x415414
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x415594
lea edi, [ebp - 0x218]
shr edi, 0x10
mov dword [ebp - 0x248], edi
jmp 0x415440
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
test edi, edi
jne 0x415488
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x4154b8
push edi
push eax
lea ecx, [ebp - 0x240]
call fcn.00408b00
jmp 0x4154b2
lea edx, [eax + 2]
jmp 0x415490
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415490
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040c730
mov esi, dword [ebp - 0x240]
mov dword [ebp - 4], 1
call fcn.00416cd0
test al, al
jne 0x4154d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x578ad4], eax
mov edi, dword [esi - 0xc]
test edi, edi
js 0x41558a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x415501
push edi
lea ecx, [ebp - 0x240]
call fcn.00408cf0
mov esi, dword [ebp - 0x240]
lea eax, [edi + 1]
push eax
push esi
call fcn.004f3037
add esp, 8
cmp edi, dword [esi - 8]
jg 0x41558a
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x24c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x415543
push esi
push eax
call fcn.004f19aa
add esp, 8
test eax, eax
je 0x415543
sub eax, dword [edi]
sar eax, 1
cmovns ebx, dword [ebp - 0x234]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415564
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x415594
test ebx, ebx
jne 0x415594
mov edi, dword [ebp - 0x248]
jmp 0x415440
push 0x80070057
call fcn.004030e0
test edi, edi
je 0x41559f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret