Function at 0x100c8d20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024ec07
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100c8d89
push 0x228
lea eax, [ebp - 0x298]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x29c], 0x22c
lea eax, [ebp - 0x29c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100c8d9a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0xd], 1
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x44], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100c8dc0
sub eax, edx
lea ecx, [ebp - 0x58]
sar eax, 1
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.1001a600
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::FileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.1001a5a0
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x100c8e0c
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c8e25
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1001a600
mov byte [ebp - 4], 3
lea edx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c8e66
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1001a600
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
cmp edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovb edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
push edx
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_wchar_t_const___wchar_t_const___unsigned_int_
add esp, 0xc
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
test esi, esi
jne 0x100c8eee
push dword [ebp - 0x294]
push esi
push 1
call sym.WMCommon.dll_public:_static_void____cdecl_WM::GMShellUtils::MyOpenProcess_unsigned_long_int__int__unsigned_long_int_
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100c8eee
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
push esi
sbb al, al
and byte [ebp - 0xd], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
lea eax, [ebp - 0x29c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100c8da3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret