Function at 0x4060ca
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x134c
call fcn.00416550
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00405aaf
test eax, eax
pop ecx
je 0x406357
lea eax, [ebp - 0x34c]
push eax
push dword [ebp + 8]
call fcn.00405c91
pop ecx
pop ecx
call fcn.00405bc4
cmp eax, 2
jne 0x406269
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x406357
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov ebx, eax
call esi
push str.GetModuleFileNameExA
push edi
mov dword [ebp - 0x18], eax
call esi
test ebx, ebx
mov dword [ebp - 4], eax
je 0x406254
cmp dword [ebp - 0x18], 0
je 0x406254
test eax, eax
je 0x406254
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x134c]
push 0x1000
push eax
call ebx
and dword [ebp - 8], 0
test dword [ebp - 0xc], 0xfffffffc
jbe 0x406254
lea eax, [ebp - 0x134c]
mov esi, 0x104
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push dword [eax]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x406237
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x406237
mov al, byte [0x424ae0]
push 0x40
mov byte [ebp - 0x120], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
push esi
push eax
push dword [ebp - 0x14]
push ebx
call dword [ebp - 4]
lea eax, [ebp - 0x120]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x120]
push eax
push str.Process__s_in_memroy.
push 0x424b20
call fcn.0040d0ca
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00415f40
add esp, 0x14
test eax, eax
je 0x40625a
mov edi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 8]
add dword [ebp + 8], 4
shr eax, 2
cmp dword [ebp - 8], eax
jb 0x406193
push edi
jmp 0x406351
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
jmp 0x406361
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
je 0x406357
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov edi, eax
call esi
push str.Process32Next
mov ebx, eax
push dword [ebp + 8]
call esi
test edi, edi
mov dword [ebp - 4], eax
je 0x40634e
test ebx, ebx
je 0x40634e
test eax, eax
je 0x40634e
push 0
push 2
mov dword [ebp - 0x248], 0x128
call edi
mov edi, eax
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
je 0x40634e
mov esi, 0x104
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00415570
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push esi
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x120]
push eax
push str.Process__s_in_memroy.
push 0x424b20
call fcn.0040d0ca
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00415f40
add esp, 0x14
test eax, eax
je 0x40635e
lea eax, [ebp - 0x248]
push eax
push edi
call dword [ebp - 4]
test eax, eax
jne 0x4062e5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
jmp 0x406359