Function at 0x409910
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417533
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x427024]
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 edi, ecx
mov dword [ebp - 0x280], edi
push 0x228
xor ebx, ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x274]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x278], 0x22c
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x409b5f
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409b57
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
nop word [eax + eax]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x409afe
cmp dword [ebp - 0x14], edi
jne 0x409afe
push dword [ebp - 0x270]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x409af8
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x409a34
push edi
call esi
jmp 0x409af8
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x44]
call fcn.00409780
add esp, 4
mov esi, eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, 0x80004005
test esi, esi
cmovne eax, ecx
test eax, eax
jne 0x409af2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x288], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x409a91
mov eax, dword [ecx]
jmp 0x409a93
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.00405340
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x409ac5
mov eax, dword [ecx]
jmp 0x409ac7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.00405340
mov byte [ebp - 4], 2
call fcn.0040c6e0
add esp, 0x30
test al, al
je 0x409af2
mov ebx, dword [ebp - 0x270]
test ebx, ebx
jne 0x409b19
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x280]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4099d0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x409b2b
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00405b30
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x409b51
inc eax
push eax
push dword [ebp - 0x44]
call fcn.00405b30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x284]
call esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x409b71
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00405b30
mov eax, ebx
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.00415b3b
mov esp, ebp
pop ebp
ret