Function at 0x405bdd
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 0x405f1f
cmp edi, 0x104
jg 0x405f1f
xor esi, esi
test edi, edi
jle 0x405c47
lea eax, [ebp - 0x338]
sub ebx, eax
lea eax, [ebx + esi*2]
movzx eax, word [ebp + eax - 0x338]
push eax
call fcn.00405a4c
mov word [ebp + esi*2 - 0x338], ax
inc esi
cmp esi, edi
pop ecx
jl 0x405c28
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 0x405c75
mov eax, 0x25e
jmp 0x405f24
cmp dword [ebp - 0x120], 2
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x405ca1
cmp dword [ebp - 0x120], 1
je 0x405da7
mov eax, 0x25f
jmp 0x405f24
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x405dd1
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 0x405f0d
cmp dword [ebp - 0xc], 0
je 0x405f0d
test eax, eax
je 0x405f0d
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push dword [ebp - 4]
call edi
test eax, eax
jne 0x405d11
mov esi, 0x25d
jmp 0x405dde
mov eax, dword [ebp - 0x18]
shr eax, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
je 0x405da7
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 0x405d7a
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [ebp - 0xc]
test eax, eax
je 0x405d7a
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 0x405ddb
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x405d27
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x120], 1
jne 0x405efb
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x405df5
mov eax, 0x25d
jmp 0x405f24
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 0x405f06
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 0x405f0d
cmp dword [ebp - 0xc], ecx
je 0x405f0d
cmp eax, ecx
je 0x405f0d
cmp dword [ebp - 8], ecx
je 0x405f0d
cmp dword [ebp - 4], ecx
je 0x405f0d
push ecx
push 2
call dword [ebp - 4]
mov edi, eax
cmp edi, 0xffffffff
je 0x405f0d
lea eax, [ebp - 0x564]
push eax
push edi
mov dword [ebp - 0x564], 0x22c
call dword [ebp - 0xc]
jmp 0x405ef4
push dword [ebp - 0x55c]
push 8
call dword [ebp - 4]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f0a
lea eax, [ebp - 0xb94]
push eax
push esi
mov dword [ebp - 0xb94], 0x428
call dword [ebp - 8]
jmp 0x405ed8
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0xb74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405f14
lea eax, [ebp - 0xb94]
push eax
push esi
mov dword [ebp - 0xb94], 0x428
call dword [ebp - 0x14]
test eax, eax
jne 0x405eab
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 0x405e82
push edi
call ebx
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x405f24
push edi
call ebx
mov esi, 0x25d
jmp 0x405efd
push esi
call ebx
push edi
call ebx
xor esi, esi
inc esi
jmp 0x405efd
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret 4