Function at 0x41c550
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16a0
call fcn.00441eb0
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x1680], edx
mov dword [ebp - 0x1218], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x1678]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x167c]
push eax
push ebx
mov dword [ebp - 0x167c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41c5de
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ecx]
mov ecx, dword [ebp - 0x1218]
mov eax, dword [ebp - 0x1674]
cmp eax, dword [ecx]
je 0x41c5f8
lea eax, [ebp - 0x167c]
push eax
push ebx
call esi
test eax, eax
jne 0x41c5c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1664]
mov ecx, dword [ebp - 0x1680]
push eax
push 0
push 0x100410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1684], eax
test eax, eax
je 0x41c6b5
lea ecx, [ebp - 0x1218]
push ecx
push 0x1000
lea ecx, [ebp - 0x1214]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41c6a9
xor esi, esi
test dword [ebp - 0x1218], 0xfffffffc
jbe 0x41c6a3
mov edi, edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push dword [ebp + esi*4 - 0x1214]
push dword [ebp - 0x1684]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x41c717
mov eax, dword [ebp - 0x1218]
inc esi
shr eax, 2
cmp esi, eax
jb 0x41c650
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x1684]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x228
lea eax, [ebp - 0x1448]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x144c]
push eax
push ebx
mov dword [ebp - 0x144c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41c5de
jmp 0x41c6f0
mov ecx, dword [ebp - 0x1680]
mov eax, dword [ebp - 0x1444]
cmp eax, dword [ecx]
je 0x41c79f
lea eax, [ebp - 0x144c]
push eax
push ebx
call esi
test eax, eax
jne 0x41c6f0
jmp 0x41c5de
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x169c]
call fcn.00405670
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x1680], eax
cmp edi, eax
je 0x41c767
cmp dword [edi + 0x14], 8
jb 0x41c74c
push dword [edi]
call esi
mov eax, dword [ebp - 0x1680]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.004053a0
cmp dword [ebp - 0x1688], 8
jb 0x41c77b
push dword [ebp - 0x169c]
call esi
add esp, 4
push dword [ebp - 0x1684]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1428]
push eax
lea ecx, [ebp - 0x169c]
call fcn.00405670
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x1680], eax
cmp edi, eax
je 0x41c7ef
cmp dword [edi + 0x14], 8
jb 0x41c7d4
push dword [edi]
call esi
mov eax, dword [ebp - 0x1680]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.004053a0
cmp dword [ebp - 0x1688], 8
jb 0x41c803
push dword [ebp - 0x169c]
call esi
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004413e6
mov esp, ebp
pop ebp
ret