Function at 0x42efc0
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a5db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x948
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x960]
push esi
mov esi, dword [esp + 0x968]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x954], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x960], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
push 2
mov byte [esp + 0x968], 1
mov dword [esp + 0x24], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
jne 0x42f051
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x42f223
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x400
lea eax, [esp + 0x158]
push eax
mov byte [esp + 0x15c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x558]
push str._spsapi.dll
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x28], eax
je 0x42f0b5
push str.GetModuleFileNameExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov dword [esp + 0x34], 0x128
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
test esi, esi
je 0x42f1f5
lea ebx, [ebx]
mov edx, dword [esp + 0x970]
cmp dword [esp + 0x34], edx
je 0x42f1d4
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push 0x4ad12c
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x24]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x42f1d0
xor eax, eax
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x154], cl
inc eax
test cl, cl
jne 0x42f164
test edi, edi
je 0x42f1a9
mov ecx, dword [esp + 0x34]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42f1a9
push 0x400
lea edx, [esp + 0x158]
push edx
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f1b0
sub eax, edx
push eax
lea eax, [esp + 0x158]
push eax
push ebp
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x42f1e9
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42f0f0
jmp 0x42f1f5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42f20b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x958]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x948]
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x954
ret