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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x60
mov edi, dword [rsp + 0xa0]
mov rsi, r9
mov r14, r8
mov r10, rcx
lea eax, [rdi + 0x4fe]
mov dword [rsp + 0x38], eax
cmp edi, eax
jae 0x1800a44c1
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x28], r12
mov r12, qword [rsp + 0x38]
mov qword [r11 - 0x30], r13
mov r13d, dword [rsp + 0xa0]
mov qword [r11 - 0x38], r15
mov r15d, dword [rsp + 0xa0]
cmp edi, 0xf7
ja 0x1800a458b
je 0x1800a4506
mov eax, edi
sub eax, 0xe
je 0x1800a44ea
sub eax, 0x22
je 0x1800a44ca
sub eax, 0x6c
je 0x1800a446d
cmp eax, 0x22
jne 0x1800a46f0
cmp dword [rsp + 0x24], 0xb7
jne 0x1800a46f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [r14]
mov eax, r13d
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [rsp + 0xa0], eax
lea eax, [rcx - 1]
add eax, r13d
shr eax, 5
mov dword [rsp + 0x34], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [rsp + 0x30], eax
test ecx, ecx
jne 0x1800a46e8
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov r8, qword [rsi + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
jmp 0x1800a46e0
mov ebp, dword [rdx]
mov r12, rsi
mov r13, qword [rdx]
and ebp, 3
shr r13, 2
imul r13d, dword [r14]
mov dword [rsp + 0x20], ebp
jmp 0x1800a46f0
mov rcx, qword [rsi + 0x40]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsi + 0x18]
mov rdi, qword [rsi + 0x20]
cmp rbx, rdi
je 0x1800a4581
mov rsi, qword [r14 + 0x18]
mov rbp, qword [r14 + 0x10]
nop word [rax + rax]
mov rdx, r14
cmp rsi, 0x10
jb 0x1800a453c
mov rdx, qword [r14]
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x1800a4549
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp r8, rbp
jne 0x1800a455b
call fcn.1800ade70
test eax, eax
je 0x1800a4576
add rbx, 0x28
cmp rbx, rdi
jne 0x1800a4530
mov rsi, qword [rsp + 0x98]
mov edi, 0xf7
jmp 0x1800a46e0
inc dword [rbx + 0x24]
mov rsi, qword [rsp + 0x98]
mov edi, 0xf7
jmp 0x1800a46e0
mov eax, edi
sub eax, 0x12a
je 0x1800a45d8
sub eax, 0x27
je 0x1800a45b1
cmp eax, 0x34
jne 0x1800a46f0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1800a46e0
mov eax, dword [r10]
lea r8, [rsp + 0x28]
cdq
mov ecx, 0x30
and edx, 3
add eax, edx
mov rdx, qword [r14]
sar eax, 2
mov dword [rsp + 0x28], eax
call fcn.180064210
jmp 0x1800a46e0
cmp dword [r14], 0x20
mov r9d, r13d
jne 0x1800a4613
mov eax, dword [rsp + 0xa0]
xor edx, edx
mov ebp, dword [rsp + 0x20]
lea eax, [rax*4]
add eax, ebp
movsxd r8, eax
mov dword [r12 + r8*4], edx
and r9d, 0x8000001f
jge 0x1800a4650
dec r9d
or r9d, 0xffffffe0
inc r9d
jmp 0x1800a4650
and r9d, 0x8000001f
jge 0x1800a4626
dec r9d
or r9d, 0xffffffe0
inc r9d
mov eax, dword [rsp + 0xa0]
mov ecx, r9d
mov ebp, dword [rsp + 0x20]
mov edx, dword [rsp + 0x30]
shl edx, cl
lea eax, [rax*4]
not edx
add eax, ebp
movsxd r8, eax
and edx, dword [r12 + r8*4]
mov dword [r12 + r8*4], edx
mov eax, dword [r10]
mov ecx, r9d
shl eax, cl
or eax, edx
mov dword [r12 + r8*4], eax
movsxd rax, dword [rsp + 0xa0]
cmp eax, dword [rsp + 0x34]
je 0x1800a44a5
movsxd r11, ebp
mov r10d, 0x74
mov rbp, qword [rsp + 0x80]
mov rbx, rax
mov eax, r10d
sub eax, 0x72
je 0x1800a44a5
sub eax, 1
je 0x1800a46c1
cmp eax, 1
jne 0x1800a46d7
mov ecx, dword [r14]
lea rax, [rbx + 1]
mov r15d, 0x20
lea rax, [r11 + rax*4]
sub r15d, r9d
lea r8, [r12 + rax*4]
sub ecx, r15d
mov edx, 0xffffffff
shl edx, cl
and dword [r8], edx
jmp 0x1800a46d7
lea rax, [rbx + 1]
mov ecx, r15d
lea rax, [r11 + rax*4]
lea rdx, [r12 + rax*4]
mov eax, dword [rbp]
shr eax, cl
or dword [rdx], eax
dec r10d
cmp r10d, 0x71
ja 0x1800a4684
mov r10, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
add edi, 0x8e
cmp edi, dword [rsp + 0x38]
jb 0x1800a4422
jmp 0x1800a44a5