Function at 0x14016e8f0
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
xor eax, eax
xor r8d, r8d
lea rsi, [rsp + 0x70]
mov rbx, rcx
mov ecx, 0xe
mov rbp, rdx
mov qword [rsp + 0x40], 0
mov rdi, rsi
xor edx, edx
rep stosq qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14016ea68
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14016ea68
mov ecx, 0x200000
mov edx, dword [rbx + 0x20]
call qword [sym.imp.msvcrt.dll__aligned_malloc]
mov qword [rsp + 0x90], rax
mov rcx, rax
test rax, rax
je 0x14016ead0
mov r8d, 0x200000
xor edx, edx
call sym.memset
mov qword [rsp + 0x70], rbx
mov r9, rsi
xor edx, edx
mov rax, qword [rsp + 0x90]
lea r8, [0x14016c540]
xor ecx, ecx
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xc8], rbp
add rax, 0x100000
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14016ed48
xor edx, edx
lea r9, [rsp + 0x40]
mov r8d, 0x20000
mov rcx, rbx
call sym.mdb_txn_begin
test eax, eax
je 0x14016eb08
mov rbp, qword [rsp + 0x40]
mov dword [rsp + 0xd8], eax
mov edx, 0x11
mov rcx, rsi
xor r12d, r12d
call fcn.14016c6b0
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14016ed60
test rbp, rbp
je 0x14016ea71
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14016ea52
call sym.mdb_txn_abort
mov edx, 0x200022
mov rcx, rbp
call sym.mdb_txn_end
jmp 0x14016ea71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14016ea84
call qword [sym.imp.msvcrt.dll__aligned_free]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14016ea97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14016eaaa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
jne 0x14016eab7
mov r12d, dword [rsp + 0xd8]
mov eax, r12d
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14016ed88
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14016eaf9
call rbx
mov r12d, 8
jmp 0x14016eab7
mov eax, dword [rbx + 0x1c]
mov rcx, qword [rsp + 0x90]
xor edx, edx
lea r8d, [rax + rax]
call sym.memset
movdqu xmm0, xmmword [0x14023a3b0]
mov qword [rax], 0
mov rcx, rax
mov eax, 8
mov word [rcx + 0xa], ax
mov rax, qword [0x14023a3a0]
mov qword [rcx + 0x10], rax
movzx edx, word [rbx + 0x18]
mov rax, qword [rbx + 0x78]
mov r10d, dword [rbx + 0x1c]
mov qword [rcx + 0x50], 0xffffffffffffffff
or edx, 8
movups xmmword [rcx + 0x80], xmm0
mov word [rcx + 0x2c], dx
mov rdx, qword [rbx + 0x50]
mov qword [rcx + 0x20], rax
mov rax, r10
mov rdx, qword [rdx + 8]
mov dword [rcx + 0x28], r10d
add r10, qword [rsp + 0x90]
mov qword [rcx + 0x18], rdx
movdqu xmm1, xmmword [rcx + 0x10]
mov edx, 8
mov r14, r10
mov word [r10 + 0xa], dx
movups xmmword [r10 + 0x10], xmm1
movdqu xmm2, xmmword [rcx + 0x20]
mov qword [r10], 1
movups xmmword [r10 + 0x20], xmm2
movdqu xmm3, xmmword [rcx + 0x30]
movups xmmword [r10 + 0x30], xmm3
movdqu xmm4, xmmword [rcx + 0x40]
movups xmmword [r10 + 0x40], xmm4
movdqu xmm5, xmmword [rcx + 0x50]
movups xmmword [r10 + 0x50], xmm5
movdqu xmm0, xmmword [rcx + 0x60]
movups xmmword [r10 + 0x60], xmm0
movdqu xmm1, xmmword [rcx + 0x70]
movups xmmword [r10 + 0x70], xmm1
movdqu xmm2, xmmword [rcx + 0x80]
mov rbp, qword [rsp + 0x40]
movups xmmword [r10 + 0x80], xmm2
mov rdx, qword [rcx + 0x90]
mov qword [r10 + 0x90], rdx
mov rdx, qword [rbp + 0x58]
mov r13, qword [rdx + 0x58]
mov qword [rsp + 0x48], r13
cmp r13, 0xffffffffffffffff
je 0x14016ed70
lea r13, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
call sym.mdb_cursor_init
mov rax, qword [rsp + 0xf8]
test byte [rax + 0x7c], 0x13
jne 0x14016eda4
lea rax, [rsp + 0x50]
xor r12d, r12d
lea r15, [rsp + 0x60]
mov qword [rsp + 0x38], rax
jmp 0x14016ec7a
mov rax, qword [rsp + 0x68]
add r12, qword [rax]
mov rax, qword [rsp + 0xf8]
test byte [rax + 0x7c], 0x13
jne 0x14016eda4
mov rdx, qword [rsp + 0x38]
mov r9d, 8
mov r8, r15
mov rcx, r13
call sym.mdb_cursor_next
mov edx, dword [rsp + 0x124]
test dl, 8
je 0x14016eca6
xor edx, 8
mov dword [rsp + 0x124], edx
test eax, eax
je 0x14016ec60
cmp eax, 0xffff87b2
jne 0x14016ea12
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x10]
movdqu xmm3, xmmword [rax + 0x30]
lea r13, [rdx - 1]
sub r13, qword [rax + 8]
sub r13, qword [rax + 0x10]
sub r13, qword [rax + 0x18]
movups xmmword [r14 + 0x58], xmm3
movdqu xmm4, xmmword [rax + 0x40]
sub r13, r12
mov qword [r14 + 0x88], r13
movups xmmword [r14 + 0x68], xmm4
movdqu xmm5, xmmword [rax + 0x50]
mov eax, dword [rbx + 0x1c]
movups xmmword [r14 + 0x78], xmm5
mov qword [r14 + 0x80], r13
mov qword [r14 + 0x90], 1
add eax, eax
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rsi
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x78], rbp
call fcn.14016e2b0
test eax, eax
jne 0x14016ea12
cmp qword [rsp + 0x48], r13
je 0x14016ea19
mov eax, 0xffff87c0
jmp 0x14016ea12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test eax, eax
je 0x14016e9f0
jmp 0x14016ea71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x14016ea3f
movzx edx, word [rdx + 0x34]
mov word [r10 + 0x5c], dx
test dx, dx
je 0x14016ed0a
jmp 0x14016ecff
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14016eaf9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14016eaf9
mov eax, 0xffff87c2
jmp 0x14016ea12