Function at 0x404010
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2140
call fcn.0040ddd0
mov eax, dword [0x432d44]
xor eax, esp
mov dword [esp + 0x213c], eax
push ebx
push ebp
mov ebx, ecx
cmp byte [ebx + 4], 0
push esi
push edi
je 0x4041a8
cmp dword [ebx + 8], 0
je 0x40428b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40428b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VDMEnumTaskWOWEx
push eax
call esi
mov edi, eax
mov eax, dword [ebx + 8]
push str.EnumProcesses
push eax
call esi
mov ecx, dword [ebx + 8]
push str.GetModuleFileNameExA
push ecx
mov ebp, eax
call esi
mov edx, dword [ebx + 8]
push str.GetModuleBaseNameA
push edx
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
push str.EnumProcessModules
push eax
call esi
mov dword [esp + 0x20], eax
test edi, edi
je 0x40428b
test ebp, ebp
je 0x40428b
cmp dword [esp + 0x18], 0
je 0x40428b
cmp dword [esp + 0x10], 0
je 0x40428b
test eax, eax
je 0x40428b
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x2c]
push edx
call ebp
shr dword [esp + 0x14], 2
test eax, eax
je 0x40428b
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x404284
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + edi*4 + 0x24]
push eax
push 0
push 0x410
call ebp
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x102c]
mov esi, eax
push edx
push esi
call dword [esp + 0x30]
mov ecx, dword [esp + 0x1024]
shr dword [esp + 0x1c], 2
push 0x104
lea eax, [esp + 0x2028]
push eax
push ecx
push esi
call dword [esp + 0x28]
test eax, eax
je 0x40418c
mov eax, dword [esp + edi*4 + 0x24]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push eax
lea ecx, [esp + 0x2028]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x404284
mov ecx, dword [esp + 0x1024]
push 0x104
lea eax, [esp + 0x2028]
push eax
push ecx
push esi
call dword [esp + 0x20]
lea edx, [esp + 0x2024]
push str.NTVDM.EXE
push edx
call fcn.0040ed99
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4040f5
mov eax, 1
jmp 0x40428d
push 0x427fb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32First
push esi
mov ebp, eax
call edi
push str.Process32Next
push esi
mov dword [esp + 0x18], eax
call edi
mov edi, eax
test ebp, ebp
je 0x40428b
cmp dword [esp + 0x10], 0
je 0x40428b
test edi, edi
je 0x40428b
push 0
push 2
mov dword [esp + 0x202c], 0x128
call ebp
mov esi, eax
lea eax, [esp + 0x2024]
push eax
push esi
call dword [esp + 0x18]
mov eax, dword [esp + 0x202c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push eax
lea ecx, [esp + 0x204c]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x40427d
lea eax, [esp + 0x2024]
push eax
push esi
call edi
test eax, eax
je 0x40427d
mov ecx, dword [esp + 0x202c]
push ecx
mov ecx, ebx
call fcn.00403d70
mov eax, dword [esp + 0x202c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push eax
lea ecx, [esp + 0x204c]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x40427d
lea eax, [esp + 0x2024]
push eax
push esi
call edi
test eax, eax
jne 0x404242
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40428d
xor eax, eax
mov ecx, dword [esp + 0x214c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040dd94
add esp, 0x2140
ret