Function at 0x40b630
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1654
call fcn.004279a0
mov eax, dword [0x44c264]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x644]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x648], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x654], ebx
jne 0x40b6aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed_with_errno__u.
push 4
call dword [sym.imp.QQMusicCommon.dll_void___cdecl_qqmusic::WriteLog_unsigned_long_int__wchar_t_const__]
add esp, 0xc
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042798a
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x648]
push ecx
push ebx
mov dword [ebp - 0x64c], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b8a5
push esi
jmp 0x40b6d0
lea edx, [ebp - 0x624]
push str.qqmusic.exe
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40b88f
mov eax, dword [ebp - 0x640]
push eax
push edi
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40b88f
push 0x208
lea ecx, [ebp - 0x20e]
push edi
push ecx
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
push 0xffc
lea edx, [ebp - 0x1650]
push edi
push edx
mov dword [ebp - 0x1654], edi
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [ebp - 0x650]
push eax
push 0x1000
lea ecx, [ebp - 0x1654]
push ecx
push esi
mov dword [ebp - 0x650], edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40b87a
mov ebx, dword [ebp - 0x650]
push 0x208
lea edx, [ebp - 0x41a]
push edi
push edx
shr ebx, 2
mov word [ebp - 0x41c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
test ebx, ebx
jle 0x40b878
mov ecx, dword [ebp + edi*4 - 0x1654]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40b7e2
test edi, edi
jne 0x40b7cc
lea edx, [ebp - 0x210]
push edx
push 0x105
lea eax, [ebp - 0x41c]
push eax
call fcn.00404980
push 0x42e994
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40b7ee
add edi, 1
cmp edi, ebx
jl 0x40b792
jmp 0x40b878
cmp dword [ebp + 8], 0
mov dword [ebp - 0x64c], 1
je 0x40b878
lea edx, [ebp - 0x41c]
push str.QQmusic.exe__exit
push edx
call fcn.00424050
add esp, 8
test eax, eax
jne 0x40b831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.QQMusicCommon.dll_void___cdecl_qqmusic::WriteLog_unsigned_long_int__wchar_t_const__]
push eax
push str.call_RunAppAsUserInternal_failed_with_errno__u.
push 4
call edi
add esp, 0xc
jmp 0x40b837
mov edi, dword [sym.imp.QQMusicCommon.dll_void___cdecl_qqmusic::WriteLog_unsigned_long_int__wchar_t_const__]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
push esi
call ebx
test eax, eax
je 0x40b878
push eax
push str.Wait_QQMusic_to_exit_failed._with_return_value__u._Now_kill_qqmusic_rudly.
push 4
call edi
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call ebx
test eax, eax
je 0x40b878
push eax
push str.Wait_QQMusic_to_exit_failed_twice_with_return_value__u._I_have_no_idea.
push 4
call edi
add esp, 0xc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x64c], edi
mov ebx, dword [ebp - 0x654]
jne 0x40b8a4
lea eax, [ebp - 0x648]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b6d0
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042798a
mov esp, ebp
pop ebp
ret 4