Function at 0x4011e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x46c400]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x401375
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [esp + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401231
mov edi, dword [ebp + 0x18]
lea esi, [esp + 0x34]
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 0x401267
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40126c
add edx, 4
add esi, 4
sub edi, 4
jae 0x401256
cmp edi, 0xfffffffc
je 0x4012a0
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401299
cmp edi, 0xfffffffd
je 0x4012a0
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401299
cmp edi, 0xfffffffe
je 0x4012a0
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401299
cmp edi, 0xffffffff
je 0x4012a0
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4012a0
sbb eax, eax
or eax, 1
jmp 0x4012a2
xor eax, eax
test eax, eax
jne 0x4012bd
cmp dword [ebp + 0x18], ecx
jb 0x4012bd
ja 0x4012bd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x401377
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40136e
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012d8
mov ebx, dword [ebp + 0x18]
lea esi, [esp + 0x34]
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 0x401311
nop
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x401316
add edx, 4
add esi, 4
sub edi, 4
jae 0x401300
cmp edi, 0xfffffffc
je 0x40134a
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x401343
cmp edi, 0xfffffffd
je 0x40134a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x401343
cmp edi, 0xfffffffe
je 0x40134a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x401343
cmp edi, 0xffffffff
je 0x40134a
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
je 0x40134a
sbb ecx, ecx
or ecx, 1
jmp 0x40134c
xor ecx, ecx
test ecx, ecx
jne 0x401356
cmp ebx, eax
jb 0x401356
jbe 0x4013a3
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4012d1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x4013bd
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4013b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x401377
push ecx
push edx
call fcn.0045987f
add esp, 8
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004593f0
mov esp, ebp
pop ebp
ret