Function at 0x465760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9fc2
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x52de08]
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, 0x52f4b8
call fcn.004572d0
test al, al
jne 0x4657b0
mov eax, dword [0x52f51c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4659ae
call fcn.004828e0
mov ecx, 0x52f4b8
call fcn.00457580
test al, al
je 0x465901
mov ecx, dword [0x52f51c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edx, [ebp - 0x240]
push edx
mov ecx, 0x52f4b8
call fcn.004534f0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x240]
push 0x5c
push eax
call fcn.004ad333
add esp, 8
cmp eax, ebx
jne 0x465804
or eax, 0xffffffff
jmp 0x46580c
sub eax, dword [ebp - 0x240]
sar eax, 1
inc eax
push eax
push ebx
lea ecx, [ebp - 0x240]
call fcn.004637e0
push 0x22c
lea ecx, [ebp - 0x23c]
push ebx
push ecx
call fcn.004aab30
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4658cf
lea edx, [ebp - 0x23c]
push edx
push edi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4658c8
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4658c8
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x218]
push ecx
push edx
call fcn.004ab66d
add esp, 8
test eax, eax
jne 0x4658b3
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 0x4658c6
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 0x46586e
jmp 0x4658c8
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 0x46599d
push 1
push esi
call fcn.00465580
add esp, 8
cmp eax, 0x4c7
jne 0x4659a9
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [0x52f500]
call fcn.00442d60
mov esi, eax
mov ebx, 2
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x240]
push edx
call fcn.00464550
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 0x465980
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 0x4659a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00481d30
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.004aaa9b
mov esp, ebp
pop ebp
ret