Function at 0x40e032
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x2c4]
sub esp, 0x2c4
push 0xfffffffffffffffe
push 0x5d9c30
push 0x476e40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5fd0b0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x2c0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp + 0x128], 0x94
lea eax, [ebp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40e0a5
xor eax, eax
jmp 0x40e23a
cmp dword [ebp + 0x138], 2
jne 0x40e29c
cmp dword [ebp + 0x12c], 4
jne 0x40e29c
mov dword [ebp - 4], edi
push str.PSAPI.DLL
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40e222
push str.VDMDBG.DLL
call esi
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x40e222
push str.EnumProcesses
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
push str.EnumProcessModules
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x38], eax
push str.GetModuleBaseNameA
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x30], eax
push str.VDMEnumTaskWOWEx
push dword [ebp - 0x20]
call esi
test edi, edi
je 0x40e222
cmp dword [ebp - 0x38], 0
je 0x40e222
cmp dword [ebp - 0x30], 0
je 0x40e222
test eax, eax
je 0x40e222
mov dword [ebp - 0x24], 0x400
xor esi, esi
cmp ebx, esi
je 0x40e16a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, esi
je 0x40e222
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x40e222
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x24]
je 0x40e14d
shr dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jae 0x40e222
mov byte [ebp + 0x1bc], 0
mov eax, dword [ebp - 0x28]
push dword [ebx + eax*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e207
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push esi
call dword [ebp - 0x38]
test eax, eax
je 0x40e200
push 0x104
lea eax, [ebp + 0x1bc]
push eax
push dword [ebp - 0x40]
push esi
call dword [ebp - 0x30]
test eax, eax
jne 0x40e200
mov byte [ebp + 0x1bc], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WUeU_
lea eax, [ebp + 0x24]
push eax
call fcn.00476dbc
pop ecx
pop ecx
test eax, eax
jne 0x40e25d
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040e268
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2c0]
xor ecx, ebp
call fcn.0047209e
add ebp, 0x2c4
leave
ret
inc dword [ebp - 0x28]
jmp 0x40e1a9
xor eax, eax
inc eax
cmp dword [ebp + 0x138], eax
je 0x40e2c1
cmp dword [ebp + 0x138], 2
jne 0x40e09e
cmp dword [ebp + 0x12c], 4
jbe 0x40e09e
mov dword [ebp - 4], eax
push str.Kernel32.DLL
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, edi
je 0x40e3b8
cmp dword [ebp + 0x138], 2
jne 0x40e2f9
push str.VDMDBG.DLL
call esi
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x40e3b8
push str.CreateToolhelp32Snapshot
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
push str.Process32First
push ebx
call esi
mov ebx, eax
push str.Process32Next
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40e3b8
test ebx, ebx
je 0x40e3b8
test edi, edi
je 0x40e3b8
cmp dword [ebp + 0x138], 2
jne 0x40e34f
push str.VDMEnumTaskWOWEx
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x40e3b8
push 0
push 2
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e37d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5fd0b0
call fcn.00476fcc
add esp, 0xc
jmp 0x40e09e
mov esi, 0x128
mov dword [ebp], esi
lea eax, [ebp]
push eax
push edi
call ebx
test eax, eax
je 0x40e3b8
push str.WUeU_
lea eax, [ebp + 0x24]
push eax
call fcn.00476dbc
pop ecx
pop ecx
test eax, eax
jne 0x40e3ab
mov dword [ebp - 0x34], 1
mov dword [ebp], esi
lea eax, [ebp]
push eax
push edi
call dword [ebp - 0x30]
jmp 0x40e38c
mov dword [ebp - 4], 0xfffffffe
call fcn.0040e3c9
jmp 0x40e22e