Function at 0x100046d0
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.ntdll.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 0x100048e7
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x38], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10004776
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x100048e7
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100048e7
test byte [esp + 0xc], 2
jne 0x100048e7
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 0x10004780
sub eax, edx
lea edi, [eax + 0x10cf2]
cmp edi, ebx
je 0x100048f6
mov eax, dword [0x10054278]
lea esi, [edi + 0x13]
and esi, 0xfffffff0
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100048f0
push esi
push 0
push ebx
call sub.ntdll.dll_memset
lea eax, [esp + 0x20]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100047d0
mov esi, dword [sym.imp.ntdll.dll__snprintf]
mov edx, dword [esp + 0x38]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000484b
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 0x10004810
sub eax, edx
jne 0x1000484b
mov edx, dword [str._System_Process_]
mov eax, dword [0x1004704c]
mov ecx, dword [0x10047050]
mov dword [esp + 0x54], edx
mov edx, dword [0x10047054]
mov dword [esp + 0x58], eax
mov al, byte [0x10047058]
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 0x10004850
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 0x100047e0
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004890
mov dx, word [0x10047028]
mov word [eax], dx
mov cl, byte [0x1004702a]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100048b0
mov esi, dword [ebp + 8]
sub eax, edx
push ebx
mov edi, eax
call fcn.10007250
mov edx, dword [0x10054278]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100048e7
mov eax, dword [0x10054278]
push ebx
push 0
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 0x100048e7
lea ecx, [esp + 0xc]
push ecx
jmp 0x1000474c