Function at 0x4196a0
Capabilities:
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42b416
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x4377f4]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18c]
push edi
mov edi, dword [esp + 0x194]
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x184], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x41970e
lea eax, [esp + 0x54]
push eax
push ebp
mov dword [esp + 0x5c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x419715
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4198ac
mov byte [esp + 0x10], 0x5c
mov ebp, 0x10
nop
lea eax, [esp + 0x78]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419737
sub eax, edx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x40]
call fcn.004027cf
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x194], ebx
call fcn.0040209a
cmp eax, 0xffffffff
je 0x4197d5
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x20], 0x5c
call fcn.0040209a
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.004029c1
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x194], 1
call fcn.004026ab
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x188], bl
jb 0x4197c5
mov edx, dword [esp + 0x20]
push edx
call fcn.0041c5ad
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov eax, dword [edi + 0x14]
push ebx
push 0x42c5d4
push eax
push ebx
mov ecx, edi
call fcn.00401f5c
test eax, eax
je 0x419814
cmp dword [edi + 0x18], ebp
jb 0x4197f5
mov eax, dword [edi + 4]
jmp 0x4197f8
lea eax, [edi + 4]
cmp dword [esp + 0x50], ebp
mov ecx, dword [esp + 0x3c]
jae 0x419806
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0041d945
add esp, 8
test eax, eax
jne 0x41985a
mov edx, dword [esi + 4]
cmp edx, ebx
jne 0x41981f
xor ecx, ecx
jmp 0x419827
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp edx, ebx
je 0x419848
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x419848
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x41985a
mov eax, dword [esi + 8]
lea edx, [esp + 0x5c]
push edx
push 1
push eax
mov ecx, esi
call fcn.004194c0
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x188], 0xffffffff
jb 0x419878
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041c5ad
add esp, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x419720
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x170]
pop ebx
xor ecx, esp
call fcn.0041c2f6
add esp, 0x17c
ret