Function at 0x406481
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb98
push ebx
push esi
push edi
push 0xfa0
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0x103
ja 0x4067eb
xor esi, esi
test edi, edi
jle 0x4064e4
lea eax, [ebp - 0x33c]
sub ebx, eax
lea eax, [ebx + esi*2]
movzx eax, word [ebp + eax - 0x33c]
push eax
call fcn.0040609e
mov word [ebp + esi*2 - 0x33c], ax
inc esi
cmp esi, edi
pop ecx
jl 0x4064c5
xor eax, eax
mov word [ebp + edi*2 - 0x33c], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x134], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
jne 0x406513
mov eax, 0x25e
jmp 0x4067f0
cmp dword [ebp - 0x124], 2
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
je 0x406539
cmp dword [ebp - 0x124], 1
je 0x40665a
mov eax, 0x25f
jmp 0x4067f0
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x406557
mov eax, 0x25d
jmp 0x4067f0
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleBaseNameW
push ebx
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 0xc], eax
test edi, edi
je 0x406725
cmp dword [ebp - 8], 0
je 0x406725
test eax, eax
je 0x406725
lea eax, [ebp - 0x14]
push eax
push 0x3e8
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4065bf
mov esi, 0x25d
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
jmp 0x4067f0
mov ebx, dword [ebp - 0x14]
and dword [ebp + 8], 0
shr ebx, 2
test ebx, ebx
jbe 0x40665a
push str.Unknown
lea eax, [ebp - 0x770]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x406624
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [ebp - 8]
test eax, eax
je 0x406624
push 0x104
lea eax, [ebp - 0x770]
push eax
push dword [ebp - 0x1c]
push edi
call dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x770]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea ecx, [ebp - 0x33c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x40671a
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jb 0x4065d1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x124], 1
jne 0x4067b2
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x40654d
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32FirstW
push edi
mov dword [ebp + 8], eax
call esi
push str.Process32NextW
push edi
mov dword [ebp - 8], eax
call esi
push str.Module32FirstW
push edi
mov dword [ebp - 0xc], eax
call esi
push str.Module32NextW
push edi
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], ebx
je 0x4067e5
cmp dword [ebp - 8], ebx
je 0x4067e5
cmp eax, ebx
je 0x4067e5
cmp dword [ebp - 0x18], ebx
je 0x4067e5
cmp dword [ebp + 8], ebx
je 0x4067e5
push ebx
push 2
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4067e5
lea ecx, [ebp - 0x568]
push ecx
mov ebx, 0x22c
push eax
mov dword [ebp - 0x568], ebx
call dword [ebp - 8]
jmp 0x4067a5
mov ebx, dword [ebp - 0x10]
xor esi, esi
inc esi
jmp 0x4065a8
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40654d
push dword [ebp - 0x560]
push 8
call dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x4067bf
lea eax, [ebp - 0xb98]
push eax
push esi
mov dword [ebp - 0xb98], 0x428
call dword [ebp - 0x18]
jmp 0x406787
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0xb78]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x4067d9
lea eax, [ebp - 0xb98]
push eax
push esi
mov dword [ebp - 0xb98], 0x428
call dword [ebp - 0x20]
test eax, eax
jne 0x40675a
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x568], ebx
call dword [ebp - 0xc]
test eax, eax
jne 0x406731
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
jmp 0x4067f0
mov esi, 0x25d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4065b8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
inc esi
jmp 0x4067c4
push edi
jmp 0x406726
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret 4