Function at 0x51fa70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e31
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5d6b80]
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]
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x25c], eax
xor eax, eax
mov dword [ebp - 0x250], eax
call fcn.0045abd0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
je 0x51fb17
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00525ee0
mov esi, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x51fb1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x51fd52
mov dword [ebp - 0x254], 0x3b
mov dword [ebp - 0x260], 0x3b
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x258], 0
jmp 0x51fb50
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x264]
lea eax, [ebp - 0x24c]
push eax
call fcn.00520360
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
lea eax, [ebp - 0x244]
push eax
call fcn.00520360
push dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call fcn.00526fc5
add esp, 0x28
test eax, eax
je 0x51fc11
mov edx, dword [ebp - 0x244]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fbd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fbff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x240], 0xffffffff
jne 0x51fb50
jmp 0x51fd26
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
push eax
call fcn.0045a950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
cmp dword [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x51fc5c
push dword [ebp - 0x234]
lea eax, [ebp - 0x240]
push dword [ebp - 0x244]
push str._s_t_t_ProcID__d_
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x240]
add esp, 0x10
test esi, esi
je 0x51fc7f
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x51fc7f
push esi
push eax
call fcn.00526d32
add esp, 8
test eax, eax
je 0x51fc7f
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x51fcb7
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x51fcac
test ebx, ebx
jne 0x51fc8f
xor eax, eax
jmp 0x51fca3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51fc94
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, edi
call fcn.00472540
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00472540
inc dword [ebp - 0x250]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fcdb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fcff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fd26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x248]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x51fb33
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x250]
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.00525878
mov esp, ebp
pop ebp
ret