Function at 0x4054a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407874
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.____Stopping_Riot_Games__League_of_Legends_processes..._n
call fcn.00401180
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
push str.LeagueCrashHandler.exe
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0xa8], xmm0
call fcn.00404920
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
push 0x15
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push str.League_of_Legends.exe
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
call fcn.00404920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
push str.LeagueClientUxRender.exe
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
call fcn.00404920
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
push str.LeagueClientUx.exe
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
call fcn.00404920
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
push 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.LeagueClient.exe
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.00404920
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.RiotClientServices.exe
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.00404920
mov dword [ebp - 4], 5
lea eax, [ebp - 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [ebp - 0x1d4], eax
nop dword [eax + eax]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.00403e40
push 0
mov byte [ebp - 4], 6
push 0xf
mov dword [ebp - 0x1d0], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x1d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea eax, [ebp - 0x1d0]
push eax
push edi
call esi
test eax, eax
je 0x40576f
nop word [eax + eax]
lea ecx, [ebp - 0x1ac]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405670
mov esi, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1f0]
sub ecx, edx
cmp dword [ebp - 0x1dc], 0xf
cmova eax, dword [ebp - 0x1f0]
cmp esi, ecx
jne 0x405757
lea edx, [ebp - 0x1ac]
sub esi, 4
jb 0x4056b7
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x4056bc
add eax, 4
add edx, 4
sub esi, 4
jae 0x4056a6
cmp esi, 0xfffffffc
je 0x4056f0
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4056e9
cmp esi, 0xfffffffd
je 0x4056f0
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4056e9
cmp esi, 0xfffffffe
je 0x4056f0
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x4056e9
cmp esi, 0xffffffff
je 0x4056f0
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x4056f0
sbb eax, eax
or eax, 1
jmp 0x4056f2
xor eax, eax
test eax, eax
jne 0x405757
push dword [ebp - 0x1c8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._t__
call fcn.00401180
cmp dword [ebp - 0x1dc], 0xf
lea edx, [ebp - 0x1f0]
push dword [ebp - 0x1e0]
cmova edx, dword [ebp - 0x1f0]
mov ecx, eax
call fcn.00405840
add esp, 4
mov edx, str._closed._n
mov ecx, eax
call fcn.00401180
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x1d0]
push eax
push edi
call esi
test eax, eax
jne 0x405660
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1dc]
cmp ecx, 0xf
jbe 0x4057b4
mov edx, dword [ebp - 0x1f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4057aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405837
push ecx
push edx
call fcn.0040638b
add esp, 8
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x1d4], eax
cmp eax, ecx
jne 0x405610
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40861c
call fcn.00401180
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1d8], 3
mov dword [ebp - 0x1d4], 0
call fcn.004013a0
push 0x403db0
push 6
push 0x18
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00406271
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406233
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3