Function at 0x519124
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x51912c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519670
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.0043bc20
mov byte [ebp - 0x15], 1
xor edx, edx
push ebp
push 0x519625
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x519614
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x144], 0x128
xor ebx, ebx
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x519243
inc ebx
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409768
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00408a60
mov eax, dword [ebp - 0x148]
mov edx, 0x519688
call fcn.0040475c
je 0x51922d
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00408a60
mov eax, dword [ebp - 0x154]
mov edx, 0x519688
call fcn.0040475c
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5191ab
cmp ebx, dword [0x52afb8]
je 0x5195fd
mov eax, dword [0x52afd4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x5192dd
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.00408a60
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0xc]
call fcn.00517e4c
mov eax, dword [ebp - 0xc]
call fcn.00517f4c
cmp al, 1
jne 0x5192c7
mov edx, dword [ebp - 0xc]
mov eax, dword [0x52afd4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x519279
cmp dword [0x52afb8], 0
jne 0x519336
mov eax, dword [0x52afd0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52afd4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x519336
inc esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x164]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x52afd4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x164]
mov eax, dword [0x52afd0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec esi
jne 0x51930d
mov dword [0x52afb8], ebx
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x51958f
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00408a60
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0xc]
call fcn.00517e4c
mov eax, dword [ebp - 0xc]
call fcn.00517f4c
cmp al, 1
jne 0x519579
mov eax, dword [ebp - 0x12c]
call fcn.00518adc
test al, al
je 0x519579
mov eax, dword [ebp - 0xc]
call fcn.00517e9c
test al, al
jne 0x519579
call fcn.0040b874
fstp qword [0x52afd8]
wait
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
call fcn.00517c94
jmp 0x5193e9
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
call fcn.00517c94
call fcn.0040b874
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x52afdc]
push dword [0x52afd8]
call fcn.004b0b90
cmp edx, 0
jne 0x519414
cmp eax, 0x3e8
jae 0x51941c
jmp 0x519416
jge 0x51941c
cmp dword [ebp - 0x14], 0
je 0x5193db
call fcn.0040b874
fstp qword [0x52afd8]
wait
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x13c]
call fcn.00518a04
jmp 0x519446
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x13c]
call fcn.00518a04
call fcn.0040b874
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x52afdc]
push dword [0x52afd8]
call fcn.004b0b90
cmp edx, 0
jne 0x519471
cmp eax, 0x3e8
jae 0x519479
jmp 0x519473
jge 0x519479
cmp dword [ebp - 0x10], 0
je 0x519438
cmp dword [ebp - 0x14], 0
je 0x519579
cmp dword [ebp - 0x10], 0
je 0x519579
mov eax, dword [ebp - 0x14]
call fcn.00518498
test al, al
jne 0x519511
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 0x14]
call fcn.00408a60
mov eax, dword [ebp - 0x170]
push eax
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00408a60
mov eax, dword [ebp - 0x174]
pop edx
call fcn.0040e468
test eax, eax
jle 0x519579
mov eax, dword [ebp - 0x14]
call fcn.00404610
mov ebx, eax
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, dword [ebp - 0x17c]
call fcn.00404610
sub ebx, eax
cmp ebx, 7
jge 0x519579
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, dword [ebp - 0x180]
call fcn.00409504
test al, al
je 0x519579
mov eax, dword [ebp - 0x13c]
mov dword [0x52afbc], eax
call fcn.0040b874
fstp qword [0x52afc0]
wait
mov eax, 0x52afc8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, 0x52afcc
mov edx, dword [ebp - 0xc]
call fcn.004043a4
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.004edf70
jmp 0x519597
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x519357
mov eax, dword [0x52afd4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x5195b1
mov eax, dword [0x52afd0]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x5195fd
mov eax, dword [0x52afd0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52afd4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5195fd
inc esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x184]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x52afd4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x184]
mov eax, dword [0x52afd0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec esi
jne 0x5195d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51961b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret