Function at 0x459830
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a44
call fcn.004da530
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a3c], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1a34], ebx
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x45986a
test ebx, ebx
je 0x459ae1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1a38], eax
cmp eax, 0xffffffff
je 0x459ae1
push 0x228
lea eax, [ebp - 0x1a2c]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push dword [ebp - 0x1a38]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x459ad5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x1a44], ecx
push esi
nop dword [eax + eax]
cmp ecx, dword [ebp - 0x1a28]
je 0x459ab4
mov eax, dword [ebp - 0x1a3c]
xor esi, esi
test eax, eax
je 0x459902
push eax
lea eax, [ebp - 0x1a0c]
push eax
call fcn.0051070a
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
test ebx, ebx
je 0x45991a
lea eax, [ebp - 0x1a0c]
push ebx
push eax
call fcn.0051070a
add esp, 8
test eax, eax
je 0x459922
test esi, esi
je 0x459ab4
lea eax, [ebp - 0x1a0c]
push eax
push dword [ebp - 0x1a28]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__tid:_d__Process32First_Find_th32ProcessID:_d__szExeFile:_s
call fcn.00492250
mov ebx, dword [ebp - 0x1a28]
lea eax, [ebp - 0x1004]
push 0x800
push 0
push eax
call fcn.004f39e0
add esp, 0x1c
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x459a51
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x459a19
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004f39e0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.004f4195
add esp, 0x14
test eax, eax
je 0x4599f2
push 0x400
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x4599f2
mov ecx, 1
jmp 0x4599f4
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1804]
lea eax, [ebp - 0x804]
cmovne eax, edx
push 0x400
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.005128f0
jmp 0x459a47
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x459a4a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00459630
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1004]
push eax
call fcn.004cf4a0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1004]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__tid:_d__Is360Process_ProcessID:_d_ProcessPath:_s_sign:_d
call fcn.00492250
add esp, 0x14
test esi, esi
je 0x459aae
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a40], ecx
cmp dword [edi + 8], eax
je 0x459a9f
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x459aae
lea ecx, [ebp - 0x1a40]
push ecx
push eax
mov ecx, edi
call fcn.00458760
mov ebx, dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a30]
push eax
push dword [ebp - 0x1a38]
call sub.KERNEL32.dll_Process32NextW
mov ecx, dword [ebp - 0x1a44]
test eax, eax
jne 0x4598d0
pop esi
push dword [ebp - 0x1a38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 0xc