Function at 0x4071e0
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40868b
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x478
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x407320
push ebp
push 0x1f
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407256
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x407271
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x490], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x488]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x484
ret
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x484], edi
mov esi, edi
je 0x407242
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x40729d
mov edi, dword [esp + 0x484]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push 0x105
lea eax, [esi + 0x109]
push edx
push eax
mov dword [esi], ecx
call ebp
lea ecx, [esp + 0x48]
push 0x105
lea edx, [esi + 4]
push ecx
push edx
call ebp
lea eax, [esp + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4072f4
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esi + 0x210], eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x407296
jmp 0x407242
push ebx
mov dword [esi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x490], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x407258
cmp dword [0x40d4bc], ebp
je 0x407256
cmp dword [ecx + 8], ebp
je 0x407507
cmp dword [0x40d4cc], ebp
je 0x407256
cmp dword [0x40d4d0], ebp
je 0x407256
cmp dword [0x40d4d4], ebp
je 0x407256
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x40738b
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ecx]
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call edi
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x407256
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call dword [0x40d4cc]
test eax, eax
jne 0x4073c3
push ebp
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x40736c
mov eax, ecx
mov dword [esp + 0x484], 0
shr eax, 2
mov dword [esp + 0x14], eax
lea esi, [esp + 0x274]
mov dword [esp + 0x1c], 0
je 0x4074e5
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4074c5
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 4
push ecx
push ebx
call dword [0x40d4d0]
test eax, eax
je 0x4074b8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0x104
push edx
push eax
push ebx
call dword [0x40d4d4]
test eax, eax
je 0x4074b8
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esi + 0x210], eax
mov esi, eax
add esp, 4
test esi, esi
je 0x407256
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x24]
push 0x105
mov edx, dword [ecx]
lea ecx, [esi + 0x109]
push eax
push ecx
mov dword [esi], edx
call edi
push 0x105
lea edx, [esp + 0x28]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
inc eax
push eax
lea eax, [esi + 4]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jb 0x4073fc
push ebp
push 0
mov dword [esi + 0x210], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x484]
jmp 0x407258
mov eax, dword [0x40d4c0]
cmp eax, ebp
je 0x407256
cmp dword [0x40d4c4], ebp
je 0x407256
cmp dword [0x40d4c8], ebp
je 0x407256
push ebp
push 6
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x407256
lea ecx, [esp + 0x14c]
mov dword [esp + 0x14c], 0x128
push ecx
push edi
call dword [0x40d4c4]
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x484], ebx
mov esi, ebx
je 0x407256
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x407586
mov ebx, dword [esp + 0x484]
mov edx, dword [esp + 0x154]
lea eax, [esp + 0x170]
push 0x105
lea ecx, [esi + 0x109]
push eax
push ecx
mov dword [esi], edx
call ebp
push 0x105
lea edx, [esp + 0x174]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
inc eax
push eax
lea eax, [esi + 4]
push eax
call ebp
lea ecx, [esp + 0x14c]
push ecx
push edi
call dword [0x40d4c8]
test eax, eax
je 0x4075f7
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esi + 0x210], eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x40757f
jmp 0x407256
push edi
mov dword [esi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x407258