Function at 0x10004290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
mov ecx, 6
mov esi, str.taskmgr_nPID_tProcess_name_n
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x124
movsw word es:[edi], word [esi]
lea eax, [esp + 0x38]
push ebx
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x3c], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x100044a6
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x38], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10004336
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x100044a6
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100044a6
test byte [esp + 0xc], 2
jne 0x100044a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004340
sub eax, edx
lea edi, [eax + 0x10cf2]
cmp edi, ebx
je 0x100044b5
lea esi, [edi + 0x13]
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100044af
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
lea eax, [esp + 0x20]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10004390
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x38]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000440b
push 0x104
lea ecx, [esp + 0x58]
push ecx
push 0
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100043d0
sub eax, edx
jne 0x1000440b
mov edx, dword [str._System_Process_]
mov eax, dword [0x10045aa0]
mov ecx, dword [0x10045aa4]
mov dword [esp + 0x54], edx
mov edx, dword [0x10045aa8]
mov dword [esp + 0x58], eax
mov al, byte [0x10045aac]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], al
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004410
sub eax, edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
push edx
push str._d_t_s_n
add eax, ebx
push edi
push eax
call esi
mov ecx, dword [esp + 0x20]
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100043a0
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004450
mov dx, word [0x10045a7c]
mov word [eax], dx
mov cl, byte [0x10045a7e]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004470
mov esi, dword [ebp + 8]
sub eax, edx
push ebx
mov edi, eax
call fcn.100073a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100044a6
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x100044a6
lea eax, [esp + 0xc]
push eax
jmp 0x1000430c