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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
cmp byte [rcx + 0x2e], 0
mov rdi, rcx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
jne 0x18001d44a
cmp byte [rdi + 0x2b], 0
jne 0x18001d425
mov rax, qword [rdi + 0x60]
lea rcx, str.Global_s_m
mov rdx, qword [rax + 0x10]
call fcn.180014d70
mov r8, rax
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov ebp, eax
call fcn.180020ec0
test rsi, rsi
je 0x18001d44a
cmp ebp, 0xb7
je 0x18001d413
cmp ebp, 5
jne 0x18001d438
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rdi + 0x2e], 0
je 0x18001d3c4
jmp 0x18001d44a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov byte [rdi + 0x2e], 1
call fcn.180027b60
movsd xmm6, qword [0x1800564d8]
mov r15, rax
movsd xmm7, qword [0x1800564e0]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x30]
mov edx, 0xffffffff
mov r14b, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x38]
cmp rbx, qword [rdi + 0x40]
je 0x18001d4fd
lea rsi, [rbx + 4]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18001d4ef
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001d4dc
mov r8, qword [rdi + 0x40]
mov rdx, rsi
sub r8, rsi
mov rcx, rbx
xor r14b, r14b
call fcn.1800232f0
add qword [rdi + 0x40], 0xfffffffffffffffc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001d4f7
add rbx, 4
add rsi, 4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001d4f7
add rbx, 4
add rsi, 4
cmp rbx, qword [rdi + 0x40]
jne 0x18001d490
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test r14b, r14b
jne 0x18001d548
xor ecx, ecx
call fcn.180027b60
mov rdx, r15
mov rcx, rax
call fcn.180031d9c
mulsd xmm0, xmm6
comisd xmm0, xmm7
jb 0x18001d538
mov rcx, qword [rdi + 0x68]
lea rdx, str._SYNCHRONIZE_LOG_:_Cant_finish_scenario_currectly__some_threads_are_in__probally__deadlock_state
call fcn.18001f1d0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001d470
mov rsi, qword [rdi + 0xc0]
mov rbx, qword [rdi + 0xb8]
cmp rbx, rsi
je 0x18001d56e
nop dword [rax + rax]
mov rcx, rdi
call qword [rbx]
add rbx, 8
cmp rbx, rsi
jne 0x18001d560
movzx eax, byte [rdi + 0x29]
mov rcx, rdi
mov byte [rsp + 0x90], al
movzx eax, byte [rdi + 0x2a]
mov byte [rsp + 0x98], al
movzx eax, byte [rdi + 0x2d]
mov byte [rsp + 0xa0], al
mov rax, qword [rdi + 8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call fcn.18001c2b0
mov edx, 0xd0
mov rcx, rdi
call fcn.180020ec0
movzx eax, byte [rsp + 0x90]
test al, al
je 0x18001d5f8
movzx eax, byte [rsp + 0x98]
test al, al
jne 0x18001d609
movzx eax, byte [rsp + 0xa0]
test al, al
jne 0x18001d5ec
mov rcx, qword [rsp + 0xa8]
call fcn.18001bcd0
jmp 0x18001d609
mov rcx, qword [rsp + 0x20]
call fcn.18001bcd0
jmp 0x18001d609
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret