Function at 0x100044d0
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 0x100046e6
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x38], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10004576
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x100046e6
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100046e6
test byte [esp + 0xc], 2
jne 0x100046e6
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 0x10004580
sub eax, edx
lea edi, [eax + 0x10cf2]
cmp edi, ebx
je 0x100046f5
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 0x100046ef
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 0x100045d0
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 0x1000464b
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 0x10004610
sub eax, edx
jne 0x1000464b
mov edx, dword [str._System_Process_]
mov eax, dword [0x10045bac]
mov ecx, dword [0x10045bb0]
mov dword [esp + 0x54], edx
mov edx, dword [0x10045bb4]
mov dword [esp + 0x58], eax
mov al, byte [0x10045bb8]
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 0x10004650
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 0x100045e0
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004690
mov dx, word [0x10045b88]
mov word [eax], dx
mov cl, byte [0x10045b8a]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100046b0
mov esi, dword [ebp + 8]
sub eax, edx
push ebx
mov edi, eax
call fcn.10007620
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 0x100046e6
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 0x100046e6
lea eax, [esp + 0xc]
push eax
jmp 0x1000454c