Function at 0x51d3f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x51d3f8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51d93c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.0043bc28
mov byte [ebp - 0x15], 1
xor edx, edx
push ebp
push 0x51d8f1
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x51d8e0
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 0x51d50f
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.00409770
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00408a68
mov eax, dword [ebp - 0x148]
mov edx, 0x51d954
call fcn.0040475c
je 0x51d4f9
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.00408a68
mov eax, dword [ebp - 0x154]
mov edx, 0x51d954
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 0x51d477
cmp ebx, dword [0x52efb8]
je 0x51d8c9
mov eax, dword [0x52efd4]
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 0x51d5a9
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.00408a68
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0xc]
call fcn.0051c118
mov eax, dword [ebp - 0xc]
call fcn.0051c218
cmp al, 1
jne 0x51d593
mov edx, dword [ebp - 0xc]
mov eax, dword [0x52efd4]
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 0x51d545
cmp dword [0x52efb8], 0
jne 0x51d602
mov eax, dword [0x52efd0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52efd4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x51d602
inc esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x164]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x52efd4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x164]
mov eax, dword [0x52efd0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec esi
jne 0x51d5d9
mov dword [0x52efb8], 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 0x51d85b
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.00408a68
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0xc]
call fcn.0051c118
mov eax, dword [ebp - 0xc]
call fcn.0051c218
cmp al, 1
jne 0x51d845
mov eax, dword [ebp - 0x12c]
call fcn.0051cda8
test al, al
je 0x51d845
mov eax, dword [ebp - 0xc]
call fcn.0051c168
test al, al
jne 0x51d845
call fcn.0040b87c
fstp qword [0x52efd8]
wait
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
call fcn.0051bf60
jmp 0x51d6b5
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
call fcn.0051bf60
call fcn.0040b87c
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x52efdc]
push dword [0x52efd8]
call fcn.004b0b98
cmp edx, 0
jne 0x51d6e0
cmp eax, 0x3e8
jae 0x51d6e8
jmp 0x51d6e2
jge 0x51d6e8
cmp dword [ebp - 0x14], 0
je 0x51d6a7
call fcn.0040b87c
fstp qword [0x52efd8]
wait
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x13c]
call fcn.0051ccd0
jmp 0x51d712
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x13c]
call fcn.0051ccd0
call fcn.0040b87c
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x52efdc]
push dword [0x52efd8]
call fcn.004b0b98
cmp edx, 0
jne 0x51d73d
cmp eax, 0x3e8
jae 0x51d745
jmp 0x51d73f
jge 0x51d745
cmp dword [ebp - 0x10], 0
je 0x51d704
cmp dword [ebp - 0x14], 0
je 0x51d845
cmp dword [ebp - 0x10], 0
je 0x51d845
mov eax, dword [ebp - 0x14]
call fcn.0051c764
test al, al
jne 0x51d7dd
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 0x14]
call fcn.00408a68
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.00408a68
mov eax, dword [ebp - 0x174]
pop edx
call fcn.0040e470
test eax, eax
jle 0x51d845
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 0x51d845
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, dword [ebp - 0x180]
call fcn.0040950c
test al, al
je 0x51d845
mov eax, dword [ebp - 0x13c]
mov dword [0x52efbc], eax
call fcn.0040b87c
fstp qword [0x52efc0]
wait
mov eax, 0x52efc8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040465c
mov eax, 0x52efcc
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.004f21cc
jmp 0x51d863
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 0x51d623
mov eax, dword [0x52efd4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x51d87d
mov eax, dword [0x52efd0]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x51d8c9
mov eax, dword [0x52efd0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52efd4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x51d8c9
inc esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x184]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x52efd4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x184]
mov eax, dword [0x52efd0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec esi
jne 0x51d8a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d8e7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret