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

Disassembly:
push 0xffffffffffffffff
push 0x4a5c2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x93c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x940], eax
mov eax, dword [esp + 0x954]
push ebx
push 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebx
jne 0x42d7b1
xor eax, eax
jmp 0x42d8d5
push edi
push 0x400
lea ecx, [esp + 0x148]
push ecx
mov byte [esp + 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x144]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42d7d5
mov edx, dword [str._spsapi.dll]
mov eax, dword [0x4b1b6c]
mov ecx, dword [0x4b1b70]
mov dword [edi], edx
mov dl, byte [0x4b1b74]
mov dword [edi + 4], eax
push ebp
lea eax, [esp + 0x148]
mov dword [edi + 8], ecx
push eax
mov byte [edi + 0xc], dl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x42d824
push str.GetModuleFileNameExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x95c], ebx
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42d8b5
lea esp, [esp]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14]
push 0x4ad12c
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0xb
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push str.KmLiveUpdate.exe
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x1c]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
jne 0x42d8fc
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42d850
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x42d8c7
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x944]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x93c]
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x948
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x42d950
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42d950
push 0x400
lea ecx, [esp + 0x54c]
push ecx
push 0
push esi
call ebx
test eax, eax
je 0x42d94d
lea edx, [esp + 0x548]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push esi
call edi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
test ebp, ebp
je 0x42d96a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x42d8d3