Function at 0x490506
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x4e11f0
call fcn.004beaa5
and dword [ebp - 0x278], 0
mov edi, ecx
lea esi, [ebp - 0x250]
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x26c], 0xa
call fcn.00416d00
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], 0x22c
mov dword [ebp - 0x280], eax
call fcn.00491add
mov dword [ebp - 0x258], eax
mov byte [eax + 0x1d], bl
mov eax, dword [ebp - 0x258]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x258]
mov dword [eax], eax
mov eax, dword [ebp - 0x258]
mov dword [eax + 8], eax
and dword [ebp - 0x254], 0
push 0
push 2
mov byte [ebp - 4], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x27c], eax
jne 0x4905c6
push edi
mov ecx, 0x4ef7d8
call fcn.004099e0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x278], ebx
mov byte [ebp - 4], bl
call fcn.00491437
mov ecx, esi
call fcn.00416ce0
mov eax, edi
jmp 0x49090e
lea ecx, [ebp - 0x240]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x490777
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004099e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x244]
mov edi, dword [eax - 0xc]
lea esi, [ebp - 0x244]
call fcn.00413790
mov ecx, eax
mov eax, esi
push eax
inc ecx
mov eax, edi
lea edx, [ebp - 0x270]
call fcn.00409930
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x244]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49065f
cmp dword [esi + 0xc], 0
jl 0x490650
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x490650
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x244], edi
jmp 0x49065f
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x244]
call fcn.00401450
lea ecx, [ebp - 0x270]
call fcn.00416ce0
lea esi, [ebp - 0x260]
call fcn.00416d00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x244]
mov edi, dword [ebp - 0x260]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x264], eax
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4906e1
cmp dword [esi + 0xc], 0
jl 0x4906cc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4906cc
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x260], edi
jmp 0x4906e1
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x260]
call fcn.00401450
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
lea ebx, [ebp - 0x268]
call fcn.00491158
mov ecx, dword [ebp - 0x268]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x264]
mov dword [eax + 4], ecx
add eax, 8
mov esi, dword [eax]
lea ecx, [edi - 0x10]
sub esi, 0x10
cmp ecx, esi
mov dword [ebp - 0x24c], eax
je 0x49074b
cmp dword [esi + 0xc], 0
jl 0x490742
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x490742
mov eax, ecx
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
mov eax, dword [ebp - 0x24c]
add edi, 0x10
mov dword [eax], edi
jmp 0x49074b
mov ebx, dword [edi - 0xc]
push edi
call fcn.00401450
lea ecx, [ebp - 0x260]
call fcn.00416ce0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 2
call fcn.00416ce0
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x27c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4905d8
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28c], eax
dec dword [ebp - 0x26c]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x274]
push eax
lea ebx, [ebp - 0x25c]
call fcn.00491251
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x28c]
lea esi, [ebp - 0x274]
mov dword [ebp - 0x288], eax
call fcn.004b3918
test al, al
jne 0x4908c3
mov edi, dword [ebp - 0x274]
test edi, edi
jne 0x4907de
call fcn.004b9c0e
mov esi, dword [ebp - 0x270]
cmp esi, dword [edi + 4]
jne 0x4907ee
call fcn.004b9c0e
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
lea ebx, [ebp - 0x25c]
call fcn.00491251
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x260], eax
mov eax, ebx
lea edi, [ebp - 0x264]
lea esi, [ebp - 0x248]
mov dword [ebp - 0x264], eax
call fcn.004b3918
test al, al
jne 0x4908c3
mov ebx, dword [ebp - 0x248]
test ebx, ebx
jne 0x49084c
call fcn.004b9c0e
mov esi, dword [ebp - 0x244]
cmp esi, dword [ebx + 4]
jne 0x49085c
call fcn.004b9c0e
mov eax, dword [esi + 0x18]
sub eax, 0x10
call fcn.004012d0
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 6
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00405fb0
mov edx, 0x4f09a0
lea edi, [ebp - 0x250]
call fcn.00413750
cmp esi, dword [ebx + 4]
jne 0x49089e
call fcn.004b9c0e
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 2
call fcn.00416ce0
cmp dword [ebp - 0x26c], 0
jne 0x49078b
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
call fcn.004012d0
mov esi, dword [ebp - 0x284]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x278], 1
mov byte [ebp - 4], 1
call fcn.00491437
lea ecx, [ebp - 0x250]
call fcn.00416ce0
mov eax, esi
call fcn.004beb28
ret