Function at 0x140019930
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
cmp dword [rcx], 3
jne 0x140019981
mov rdx, rcx
call fcn.140012b60
neg al
sbb eax, eax
add eax, 2
jmp 0x140019e52
xor eax, eax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x37], rax
mov r15d, dword [rcx + 8]
mov r14b, 1
mov byte [rbp + 0x27], r14b
xor esi, esi
mov dword [rbp + 0x37], esi
lea r8, str.42845F3E_38F8_4087_895E_98890F697079
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov qword [rbp + 0x2f], rax
test rax, rax
jne 0x1400199c8
xor r14b, r14b
mov byte [rbp + 0x27], r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400199eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400199ee
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r14b
mov byte [rbp + 0x27], r14b
mov dword [rbp + 0x37], eax
test r14b, r14b
jne 0x140019a14
test rbx, rbx
je 0x140019a0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 4
jmp 0x140019e52
mov eax, dword [rdi]
cmp eax, 2
jne 0x140019a5a
call fcn.140012880
mov rdx, rdi
call fcn.140012990
test al, al
je 0x140019a30
mov al, 1
jmp 0x140019a37
call fcn.140018570
xor al, al
neg al
sbb edi, edi
test rbx, rbx
je 0x140019a52
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi + 2]
jmp 0x140019e52
cmp eax, 4
jne 0x140019b37
mov byte [rbp - 0x69], 0
xor edx, edx
lea r8d, [rax + 0x54]
lea rcx, [rbp - 0x39]
call fcn.140218bd0
mov byte [rbp - 0x39], 0
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
lea rax, [0x1402975c8]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rsi
lea r8, [rbp - 0x69]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000a140
nop
lea rcx, [rbp - 0x39]
test al, al
jne 0x140019ae9
call fcn.14000a070
nop
test rbx, rbx
je 0x140019adf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x140019e52
call fcn.14000a070
nop
cmp byte [rbp - 0x69], 0
je 0x140019b16
test rbx, rbx
je 0x140019b0c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 7
jmp 0x140019e52
test rbx, rbx
je 0x140019b2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140019e52
cmp eax, 5
jne 0x140019c3a
xor edx, edx
lea r8d, [rax + 0x4b]
lea rcx, [rbp - 0x39]
call fcn.140218bd0
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
mov qword [rbp - 1], 7
mov qword [rbp - 9], rsi
mov word [rbp - 0x19], si
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
xor r8d, r8d
xor edx, edx
call fcn.140004d20
mov qword [rbp + 7], rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14001d710
test al, al
jne 0x140019b9a
xor dil, dil
jmp 0x140019bb0
xor r9d, r9d
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.14001aa60
test al, al
setne dil
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
lea rdx, [0x14001c310]
call fcn.140023dd0
neg dil
sbb edi, edi
lea rcx, [rbp + 7]
call fcn.14000f2f0
mov rcx, qword [rbp + 7]
call fcn.1402150bc
mov r8, qword [rbp - 1]
cmp r8, 8
jb 0x140019bfb
inc r8
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140008270
mov qword [rbp - 1], 7
mov qword [rbp - 9], rsi
mov word [rbp - 0x19], si
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x140019c25
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.140008270
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
jmp 0x140019a3b
cmp eax, 6
jne 0x140019c74
mov rdx, rdi
call fcn.14001d7d0
test al, al
jne 0x140019c52
mov al, 1
jmp 0x140019a37
cmp dword [rdi], 8
sete sil
lea r8, [rdi + 0x140]
lea rdx, [rdi + 0x120]
mov r9d, esi
call fcn.14001aa60
jmp 0x140019a37
cmp eax, 8
je 0x140019c3f
cmp eax, 7
jne 0x140019e36
mov byte [rbp - 0x69], 0
xor edx, edx
lea r8d, [rax + 0x51]
lea rcx, [rbp - 0x39]
call fcn.140218bd0
mov byte [rbp - 0x39], 0
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
lea rax, [0x1402975c8]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rsi
lea r8, [rbp - 0x69]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000a140
lea r15, [rdi + 0x120]
mov rcx, r15
test al, al
je 0x140019de8
call fcn.140023320
mov r8d, 1
lea rdx, [0x140297498]
mov rcx, r15
call fcn.14000f3a0
mov dword [rbp - 0x61], 0x13d0082
mov dword [rbp - 0x5d], 0xa000b
mov dword [rbp - 0x59], 0x9600d0
mov dword [rbp - 0x55], 0xeb
lea rcx, [rbp - 0x61]
call fcn.140018b70
or r14, 0xffffffffffffffff
cmp word [rax], 0
jne 0x140019d38
mov r8, rsi
jmp 0x140019d4b
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140019d40
mov rdx, rax
mov rcx, r15
call fcn.14000f3a0
mov r8d, 1
lea rdx, [0x140297498]
mov rcx, r15
call fcn.14000f3a0
mov edx, dword [rdi + 0x30]
lea rcx, [rbp - 0x61]
call fcn.1400230a0
nop
mov r9, r14
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.14000f510
nop
mov r8, qword [rbp - 0x49]
cmp r8, 8
jb 0x140019da4
inc r8
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x61]
call fcn.140008270
lea rax, str.x64
lea rdx, str.x86
cmp dword [rdi + 0x98], 0
cmovne rdx, rax
cmp word [rdx], 0
jne 0x140019dd0
mov r14, rsi
jmp 0x140019ddb
inc r14
cmp word [rdx + r14*2], 0
jne 0x140019dd0
mov r8, r14
mov rcx, r15
call fcn.14000f3a0
jmp 0x140019dfb
cmp dword [rdi + 0x98], 0
setne r9b
mov edx, dword [rdi + 0x30]
call fcn.140023420
mov rdx, rdi
call fcn.14001d7d0
test al, al
jne 0x140019e0b
mov al, 1
jmp 0x140019e24
cmp dword [rdi], 8
sete sil
lea r8, [rdi + 0x140]
mov r9d, esi
mov rdx, r15
call fcn.14001aa60
neg al
sbb edi, edi
lea rcx, [rbp - 0x39]
call fcn.14000a070
jmp 0x140019a3b
test rbx, rbx
je 0x140019e4d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140215090
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret