Function at 0x494870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test byte [0x597ee0], 1
push esi
push edi
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ebx
jne 0x49490e
or dword [0x597ee0], 1
push 4
call fcn.0051d4d3
add esp, 4
cmp eax, ebx
je 0x4948cb
mov dword [eax], 0x597ec0
mov dword [0x597ec0], eax
jmp 0x4948d1
mov dword [0x597ec0], ebx
mov ecx, 0x597ec0
call fcn.00446550
mov dword [0x597ed8], eax
mov byte [eax + 0x29], 1
mov eax, dword [0x597ed8]
mov dword [eax + 4], eax
mov eax, dword [0x597ed8]
mov dword [eax], eax
mov eax, dword [0x597ed8]
mov dword [eax + 8], eax
push 0x555a60
mov dword [0x597edc], ebx
call fcn.00520fed
add esp, 4
cmp dword [0x597edc], ebx
je 0x494936
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x597ebc]
sub edx, eax
cmp edx, 0x1388
ja 0x494936
cmp dword [ebp + 0x10], 1
jne 0x494ac3
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0xffffffff
je 0x494ac3
mov eax, dword [0x597ed8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x597ec0
call fcn.0046bea0
mov eax, dword [0x597ed8]
mov dword [eax + 4], eax
mov eax, dword [0x597ed8]
push 0x228
mov dword [0x597edc], ebx
mov dword [eax], eax
mov eax, dword [0x597ed8]
lea edx, [ebp - 0x22c]
push ebx
push edx
mov dword [eax + 8], eax
call fcn.0051d250
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
mov edi, 0x22c
push esi
mov dword [ebp - 0x230], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x494abc
jmp 0x4949c0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00464b60
lea ecx, [ebp - 0x234]
call fcn.00451410
mov ecx, eax
call fcn.0044b970
mov eax, dword [ebp - 0x234]
mov esi, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x494a10
push esi
lea ecx, [ebp - 0x234]
call fcn.0043a120
mov eax, dword [ebp - 0x234]
lea edx, [esi + 1]
push edx
push eax
call fcn.0051e26d
add esp, 8
cmp esi, ebx
jl 0x494b5d
mov eax, dword [ebp - 0x234]
cmp esi, dword [eax - 8]
jg 0x494b5d
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov word [ecx + esi*2], ax
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x234]
push eax
mov ecx, 0x597ec0
call fcn.00493ac0
mov ecx, eax
call fcn.004801e0
push edi
lea ecx, [ebp - 0x230]
push ebx
push ecx
call fcn.0051d250
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 0x230], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494a9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x230]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4949c0
mov esi, dword [ebp - 0x238]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x234]
call fcn.00464b60
lea ecx, [ebp - 0x234]
call fcn.0044f1c0
mov ebx, dword [0x597ed8]
mov edi, dword [0x597ec0]
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x248]
push edx
mov ecx, 0x597ec0
call fcn.00456d90
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x494b10
cmp eax, edi
je 0x494b15
call fcn.0051f89a
cmp dword [esi + 4], ebx
je 0x494b67
lea eax, [ebp - 0x234]
push eax
mov ecx, 0x597ec0
call fcn.00493ac0
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x494b67
lea edx, [ebp - 0x234]
push edx
mov ecx, 0x597ec0
call fcn.00493ac0
mov ecx, dword [ebp - 0x23c]
push eax
call fcn.00478910
mov esi, 1
jmp 0x494b6d
push 0x80070057
call fcn.00414840
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret