Function at 0x405d15
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 0x405ff8
cmp dword [ebp - 0xac], 2
jne 0x405f42
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x405ff8
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 0x405f32
cmp dword [ebp - 0x1c], esi
je 0x405f32
cmp eax, esi
je 0x405f32
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 0x405de6
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 0x405e14
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
call ebx
test eax, eax
je 0x405e1b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x405e2d
jmp 0x405dca
xor esi, esi
jmp 0x405f32
push esi
xor esi, esi
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405f32
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 0x405f07
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 0x405e9a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push ebx
call dword [ebp - 0x1c]
test eax, eax
je 0x405e93
lea eax, [ebp - 0x1c4]
push 0x104
push eax
push dword [ebp - 0x28]
push ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x405e93
and byte [ebp - 0x1c4], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x405ec3
lea eax, [ebp - 0x1c4]
push eax
push dword [esi]
push str._AutoUp__rEnumProcs__process_list_:__d___s
push 1
call fcn.00408bf4
add esp, 0x10
cmp dword [ebp - 0x10], 0x12c
jae 0x405eec
jmp 0x405ed8
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c4]
push eax
push 0
push dword [esi]
call dword [ebp + 8]
test eax, eax
je 0x405f00
inc dword [ebp - 0x10]
add esi, 4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jb 0x405e48
jmp 0x405f07
push dword [ebp - 8]
push str._AutoUp__rEnumProcs__More_than_300_processes_exist___Stop_to_show_processes..__total_:__d_
push 1
call fcn.00408bf4
add esp, 0xc
jmp 0x405f07
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 1
je 0x405f21
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x405f21
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jb 0x405e39
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 0x405ffa
cmp dword [ebp - 0xac], 1
jne 0x405ff8
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x405ff8
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 0x405f32
cmp dword [ebp + 0x10], esi
je 0x405f32
cmp ebx, esi
je 0x405f32
push esi
push 2
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e14
lea eax, [ebp - 0x2ec]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x2ec], esi
call dword [ebp + 0x10]
test eax, eax
je 0x405f2f
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c8]
push eax
push 0
push dword [ebp - 0x2e4]
call dword [ebp + 8]
test eax, eax
je 0x405ff4
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], esi
push eax
push ebx
call edi
jmp 0x405fc1
xor eax, eax
jmp 0x405fc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret