Function at 0x413540
Capabilities:
Enumerate threads
Suspend thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
or edi, 0xffffffff
mov eax, ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x2c], edi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4135b4
cmp esi, 0xffffffff
je 0x4135ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
or esi, 0xffffffff
mov dword [ebp - 0x28], esi
call fcn.004134e0
test al, al
je 0x413674
inc ebx
cmp ebx, 0x1e
jge 0x4135ba
mov eax, dword [ebp - 0x24]
jmp 0x413560
or esi, 0xffffffff
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp - 0x24]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4135db
mov dword [ebp - 0x2c], 0xffffffff
xor bl, bl
jmp 0x4136dc
cmp eax, 0xffffffff
jne 0x4135e7
xor bl, bl
jmp 0x4136dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x413669
mov esi, dword [ebp - 0x2c]
nop dword [eax]
cmp dword [ebp - 0x14], ebx
jne 0x413657
push dword [ebp - 0x18]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
cmp edi, 0xffffffff
je 0x413634
test edi, edi
je 0x413634
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
test ebx, ebx
jne 0x41363f
or edi, 0xffffffff
jmp 0x413654
cmp ebx, 0xffffffff
je 0x413654
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x413610
mov esi, dword [ebp - 0x28]
mov ecx, ebx
call fcn.004134e0
test al, al
jne 0x413678
mov bl, 1
jmp 0x4136dc
mov dword [ebp - 0x28], 0
nop
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp esi, 0xffffffff
je 0x41369d
test esi, esi
je 0x41369d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
test ebx, ebx
je 0x4136cc
cmp ebx, 0xffffffff
je 0x4136cf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 0x1e
jge 0x4136cf
mov ebx, dword [ebp - 0x24]
jmp 0x413680
or esi, 0xffffffff
mov ecx, dword [ebp - 0x24]
call fcn.004134e0
test al, al
sete bl
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4136ef
test eax, eax
je 0x4136ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x413703
test edi, edi
je 0x413703
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x413709
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x413715
test esi, esi
je 0x413715
push esi
call edi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret