Function at 0x415e30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x23c
push ebx
push esi
lea esi, [ecx + 0x60c]
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, ecx
cmp eax, ecx
je 0x415e5f
mov edi, dword [eax]
add eax, 4
mov dword [edx], edi
add edx, 4
cmp eax, ecx
jne 0x415e51
mov eax, dword [esi + 8]
mov ecx, 0x8a
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esi + 8], edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x41603a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x22c
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41603a
push ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov dword [esp + 0x10], edx
mov edi, eax
jae 0x415f7b
mov edx, dword [esi + 4]
test edx, edx
je 0x415ede
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x415ee3
mov ecx, 1
test edx, edx
jne 0x415eeb
xor eax, eax
jmp 0x415ef0
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x415efc
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00455403
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.00417ac0
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
push 1
push ebp
mov ecx, esi
call fcn.00417af0
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push edi
mov ecx, esi
call fcn.00417ac0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004115c0
mov edx, dword [esi + 4]
push edx
call fcn.004535f0
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [ebx + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.00408650
lea edx, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 8], edx
jmp 0x41600f
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x415fcb
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00417ac0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00417af0
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x41600b
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x415fbc
jmp 0x41600b
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.00417ac0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x415ff5
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x415fe6
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x41600b
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x415ffe
add dword [esi + 8], 4
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jne 0x416026
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x20]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x415ead
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x23c
ret 4