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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rcx]
lea r13, [rcx + 8]
test al, 1
jne 0x1400ced7f
cmp rax, 2
jb 0x1400cea67
shr rax, 1
imul rbp, rax, 0x38
add rbp, r13
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [0x1401f9ae0]
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0x98], 0x20
mov rbx, qword [r13 + 8]
mov qword [rsp + 0xa0], rbx
mov eax, dword [r13 + 0x10]
mov dword [rsp + 0xa8], eax
lea rax, [r13 + 0x18]
mov qword [rsp + 0xb0], rax
mov rax, qword [r13]
cmp rax, r14
je 0x1400ceaa4
mov qword [rsp + 0x58], rsi
mov rdi, rbp
mov rbp, r14
lea rcx, [0x1401f9940]
cmp rax, rcx
jne 0x1400cf380
mov rsi, r12
mov r15, qword [rbx + 8]
lea r14, [r15 + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400cf24b
mov r12, qword [rsp + 0xa0]
cmp byte [r12 + 0x51], 0
je 0x1400cf1a6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lock dec dword [rbx]
setne al
test rbx, rbx
mov r14, rbp
mov rbp, rdi
mov r12, rsi
mov rsi, qword [rsp + 0x58]
je 0x1400cea57
test al, al
jne 0x1400cea57
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x1400cea99
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400cea4f
lock dec dword [rcx + 8]
jne 0x1400cea4f
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
mov rcx, rbx
call fcn.140153bcc
add r13, 0x38
cmp r13, rbp
jne 0x1400ce970
mov rax, qword [rsi]
test rax, rax
je 0x1400cea74
mov rcx, rsi
call fcn.1401318be
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140156fe0
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lock dec dword [rcx + 8]
jne 0x1400cea2e
jmp 0x1400cef85
mov r15, qword [rbx + 8]
test rbx, rbx
je 0x1400cf243
mov eax, 1
lock xadd dword [rbx], eax
cmp eax, 0x7fffffff
je 0x1400cf23a
lock dec dword [rbx]
je 0x1400cf39e
lea rdi, [r15 + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400cf33e
cmp byte [r15 + 0x118], 0
je 0x1400ceaf3
cmp byte [rbx + 0x50], 0
jne 0x1400ceb17
mov byte [rbx + 0x50], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbx, rbx
je 0x1400cea57
lock dec dword [rbx]
je 0x1400cea25
jmp 0x1400cea57
mov eax, dword [rsp + 0xa8]
cmp byte [rbx + 0x51], 0
mov byte [rbx + 0x50], 0
jne 0x1400ceaf7
mov ecx, eax
and ecx, 1
jne 0x1400ceaf7
mov byte [r15 + 0x118], 0
movabs rcx, 0xaaaaaaaa00000000
mov qword [rsp + 0xd0], rcx
mov dword [rsp + 0xb8], 0x20
shr eax, 9
and eax, 1
mov dword [rsp + 0xbc], eax
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 0
mov rdx, qword [rbx + 0x18]
test rdx, rdx
mov qword [rsp + 0x60], rdi
jne 0x1400ced88
mov r8, qword [rsp + 0xb0]
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0xd0], 0x24
mov ecx, dword [r8 + 8]
and ecx, 2
cmp ecx, 1
mov ecx, 0
adc ecx, 0x24
mov dword [rsp + 0xd0], ecx
mov edx, 4
test byte [r8 + 8], 1
je 0x1400cf416
mov dword [rsp + 0xcc], edx
cmp qword [r8 + 0x10], 0
jne 0x1400cf407
or edx, ecx
mov dword [rsp + 0xc8], 0
test edx, eax
jne 0x1400cebf8
mov dword [rsp + 0xc8], 9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov cl, byte [r15 + 0x3c]
test cl, cl
je 0x1400cec10
cmp dword [r15 + 0x40], eax
je 0x1400cf42a
test cl, cl
jne 0x1400cefaa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [r15 + 0x3c], 0
jne 0x1400cec2a
mov byte [r15 + 0x3c], 1
mov dword [r15 + 0x40], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r15 + 0x10]
lea rcx, [rsp + 0xb8]
call qword [0x14037e008]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400cef9c
mov rax, qword [r15 + 0x70]
cmp rax, 2
jae 0x1400cecf7
mov r14, rax
shr r14, 1
lea rdi, [r15 + 0x78]
mov rcx, rax
mov rdx, rdi
and rcx, 1
jne 0x1400cf34c
cmp rax, 2
jae 0x1400cecd1
test rcx, rcx
jne 0x1400cf3fa
mov qword [r15 + 0x70], 0
mov byte [r15 + 0x3c], 0
cmp dword [r15 + 0x38], 0
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [0x1401f9ae0]
mov rdi, qword [rsp + 0x60]
je 0x1400ceaf7
add r15, 0x20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
jmp 0x1400ceaf7
lea rax, [r14 + r14*4]
lea r12, [rdx + rax*8]
add r12, 0xffffffffffffffd8
mov rcx, r12
call fcn.14003a1f0
add r12, 0xffffffffffffffd8
dec r14
jne 0x1400cecdd
mov rcx, qword [r15 + 0x70]
and ecx, 1
jmp 0x1400cec88
lea rcx, [r15 + 0x78]
xor edi, edi
xor r12d, r12d
mov qword [rsp + 0x58], rcx
test al, 1
jne 0x1400cf4e2
mov rax, qword [rcx + rdi]
cmp byte [rax + 0x51], 0
mov rax, rcx
je 0x1400ced24
cmp dword [rcx + rdi + 0x18], 1
mov rax, rcx
jne 0x1400ced63
add rax, rdi
add rax, 8
mov qword [rsp + 0x68], rax
mov r14, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x68]
call qword [0x14037e008]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, qword [rsp + 0x58]
test al, al
je 0x1400cf07d
inc r12
mov rax, qword [r15 + 0x70]
mov r14, rax
shr r14, 1
add rdi, 0x28
cmp r12, r14
jae 0x1400cec6e
jmp 0x1400ced05
mov r13, qword [r13]
jmp 0x1400ce94b
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x84], eax
mov dword [rsp + 0xd0], 0
lea rcx, [rdx + 0x20]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400cf0b2
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x28], 0
je 0x1400cf508
mov r8, rax
movups xmm0, xmmword [0x1403076f8]
movaps xmmword [rsp + 0xf0], xmm0
movups xmm0, xmmword [0x1403076e8]
movaps xmmword [rsp + 0xe0], xmm0
mov eax, dword [0x140360b50]
mov ecx, dword [0x1403576e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400cf57b
mov rax, qword [0x1403530c8]
mov rcx, qword [r8 + 0x28]
mov r11, qword [rcx + 8]
lea rcx, [0x1400f2320]
cmp rax, rcx
jne 0x1400cf0fe
test r11, r11
je 0x1400cf508
cmp dword [r11 + 0xc], 1
jne 0x1400cf508
lea rcx, [r11 + 0x10]
mov rax, qword [r11 + 0x10]
test al, 0x19
jne 0x1400cf267
mov rdx, rax
or rdx, 8
lock cmpxchg qword [rcx], rdx
jne 0x1400cf267
mov rax, qword [rsp + 0xe0]
cmp rax, 0x20
mov edx, 0x20
cmovb rdx, rax
mov qword [rsp + 0xe0], rdx
mov eax, dword [r11 + 0x1c]
mov dword [rsp + 0xe8], eax
mov rax, qword [r11 + 0x58]
mov rdx, qword [r11 + 0x60]
cmp rax, rdx
jne 0x1400cf518
mov qword [rsp + 0xf0], 0
xor eax, eax
mov qword [rsp + 0xf8], rax
mov rax, qword [rcx]
mov r9, rax
xor r9, 0xc
mov edx, r9d
and edx, 0x18
and r9d, 6
cmp rdx, r9
jae 0x1400cf0a1
mov rdx, rax
and rdx, 0xffffffffffffffd7
lock cmpxchg qword [rcx], rdx
jne 0x1400cf0a1
test byte [rsp + 0xe8], 1
je 0x1400cf126
mov byte [r8 + 0xa1], 1
mov dword [rsp + 0xd0], 4
or byte [rsp + 0xcc], 4
cmp dword [r8 + 0x10], 1
jne 0x1400cef49
mov eax, 4
xor ecx, ecx
cmp byte [r8 + 0xa2], 0
jne 0x1400cf0c2
cmp qword [rsp + 0xf0], 0
jne 0x1400cf0c2
cmp qword [r8 + 0x48], 0
jne 0x1400cf0f5
test cl, cl
jne 0x1400cf092
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0x84]
test dword [rsp + 0xcc], eax
jne 0x1400cebf8
test dword [rsp + 0xd0], eax
je 0x1400cebed
jmp 0x1400ceaf7
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
jmp 0x1400cea2e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400cec5a
mov eax, dword [0x1403576e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x198]
mov qword [rsp + 0x58], rax
lea rax, [r15 + 0x20]
mov qword [rsp + 0x68], rax
mov r14, r12
lea rdx, str.DispatchOrQueueEvent
lea r8, str.....mojocoreipcz_drivermojo_trap.cc
lea r12, [rsp + 0xe0]
mov rcx, r12
mov r9d, 0x21c
call fcn.1400c6940
test byte [0x140354cd0], 0x19
jne 0x1400cf5de
mov rax, qword [rsp + 0x58]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400cf02d
cmp qword [rdi + 0x18], 0
jne 0x1400cf5fa
movabs rax, 0x4000000000000000
lock or qword [rdi + 0x10], rax
inc dword [r15 + 0x38]
movabs rax, 0x7fffffffffffffff
lea r12, [rsp + 0xe0]
mov qword [r12], rax
mov rcx, qword [rsp + 0x68]
mov rdx, r12
call fcn.1400d5cf0
dec dword [r15 + 0x38]
test byte [0x140354cd0], 0x19
jne 0x1400cf620
cmp byte [r15 + 0x3c], 0
mov r12, r14
mov rdi, qword [rsp + 0x60]
je 0x1400cec18
jmp 0x1400cefd2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [rsp + 0x58]
jmp 0x1400ced63
or eax, 9
mov dword [rsp + 0xd0], eax
jmp 0x1400cef49
xor edx, edx
call fcn.140102bcc
mov r8, qword [rsp + 0x68]
jmp 0x1400ceee2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400cedb9
mov byte [r8 + 0xa2], 1
mov edx, dword [rsp + 0xcc]
or edx, 8
or eax, 8
or eax, 1
mov dword [rsp + 0xd0], eax
or edx, 1
mov dword [rsp + 0xcc], edx
mov rdi, qword [rsp + 0x60]
jmp 0x1400cef41
mov edx, dword [rsp + 0xcc]
jmp 0x1400cf0d7
lea r9, [rsp + 0xe0]
mov rcx, r11
xor edx, edx
xor r8d, r8d
call qword [0x14037e008]
mov r8, qword [rsp + 0x68]
test eax, eax
je 0x1400ceee2
jmp 0x1400cf508
cmp byte [r8 + 0xa1], 0
mov dword [rsp + 0xd0], 4
jne 0x1400cef03
mov dword [rsp + 0xd0], 0x14
mov rdx, r8
cmp dword [r8 + 0x10], 1
jne 0x1400cf168
mov cl, 1
mov eax, 0x14
mov rdi, qword [rsp + 0x60]
mov r8, rdx
jmp 0x1400cef19
mov dword [rsp + 0xd0], 0x16
mov rax, qword [rdx + 0x38]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
cmp rax, qword [rdx + 0x48]
mov rdi, qword [rsp + 0x60]
jne 0x1400cf199
cmp qword [rsp + 0xf0], 0
je 0x1400cef49
or byte [rsp + 0xcc], 2
jmp 0x1400cef49
lea rcx, [r15 + 0x48]
lea r8, [r12 + 0x28]
movaps xmm0, xmmword [0x1402fccc0]
lea rdx, [rsp + 0xe0]
movaps xmmword [rdx], xmm0
call fcn.1400640f0
lea rax, [rsp + 0xe0]
mov r8, qword [rax]
mov r9, qword [rax + 8]
lea rcx, [r15 + 0x50]
lea rdx, [rsp + 0xb8]
call fcn.140064160
cmp byte [r12 + 0x51], 0
jne 0x1400cf22d
mov byte [r12 + 0x51], 1
movabs rax, 0x100000020
lea r8, [rsp + 0xe0]
mov qword [r8], rax
mov rax, qword [r12 + 0x28]
mov qword [r8 + 8], rax
mov qword [r8 + 0x10], 1
mov dword [r8 + 0x18], 0
mov rcx, r15
mov rdx, r12
call fcn.1400fbb70
mov rax, qword [r15 + 0x50]
mov qword [r15 + 0x68], rax
jmp 0x1400ce9ff
int3
int3
int3
lock dec dword [rbx]
jmp 0x1400ceace
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400ce9eb
lea rcx, [0x140358c00]
call fcn.140095b30
jmp 0x1400cf28e
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x90], rbp
mov eax, dword [0x140358c00]
cmp eax, 0xdd
jne 0x1400cf259
mov r9d, dword [0x140358c04]
inc r9d
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
test al, 0x11
jne 0x1400cf2df
test al, 8
movabs r12, 0xaaaaaaaaaaaaaaaa
mov rbp, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
mov r11, qword [rsp + 0x88]
je 0x1400cf32a
dec r9d
cmp r9d, 1
jg 0x1400cf298
lea rdx, [0x140304c88]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.140100042
mov rcx, rsi
movabs r12, 0xaaaaaaaaaaaaaaaa
mov rbp, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov r11, qword [rsp + 0x88]
jmp 0x1400cee64
mov rdx, rax
or rdx, 8
lock cmpxchg qword [rcx], rdx
je 0x1400cee64
jmp 0x1400cf2d6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400ceae3
mov rdx, qword [rdi]
jmp 0x1400cec82
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_vector
lea r9, [0x140303e3a]
mov r8d, 0x62c
call fcn.1401bf470
lea rcx, [rsp + 0x98]
call qword [0x14037e008]
mov r14, rbp
mov rbp, rdi
mov rsi, qword [rsp + 0x58]
jmp 0x1400cea57
mov rdi, r12
mov r12, rbx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400cf3c5
lock dec dword [rcx + 8]
jne 0x1400cf3c5
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x1400cf3e7
lock dec dword [rcx + 8]
jne 0x1400cf3e7
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
mov rbx, r12
mov rcx, r12
call fcn.140153bcc
mov r12, rdi
jmp 0x1400ceace
mov rcx, qword [rdi]
call fcn.140153bcc
jmp 0x1400cec91
or edx, 1
mov dword [rsp + 0xcc], edx
jmp 0x1400cebdc
or ecx, 0x12
mov dword [rsp + 0xd0], ecx
mov edx, 2
jmp 0x1400cebca
mov rdi, r12
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x1400cf458
mov eax, 1
mov rcx, qword [rsp + 0x58]
lock xadd dword [rcx], eax
cmp eax, 0x7fffffff
je 0x1400cf23d
add r15, 0x70
lea r12, [rsp + 0xe0]
lea r8, [rsp + 0xb8]
mov rcx, r15
mov rdx, r12
call fcn.14003a260
mov r15, qword [r12]
test r15, r15
je 0x1400cf4d0
lock dec dword [r15]
jne 0x1400cf4d0
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x1400cf4a7
lock dec dword [rcx + 8]
jne 0x1400cf4a7
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x1400cf4c8
lock dec dword [rcx + 8]
jne 0x1400cf4c8
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [0x14037e008]
mov rcx, r15
call fcn.140153bcc
mov r12, rdi
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
jmp 0x1400ceaf7
mov rax, qword [rcx]
mov rcx, qword [rax + rdi]
cmp byte [rcx + 0x51], 0
je 0x1400ced24
cmp dword [rax + rdi + 0x18], 1
mov rcx, qword [rsp + 0x58]
je 0x1400ced24
jmp 0x1400ced63
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400ceaf7
mov r10, rcx
mov r9, r8
mov rcx, qword [r11 + 0x70]
sub rdx, rax
sar rdx, 3
movabs r8, 0x6db6db6db6db6db7
imul r8, rdx
cmp r8, rcx
jbe 0x1400cf354
imul rdx, rcx, 0x38
lea rcx, [rax + rdx]
cmp byte [rax + rdx], 0
je 0x1400cf573
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0xf0], rax
cmp byte [rcx], 0
je 0x1400cf577
mov rax, qword [rcx + 0x18]
mov rdi, qword [rsp + 0x60]
mov r8, r9
mov rcx, r10
jmp 0x1400ceeab
xor eax, eax
jmp 0x1400cf552
xor eax, eax
jmp 0x1400cf563
lea rcx, [0x140360b50]
call fcn.1401547b8
mov r8, qword [rsp + 0x68]
cmp dword [0x140360b50], 0xffffffff
jne 0x1400cee0f
cmp qword [0x140353098], 0x87
jbe 0x1400cf240
lea rcx, [0x140353098]
lea rdx, [0x140307810]
mov r8d, 0x88
call fcn.140158a70
lea rcx, [0x140360b50]
call fcn.140153cf4
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
jmp 0x1400cee0f
lea rdx, [rsp + 0xd8]
mov qword [rdx], r12
lea rcx, str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
call fcn.14006d1b0
jmp 0x1400cf006
lea rcx, [rdi + 0x18]
mov r12, qword [rdi + 0x10]
call fcn.140257310
movabs rcx, 0xff00000000000000
and rcx, r12
or rcx, rax
mov qword [rdi + 0x10], rcx
jmp 0x1400cf01e
mov rcx, r12
call fcn.1400e35f0
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140354cd0]
lea r8, str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
mov cl, 0x45
xor r9d, r9d
call fcn.1401bfdf0
jmp 0x1400cf065