Function at 0x140074440
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movzx r12d, r8b
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r13d, r13d
test rcx, rcx
je 0x140074496
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], r13
mov word [rdi + 0x18], r13w
cmp qword [rsi + 0x10], r13
je 0x140074606
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r13
mov word [rbp - 9], r13w
mov r8d, 0x26
lea rdx, str.47FF0D24_E0A5_4163_8546_DE7217D2F141
lea rcx, [rbp - 9]
call fcn.140006900
nop
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r13
mov word [rbp - 0x31], r13w
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140062a50
mov r15, qword [rbp - 0x21]
mov r14, r13
test r15, r15
je 0x140074543
nop word [rax + rax]
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
movzx ecx, word [rax + r14*2]
call fcn.1400c0c90
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
mov word [rcx + r14*2], ax
inc r14
cmp r14, r15
jb 0x140074510
mov r8d, 1
lea rdx, [0x1400f72e8]
lea rcx, [rbp - 9]
call fcn.14000b750
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.14000bb90
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140074580
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], r13
mov word [rdi + 0x18], 0
cmp qword [rbp + 7], 0
je 0x14007459d
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r8, qword [rbp - 9]
jmp 0x1400745a0
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400745c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400745c4
mov byte [rdi + 0x19], 1
cmp qword [rbp - 0x19], 8
jb 0x1400745d4
mov rcx, qword [rbp - 0x31]
call fcn.1400bd20c
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r13
mov word [rbp - 0x31], r13w
cmp qword [rbp + 0xf], 8
jb 0x1400745f5
mov rcx, qword [rbp - 9]
call fcn.1400bd20c
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r13
mov word [rbp - 9], r13w
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
lea rdx, [rdi + 0x10]
lea rcx, [rbp - 0x31]
call fcn.14000c3d0
nop
mov rcx, rsi
call fcn.140063430
test al, al
jne 0x140074646
test r12b, r12b
je 0x14007463e
mov rdx, rsi
mov rcx, qword [rdi]
call fcn.140072410
test al, al
jne 0x140074646
xor dil, dil
jmp 0x14007476b
mov ecx, 8
call fcn.1400bd270
mov qword [rbp + 0x17], rax
test rax, rax
je 0x140074662
mov qword [rax], 0xffffffffffffffff
jmp 0x140074665
mov rax, r13
mov qword [rbp - 0x11], rax
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.14006fad0
test al, al
jne 0x140074699
xor dil, dil
mov rbx, qword [rbp - 0x11]
jmp 0x140074744
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x1400746ba
cmp byte [rbp - 0x29], 0
je 0x1400746ba
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400746b6
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x31], r13
xor eax, eax
mov qword [rbp + 0x17], rax
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x17]
call fcn.140015bf0
nop
mov rax, qword [rdi]
cmp byte [rax + 0x10], 0
je 0x1400746e3
mov rcx, rdi
call fcn.1400751e0
mov rcx, qword [rdi]
add rcx, 0x18
cmp rcx, rsi
je 0x1400746fe
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.140006b90
lea rdx, [rbp - 0x11]
mov rcx, qword [rdi]
call fcn.140072790
mov rcx, qword [rdi]
mov byte [rcx + 0x10], al
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140074733
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140074733
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140074733
mov qword [rbx], 0xffffffffffffffff
mov rax, qword [rdi]
movzx edi, byte [rax + 0x10]
lea rcx, [rbp + 0x17]
call fcn.140015c20
nop
test rbx, rbx
je 0x14007476b
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007475f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov rcx, rbx
call fcn.1400bd20c
mov qword [rbp - 0x11], r13
lea rcx, [rbp - 0x31]
call fcn.14000c430
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret