Function at 0x464860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523972
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x587978]
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 esi, dword [ebp + 8]
mov ecx, 0x589030
call fcn.00456b20
test al, al
jne 0x4648b0
mov eax, dword [0x589094]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x464aae
call fcn.004838f0
mov ecx, 0x589030
call fcn.00456dd0
test al, al
je 0x464a01
mov ecx, dword [0x589094]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edx, [ebp - 0x240]
push edx
mov ecx, 0x589030
call fcn.00452ce0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x240]
push 0x5c
push eax
call fcn.004ed473
add esp, 8
cmp eax, ebx
jne 0x464904
or eax, 0xffffffff
jmp 0x46490c
sub eax, dword [ebp - 0x240]
sar eax, 1
inc eax
push eax
push ebx
lea ecx, [ebp - 0x240]
call fcn.00463360
push 0x22c
lea ecx, [ebp - 0x23c]
push ebx
push ecx
call fcn.004eafd0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4649cf
lea edx, [ebp - 0x23c]
push edx
push edi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4649c8
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4649c8
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x218]
push ecx
push edx
call fcn.004ebb0d
add esp, 8
test eax, eax
jne 0x4649b3
mov eax, dword [ebp - 0x234]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x234], eax
jne 0x4649c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46496e
jmp 0x4649c8
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x464a9d
push 1
push esi
call fcn.00464680
add esp, 8
cmp eax, 0x4c7
jne 0x464aa9
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [0x589078]
call fcn.00441da0
mov esi, eax
mov ebx, 2
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x240]
push edx
call fcn.00463d00
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [esi]
mov eax, dword [eax]
push 0x30
push esi
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464aa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00482d40
xor eax, eax
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.004eaf3b
mov esp, ebp
pop ebp
ret