Function at 0x140008870
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x88]
lea r8, [0x1400444b8]
xor edx, edx
xor ecx, ecx
call fcn.140009310
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
inc eax
cdqe
mov rcx, rax
call fcn.14001b204
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x88]
lea rdx, [0x1400444c8]
mov rcx, qword [rsp + 0x38]
call fcn.140009460
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x50]
test eax, eax
jne 0x140008aa8
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140008a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xb7
je 0x140008921
cmp dword [rsp + 0x24], 5
jne 0x140008961
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x14000895c
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x14000895c
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x1400444d8]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
jmp 0x1400089f3
lea rdx, [0x1400444e8]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call fcn.1400092e0
test rax, rax
je 0x1400089bb
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x1400089b9
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400089b9
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x1400444f8]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
jmp 0x1400089f3
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140044510]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008aa8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008a98
lea rdx, [0x140044580]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call fcn.1400092e0
test rax, rax
jne 0x140008a3c
mov rcx, qword [rsp + 0x60]
call fcn.140008d30
movzx eax, al
test eax, eax
je 0x140008a79
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x140008a77
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140008a77
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140044590]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
jmp 0x140008a98
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x1400445a0]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
jmp 0x140008aa8
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400088d5
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140044600]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x50]
test eax, eax
jne 0x140008b87
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140044628]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xa0]
test eax, eax
jne 0x140008b27
lea rdx, [0x140044650]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140008b87
lea rdx, [0x140044670]
mov rcx, qword [rsp + 0x60]
call fcn.140008320
mov rax, qword [rsp + 0x60]
add rax, 0x68
mov rcx, rax
call fcn.1400092b0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x2c], 0
jbe 0x140008b87
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, 0x68
mov edx, eax
call fcn.140009180
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140008b4d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14001b1fc
add rsp, 0x58
ret