Function at 0x405bcf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
and byte [ebp - 0x1c4], 0
push ebx
push esi
push edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c3]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405eb2
cmp dword [ebp - 0xac], 2
jne 0x405dfc
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x405eb2
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 - 0x1c], eax
call esi
xor esi, esi
mov dword [ebp - 0x24], eax
cmp ebx, esi
je 0x405dec
cmp dword [ebp - 0x1c], esi
je 0x405dec
cmp eax, esi
je 0x405dec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], 0x400
mov dword [ebp - 0xc], esi
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x405ca0
push dword [ebp - 0xc]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x405cce
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
call ebx
test eax, eax
je 0x405cd5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x405ce7
jmp 0x405c84
xor esi, esi
jmp 0x405dec
push esi
xor esi, esi
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405dec
shr dword [ebp - 8], 2
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
jbe 0x405dc1
mov esi, dword [ebp - 0xc]
and byte [ebp - 0x1c4], 0
push dword [esi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x405d54
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push ebx
call dword [ebp - 0x1c]
test eax, eax
je 0x405d4d
lea eax, [ebp - 0x1c4]
push 0x104
push eax
push dword [ebp - 0x28]
push ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x405d4d
and byte [ebp - 0x1c4], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x405d7d
lea eax, [ebp - 0x1c4]
push eax
push dword [esi]
push str._AutoUp__rEnumProcs__process_list_:__d___s
push 1
call fcn.00408aae
add esp, 0x10
cmp dword [ebp - 0x10], 0x12c
jae 0x405da6
jmp 0x405d92
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c4]
push eax
push 0
push dword [esi]
call dword [ebp + 8]
test eax, eax
je 0x405dba
inc dword [ebp - 0x10]
add esi, 4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jb 0x405d02
jmp 0x405dc1
push dword [ebp - 8]
push str._AutoUp__rEnumProcs__More_than_300_processes_exist___Stop_to_show_processes..__total_:__d_
push 1
call fcn.00408aae
add esp, 0xc
jmp 0x405dc1
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 1
je 0x405ddb
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x405ddb
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jb 0x405cf3
push dword [ebp - 0xc]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
pop esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x405eb4
cmp dword [ebp - 0xac], 1
jne 0x405eb2
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x405eb2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov ebx, eax
call esi
push str.Process32Next
push edi
mov dword [ebp + 0x10], eax
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x405dec
cmp dword [ebp + 0x10], esi
je 0x405dec
cmp ebx, esi
je 0x405dec
push esi
push 2
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405cce
lea eax, [ebp - 0x2ec]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x2ec], esi
call dword [ebp + 0x10]
test eax, eax
je 0x405de9
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c8]
push eax
push 0
push dword [ebp - 0x2e4]
call dword [ebp + 8]
test eax, eax
je 0x405eae
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], esi
push eax
push ebx
call edi
jmp 0x405e7b
xor eax, eax
jmp 0x405e7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret