Function at 0x41a2a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5b3124]
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 0x41a2e2
mov ecx, ebx
call fcn.00413c50
cmp dword [0x5b7f0c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x41a30b
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call edi
push eax
call esi
mov dword [0x5b7f0c], eax
cmp dword [0x5b7f08], 0
jne 0x41a328
push str.NtQueryInformationProcess
push str.ntdll
call edi
push eax
call esi
mov dword [0x5b7f08], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a372
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0050d580
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 0x41a390
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.0050975e
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x244], eax
call fcn.00406bf0
test eax, eax
je 0x41a4ea
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x41a3bb
lock inc dword [eax + 0x14]
lea esi, [eax + 8]
jmp 0x41a3c1
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 0x41a3fb
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.0041a060
push dword [esi - 8]
push esi
call fcn.00529e8e
add esp, 0xc
test eax, eax
js 0x41a4e0
cmp eax, dword [esi - 8]
jg 0x41a4e0
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.00465f10
test eax, eax
je 0x41a46a
test ebx, ebx
je 0x41a464
push dword [ebp - 0x248]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
call fcn.0041d2c0
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 0x41a4b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a4b6
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41a4b6
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41a4b8
call edx
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41a398
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
jmp 0x41a374
push 0x80070057
call fcn.00406fb0
push 0x80004005
call fcn.00406fb0
int3