Function at 0x46e0e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x46e336
cmp eax, 0xffffffff
je 0x46e336
mov dword [ebp - 0x1c], 0
call fcn.00403230
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46e13a
push 0x80004005
call fcn.00402f10
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
call fcn.00403230
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46e169
push 0x80004005
call fcn.00402f10
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
call fcn.00403230
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46e196
push 0x80004005
call fcn.00402f10
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x48]
cmp eax, dword [ecx + 0x4c]
je 0x46e204
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
test edx, edx
je 0x46e1ca
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx + 0x10]
mov edx, dword [ebp - 0x14]
je 0x46e1d4
mov ecx, dword [ebp - 0x10]
add eax, 4
cmp eax, dword [ecx + 0x4c]
jne 0x46e1b0
jmp 0x46e204
lea eax, [edx + 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c400
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
add eax, 0x14
push eax
call fcn.0040c400
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x14]
call fcn.0040c400
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x250], 0x22c
cmp eax, 0xffffffff
je 0x46e27e
lea ecx, [ebp - 0x250]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46e26f
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
je 0x46e259
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46e230
jmp 0x46e26f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 1
lea ecx, [ecx + 0x14]
call fcn.0040c400
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x46e2c7
cmp dword [edi - 0xc], 0
je 0x46e2bd
push str.Verify_that_finding_app_by_class_name_works__n
push 0
push str.CSynOSD::CheckLastNonSystemAppID
call fcn.004cb3a0
add esp, 0xc
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x46e2bd
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x14]
call fcn.0040c400
mov dword [ebp - 0x1c], 1
jmp 0x46e2c7
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0xffffffff
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46e2e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e304
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
pop edi
test ebx, ebx
pop ebx
jg 0x46e324
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret