Function at 0x402680
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x424db2
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x42fce0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42fce0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x25c], ebx
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
call fcn.00404d9c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4026e8
push 0x80004005
call fcn.00403c80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push ebx
mov dword [esp + 0x260], ebx
push 2
mov dword [esp + 0x24], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40281e
push 0x124
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.00413280
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402817
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea esp, [esp]
lea eax, [esp + 0x48]
push eax
call fcn.00424497
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00401e10
add esp, 0xc
test eax, eax
je 0x4027a4
push 0x103
lea eax, [esp + 0x151]
push ebx
push eax
mov byte [esp + 0x158], bl
call fcn.00413280
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
push ebx
push 0x410
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4027b5
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402750
jmp 0x402817
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4027e3
mov eax, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x150]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14c]
push 0x5c
push ecx
call fcn.00411f40
add esp, 8
cmp eax, ebx
je 0x402802
mov byte [eax], bl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14c]
push edx
call fcn.00403c40
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x4028c9
push 0x103
lea ecx, [esp + 0x151]
push ebx
push ecx
mov byte [esp + 0x158], bl
call fcn.00413280
add esp, 0xc
push ebx
push 0x26
lea edx, [esp + 0x154]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x14c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402860
mov ecx, dword [str.TencentQQBin]
mov edx, dword [0x429ba4]
mov dword [eax], ecx
mov ecx, dword [0x429ba8]
mov dword [eax + 4], edx
mov edx, dword [0x429bac]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x14c]
push ebx
push eax
call fcn.004120b2
add esp, 8
test eax, eax
jne 0x4028c9
lea eax, [esp + 0x14c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4028b0
sub eax, edx
push eax
lea ecx, [esp + 0x150]
push ecx
mov ecx, esi
call fcn.00403b50
mov eax, esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004116ac
add esp, 0x24c
ret