Function at 0x52d770
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x2c4]
sub esp, 0x2c4
push 0xffffffffffffffff
push 0x65baf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x2c0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x2cc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
push str._r_nProcesses:_r_n
call fcn.0054f250
mov dword [ebp + 0x128], 0x94
lea eax, [ebp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x52d8ea
mov eax, dword [ebp + 0x138]
cmp eax, 2
jne 0x52da06
push str.PSAPI.DLL
call fcn.00447f30
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x52d8ea
push str.VDMDBG.DLL
call fcn.00447f30
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x52d8ea
push str.EnumProcesses
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
mov dword [ebp - 0x28], edi
push str.EnumProcessModules
push ebx
call esi
mov dword [ebp - 0x30], eax
push str.GetModuleFileNameExA
push ebx
call esi
mov dword [ebp - 0x2c], eax
push str.VDMEnumTaskWOWEx
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test edi, edi
je 0x52d9f4
cmp dword [ebp - 0x30], 0
je 0x52d9f4
cmp dword [ebp - 0x2c], 0
je 0x52d9f4
test eax, eax
je 0x52d9f4
mov eax, 0x400
mov dword [ebp - 0x1c], eax
xor edi, edi
jmp 0x52d890
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x52d8ae
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x52d8db
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x52d911
push edi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2c0]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x2c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
je 0x52d890
shr dword [ebp - 0x20], 2
xor ebx, ebx
mov dword [ebp - 0x38], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x52d9be
mov byte [ebp + 0x1bc], 0
mov eax, dword [edi + ebx*4]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x52d984
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea edx, [ebp - 0x34]
push edx
push esi
call dword [ebp - 0x30]
test eax, eax
je 0x52d97d
push 0x104
lea eax, [ebp + 0x1bc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push esi
call dword [ebp - 0x2c]
test eax, eax
jne 0x52d97d
mov byte [ebp + 0x1bc], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1bc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52d990
sub eax, edx
je 0x52d9b8
lea edx, [ebp + 0x1bc]
push edx
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.00403070
push 0x67b29c
mov ecx, esi
call fcn.00403070
inc ebx
jmp 0x52d923
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x67b29c
mov ecx, dword [ebp - 0x24]
call fcn.00403070
jmp 0x52d8ea
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x52d8e8
cmp eax, 1
jne 0x52d8ea
push str.Kernel32.DLL
call fcn.00447f30
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x52d8ea
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
mov edx, dword [ebp - 0x14]
push edx
call esi
mov esi, eax
test esi, esi
je 0x52dac9
test ebx, ebx
je 0x52dac9
test edi, edi
je 0x52dac9
push 0
push 2
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x52da78
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x52d8ea
mov dword [ebp], 0x128
lea ecx, [ebp]
push ecx
push edi
call ebx
test eax, eax
je 0x52d9d8
lea eax, [ebp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52da94
sub eax, edx
je 0x52dab9
lea edx, [ebp + 0x24]
push edx
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.00403070
push 0x67b29c
mov ecx, ebx
call fcn.00403070
mov dword [ebp], 0x128
lea eax, [ebp]
push eax
push edi
call esi
jmp 0x52da86
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x52d8ea