Function at 0x140169430
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movapd xmmword [rsp + 0xc0], xmm6
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r13, 0xfffffffc00000000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movapd xmm0, xmmword [0x140268c70]
movapd xmmword [rsp + 0xa0], xmm0
movapd xmmword [rsp + 0x90], xmm0
movapd xmmword [rsp + 0x80], xmm0
movapd xmmword [rsp + 0x70], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea rcx, [rsp + 0x28]
mov r9d, 0x5f
call fcn.1400e92c0
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x1a0]
mov rax, r14
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x14016994e
mov qword [rsp + 0x70], r14
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r15, [rax + 0x1a8]
mov r14, qword [r15]
mov rax, r14
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x140169edb
lea rax, [rsp + 0x70]
mov qword [rax + 8], r14
mov qword [rax + 0x10], r15
mov rcx, qword [r15]
mov qword [r15], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
jne 0x14016995b
xor ecx, ecx
mov byte [rsp + 0x90], cl
mov byte [rsp + 0x98], 0
mov edx, dword [0x1402a76e4]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], 0
je 0x140169917
test cl, cl
jne 0x1401699e9
test rax, rax
jne 0x1401696b2
lea r14, [rsp + 0xa0]
cmp byte [r14 - 8], 0
jne 0x140169ef0
mov rax, qword [fcn.1401038f0]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x140169e99
lea r14, [rsp + 0x48]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140169f2b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
mov rbp, rax
mov qword [rsp + 0xa0], rbp
mov eax, dword [0x1402b01e0]
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140169a80
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140169b33
mov eax, dword [0x1402b0200]
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140169ab5
cmp qword [0x1402b01f8], 0
jne 0x140169963
mov qword [rsp + 0xa8], 0
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r15, qword [rsp + 0xa8]
test r15, r15
je 0x1401696aa
mov rax, qword [r15 + 0x1f0]
cmp qword [rsp + 0xa0], rax
jl 0x140169f1b
mov byte [rsp + 0x98], 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401696cb
cmp qword [rsp + 0x78], 0
jne 0x1401696cb
xor edx, edx
call fcn.140152c80
test esi, esi
js 0x140169ec5
lea r9, [rsp + 0x48]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140169f05
mov esi, dword [rsp + 0x48]
test esi, esi
js 0x140169ee8
call fcn.140180458
mov ebp, dword [rax]
call fcn.140180458
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 + 0x70]
test r14, r14
je 0x1401697be
cmp qword [rsp + 0x78], 0
jne 0x1401697be
cmp byte [r14 + 0x18], 0
je 0x1401697be
mov rbx, qword [r14 + 0x28]
add rbx, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140169a30
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x1401697ae
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x140169a01
dec dword [rax + 0x140]
cmp byte [r14 + 0x18], 0
je 0x140169ed9
cmp byte [r14 + 0x19], 0
jne 0x1401697ae
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x140169f55
dec dword [rcx + 0x144]
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.140180458
mov dword [rax], ebp
cmp byte [rsp + 0x98], 0
je 0x140169898
mov r14, qword [rsp + 0xa8]
test r14, r14
je 0x140169890
mov rax, qword [fcn.1401038f0]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x140169eaf
lea rdi, [rsp + 0x48]
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 0x140169f7b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
mov rdi, rax
mov qword [rsp + 0x28], rdi
mov r15, qword [rsp + 0xa0]
xor eax, eax
cmp rdi, r15
setns al
movabs rbp, 0x7fffffffffffffff
add rax, rbp
mov r12, rdi
sub r12, r15
cmovo r12, rax
cmp r12, 0xf4240
jge 0x140169b56
mov rdi, qword [rsp + 0xa8]
test rdi, rdi
je 0x140169890
lock dec dword [rdi]
je 0x140169f66
mov byte [rsp + 0x98], 0
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1401698b0
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x140169ecf
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x70]
and r13, rcx
cmp r13, qword [0x1402a6e88]
je 0x140169910
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401830b0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d83a0
jmp 0x1401698e2
mov eax, dword [0x1402b2b28]
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140169aea
cmp byte [0x1402b2b24], 0
jne 0x1401696b2
jmp 0x140169b45
mov rcx, r14
call fcn.1400d8270
jmp 0x1401694f7
mov cl, byte [rax + 0x20]
jmp 0x140169552
mov eax, dword [0x1402b01f0]
mov ecx, dword [0x1402a76e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140169a3e
mov r12, qword [0x1402b01e8]
mov r14, rbp
test r12, r12
je 0x140169cd6
mov rax, qword [r12 + 0x1f0]
mov r14d, 0x3938700
lea rcx, [r14 + rax]
sar rcx, 0x3f
btc rcx, 0x3f
add r14, rax
cmovo r14, rcx
cmp r14, rbp
jle 0x140169cd6
mov qword [rsp + 0xa8], r12
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
jne 0x14016967b
jmp 0x140169f28
test rax, rax
je 0x1401696b2
cmp byte [rax + 0x28], 0
je 0x1401696b2
jmp 0x14016a097
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x140169a25
cmp qword [rax + 0x130], rdx
jae 0x140169a73
mov word [rax + 0x78], 0
jmp 0x140169787
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140169763
lea rcx, [0x1402b01f0]
call fcn.1401805cc
cmp dword [0x1402b01f0], 0xffffffff
jne 0x140169988
mov qword [0x1402b01e8], 0
lea rcx, [0x1402b01f0]
call fcn.140180634
jmp 0x140169988
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x140169787
lea rcx, [0x1402b01e0]
call fcn.1401805cc
cmp dword [0x1402b01e0], 0xffffffff
jne 0x140169627
mov qword [0x1402b01d8], 0
lea rcx, [0x1402b01e0]
call fcn.140180634
jmp 0x140169627
lea rcx, [0x1402b0200]
call fcn.1401805cc
cmp dword [0x1402b0200], 0xffffffff
jne 0x140169661
mov qword [0x1402b01f8], 0
lea rcx, [0x1402b0200]
call fcn.140180634
jmp 0x140169661
lea rcx, [0x1402b2b28]
call fcn.1401805cc
cmp dword [0x1402b2b28], 0xffffffff
jne 0x14016993c
mov rcx, qword [0x1402acbd0]
test rcx, rcx
je 0x140169b1b
lea rdx, str.enable_background_thread_pool
call fcn.1400e7a70
mov byte [0x1402b2b24], 1
lea rcx, [0x1402b2b28]
call fcn.140180634
jmp 0x14016993c
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14016963c
mov cl, byte [rsp + 0x90]
mov rax, qword [rsp + 0x78]
jmp 0x140169581
mov rax, qword [r14 + 0x1f0]
mov ecx, 0x3938700
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
cmp rcx, rdi
jle 0x14016a048
mov rax, qword [r14 + 0x1f0]
xor edx, edx
cmp r15, rax
setns dl
add rdx, rbp
mov rcx, r15
sub rcx, rax
movabs rbp, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + rbp]
cmp rdx, 2
jb 0x14016a016
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x140275030]
call fcn.1401bc860
movsd xmm6, qword [0x14025bed0]
ucomisd xmm6, xmm0
jb 0x140169fbd
maxsd xmm0, qword [0x14025bee8]
cvttsd2si ebx, xmm0
add rbp, r12
cmp rbp, 2
jb 0x14016a02f
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
divsd xmm0, qword [0x140275030]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x140169fa5
addsd xmm0, qword [0x14025ba70]
call fcn.1401bc860
ucomisd xmm6, xmm0
jb 0x140169fd4
maxsd xmm0, qword [0x14025bee8]
cvttsd2si ebp, xmm0
mov r12, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add ebp, ebx
cmp ebp, 0x3c
mov r15d, 0x3c
cmovl r15d, ebp
lea rdi, [r14 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140169c84
cmp ebx, r15d
jge 0x140169c70
movsxd rax, ebx
movsxd rcx, r15d
inc qword [r14 + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140169c63
mov rcx, rdi
call r12
cmp ebp, 0x3d
jl 0x14016987a
jmp 0x140169ffc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140169c58
cmp byte [r12 + 0x200], 0
jne 0x140169d63
test r15, r15
je 0x140169cb8
mov eax, 1
lock xadd dword [r15], eax
cmp eax, 0x7fffffff
je 0x14016a0cb
mov r14, qword [r12 + 0x1f8]
mov qword [r12 + 0x1f8], r15
test r14, r14
je 0x140169d63
jmp 0x14016a0ce
xor eax, eax
cmp rbp, r14
setns al
movabs rcx, 0x7fffffffffffffff
add rax, rcx
mov rcx, rbp
sub rcx, r14
cmovo rcx, rax
cmp rcx, 0x989680
jge 0x140169feb
mov ecx, 0x208
call fcn.1401803a4
mov r15, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.1401851f0
mov qword [r15 + 0x1f0], r14
mov qword [r15 + 0x1f8], 0
mov byte [r15 + 0x200], 0
test r15, r15
je 0x140169d5a
mov eax, 1
lock xadd dword [r15], eax
cmp eax, 0x7fffffff
je 0x140169fb7
test r12, r12
jne 0x140169c8f
test r15, r15
je 0x140169d7d
mov eax, 1
lock xadd dword [r15], eax
cmp eax, 0x7fffffff
je 0x140169fba
mov r12, qword [0x1402b01e8]
mov qword [0x1402b01e8], r15
test r12, r12
jne 0x140169e79
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r15 + 0x1f0]
xor r8d, r8d
cmp rbp, rax
setns r8b
movabs r9, 0x7fffffffffffffff
add r8, r9
mov rcx, rbp
sub rcx, rax
movabs rdx, 0x8000000000000001
cmovo rcx, r8
lea r8, [rcx + rdx]
cmp r8, 2
jb 0x14016a082
mov r12d, 0x3938700
xor eax, eax
cmp r12, rcx
setns al
add rax, r9
sub r12, rcx
cmovo r12, rax
mov ecx, 0x28
call fcn.1401803a4
mov r14, rax
mov dword [rax], 1
lea rax, [0x1401c1f20]
mov qword [r14 + 8], rax
lea rax, [0x1401c2840]
mov qword [r14 + 0x10], rax
lea rax, [0x1401ee610]
mov qword [r14 + 0x18], rax
lea rdx, str.MonitorNextJankWindowIfNecessary
lea r8, str....._base_threading_scoped_blocking_call_internal.cc
lea rbp, [rsp + 0x48]
mov rcx, rbp
mov r9d, 0xca
call fcn.1400e92c0
lea r9, [rsp + 0x68]
mov qword [r9], r14
mov qword [rsp + 0x20], r12
lea r8, [0x140276df7]
xor ecx, ecx
mov rdx, rbp
call fcn.14000e290
mov qword [rsp + 0xa8], r15
jmp 0x140169690
lock dec dword [r12]
jne 0x140169d94
mov rcx, r12
call fcn.14000f240
mov rcx, r12
call fcn.14018039c
jmp 0x140169d94
mov rcx, r14
call qword [case.0x1401e9be0.0]
mov rbp, qword [rsp + 0xa0]
jmp 0x140169602
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [case.0x1401e9be0.0]
mov rdi, qword [rdi]
jmp 0x140169846
mov esi, 0xffffffff
jmp 0x14016970b
call fcn.1400d83a0
jmp 0x1401698c8
ud2
mov rcx, r14
call fcn.1400d8270
jmp 0x14016952c
int3
mov rcx, r14
call fcn.1401f5da0
mov byte [rsp + 0x98], 0
jmp 0x1401695a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14016970b
mov qword [rsp + 0xa0], rax
jmp 0x1401696aa
int3
mov rcx, qword [0x1402ac9c8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rbp, rax
add rbp, r8
jmp 0x1401695fa
dec qword [rcx + 0x128]
call fcn.140204e40
jmp 0x1401697ae
mov rcx, rdi
call fcn.14000f240
mov rcx, rdi
call fcn.14018039c
jmp 0x140169890
mov rcx, qword [0x1402ac9c8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140169841
addsd xmm0, qword [0x14025bed8]
call fcn.1401bc48c
jmp 0x140169c1b
int3
int3
xor eax, eax
ucomisd xmm0, qword [0x14025bee8]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x140169be3
xor eax, eax
ucomisd xmm0, qword [0x14025bee8]
mov ebp, 0x7fffffff
cmovb ebp, eax
jmp 0x140169c31
mov byte [r12 + 0x200], 1
mov r14, rbp
jmp 0x140169d02
mov r14, qword [r14 + 0x1f8]
sub ebp, r15d
xor ebx, ebx
test r14, r14
jne 0x140169c38
jmp 0x14016987a
xor ecx, ecx
cmp rax, r15
setg cl
lea rax, [0x140276aa0]
movsd xmm0, qword [rax + rcx*8]
jmp 0x140169bb8
xor eax, eax
cmp rdi, r15
setl al
lea rcx, [0x140276aa0]
movsd xmm0, qword [rcx + rax*8]
jmp 0x140169bf8
lea rbx, [rsp + 0x48]
mov rcx, rbx
mov rdx, rdi
call fcn.14006adc0
mov rbx, qword [rbx]
test rbx, rbx
je 0x140169b7f
lock dec dword [rbx]
jne 0x140169b7f
mov rcx, rbx
call fcn.14000f240
mov rcx, rbx
call fcn.14018039c
jmp 0x140169b7f
xor r12d, r12d
cmp rax, rbp
setg r12b
not r12
add r12, rdx
jmp 0x140169df9
mov r14, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r14, r14
je 0x1401696b2
lock dec dword [r14]
jne 0x1401696b2
mov rcx, r14
call fcn.14000f240
mov rcx, r14
call fcn.14018039c
jmp 0x1401696b2
int3
lock dec dword [r14]
jne 0x140169d63
mov rcx, r14
call fcn.14000f240
mov rcx, r14
call fcn.14018039c
jmp 0x140169d63