Function at 0x408820
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43de90
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45506c]
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
push 0x22c
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push 0
xor bl, bl
push eax
mov byte [ebp - 0x259], bl
call fcn.004258d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x408a4d
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408a41
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088d0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00408120
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00408ab0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40890b
mov ecx, dword [eax]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
cmovae edi, ebx
mov esi, dword [ebp - 0x18]
mov eax, esi
cmp edx, esi
mov dword [ebp - 0x264], edx
cmovb eax, edx
test eax, eax
je 0x40894e
sub edi, ecx
movzx edx, word [edi + ecx]
movzx esi, word [ecx]
cmp dx, si
jne 0x408957
add ecx, 2
sub eax, 1
jne 0x408931
mov edx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x18]
cmp edx, esi
jbe 0x40895f
or esi, 0xffffffff
jmp 0x408963
sbb esi, esi
and esi, 0xfffffffe
inc esi
jmp 0x408963
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x4089a3
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408999
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a9b
push edx
push ecx
call fcn.0040d8a9
add esp, 8
test esi, esi
je 0x408a01
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4089f7
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4089ed
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a9b
push ecx
push ebx
call fcn.0040d8a9
add esp, 8
test esi, esi
jne 0x4088b0
jmp 0x408a3b
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x259], 1
cmp eax, 8
jb 0x408a3b
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x408a31
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a9b
push ecx
push ebx
call fcn.0040d8a9
add esp, 8
mov bl, byte [ebp - 0x259]
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x408a7d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa0
push edx
push ecx
call fcn.0040d8a9
add esp, 8
mov al, bl
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.0040d893
mov esp, ebp
pop ebp
ret
call fcn.004288b0
call fcn.004288b0
int3