Function at 0x42f9f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x134], ebx
cmp ebx, 0xffffffff
je 0x42fba9
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42fa42
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x10c]
sub ecx, edx
cmp dword [ebp + 0x1c], 0xf
lea edx, [ebp + 8]
cmova edx, dword [ebp + 8]
cmp ecx, edi
cmovb edi, ecx
sub edi, 4
jb 0x42fa81
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x42fa86
add edx, 4
add esi, 4
sub edi, 4
jae 0x42fa70
cmp edi, 0xfffffffc
je 0x42faba
mov al, byte [edx]
cmp al, byte [esi]
jne 0x42fab3
cmp edi, 0xfffffffd
je 0x42faba
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x42fab3
cmp edi, 0xfffffffe
je 0x42faba
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x42fab3
cmp edi, 0xffffffff
je 0x42faba
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x42faba
sbb eax, eax
or eax, 1
jmp 0x42fabc
xor eax, eax
test eax, eax
jne 0x42fad9
cmp dword [ebp + 0x18], ecx
jb 0x42fad9
ja 0x42fad9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x128]
jmp 0x42fbab
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x42fba2
nop
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb00
mov ebx, dword [ebp + 0x18]
lea esi, [ebp - 0x10c]
sub eax, edx
mov edi, ebx
cmp dword [ebp + 0x1c], 0xf
lea edx, [ebp + 8]
cmova edx, dword [ebp + 8]
cmp eax, ebx
cmovb edi, eax
sub edi, 4
jb 0x42fb41
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x42fb46
add edx, 4
add esi, 4
sub edi, 4
jae 0x42fb30
cmp edi, 0xfffffffc
je 0x42fb7a
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x42fb73
cmp edi, 0xfffffffd
je 0x42fb7a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x42fb73
cmp edi, 0xfffffffe
je 0x42fb7a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x42fb73
cmp edi, 0xffffffff
je 0x42fb7a
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
je 0x42fb7a
sbb ecx, ecx
or ecx, 1
jmp 0x42fb7c
xor ecx, ecx
test ecx, ecx
jne 0x42fb86
cmp ebx, eax
jb 0x42fb86
jbe 0x42fbd7
mov ebx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x42faf0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x42fbf5
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42fbeb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fbeb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x128]
jmp 0x42fbab
push ecx
push edx
call fcn.00432310
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043207c
mov esp, ebp
pop ebp
ret