Function at 0x140171b10
Capabilities:
Check for time delay via queryperformancecounter
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movapd xmmword [rsp + 0xd0], xmm6
mov esi, r9d
mov r12, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs r13, 0xfffffffc00000000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movapd xmm0, xmmword [0x140268c70]
movapd xmmword [rsp + 0xb0], xmm0
movapd xmmword [rsp + 0xa0], xmm0
movapd xmmword [rsp + 0x90], xmm0
movapd xmmword [rsp + 0x80], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea rcx, [rsp + 0x30]
mov r9d, 0x7f
call fcn.1400e92c0
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r15, qword [rax + 0x1a0]
mov rax, r15
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x14017207d
mov qword [rsp + 0x80], r15
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rdi, [rax + 0x1a8]
mov r15, qword [rdi]
mov rax, r15
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x140172641
lea rax, [rsp + 0x80]
mov qword [rax + 8], r15
mov qword [rax + 0x10], rdi
mov rcx, qword [rdi]
mov qword [rdi], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
jne 0x14017208a
xor ecx, ecx
mov byte [rsp + 0xa0], cl
mov byte [rsp + 0xa8], 0
mov edx, dword [0x1402a76e4]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], 0
je 0x140172046
test cl, cl
jne 0x14017257b
test rax, rax
jne 0x140171dbb
lea r15, [rsp + 0xb0]
cmp byte [r15 - 8], 0
jne 0x14017264e
mov rax, qword [fcn.1401038f0]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x140172609
lea r15, [rsp + 0x50]
mov qword [r15], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r15]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140172673
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
mov rdi, rax
mov qword [rsp + 0xb0], rdi
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 0x1401725c2
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401725f7
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 0x14017219e
mov qword [rsp + 0x28], r14
cmp qword [0x1402b01f8], 0
jne 0x140172092
mov r14d, esi
mov rsi, rbx
mov rbx, r12
mov qword [rsp + 0xb8], 0
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x140171da5
mov rax, qword [r12 + 0x1f0]
cmp qword [rsp + 0xb0], rax
jl 0x140172663
mov byte [rsp + 0xa8], 1
mov r12, rbx
mov rbx, rsi
mov esi, r14d
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140171dda
cmp qword [rsp + 0x88], 0
jne 0x140171dda
xor edx, edx
call fcn.140152c80
mov ebp, 0xffffffff
test r14, r14
js 0x140171e2b
test esi, esi
js 0x140171e2b
xorpd xmm0, xmm0
lea rax, [rsp + 0x50]
movapd xmmword [rax + 0x10], xmm0
movapd xmmword [rax], xmm0
mov qword [rax + 0x10], r14
lea r14, [rsp + 0x30]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [r14]
call fcn.140180458
mov ebx, dword [rax]
call fcn.140180458
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x140171ee4
cmp qword [rsp + 0x88], 0
jne 0x140171ee4
cmp byte [r14 + 0x18], 0
je 0x140171ee4
mov rdi, qword [r14 + 0x28]
add rdi, 0x28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14017214e
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140171ed4
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x14017211f
dec dword [rax + 0x140]
cmp byte [r14 + 0x18], 0
je 0x14017263f
cmp byte [r14 + 0x19], 0
jne 0x140171ed4
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x14017269d
dec dword [rcx + 0x144]
mov word [r14 + 0x39], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140180458
mov dword [rax], ebx
cmp byte [rsp + 0xa8], 0
je 0x140171fbe
mov rbx, qword [rsp + 0xb8]
test rbx, rbx
je 0x140171fb6
mov rax, qword [fcn.1401038f0]
lea rcx, [0x14017e8a0]
cmp rax, rcx
jne 0x14017261f
lea rsi, [rsp + 0x50]
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 0x1401726c3
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402ac9c8]
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov r14, qword [rsp + 0xb0]
xor eax, eax
cmp rsi, r14
setns al
movabs r12, 0x7fffffffffffffff
add rax, r12
mov r15, rsi
sub r15, r14
cmovo r15, rax
cmp r15, 0xf4240
jge 0x140172230
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x140171fb6
lock dec dword [rsi]
je 0x1401726ae
mov byte [rsp + 0xa8], 0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140171fd6
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402a6e88]
je 0x140172635
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x80]
and r13, rcx
cmp r13, qword [0x1402a6e88]
je 0x14017203f
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401830b0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d83a0
jmp 0x140172011
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 0x1401721d3
cmp byte [0x1402b2b24], 0
jne 0x140171dbb
jmp 0x14017221c
mov rcx, r15
call fcn.1400d8270
jmp 0x140171bdd
mov cl, byte [rax + 0x20]
jmp 0x140171c3e
mov r14d, esi
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 0x14017215c
mov rsi, rbx
mov rbp, qword [0x1402b01e8]
mov r15, rdi
test rbp, rbp
je 0x1401723b1
mov rax, qword [rbp + 0x1f0]
mov r15d, 0x3938700
lea rcx, [r15 + rax]
sar rcx, 0x3f
btc rcx, 0x3f
add r15, rax
cmovo r15, rcx
cmp r15, rdi
jle 0x1401723b1
mov rbx, r12
mov qword [rsp + 0xb8], rbp
mov eax, 1
lock xadd dword [rbp], eax
cmp eax, 0x7fffffff
jne 0x140171d75
jmp 0x140172670
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x140172143
cmp qword [rax + 0x130], rdx
jae 0x140172191
mov word [rax + 0x78], 0
jmp 0x140171ead
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140171e89
lea rcx, [0x1402b01f0]
call fcn.1401805cc
cmp dword [0x1402b01f0], 0xffffffff
jne 0x1401720ba
mov qword [0x1402b01e8], 0
lea rcx, [0x1402b01f0]
call fcn.140180634
jmp 0x1401720ba
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x140171ead
lea rcx, [0x1402b0200]
call fcn.1401805cc
cmp dword [0x1402b0200], 0xffffffff
jne 0x140171d4d
mov qword [0x1402b01f8], 0
lea rcx, [0x1402b0200]
call fcn.140180634
jmp 0x140171d4d
lea rcx, [0x1402b2b28]
call fcn.1401805cc
cmp dword [0x1402b2b28], 0xffffffff
jne 0x14017206b
mov rcx, qword [0x1402acbd0]
test rcx, rcx
je 0x140172204
lea rdx, str.enable_background_thread_pool
call fcn.1400e7a70
mov byte [0x1402b2b24], 1
lea rcx, [0x1402b2b28]
call fcn.140180634
jmp 0x14017206b
mov cl, byte [rsp + 0xa0]
mov rax, qword [rsp + 0x88]
jmp 0x140171c6d
mov rax, qword [rbx + 0x1f0]
mov ecx, 0x3938700
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
cmp rcx, rsi
jle 0x140172790
mov rax, qword [rbx + 0x1f0]
xor edx, edx
cmp r14, rax
setns dl
add rdx, r12
mov rcx, r14
sub rcx, rax
movabs r12, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + r12]
cmp rdx, 2
jb 0x14017275e
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x140275030]
call fcn.1401bc860
movsd xmm6, qword [0x14025bed0]
ucomisd xmm6, xmm0
jb 0x140172705
maxsd xmm0, qword [0x14025bee8]
cvttsd2si edi, xmm0
add r12, r15
cmp r12, 2
jb 0x140172777
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x140275030]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1401726ed
addsd xmm0, qword [0x14025ba70]
call fcn.1401bc860
ucomisd xmm6, xmm0
jb 0x14017271c
maxsd xmm0, qword [0x14025bee8]
cvttsd2si r14d, xmm0
mov r12, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add r14d, edi
cmp r14d, 0x3c
mov r15d, 0x3c
cmovl r15d, r14d
lea rsi, [rbx + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140172362
cmp edi, r15d
jge 0x14017234d
movsxd rax, edi
movsxd rcx, r15d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140172340
mov rcx, rsi
call r12
cmp r14d, 0x3d
jl 0x140171fa0
jmp 0x140172744
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140172335
cmp byte [rbp + 0x200], 0
jne 0x140172445
test r12, r12
je 0x140172395
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x1401727de
mov r15, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], r12
test r15, r15
je 0x140172445
jmp 0x1401727e1
mov rbx, r12
xor eax, eax
cmp rdi, r15
setns al
movabs rcx, 0x7fffffffffffffff
add rax, rcx
mov rcx, rdi
sub rcx, r15
cmovo rcx, rax
cmp rcx, 0x989680
jge 0x140172735
mov ecx, 0x208
call fcn.1401803a4
mov r12, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.1401851f0
mov qword [r12 + 0x1f0], r15
mov qword [r12 + 0x1f8], 0
mov byte [r12 + 0x200], 0
test r12, r12
je 0x14017243c
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x1401726ff
test rbp, rbp
jne 0x14017236d
test r12, r12
je 0x140172460
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140172702
mov rbp, qword [0x1402b01e8]
mov qword [0x1402b01e8], r12
test rbp, rbp
jne 0x14017255c
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r12 + 0x1f0]
xor r8d, r8d
cmp rdi, rax
setns r8b
movabs r9, 0x7fffffffffffffff
add r8, r9
mov rcx, rdi
sub rcx, rax
movabs rdx, 0x8000000000000001
cmovo rcx, r8
lea r8, [rcx + rdx]
cmp r8, 2
jb 0x1401727ca
mov ebp, 0x3938700
xor eax, eax
cmp rbp, rcx
setns al
add rax, r9
sub rbp, rcx
cmovo rbp, rax
mov ecx, 0x28
call fcn.1401803a4
mov r15, rax
mov dword [rax], 1
lea rax, [0x1401c1f20]
mov qword [r15 + 8], rax
lea rax, [0x1401c2840]
mov qword [r15 + 0x10], rax
lea rax, [0x1401ee610]
mov qword [r15 + 0x18], rax
lea rdx, str.MonitorNextJankWindowIfNecessary
lea r8, str....._base_threading_scoped_blocking_call_internal.cc
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov r9d, 0xca
call fcn.1400e92c0
lea r9, [rsp + 0x78]
mov qword [r9], r15
mov qword [rsp + 0x20], rbp
lea r8, [0x140276df7]
xor ecx, ecx
mov rdx, rdi
call fcn.14000e290
mov qword [rsp + 0xb8], r12
jmp 0x140171d8a
lock dec dword [rbp]
jne 0x140172477
mov rcx, rbp
call fcn.14000f240
mov rcx, rbp
call fcn.14018039c
jmp 0x140172477
test rax, rax
je 0x140171dbb
cmp byte [rax + 0x28], 0
je 0x140171dbb
mov r15, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r15, r15
je 0x140171dbb
lock dec dword [r15]
jne 0x140171dbb
mov rcx, r15
call fcn.14000f240
mov rcx, r15
call fcn.14018039c
jmp 0x140171dbb
lea rcx, [0x1402b01e0]
call fcn.1401805cc
cmp dword [0x1402b01e0], 0xffffffff
jne 0x140171d13
mov qword [0x1402b01d8], 0
lea rcx, [0x1402b01e0]
call fcn.140180634
jmp 0x140171d13
lea rcx, [0x1402b01d8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140171d28
mov rcx, r15
call qword [case.0x1401e9be0.0]
mov rdi, qword [rsp + 0xb0]
jmp 0x140171cee
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [case.0x1401e9be0.0]
mov rsi, qword [rsi]
jmp 0x140171f6c
call fcn.1400d83a0
jmp 0x140171ff1
ud2
mov rcx, r15
call fcn.1400d8270
jmp 0x140171c15
mov rcx, r15
call fcn.1401f5da0
mov byte [rsp + 0xa8], 0
jmp 0x140171c91
mov qword [rsp + 0xb0], rax
jmp 0x140171da5
int3
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 0x140171ce6
dec qword [rcx + 0x128]
call fcn.140204e40
jmp 0x140171ed4
mov rcx, rsi
call fcn.14000f240
mov rcx, rsi
call fcn.14018039c
jmp 0x140171fb6
mov rcx, qword [0x1402ac9c8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rsi, rax
add rsi, r8
jmp 0x140171f67
addsd xmm0, qword [0x14025bed8]
call fcn.1401bc48c
jmp 0x1401722f5
int3
int3
xor eax, eax
ucomisd xmm0, qword [0x14025bee8]
mov edi, 0x7fffffff
cmovb edi, eax
jmp 0x1401722bd
xor eax, eax
ucomisd xmm0, qword [0x14025bee8]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x14017230c
mov byte [rbp + 0x200], 1
mov r15, rdi
jmp 0x1401723e0
mov rbx, qword [rbx + 0x1f8]
sub r14d, r15d
xor edi, edi
test rbx, rbx
jne 0x140172313
jmp 0x140171fa0
xor ecx, ecx
cmp rax, r14
setg cl
lea rax, [0x140276aa0]
movsd xmm0, qword [rax + rcx*8]
jmp 0x140172292
xor eax, eax
cmp rsi, r14
setl al
lea rcx, [0x140276aa0]
movsd xmm0, qword [rcx + rax*8]
jmp 0x1401722d2
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.14006adc0
mov rdi, qword [rdi]
test rdi, rdi
je 0x140172259
lock dec dword [rdi]
jne 0x140172259
mov rcx, rdi
call fcn.14000f240
mov rcx, rdi
call fcn.14018039c
jmp 0x140172259
xor ebp, ebp
cmp rax, rdi
setg bpl
not rbp
add rbp, rdx
jmp 0x1401724dc
int3
lock dec dword [r15]
jne 0x140172445
mov rcx, r15
call fcn.14000f240
mov rcx, r15
call fcn.14018039c
jmp 0x140172445