Function at 0x1400e6910
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1401b6838]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rdx
cmp byte [rcx], 0
je 0x1400e698e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov edx, 0xa0070038
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
lea rdx, str.Cannot_enter_section_twice
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddErrorMessage_char_const____ptr64____ptr64
lea rdx, [rbp - 1]
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
jmp 0x1400e6d37
add rcx, 0x48
call fcn.14003e5c0
test rax, rax
jne 0x1400e6a24
lea rsi, [rdi + 8]
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400e69b1
mov r8, qword [rsi]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r12d, eax
cmp eax, 5
jne 0x1400e69f4
cmp qword [rsi + 0x18], 0x10
jb 0x1400e69d6
mov rsi, qword [rsi]
mov r8, rsi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov r14, rax
test rax, rax
je 0x1400e6d71
jmp 0x1400e69fd
test r14, r14
je 0x1400e6d7a
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14003e550
nop
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x48]
call fcn.14003e580
nop
lea rcx, [rsp + 0x20]
call fcn.14003e570
lea rcx, [rdi + 0x48]
call fcn.14003e5c0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1400e6c98
xorps xmm0, xmm0
cmp eax, 0x102
je 0x1400e6c56
mov edx, 0x20000001
cmp eax, 0xffffffff
je 0x1400e6b5b
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rax
lea rcx, [rbp - 0x29]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbp - 0x21], eax
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14001a860
nop
mov r8, rax
lea rdx, str.Unexpected_result_while_obtaining_mutex._ErrorCode:
lea rcx, [rsp + 0x28]
call fcn.140019f30
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400e6aab
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x29]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 0x10
jb 0x1400e6af4
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e6aef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e6e04
call fcn.14012e940
mov qword [rsp + 0x38], 0
mov qword [rbp - 0x79], 0xf
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1400e6b45
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e6b40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e6e0a
call fcn.14012e940
lea rdx, [rbp - 0x29]
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rbp - 0x29]
jmp 0x1400e6d3b
mov byte [rdi], 0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbp + 7], eax
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14001a860
nop
mov r8, rax
lea rdx, str.Mutex_wait_failed._ErrorCode:
lea rcx, [rsp + 0x28]
call fcn.140019f30
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400e6baa
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
nop
mov rdx, qword [rbp - 0x79]
cmp rdx, 0x10
jb 0x1400e6bf3
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e6bee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e6e10
call fcn.14012e940
mov qword [rsp + 0x38], 0
mov qword [rbp - 0x79], 0xf
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1400e6c44
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e6c3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e6d6b
call fcn.14012e940
lea rdx, [rbp - 1]
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
jmp 0x1400e6d37
mov byte [rdi], 0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov edx, 0xa0070037
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
lea rdx, str.Could_not_enter_critical_section
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddErrorMessage_char_const____ptr64____ptr64
lea rdx, [rbp - 1]
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
jmp 0x1400e6d37
mov byte [rdi], 1
lea r9, [rdi + 0x28]
cmp qword [r9 + 0x18], 0x10
jb 0x1400e6ca9
mov r9, qword [r9]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov rdx, rax
lea rcx, [rdi + 0x50]
call fcn.14003e5e0
lea rcx, [rdi + 0x50]
call fcn.14003e5c0
test rax, rax
je 0x1400e6cf2
lea rcx, [rdi + 0x50]
call fcn.14003e5c0
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
je 0x1400e6cf2
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
jmp 0x1400e6d40
mov rcx, rdi
call fcn.1400e6ec0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov edx, 0xa0070037
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
lea rdx, str.Could_not_enter_critical_section___setting_flag_failed
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddErrorMessage_char_const____ptr64____ptr64
lea rdx, [rbp - 1]
mov rcx, rbx
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14012e910
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400fec40
nop
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r12d, eax
mov edx, 0x28
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::__autoclassinit2_unsigned_long_long_unsigned___int64_____ptr64
mov edx, 0x20000001
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS____ptr64
nop
mov dword [rbp + 7], r12d
mov edx, r12d
lea rcx, [rsp + 0x28]
call fcn.14001a860
nop
mov r8, rax
lea rdx, str.Failed_to_create_or_open_mutex._ErrorCode:
lea rcx, [rbp - 0x71]
call fcn.140019f30
nop
mov rcx, rax
call fcn.14000fd60
mov rdx, rax
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
nop
lea rcx, [rbp - 0x71]
call fcn.14000fd90
nop
lea rcx, [rsp + 0x28]
call fcn.14000fd90
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x51]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
lea rdx, [0x1401ad5e8]
lea rcx, [rbp - 0x51]
call fcn.140122d30
nop
call fcn.1400fec40
nop
call fcn.1400fec40
nop
call fcn.1400fec40
int3