Function at 0x408be0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59908b
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x18], ebx
call fcn.0047f920
cmp eax, edi
mov dword [esp + 0x360], edi
je 0x408c78
cmp dword [eax + 0x24], 1
jg 0x408c78
push 1
push str.KDoyoManager::TerminateDoyoProcess
push 0xf7
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckybox3rd_doyo_doyo.h
lea eax, [esp + 0x2c]
push eax
call fcn.0047f220
push 0x5ab0c0
mov byte [esp + 0x364], 1
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.0047f6e0
add esp, 8
test bl, 1
mov dword [esp + 0x360], edi
je 0x408c91
lea ecx, [esp + 0x1c]
push ecx
and ebx, 0xfffffffe
call fcn.0047eb40
mov dword [esp + 0x360], 0xffffffff
mov eax, dword [0x5f9180]
cmp eax, edi
je 0x408cac
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x408eb9
push 0x228
lea edx, [esp + 0x124]
push edi
push edx
mov dword [esp + 0x128], 0x22c
call fcn.005695a0
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
mov edi, eax
test edi, edi
je 0x408eb2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x144]
call fcn.00481430
mov dword [esp + 0x360], 2
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx - 0xc]
test esi, esi
jne 0x408d36
mov dword [esp + 0x360], 0xffffffff
lea eax, [ecx - 0x10]
jmp 0x408e8d
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x408d56
mov ecx, esi
lea eax, [esp + 0x10]
call fcn.00481530
mov ecx, dword [esp + 0x10]
lea edx, [esi + 1]
push edx
push ecx
call fcn.005638d3
add esp, 8
test esi, esi
jl 0x408f06
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x408f06
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x10]
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x408e67
push str.ksgamedown.exe
push eax
call fcn.0056685f
add esp, 8
test eax, eax
je 0x408e67
mov ecx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x408e67
mov eax, dword [esp + 0x124]
test eax, eax
je 0x408edd
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x408e67
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0047f920
test eax, eax
mov byte [esp + 0x360], 3
je 0x408e37
cmp dword [eax + 0x24], 1
jg 0x408e37
push 1
push str.KDoyoManager::TerminateDoyoProcess
push 0x116
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckybox3rd_doyo_doyo.h
lea ecx, [esp + 0xac]
push ecx
call fcn.0047f220
push 0x5ab138
mov byte [esp + 0x364], 4
or ebx, 2
push eax
mov dword [esp + 0x20], ebx
call fcn.0047f6e0
add esp, 8
test bl, 2
mov dword [esp + 0x360], 3
je 0x408e57
lea edx, [esp + 0x9c]
push edx
and ebx, 0xfffffffd
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x408e67
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x11c]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
mov edi, eax
mov dword [esp + 0x360], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x408cfc
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10]
mov dword [esp + 0x360], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408eb9
push 0x80070057
call fcn.00473d10
int3