Function at 0x14016a7bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rcx
add rcx, 8
test byte [rax], 1
jne fcn.14016b327
mov r9d, 0x3b9aca00
jmp 0x14016a7f4
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2f8
mov dword [rsp + 0x4c], r9d
mov qword [rsp + 0x90], r8
mov rdi, rdx
mov qword [rsp + 0x58], rcx
lea rdx, [0x1403bbb78]
mov rcx, rdi
call fcn.14016b808
mov r13, rax
mov al, byte [rax + 0x24]
test al, al
jne 0x14016b259
lea rdx, [0x1403bbb90]
mov rcx, rdi
call fcn.14016b808
mov r14, rax
lea r15, [rax + 8]
mov ecx, 8
xor eax, eax
lock cmpxchg qword [r14 + 8], rcx
je 0x14016aaa1
mov rsi, r13
lea r12, [rsp + 0xc8]
and dword [r12], 0
mov rbx, qword [r15]
lea r13, [rsp + 0x1d8]
test bl, 0xc
je 0x14016a91e
test bl, 3
jne 0x14016a89b
mov rcx, r12
call fcn.1400cd2f5
test al, al
jne 0x14016a997
test bl, 1
jne 0x14016a8b4
mov rcx, rbx
or rcx, 1
mov rax, rbx
lock cmpxchg qword [r15], rcx
mov rbx, rax
jne 0x14016a87d
and qword [rsp + 0x1d8], 0
call fcn.1400cd0e6
mov rbx, rax
test rax, rax
jne 0x14016a8d5
mov rcx, r13
call fcn.1400cd1d2
mov rbx, r13
mov rcx, r15
call fcn.1400cd216
mov rcx, qword [r15]
test cl, 1
sete dl
test cl, 0xc
sete cl
or cl, dl
jne 0x14016a937
mov byte [rbx + 0x30], 0
and qword [rbx + 0x18], 0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x28], 8
mov qword [rbx + 8], 1
cmp qword [rax + 8], 0
je 0x14016a954
mov rcx, qword [rax + 0x10]
add rcx, 0x18
jmp 0x14016a95b
mov rcx, rbx
or rcx, 8
mov rax, rbx
lock cmpxchg qword [r15], rcx
je 0x14016a99f
mov rbx, rax
jmp 0x14016a87d
mov rcx, rax
call fcn.1400ccc81
cmp qword [rsp + 0x1d8], 0
je 0x14016a98f
lock dec qword [0x14042b920]
jmp 0x14016a98f
mov rcx, rax
add rcx, 8
mov qword [rcx], rbx
mov qword [rax + 0x10], rbx
mov rcx, rax
call fcn.1400ccc81
mov rcx, rbx
call fcn.1400cd287
mov rax, qword [rbx + 0x20]
cmp qword [rsp + 0x1d8], 0
je 0x14016a989
lock dec qword [0x14042b920]
cmp rax, 1
je 0x14016a99f
and dword [rsp + 0xc8], 0
mov rbx, qword [r15]
jmp 0x14016a87d
lea r12, [rsp + 0xc8]
and dword [r12], 0
mov rbx, qword [r15]
mov r13, r15
or r13, 1
lea rbp, [rsp + 0x1d8]
cmp rbx, 0x10
jb 0x14016aa9e
mov rcx, r12
call fcn.1400cd2f5
test al, al
jne 0x14016aa96
test bl, 2
jne 0x14016a9f1
mov rcx, rbx
or rcx, 2
mov rax, rbx
lock cmpxchg qword [r15], rcx
mov rbx, rax
jne 0x14016a9be
and qword [rsp + 0x1d8], 0
call fcn.1400cd0e6
mov rbx, rax
test rax, rax
jne 0x14016aa12
mov rcx, rbp
call fcn.1400cd1d2
mov rbx, rbp
mov rcx, r13
call fcn.1400cd216
mov rcx, qword [r15]
cmp rcx, 0x10
setae dl
and ecx, 2
shr ecx, 1
test dl, cl
je 0x14016aa5b
mov byte [rbx + 0x30], 0
and qword [rbx + 0x18], 0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x28], 8
mov qword [rbx + 8], 1
cmp qword [rax + 8], 0
je 0x14016aa65
mov rcx, qword [rax + 0x10]
add rcx, 0x18
jmp 0x14016aa6c
mov rcx, rax
call fcn.1400ccc81
jmp 0x14016aa83
mov rcx, rax
add rcx, 8
mov qword [rcx], rbx
mov qword [rax + 0x10], rbx
mov rcx, rax
call fcn.1400ccc81
mov rcx, rbx
call fcn.1400cd287
cmp qword [rsp + 0x1d8], 0
je 0x14016aa96
lock dec qword [0x14042b920]
mov rbx, qword [r15]
jmp 0x14016a9be
mov r13, rsi
mov rcx, qword [r14 + 0x10]
imul rax, qword [r14 + 0x18], 0x28
lea rsi, [rcx + rax]
mov rbp, rax
test rax, rax
je 0x14016ab03
lea rbx, [rcx + 0x28]
call fcn.14016b839
mov r8, rax
lea rax, [rbp - 0x28]
mov rcx, rbx
cmp r8, 1
jne 0x14016aaae
mov r12, rdx
cmp rbx, rsi
je 0x14016ab03
mov ecx, 0x28
xor edx, edx
div rcx
mov r14, rax
mov rcx, rbx
call fcn.14016b839
cmp r12, rdx
cmovb rdx, r12
test rax, rax
cmovne r12, rdx
add rbx, 0x28
dec r14
jne 0x14016aae4
lea rdx, [0x1403bbba8]
mov rcx, rdi
call fcn.14016b808
cmp r12, 1
mov rcx, r12
adc rcx, 0
test rbp, rbp
cmove rcx, rbp
mov qword [rax], rcx
xor ecx, ecx
mov eax, 8
lock cmpxchg qword [r15], rcx
je 0x14016b0fd
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], r13
mov rcx, r15
call fcn.1400cd216
mov r11, rax
mov rdi, qword [rax + 8]
lea rax, [rsp + 0x1d0]
and qword [rax], 0
and qword [rax - 0x108], 0
lea rsi, [r11 + 8]
lea r14, [rsp + 0xd0]
xor r8d, r8d
xor r9d, r9d
xor ebx, ebx
lea rcx, str.assertion_failed:__handle.is_shutdown__
lea r8, [0x1403bbbe8]
mov edx, 0x27
call fcn.1402e8420