Function at 0x1401145a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movapd xmmword [rsp + 0xd0], xmm8
movapd xmmword [rsp + 0xc0], xmm7
movapd xmmword [rsp + 0xb0], xmm6
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test rdx, rdx
jle 0x140114bdc
mov rbx, rdx
movapd xmm0, xmmword [0x140299a90]
movapd xmmword [rsp + 0x50], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movapd xmmword [rsp + 0x80], xmm0
movapd xmmword [rsp + 0x70], xmm0
movapd xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x90], 0
cmp byte [rdi + 8], 0
je 0x140114785
movabs r15, 0x7fffffffffffffff
cmp rbx, r15
je 0x1401147d6
mov rax, qword [0x1402dd7b0]
lea r12, [0x1401930c0]
cmp rax, r12
jne 0x14011473d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140114d6c
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov r14, rax
mov rcx, rbx
cmp rcx, r15
je 0x14011471e
mov rax, rcx
shr rax, 3
movabs rdx, 0x20c49ba5e353f7cf
mul rdx
shr rdx, 4
imul rax, rdx, 0x3e8
cmp rax, rcx
adc rdx, 0
mov rax, rdx
shr rax, 0x20
jne 0x14011471e
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401148d5
mov sil, 1
cmp byte [rdi + 8], 0
je 0x140114725
cmp byte [rsp + 0x90], 1
je 0x140114977
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140114756
call fcn.1401ac870
int3
mov edx, 0xffffffff
jmp 0x1401146dc
mov qword [rsp + 0x28], 0x16c
mov al, byte [0x14032e2ac]
test al, al
je 0x1401146f6
jmp 0x140114dd5
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [0x1402cbd20]
mov r14, qword [rsi]
jmp 0x1401146a5
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rcx, [rsp + 0x30]
mov r9d, 0x40
call fcn.14013ff00
cmp byte [rsp + 0x90], 1
je 0x140114d98
lea rsi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rsi
xor r8d, r8d
call fcn.140115200
mov byte [rsi + 0x40], 1
jmp 0x14011463c
mov edx, 0xffffffff
jmp 0x14011483c
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbx, [rsp + 0x30]
movabs r14, 0x8637bd05af7
movabs r13, 0x7fffffffffffffff
movabs rbp, 0x20c49ba5e353f7cf
mov rcx, r15
xor esi, esi
cmp rcx, r15
je 0x1401147cf
mov rax, rcx
shr rax, 3
mul rbp
mov rax, rdx
shr rax, 4
imul rdx, rax, 0x3e8
cmp rdx, rcx
adc rax, 0
mov rcx, rax
shr rcx, 0x20
neg rcx
mov edx, 0
sbb edx, edx
or edx, eax
mov rcx, qword [rdi]
call r12
test eax, eax
je 0x1401146ed
cmp eax, 0x102
jne 0x140114e44
mov rax, qword [0x1402dd7b0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14011495c
mov qword [rsp + 0x30], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cmp rax, r14
jge 0x140114e77
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
xor edx, edx
cmp r13, rax
setns dl
add rdx, r13
mov rcx, r13
sub rcx, rax
cmovo rcx, rdx
cmp rax, r15
jne 0x140114805
jmp 0x1401146f6
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [0x1402cbd20]
mov rax, qword [rsi]
jmp 0x14011491c
mov rax, qword [0x1402dd7b0]
cmp rax, r12
jne 0x1401148bf
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140114e1d
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
lea rdx, [r14 + rbx]
sar rdx, 0x3f
btc rdx, 0x3f
mov rcx, r14
add rcx, rbx
cmovo rcx, rdx
xor edx, edx
cmp rcx, rax
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
xor esi, esi
sub rcx, rax
cmovo rcx, r8
jg 0x1401146a8
jmp 0x1401146f6
lea rcx, [rsp + 0xa0]
call qword [0x1402cbd20]
mov rax, qword [rsp + 0xa0]
jmp 0x14011489c
mov qword [rsp + 0xa0], Ordinal_14
mov al, byte [0x14032e14b]
test al, al
jne 0x140114dae
call fcn.1401a9dcc
mov ebp, dword [rax]
call fcn.1401a9dcc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x140114a44
cmp qword [rsp + 0x58], 0
jne 0x140114a44
cmp byte [r14 + 0x19], 1
jne 0x140114a44
mov rbx, qword [r14 + 0x28]
add rbx, 0x68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140114bce
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140114a34
mov rax, qword [r14 + 0x28]
cmp byte [r14 + 0x39], 1
je 0x140114b86
dec dword [rax + 0x130]
cmp byte [r14 + 0x19], 0
je 0x140114d96
cmp byte [r14 + 0x18], 0
jne 0x140114a34
mov rcx, qword [r14 + 0x28]
cmp byte [r14 + 0x3a], 1
je 0x140114e13
dec dword [rcx + 0x134]
mov word [r14 + 0x39], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1401a9dcc
mov dword [rax], ebp
cmp byte [rsp + 0x88], 1
jne 0x140114a6a
mov rbx, qword [rsp + 0x80]
test rbx, rbx
jne 0x140114ac6
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140114a7c
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
movabs rdi, 0xfffffffc00000000
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, rdi
cmp rax, qword [0x1402dd748]
je 0x140114d62
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and rdi, rcx
cmp rdi, qword [0x1402dd748]
jne 0x140114704
call fcn.140004e70
jmp 0x140114704
mov rax, qword [fcn.1401a83e0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x140114b70
lea rdi, [rsp + 0x30]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140114e50
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x78]
xor ecx, ecx
cmp rax, r12
setns cl
movabs r13, 0x7fffffffffffffff
add rcx, r13
mov r14, rax
sub r14, r12
cmovo r14, rcx
cmp r14, 0xf4240
jge 0x140114c09
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140114a6a
lock dec dword [rdi]
jne 0x140114a6a
jmp 0x140114d4d
lea rdi, [rsp + 0xa0]
mov rcx, rdi
call qword [0x1402cbd20]
mov rax, qword [rdi]
jmp 0x140114b20
mov rcx, qword [rax + 0x80]
mov rdx, qword [rax + 0x110]
dec rdx
mov qword [rax + 0x110], rdx
cmp rcx, qword [rax + 0x88]
je 0x140114bb0
cmp qword [rax + 0x120], rdx
jae 0x140114bbe
mov word [rax + 0xb8], 0
jmp 0x140114a0d
movzx ecx, word [rcx + 0x10]
mov word [rax + 0xb8], cx
jmp 0x140114a0d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1401149e9
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test eax, eax
jne 0x140114bf8
test esi, esi
sete sil
jmp 0x140114704
cmp esi, 0x102
je 0x140114bed
mov ecx, esi
call fcn.140230b90
jmp 0x140114bed
mov ecx, 0x3938700
add rcx, qword [rbx + 0x1f0]
cmovo rcx, r13
cmp rax, rcx
jge 0x140114ec5
mov rax, qword [rbx + 0x1f0]
xor edx, edx
cmp r12, rax
setns dl
add rdx, r13
mov rcx, r12
sub rcx, rax
cmovo rcx, rdx
lea rdx, [r15 + rcx]
add rdx, 2
cmp rdx, 2
jb 0x140114eac
cvtsi2sd xmm0, rcx
movsd xmm8, qword [0x1402aad10]
divsd xmm0, xmm8
call fcn.1401e4ed0
xor edi, edi
movsd xmm6, qword [0x1402a0258]
ucomisd xmm0, xmm6
mov eax, 0x7fffffff
cmovb eax, edi
movsd xmm7, qword [0x1402a0260]
ucomisd xmm7, xmm0
mov r12d, 0x7fffffff
maxsd xmm0, xmm6
cvttsd2si ebp, xmm0
cmovb ebp, eax
lea rax, [r15 + r14]
add rax, 2
cmp rax, 2
jae 0x140114cb3
movsd xmm0, qword [0x14029ff08]
jmp 0x140114cc0
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, xmm8
call fcn.1401e4f80
ucomisd xmm0, xmm6
cmovb r12d, edi
ucomisd xmm7, xmm0
maxsd xmm0, xmm6
cvttsd2si r14d, xmm0
cmovb r14d, r12d
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r12, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add r14d, ebp
cmp r14d, 0x3c
mov r13d, 0x3c
cmovl r13d, r14d
lea rdi, [rbx + 8]
mov rcx, rdi
call r15
test al, al
je 0x140114e9e
cmp ebp, r13d
jge 0x140114d27
movsxd rax, ebp
movsxd rcx, r13d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140114d1a
mov rcx, rdi
call r12
cmp r14d, 0x3d
jl 0x140114b51
mov rbx, qword [rbx + 0x1f8]
sub r14d, r13d
xor ebp, ebp
test rbx, rbx
jne 0x140114cec
jmp 0x140114b51
mov rcx, rdi
call fcn.14000ba30
mov rcx, rdi
call fcn.1401a9dc4
jmp 0x140114a6a
call fcn.140004e70
jmp 0x140114a9e
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r14, rax
add r14, r8
jmp 0x1401146a5
ud2
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140116a00
mov byte [rsi + 0x40], 0
jmp 0x1401147b1
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0xa0]
mov r9d, 2
call fcn.140128f20
jmp 0x140114991
movzx ecx, al
xor rdi, qword [0x1402eb888]
lea rax, [rsp + 0x30]
mov qword [rax], rdi
lea rdx, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xa0]
mov qword [r8], rdx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x28]
mov r9d, 3
call fcn.140019aa0
jmp 0x1401146f6
call fcn.14023cf60
jmp 0x140114a34
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14011491c
mov ecx, eax
call fcn.140230b90
jmp 0x140114855
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140114b18
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14011489c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140114d0f
xor ecx, ecx
cmp r12, rax
setl cl
lea rax, [0x1402aad00]
movsd xmm0, qword [rax + rcx*8]
jmp 0x140114c55
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.140060340
mov rdi, qword [rdi]
test rdi, rdi
je 0x140114c22
lock dec dword [rdi]
jne 0x140114c22
mov rcx, rdi
call fcn.14000ba30
mov rcx, rdi
call fcn.1401a9dc4
jmp 0x140114c22