Function at 0x421470
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50d890
push 0x46acc0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a44
call fcn.004534e0
mov eax, dword [0x51c91c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov dword [ebp - 0x2a3c], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a40], edi
push str.enter_KillMultiProcesses
call fcn.00423b70
add esp, 4
test esi, esi
je 0x42179d
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4214e0
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2a2c], esi
cmp esi, 4
jl 0x42179d
cmp esi, 0x104
jg 0x42179d
test edi, edi
je 0x421514
mov dword [edi], 0
xor edi, edi
mov dword [ebp - 0x2a34], edi
mov dword [ebp - 0x2a28], edi
mov dword [ebp - 4], edi
call fcn.00421060
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp - 0x2a30]
jmp 0x42156e
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00469210
mov dword [ebp - 0x2a38], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.00469210
add esp, 0x18
lea eax, [ebp - 0x2a38]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4215d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumProcesses_fail_dwError___lu
call fcn.00423b70
add esp, 8
jmp 0x42179d
push 0x104
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.004852cb
lea eax, [ebp - 0x224]
push eax
call fcn.00485ce0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x2a28], eax
or edi, 0xffffffff
xorps xmm0, xmm0
movups xmmword [ebp - 0x2a5c], xmm0
movq qword [ebp - 0x2a4c], xmm0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2a30], eax
test eax, eax
jne 0x42163b
or ecx, 0xffffffff
mov dword [ebp - 0x2a2c], ecx
jmp 0x4216d9
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2a3c], eax
test eax, eax
jne 0x421668
push dword [ebp - 0x2a30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or ecx, 0xffffffff
mov dword [ebp - 0x2a2c], ecx
jmp 0x4216d9
push dword [ebp - 0x2a28]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2a44], eax
test eax, eax
jne 0x42169c
push dword [ebp - 0x2a30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or ecx, 0xffffffff
mov dword [ebp - 0x2a2c], ecx
jmp 0x4216d9
push 0
push 0x18
lea ecx, [ebp - 0x2a5c]
push ecx
push 0
push eax
call dword [ebp - 0x2a3c]
test eax, eax
cmove edi, dword [ebp - 0x2a48]
mov dword [ebp - 0x2a2c], edi
push dword [ebp - 0x2a44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2a30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
xor edi, edi
cmp dword [ebp - 0x2a38], edi
jbe 0x42177e
mov edx, dword [ebp - 0x2a28]
nop dword [eax]
mov eax, dword [ebp + edi*4 - 0x2a24]
cmp edx, eax
je 0x42176b
cmp ecx, eax
je 0x42176b
push 0x400
lea ecx, [ebp - 0xa24]
push ecx
push eax
call fcn.00421190
add esp, 0xc
test eax, eax
je 0x421765
lea eax, [ebp - 0xa24]
push eax
call fcn.00485ce0
push esi
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00487d70
add esp, 0x10
test eax, eax
jne 0x421765
push dword [ebp + edi*4 - 0x2a24]
call fcn.00421bc0
lea eax, [ebp - 0xa24]
push eax
push 0x4f0710
call fcn.00423b70
add esp, 8
inc dword [ebp - 0x2a34]
mov edx, dword [ebp - 0x2a28]
inc edi
cmp edi, dword [ebp - 0x2a38]
mov ecx, dword [ebp - 0x2a2c]
jb 0x4216f0
mov ecx, dword [ebp - 0x2a40]
test ecx, ecx
je 0x421790
mov eax, dword [ebp - 0x2a34]
mov dword [ecx], eax
push str.end_KillMultiProcesses
call fcn.00423b70
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret 8