Function at 0x421f7f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov al, byte [0x469cb0]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x1bc], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bb]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xb8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x422202
cmp dword [ebp - 0xa8], 2
jne 0x422129
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x24], edi
je 0x422202
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov dword [ebp - 8], eax
call esi
push str.GetModuleFileNameExA
push edi
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
je 0x42208c
cmp dword [ebp - 0x10], ebx
je 0x42208c
cmp eax, ebx
je 0x42208c
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], 0x400
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x422056
push dword [ebp - 0xc]
push ebx
call esi
push eax
call edi
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x42208c
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 4]
push eax
call dword [ebp - 8]
test eax, eax
je 0x422083
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x422093
jmp 0x422040
push dword [ebp - 0xc]
push ebx
call esi
push eax
call edi
xor esi, esi
jmp 0x4221f5
shr dword [ebp - 0x18], 2
mov dword [ebp - 8], ebx
je 0x42211b
mov ebx, dword [ebp - 0xc]
and byte [ebp - 0x1bc], 0
push dword [ebx]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4220f6
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x20]
push 4
push ecx
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x4220ed
lea eax, [ebp - 0x1bc]
push 0x104
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x4220ed
and byte [ebp - 0x1bc], al
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1bc]
push eax
push 0
push dword [ebx]
call dword [ebp + 8]
test eax, eax
je 0x422119
inc dword [ebp - 8]
add ebx, 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x42209f
xor ebx, ebx
push dword [ebp - 0xc]
push ebx
call esi
push eax
call edi
jmp 0x4221f2
cmp dword [ebp - 0xa8], 1
jne 0x422202
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x24], edi
je 0x422202
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov dword [ebp - 0x14], eax
call esi
push str.Process32Next
push edi
mov dword [ebp - 0x10], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x42208c
cmp dword [ebp - 0x10], ebx
je 0x42208c
cmp dword [ebp - 0x14], ebx
je 0x42208c
push ebx
push 2
call dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x42208c
lea eax, [ebp - 0x2e4]
mov esi, 0x128
push eax
push edi
mov dword [ebp - 0x2e4], esi
call dword [ebp - 0x10]
test eax, eax
je 0x4221eb
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c0]
push eax
push ebx
push dword [ebp - 0x2dc]
call dword [ebp + 8]
test eax, eax
je 0x4221e5
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], esi
push eax
push edi
call dword [ebp - 0x1c]
jmp 0x4221e7
xor eax, eax
cmp eax, ebx
jne 0x4221ba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x422204
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8