Function at 0x405d2a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
push str.EnumProcs_start
call fcn.00403cd5
pop ecx
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405d66
push str.GetVersionEx_failed__EnumProcs_end
jmp 0x406058
cmp dword [ebp - 0xac], 2
jne 0x405e86
xor ebx, ebx
push str.Using_NT_method
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0xc800
call fcn.00403cd5
mov dword [esp], str.Process
call fcn.00405b13
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push 0x419950
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
push reloc.WSOCK32.dll_connect
call fcn.00405846
push esi
push eax
mov dword [ebp - 8], eax
call fcn.004056e9
mov esi, eax
add esp, 0x28
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x405e6a
push str.ID_Process
call fcn.00405b13
push eax
push esi
call fcn.00405c12
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x405e6a
push esi
call fcn.00405c95
mov edi, eax
pop ecx
cmp edi, ebx
je 0x405e6a
jmp 0x405e01
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x28]
jge 0x405e6a
push dword [ebp - 0xc]
push edi
call fcn.00405cda
mov esi, eax
pop ecx
pop ecx
cmp dword [esi], ebx
je 0x405e5a
push edi
call fcn.00405d09
push eax
lea eax, [ebp - 0x2e8]
push str._S.exe
push eax
call fcn.0040c87c
lea eax, [ebp - 0x2e8]
push eax
push str.procname_s
call fcn.00403cd5
add esp, 0x18
lea eax, [ebp - 0x2e8]
push dword [ebp + 0xc]
push eax
push ebx
push dword [esi]
call dword [ebp + 8]
test eax, eax
je 0x405e78
push edi
call fcn.00405cb6
inc dword [ebp - 4]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x405dfe
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x406033
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40604c
cmp dword [ebp - 0xac], 1
jne 0x406053
push str.Using_Win9x_method
call fcn.00403cd5
xor ebx, ebx
pop ecx
cmp dword [0x41f400], ebx
jne 0x405f65
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x41f400], eax
je 0x40605e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call esi
push str.Process32First
mov dword [0x41f954], eax
push dword [0x41f400]
call esi
push str.Process32Next
mov dword [0x41f958], eax
push dword [0x41f400]
call esi
push str.Module32First
mov dword [0x41f94c], eax
push dword [0x41f400]
call esi
push str.Module32Next
mov dword [0x41f95c], eax
push dword [0x41f400]
call esi
cmp dword [0x41f94c], ebx
mov dword [0x41f950], eax
je 0x405f43
cmp dword [0x41f958], ebx
je 0x405f43
cmp eax, ebx
je 0x405f43
cmp dword [0x41f95c], ebx
je 0x405f43
cmp dword [0x41f954], ebx
jne 0x405f65
push str.Error_loading_libraries
call fcn.00403cd5
pop ecx
push dword [0x41f400]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41f400], ebx
jmp 0x40605e
push ebx
push 2
call dword [0x41f954]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x405f80
push str.CreateToolhelp32Snapshot_failed
jmp 0x406058
lea ecx, [ebp - 0x1e4]
mov esi, 0x128
push ecx
push eax
mov dword [ebp - 0x1e4], esi
call dword [0x41f958]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40602a
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x508]
mov dword [ebp - 0x50c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50c]
push 0x224
push eax
push dword [ebp - 0x1d4]
push dword [ebp - 0x1dc]
call fcn.004055e5
add esp, 0x10
test eax, eax
je 0x406021
lea eax, [ebp - 0x4ec]
push eax
push str.szModule_s
call fcn.00403cd5
pop ecx
lea eax, [ebp - 0x4ec]
pop ecx
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp - 0x1dc]
call dword [ebp + 8]
test eax, eax
je 0x406043
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x1e4], esi
push eax
push dword [ebp - 4]
call dword [0x41f94c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x405fa4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.EnumProcs_end
call fcn.00403cd5
pop ecx
push 1
pop eax
jmp 0x406060
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.EnumProcs_end
jmp 0x406058
push str.EnumProcs_end__Unknown_OS_
call fcn.00403cd5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8