Function at 0x41a350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5ad124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41a392
mov ecx, ebx
call fcn.00413d00
cmp dword [0x5b1ecc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x41a3bb
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call edi
push eax
call esi
mov dword [0x5b1ecc], eax
cmp dword [0x5b1ec8], 0
jne 0x41a3d8
push str.NtQueryInformationProcess
push str.ntdll
call edi
push eax
call esi
mov dword [0x5b1ec8], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a422
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0050b5d0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41a440
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507796
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x244], eax
call fcn.00406bf0
test eax, eax
je 0x41a59a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x41a46b
lock inc dword [eax + 0x14]
lea esi, [eax + 8]
jmp 0x41a471
mov ecx, eax
call edx
mov esi, eax
add esi, 0x10
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41a4ab
push 0x104
lea ecx, [ebp - 0x240]
call fcn.00405730
mov esi, dword [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x234]
mov edx, esi
call fcn.0041a110
push dword [esi - 8]
push esi
call fcn.00527ede
add esp, 0xc
test eax, eax
js 0x41a590
cmp eax, dword [esi - 8]
jg 0x41a590
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [ebp - 0x240]
mov ecx, dword [ebp - 0x248]
call fcn.00464810
test eax, eax
je 0x41a51a
test ebx, ebx
je 0x41a514
push dword [ebp - 0x248]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
call fcn.0041d380
inc dword [ebp - 0x244]
mov dword [ebp - 0x23c], 0x22c
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a568
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a566
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41a566
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41a568
call edx
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41a448
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
jmp 0x41a424
push 0x80070057
call fcn.00406fb0
push 0x80004005
call fcn.00406fb0
int3