Function at 0x405b46
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x608
push ebx
push esi
push edi
push 0xfa0
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [ebp + 0x7c]
push esi
mov dword [ebp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0x103
ja 0x405ea2
xor ebx, ebx
test edi, edi
jle 0x405bac
mov dword [ebp + 0x7c], esi
lea eax, [ebp - 0x144]
sub dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x7c]
lea esi, [ebp + ebx - 0x144]
movzx eax, byte [eax + esi]
push eax
call fcn.00405969
inc ebx
pop ecx
mov byte [esi], al
cmp ebx, edi
jl 0x405b90
lea eax, [ebp - 0x40]
push eax
mov byte [ebp + edi - 0x144], 0
mov dword [ebp - 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405bd3
mov eax, 0x25e
jmp 0x405ea7
cmp dword [ebp - 0x30], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x405bf3
cmp dword [ebp - 0x30], 1
je 0x405d14
mov eax, 0x25f
jmp 0x405ea7
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp + 0x64], ebx
test ebx, ebx
jne 0x405c11
mov eax, 0x25d
jmp 0x405ea7
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleBaseNameA
push ebx
mov dword [ebp + 0x6c], eax
call esi
mov dword [ebp + 0x68], eax
test edi, edi
je 0x405ddc
cmp dword [ebp + 0x6c], 0
je 0x405ddc
test eax, eax
je 0x405ddc
lea eax, [ebp + 0x60]
push eax
push 0x3e8
push dword [ebp + 0x70]
call edi
test eax, eax
jne 0x405c79
mov esi, 0x25d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x405ea7
mov ebx, dword [ebp + 0x60]
and dword [ebp + 0x7c], 0
shr ebx, 2
test ebx, ebx
je 0x405d14
push str.Unknown
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x7c]
push dword [eax + ecx*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405cde
lea eax, [ebp + 0x60]
push eax
push 4
lea eax, [ebp + 0x58]
push eax
push edi
call dword [ebp + 0x6c]
test eax, eax
je 0x405cde
push 0x104
lea eax, [ebp - 0x370]
push eax
push dword [ebp + 0x58]
push edi
call dword [ebp + 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405dd1
inc dword [ebp + 0x7c]
cmp dword [ebp + 0x7c], ebx
jb 0x405c8b
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x30], 1
jne 0x405e69
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
mov dword [ebp + 0x64], edi
cmp edi, ebx
je 0x405c07
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov dword [ebp + 0x7c], eax
call esi
push str.Process32Next
push edi
mov dword [ebp + 0x6c], eax
call esi
push str.Module32First
push edi
mov dword [ebp + 0x68], eax
call esi
push str.Module32Next
push edi
mov dword [ebp + 0x5c], eax
call esi
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x68], ebx
je 0x405e9c
cmp dword [ebp + 0x6c], ebx
je 0x405e9c
cmp eax, ebx
je 0x405e9c
cmp dword [ebp + 0x5c], ebx
je 0x405e9c
cmp dword [ebp + 0x7c], ebx
je 0x405e9c
push ebx
push 2
call dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
cmp eax, 0xffffffff
je 0x405e9c
lea ecx, [ebp - 0x26c]
push ecx
mov ebx, 0x128
push eax
mov dword [ebp - 0x26c], ebx
call dword [ebp + 0x6c]
jmp 0x405e5c
mov ebx, dword [ebp + 0x64]
xor esi, esi
inc esi
jmp 0x405c62
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405c07
push dword [ebp - 0x264]
push 8
call dword [ebp + 0x7c]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e76
lea eax, [ebp - 0x594]
push eax
push esi
mov dword [ebp - 0x594], 0x224
call dword [ebp + 0x5c]
jmp 0x405e3e
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x574]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405e90
lea eax, [ebp - 0x594]
push eax
push esi
mov dword [ebp - 0x594], 0x224
call dword [ebp + 0x54]
test eax, eax
jne 0x405e11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x26c], ebx
call dword [ebp + 0x68]
test eax, eax
jne 0x405de8
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x405ea7
mov esi, 0x25d
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405c72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x405e7b
push edi
jmp 0x405ddd
mov eax, 0x278
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4