Function at 0x401170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x405004]
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 0x401329
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 0x4011c2
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x10c]
sub ecx, edx
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
cmp ecx, edi
cmovb edi, ecx
sub edi, 4
jb 0x401201
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x401206
add edx, 4
add esi, 4
sub edi, 4
jae 0x4011f0
cmp edi, 0xfffffffc
je 0x40123a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401233
cmp edi, 0xfffffffd
je 0x40123a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401233
cmp edi, 0xfffffffe
je 0x40123a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401233
cmp edi, 0xffffffff
je 0x40123a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40123a
sbb eax, eax
or eax, 1
jmp 0x40123c
xor eax, eax
test eax, eax
jne 0x401259
cmp dword [ebp + 0x18], ecx
jb 0x401259
ja 0x401259
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x128]
jmp 0x40132b
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x401322
nop
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401280
mov ebx, dword [ebp + 0x18]
lea esi, [ebp - 0x10c]
sub eax, edx
mov edi, ebx
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
cmp eax, ebx
cmovb edi, eax
sub edi, 4
jb 0x4012c1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4012c6
add edx, 4
add esi, 4
sub edi, 4
jae 0x4012b0
cmp edi, 0xfffffffc
je 0x4012fa
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x4012f3
cmp edi, 0xfffffffd
je 0x4012fa
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x4012f3
cmp edi, 0xfffffffe
je 0x4012fa
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x4012f3
cmp edi, 0xffffffff
je 0x4012fa
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
je 0x4012fa
sbb ecx, ecx
or ecx, 1
jmp 0x4012fc
xor ecx, ecx
test ecx, ecx
jne 0x401306
cmp ebx, eax
jb 0x401306
jbe 0x401357
mov ebx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401270
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x401375
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40136b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40136b
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 0x40132b
push edx
push ecx
call fcn.00401c0d
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bcf
mov esp, ebp
pop ebp
ret