Function at 0x402bd6
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x40d7b0
call fcn.0040d1a0
mov eax, 0x1254
call fcn.0040d170
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
mov esi, ecx
push str.PSAPI.DLL
call ebx
push str.VDMDBG.DLL
mov dword [ebp - 0x14], eax
call ebx
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], eax
je 0x402e88
test eax, eax
je 0x402e88
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VDMEnumTaskWOWEx
push eax
call edi
push str.EnumProcesses
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call edi
push str.GetModuleFileNameExA
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call edi
push str.GetModuleBaseNameA
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
call edi
push str.EnumProcessModules
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call edi
push str.NTDLL.DLL
mov dword [ebp - 0x24], eax
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x402e88
push str.NtQueryInformationProcess
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x402e88
cmp dword [ebp - 0x1c], ebx
je 0x402e88
cmp dword [ebp - 0x10], ebx
je 0x402e88
cmp dword [ebp - 0x28], ebx
je 0x402e88
cmp dword [ebp - 0x18], ebx
je 0x402e88
cmp dword [ebp - 0x24], ebx
je 0x402e88
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1260]
push 0x1000
push eax
call dword [ebp - 0x10]
shr dword [ebp - 0x20], 2
cmp eax, ebx
je 0x402e88
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
jbe 0x402e78
lea ebx, [ebp - 0x1260]
push dword [ebx]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x402e5d
lea eax, [ebp - 0x15c]
push 0x4146c4
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
push eax
lea eax, [ebp - 0x38]
push 4
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x24]
test eax, eax
je 0x402e5d
mov edi, 0x104
lea eax, [ebp - 0x15c]
shr dword [ebp - 0x1c], 2
push edi
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call dword [ebp - 0x28]
test eax, eax
je 0x402e5d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402da5
mov eax, dword [esi + 0x5008]
push dword [ebp - 0x2c]
mov edi, 0x4140d4
lea eax, [eax + eax*4]
push edi
lea eax, [esi + eax*4 + 8]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov eax, dword [esi + 0x5008]
push edi
lea eax, [eax + eax*4]
lea eax, [esi + eax*4 + 0xc]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x402e16
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [esi + 0x5008]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 + 0xc]
call fcn.0040cf34
mov eax, dword [esi + 0x5008]
push 0x5c
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 + 0xc]
mov eax, dword [esi + eax*4 + 0xc]
mov edi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub edi, eax
lea eax, [ebp - 0x30]
dec edi
push edi
push eax
mov eax, dword [esi + 0x5008]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 + 0xc]
call sub.MFC42.DLL_CString::Right
and dword [ebp - 4], 0
push eax
mov eax, dword [esi + 0x5008]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 + 8]
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x5008]
mov ecx, dword [ebx]
push 0x18
push 0
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 0x10], ecx
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push 0x18
push eax
push 0
push dword [ebp - 0x18]
call dword [ebp - 0x34]
mov eax, dword [esi + 0x5008]
mov ecx, dword [ebp - 0x44]
inc eax
lea eax, [eax + eax*4]
mov dword [esi + eax*4], ecx
inc dword [esi + 0x5008]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x10]
add ebx, 4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jb 0x402ce2
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret