Function at 0x412240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x57f7a0]
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 eax, edx
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], ecx
mov ecx, eax
call fcn.00413570
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4122a8
push str.CreateToolhelp32Snapshot__of_processes_
call fcn.004f19ba
add esp, 4
xor al, al
jmp 0x4124bd
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4122df
push str.Process32First
call fcn.004f19ba
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4124bd
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x280]
call fcn.00411f20
mov esi, eax
test esi, esi
jne 0x412305
push 0x559ff8
call fcn.004f19ba
add esp, 4
jmp 0x412320
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
test eax, eax
jne 0x41231d
push 0x55a004
call fcn.004f19ba
add esp, 4
push esi
call ebx
mov ecx, dword [ebp - 0x290]
call fcn.004075d0
mov edx, eax
mov dword [ebp - 0x44], 7
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x41234a
xor ecx, ecx
jmp 0x41235f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412350
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00407470
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x264], ax
jne 0x412391
xor ecx, ecx
jmp 0x4123af
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4123a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407470
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x28]
call fcn.00412120
add esp, 4
mov esi, eax
cmp dword [ebp - 0x14], 8
jb 0x4123e7
push dword [ebp - 0x28]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x412413
push dword [ebp - 0x58]
call fcn.004db8b0
add esp, 4
test esi, esi
je 0x4124a2
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x264], ax
je 0x412450
lea eax, [ebp - 0x264]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412441
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407470
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 1
call fcn.00409080
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x41248e
push dword [ebp - 0x40]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4122e5
push edi
call ebx
mov al, 1
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.004ea604
mov esp, ebp
pop ebp
ret