Function at 0x140035bd0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r13
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140064018]
xor rax, rsp
mov qword [rbp - 8], rax
xor r13d, r13d
mov qword [rsp + 0x88], r12
cmp dword [0x140064af0], 1
jne 0x140035c8d
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], r13
call fcn.140002a30
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140035c81
mov rdx, rcx
lea r8, [0x14005e790]
lea rcx, [rbp - 0x20]
call fcn.14003f724
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140035c7d
xor edx, edx
lea r8d, [r13 + 2]
call fcn.14003b010
mov rcx, qword [rbp - 0x20]
call fcn.14003a830
mov rcx, qword [rbp - 0x20]
xor r8d, r8d
xor edx, edx
mov ebx, eax
call fcn.14003b010
mov rcx, qword [rbp - 0x20]
call fcn.14003ada4
cmp ebx, 0x46
jbe 0x140035c7d
lea ecx, [r13 + 1]
mov dword [0x140065e54], 1
call fcn.1400296c0
mov rcx, qword [rbp - 0x18]
call fcn.140038520
mov dword [0x140064af0], r13d
mov eax, dword [0x140065e5c]
add eax, 0xffffffc4
cmp eax, 0xa
ja 0x140035cac
mov ecx, 1
call fcn.1400296c0
mov dword [0x140065e5c], r13d
mov qword [rsp + 0x80], rdi
call fcn.1400351b0
call fcn.140035710
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x18], r13
lea rcx, [0x14005f010]
mov qword [rbp - 0x20], r13
call fcn.14002a0e0
lea rdx, [rbp - 0x20]
lea rcx, [0x14005f058]
call fcn.14002a0e0
mov rax, qword [0x140065e60]
mov r12, qword [rbp - 0x20]
test rax, rax
je 0x140035dd8
cmp qword [rax + 8], r13
jbe 0x140035dd8
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x90], r14
lea rcx, [0x14005dea0]
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
call fcn.14002e1f0
mov r14, qword [rbp - 0x28]
lea r8, [rbp - 0x30]
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.14002e3a0
mov rsi, qword [rbp - 0x30]
test rsi, rsi
je 0x140035d85
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], r13b
jne 0x140035d50
test rax, rax
je 0x140035d85
mov rcx, rsi
call fcn.14002bd40
test eax, eax
jne 0x140035d85
mov rcx, rsi
call fcn.140038520
mov rcx, r14
call fcn.140038520
mov rcx, qword [rbp - 0x20]
call fcn.140038520
jmp 0x140035dd0
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
call fcn.14002f6c0
mov r8, qword [rbp - 0x30]
mov rdx, r14
mov rcx, qword [rbp - 0x20]
call fcn.14002ea90
mov rcx, qword [rbp - 0x30]
call fcn.140038520
mov rcx, rsi
call fcn.140038520
mov rcx, r14
call fcn.140038520
mov rcx, qword [rbp - 0x20]
call fcn.140038520
mov rcx, qword [rbp - 0x18]
mov rdx, r12
call fcn.14002da60
mov r14, qword [rsp + 0x90]
call fcn.14002d700
lea rax, [0x14005ea30]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], rax
call fcn.140035710
mov r9, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], r12
call fcn.1400327c0
cmp eax, 1
jne 0x140035e4b
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
call fcn.14002b1c0
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x28]
mov r8d, 2
call fcn.14002b5d0
mov rdx, qword [rbp - 0x28]
call fcn.140032e30
mov rcx, qword [rbp - 0x28]
call fcn.140038520
mov rcx, qword [rbp - 0x30]
call fcn.140038520
mov rcx, qword [rbp - 0x18]
call fcn.140038520
mov rcx, r12
call fcn.140038520
mov rcx, qword [rbp - 0x20]
call fcn.140038520
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
lea rcx, [0x14005f088]
call fcn.14002e1f0
mov rsi, qword [rbp - 0x30]
lea r8, [rbp - 0x28]
mov rdx, rsi
mov qword [rbp - 0x18], r13
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x28], r13
call fcn.14002e3a0
mov r12, qword [rsp + 0x88]
test eax, eax
jne 0x140035eae
mov rcx, qword [rbp - 0x28]
call fcn.14002bd40
test eax, eax
je 0x140035f29
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
lea rcx, [0x14005f0c0]
call fcn.14002a0e0
mov r8, qword [rbp - 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x140035f29
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x140035f20
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
lea rcx, [0x14005f110]
call fcn.14002a0e0
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x10]
mov r9, rsi
call fcn.140033840
mov rcx, qword [rbp - 0x30]
call fcn.140038520
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140038520
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140036180
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop rsi
pop rbp
ret