Function at 0x140078110
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1402a61f0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x41], rcx
mov byte [rcx], 0
xor r12d, r12d
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x20], r12
mov qword [rcx + 0x28], 7
mov word [rcx + 0x10], r12w
mov qword [rcx + 0x30], r12
add rcx, 0x38
xor edx, edx
call fcn.1400916a0
nop
mov qword [rdi + 0x60], r12
mov qword [rdi + 0x68], r12
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.140079cf0
nop
lea rdx, [rbp + 7]
mov rcx, rax
call fcn.14007b870
nop
lea rcx, [rbp - 0x21]
call fcn.14007aa30
lea rsi, [rbp + 7]
mov r8, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rsi, r8
lea r14, [rbp + 7]
cmovae r14, r8
mov r11, qword [rbp + 0x17]
add r14, r11
lea rbx, [rbp + 7]
cmp r10, 0x10
cmovae rbx, r8
cmp rbx, r14
je 0x1400781f5
sub rsi, rbx
movzx ecx, byte [rbx]
call fcn.1400a3468
mov byte [rsi + rbx], al
inc rbx
cmp rbx, r14
jne 0x1400781d6
mov r10, qword [rbp + 0x1f]
mov r11, qword [rbp + 0x17]
mov r8, qword [rbp + 7]
lea rbx, [rbp + 7]
cmp r10, 0x10
cmovae rbx, r8
add rbx, r11
lea r9, [rbp + 7]
cmp r10, 0x10
cmovae r9, r8
add r9, r11
lea rax, [rbp + 7]
cmp r10, 0x10
cmovae rax, r8
cmp rax, r9
je 0x140078277
movzx ecx, byte [rax]
sub cl, 0x61
cmp cl, 0x19
ja 0x140078237
inc rax
cmp rax, r9
jne 0x140078224
cmp rax, r9
je 0x140078277
lea rdx, [rax + 1]
cmp rdx, r9
je 0x140078277
nop word [rax + rax]
movzx r8d, byte [rdx]
lea ecx, [r8 - 0x61]
cmp cl, 0x19
ja 0x140078263
mov byte [rax], r8b
inc rax
inc rdx
cmp rdx, r9
jne 0x140078250
mov r10, qword [rbp + 0x1f]
mov r11, qword [rbp + 0x17]
mov r8, qword [rbp + 7]
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r8
mov rdx, rax
sub rdx, rcx
sub rbx, rax
mov rax, r11
sub rax, rdx
cmp rax, rbx
cmovb rbx, rax
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r8
add rcx, rdx
sub r11, rbx
mov qword [rbp + 0x17], r11
sub r11, rdx
lea r8, [r11 + 1]
lea rdx, [rcx + rbx]
call fcn.14009e510
mov r8d, 0x26
lea rdx, str.95583B5F_C5D3_4367_A417_1AF66B78536C
lea rcx, [rbp + 7]
call fcn.14007ab00
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
mov byte [rbp - 1], 0
mov qword [rbp - 0x39], rax
lea rax, [rbp - 1]
mov qword [rbp - 0x31], rax
mov byte [rbp - 0x29], 1
mov ecx, 0x18
call fcn.14009c170
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14007833b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_resource_void____ptr64__class__public:_void___cdecl_Avira::JsonStorage::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64____ptr64::_2::_lambda_3__.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
jmp 0x14007833e
mov rax, r12
mov qword [rdi + 0x60], rbx
mov rbx, qword [rdi + 0x68]
mov qword [rdi + 0x68], rax
test rbx, rbx
je 0x140078389
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140078389
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14020a558]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140078389
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14020a558]
cmp qword [rdi + 0x60], 0
jne 0x1400783b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x49], eax
lea r9, [rbp - 0x49]
lea r8, str.Failed_to_create_json_mutex._LastError:__d
mov edx, 2
lea rcx, [0x1402a6020]
call fcn.140076ea0
nop
mov qword [rdi + 8], r15
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400783f2
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400783ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007841d
call fcn.14009c1b0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14009c7d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400a2f60
nop
int3