Function at 0x41c280
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x169c
call fcn.00441eb0
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x167c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x1214], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x1674]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1678]
push eax
push ebx
mov dword [ebp - 0x1678], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41c30e
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov eax, dword [ebp - 0x1214]
cmp dword [ebp - 0x1670], eax
je 0x41c328
lea eax, [ebp - 0x1678]
push eax
push ebx
call esi
test eax, eax
jne 0x41c2f2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1660]
mov ecx, dword [ebp - 0x167c]
push eax
push 0
push 0x100410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1680], eax
test eax, eax
je 0x41c3e5
lea ecx, [ebp - 0x1214]
push ecx
push 0x1000
lea ecx, [ebp - 0x1210]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41c3d9
xor esi, esi
test dword [ebp - 0x1214], 0xfffffffc
jbe 0x41c3d3
mov edi, edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebp + esi*4 - 0x1210]
push dword [ebp - 0x1680]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x41c447
mov eax, dword [ebp - 0x1214]
inc esi
shr eax, 2
cmp esi, eax
jb 0x41c380
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x1680]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x228
lea eax, [ebp - 0x1444]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1448]
push eax
push ebx
mov dword [ebp - 0x1448], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41c30e
jmp 0x41c420
mov ecx, dword [ebp - 0x167c]
mov eax, dword [ebp - 0x1440]
cmp eax, dword [ecx]
je 0x41c4cf
lea eax, [ebp - 0x1448]
push eax
push ebx
call esi
test eax, eax
jne 0x41c420
jmp 0x41c30e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1698]
call fcn.00405670
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x167c], eax
cmp edi, eax
je 0x41c497
cmp dword [edi + 0x14], 8
jb 0x41c47c
push dword [edi]
call esi
mov eax, dword [ebp - 0x167c]
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 - 0x1684], 8
jb 0x41c4ab
push dword [ebp - 0x1698]
call esi
add esp, 4
push dword [ebp - 0x1680]
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 - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1424]
push eax
lea ecx, [ebp - 0x1698]
call fcn.00405670
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x167c], eax
cmp edi, eax
je 0x41c51f
cmp dword [edi + 0x14], 8
jb 0x41c504
push dword [edi]
call esi
mov eax, dword [ebp - 0x167c]
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 - 0x1684], 8
jb 0x41c533
push dword [ebp - 0x1698]
call esi
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004413e6
mov esp, ebp
pop ebp
ret