Function at 0x405a6a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb94
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
cmp edi, 1
jl 0x405dac
cmp edi, 0x104
jg 0x405dac
xor esi, esi
test edi, edi
jle 0x405ad4
lea eax, [ebp - 0x338]
sub ebx, eax
lea eax, [ebx + esi*2]
movzx eax, word [ebp + eax - 0x338]
push eax
call fcn.004058d9
mov word [ebp + esi*2 - 0x338], ax
inc esi
cmp esi, edi
pop ecx
jl 0x405ab5
and word [ebp + edi*2 - 0x338], 0
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x130], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405b02
mov eax, 0x25e
jmp 0x405db1
cmp dword [ebp - 0x120], 2
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x405b2e
cmp dword [ebp - 0x120], 1
je 0x405c34
mov eax, 0x25f
jmp 0x405db1
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x405c5e
push str.EnumProcesses
push eax
call esi
push str.EnumProcessModules
push dword [ebp + 8]
mov edi, eax
call esi
push str.GetModuleBaseNameW
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call esi
test edi, edi
mov dword [ebp - 0x10], eax
je 0x405d9a
cmp dword [ebp - 0xc], 0
je 0x405d9a
test eax, eax
je 0x405d9a
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push dword [ebp - 4]
call edi
test eax, eax
jne 0x405b9e
mov esi, 0x25d
jmp 0x405c6b
mov eax, dword [ebp - 0x18]
shr eax, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
je 0x405c34
push str.Unknown
lea eax, [ebp - 0x76c]
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 0x405c07
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [ebp - 0xc]
test eax, eax
je 0x405c07
push 0x104
lea eax, [ebp - 0x76c]
push eax
push dword [ebp - 0x1c]
push edi
call dword [ebp - 0x10]
push edi
call ebx
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405c68
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x405bb4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x120], 1
jne 0x405d88
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x405c82
mov eax, 0x25d
jmp 0x405db1
xor esi, esi
inc esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x405d93
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32FirstW
push edi
mov dword [ebp - 4], eax
call esi
push str.Process32NextW
push edi
mov dword [ebp - 0xc], eax
call esi
push str.Module32FirstW
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Module32NextW
push edi
mov dword [ebp - 8], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x405d9a
cmp dword [ebp - 0xc], ecx
je 0x405d9a
cmp eax, ecx
je 0x405d9a
cmp dword [ebp - 8], ecx
je 0x405d9a
cmp dword [ebp - 4], ecx
je 0x405d9a
push ecx
push 2
call dword [ebp - 4]
mov edi, eax
cmp edi, 0xffffffff
je 0x405d9a
lea eax, [ebp - 0x564]
push eax
push edi
mov dword [ebp - 0x564], 0x22c
call dword [ebp - 0xc]
jmp 0x405d81
push dword [ebp - 0x55c]
push 8
call dword [ebp - 4]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d97
lea eax, [ebp - 0xb94]
push eax
push esi
mov dword [ebp - 0xb94], 0x428
call dword [ebp - 8]
jmp 0x405d65
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0xb74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405da1
lea eax, [ebp - 0xb94]
push eax
push esi
mov dword [ebp - 0xb94], 0x428
call dword [ebp - 0x14]
test eax, eax
jne 0x405d38
push esi
call ebx
lea eax, [ebp - 0x564]
push eax
push edi
mov dword [ebp - 0x564], 0x22c
call dword [ebp - 0x10]
test eax, eax
jne 0x405d0f
push edi
call ebx
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x405db1
push edi
call ebx
mov esi, 0x25d
jmp 0x405d8a
push esi
call ebx
push edi
call ebx
xor esi, esi
inc esi
jmp 0x405d8a
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret 4