Function at 0x140174e70
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs r13, 0xfffffffc00000000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movapd xmm0, xmmword [0x14026cc70]
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.1400ed1b0
mov eax, dword [0x1402ab5e0]
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 [0x14029be48]
je 0x1401753dd
mov qword [rsp + 0x80], r15
mov eax, dword [0x1402ab5e0]
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 [0x14029be48]
je 0x14017599e
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 0x1401753ea
xor ecx, ecx
mov byte [rsp + 0xa0], cl
mov byte [rsp + 0xa8], 0
mov edx, dword [0x1402ab5e0]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], 0
je 0x1401753a6
test cl, cl
jne 0x140175478
test rax, rax
jne 0x14017511b
lea r15, [rsp + 0xb0]
cmp byte [r15 - 8], 0
jne 0x1401759ab
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
cmp rax, rcx
jne 0x140175966
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 0x1401759d0
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov rdi, rax
mov qword [rsp + 0xb0], rdi
mov eax, dword [0x1402b67b0]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14017591f
lea rcx, [0x1402b67a8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140175954
mov eax, dword [0x1402b67d0]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14017550f
mov qword [rsp + 0x28], r14
cmp qword [0x1402b67c8], 0
jne 0x1401753f2
mov r14d, esi
mov rsi, rbx
mov rbx, r12
mov qword [rsp + 0xb8], 0
lea rcx, [0x1402b67a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x140175105
mov rax, qword [r12 + 0x1f0]
cmp qword [rsp + 0xb0], rax
jl 0x1401759c0
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 0x14017513a
cmp qword [rsp + 0x88], 0
jne 0x14017513a
xor edx, edx
call fcn.14017d940
mov ebp, 0xffffffff
test r14, r14
js 0x14017518b
test esi, esi
js 0x14017518b
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.1401834c4
mov ebx, dword [rax]
call fcn.1401834c4
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 0x140175244
cmp qword [rsp + 0x88], 0
jne 0x140175244
cmp byte [r14 + 0x18], 0
je 0x140175244
mov rdi, qword [r14 + 0x28]
add rdi, 0x28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401754bf
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140175234
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x140175490
dec dword [rax + 0x140]
cmp byte [r14 + 0x18], 0
je 0x14017599c
cmp byte [r14 + 0x19], 0
jne 0x140175234
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x1401759fa
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.1401834c4
mov dword [rax], ebx
cmp byte [rsp + 0xa8], 0
je 0x14017531e
mov rbx, qword [rsp + 0xb8]
test rbx, rbx
je 0x140175316
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
cmp rax, rcx
jne 0x14017597c
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 0x140175a20
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
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 0x1401755a1
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x140175316
lock dec dword [rsi]
je 0x140175a0b
mov byte [rsp + 0xa8], 0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140175336
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r13
cmp rax, qword [0x14029be48]
je 0x140175992
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x80]
and r13, rcx
cmp r13, qword [0x14029be48]
je 0x14017539f
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140186020
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.1400dca60
jmp 0x140175371
mov eax, dword [0x1402b6b58]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140175544
cmp byte [0x1402b6b54], 0
jne 0x14017511b
jmp 0x14017558d
mov rcx, r15
call fcn.1400dc910
jmp 0x140174f3d
mov cl, byte [rax + 0x20]
jmp 0x140174f9e
mov r14d, esi
mov eax, dword [0x1402b67c0]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401754da
mov rsi, rbx
mov rbp, qword [0x1402b67b8]
mov r15, rdi
test rbp, rbp
je 0x140175712
mov eax, 0x3938700
add rax, qword [rbp + 0x1f0]
movabs r15, 0x7fffffffffffffff
cmovno r15, rax
cmp r15, rdi
jle 0x140175712
mov rbx, r12
mov qword [rsp + 0xb8], rbp
mov eax, 1
lock xadd dword [rbp], eax
cmp eax, 0x7fffffff
jne 0x1401750d5
jmp 0x1401759cd
test rax, rax
je 0x14017511b
cmp byte [rax + 0x28], 0
je 0x14017511b
jmp 0x140175af5
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x1401754b4
cmp qword [rax + 0x130], rdx
jae 0x1401754cd
mov word [rax + 0x78], 0
jmp 0x14017520d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1401751e9
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x14017520d
lea rcx, [0x1402b67c0]
call fcn.140183590
cmp dword [0x1402b67c0], 0xffffffff
jne 0x14017541a
mov qword [0x1402b67b8], 0
lea rcx, [0x1402b67c0]
call fcn.1401835f8
jmp 0x14017541a
lea rcx, [0x1402b67d0]
call fcn.140183590
cmp dword [0x1402b67d0], 0xffffffff
jne 0x1401750ad
mov qword [0x1402b67c8], 0
lea rcx, [0x1402b67d0]
call fcn.1401835f8
jmp 0x1401750ad
lea rcx, [0x1402b6b58]
call fcn.140183590
cmp dword [0x1402b6b58], 0xffffffff
jne 0x1401753cb
mov rcx, qword [0x1402b6668]
test rcx, rcx
je 0x140175575
lea rdx, str.enable_background_thread_pool
call fcn.140167240
mov byte [0x1402b6b54], 1
lea rcx, [0x1402b6b58]
call fcn.1401835f8
jmp 0x1401753cb
mov cl, byte [rsp + 0xa0]
mov rax, qword [rsp + 0x88]
jmp 0x140174fcd
mov eax, 0x3938700
add rax, qword [rbx + 0x1f0]
cmovo rax, r12
cmp rax, rsi
jle 0x140175a93
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 0x140175a61
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x1402798d8]
call fcn.1401c06e0
movsd xmm6, qword [0x14025fed0]
ucomisd xmm6, xmm0
jb 0x140175a4a
maxsd xmm0, qword [0x14025fee8]
cvttsd2si edi, xmm0
add r12, r15
cmp r12, 2
jb 0x140175a7a
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x1402798d8]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1401758f3
addsd xmm0, qword [0x14025fa70]
call fcn.1401c06e0
ucomisd xmm6, xmm0
jb 0x1401758da
maxsd xmm0, qword [0x14025fee8]
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 0x1401756c3
cmp edi, r15d
jge 0x1401756ae
movsxd rax, edi
movsxd rcx, r15d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x1401756a1
mov rcx, rsi
call r12
cmp r14d, 0x3d
jl 0x140175300
jmp 0x140175905
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140175696
cmp byte [rbp + 0x200], 0
jne 0x1401757a6
test r12, r12
je 0x1401756f6
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140175b29
mov r15, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], r12
test r15, r15
je 0x1401757a6
jmp 0x140175b2c
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 0x140175ad3
mov ecx, 0x208
call fcn.1401833f4
mov r12, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.140188160
mov qword [r12 + 0x1f0], r15
mov qword [r12 + 0x1f8], 0
mov byte [r12 + 0x200], 0
test r12, r12
je 0x14017579d
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140175acd
test rbp, rbp
jne 0x1401756ce
test r12, r12
je 0x1401757c1
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140175ad0
mov rbp, qword [0x1402b67b8]
mov qword [0x1402b67b8], r12
test rbp, rbp
jne 0x1401758bb
lea rcx, [0x1402b67a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r12 + 0x1f0]
xor edx, edx
cmp rdi, rax
setns dl
movabs r8, 0x7fffffffffffffff
add rdx, r8
mov rcx, rdi
sub rcx, rax
movabs rbp, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + rbp]
cmp rdx, 2
jb 0x140175ae2
mov ebp, 0x3938700
xor eax, eax
cmp rbp, rcx
setns al
add rax, r8
sub rbp, rcx
cmovo rbp, rax
mov ecx, 0x28
call fcn.1401833f4
mov r15, rax
mov dword [rax], 1
lea rax, [0x1401c6af0]
mov qword [r15 + 8], rax
lea rax, [0x1401c6c70]
mov qword [r15 + 0x10], rax
lea rax, [0x1401fa720]
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.1400ed1b0
lea r9, [rsp + 0x78]
mov qword [r9], r15
mov qword [rsp + 0x20], rbp
lea r8, [0x14027b652]
xor ecx, ecx
mov rdx, rdi
call fcn.1400130f0
mov qword [rsp + 0xb8], r12
jmp 0x1401750ea
lock dec dword [rbp]
jne 0x1401757d8
mov rcx, rbp
call fcn.14000d0d0
mov rcx, rbp
call fcn.1401833ec
jmp 0x1401757d8
xor eax, eax
ucomisd xmm0, qword [0x14025fee8]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x14017566d
addsd xmm0, qword [0x14025fed8]
call fcn.1401c030c
jmp 0x140175656
mov rbx, qword [rbx + 0x1f8]
sub r14d, r15d
xor edi, edi
test rbx, rbx
jne 0x140175674
jmp 0x140175300
lea rcx, [0x1402b67b0]
call fcn.140183590
cmp dword [0x1402b67b0], 0xffffffff
jne 0x140175073
mov qword [0x1402b67a8], 0
lea rcx, [0x1402b67b0]
call fcn.1401835f8
jmp 0x140175073
lea rcx, [0x1402b67a8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140175088
mov rcx, r15
call qword [0x1402c9008]
mov rdi, qword [rsp + 0xb0]
jmp 0x14017504e
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [0x1402c9008]
mov rsi, qword [rsi]
jmp 0x1401752cc
call fcn.1400dca60
jmp 0x140175351
ud2
mov rcx, r15
call fcn.1400dc910
jmp 0x140174f75
mov rcx, r15
call fcn.1402017e0
mov byte [rsp + 0xa8], 0
jmp 0x140174ff1
mov qword [rsp + 0xb0], rax
jmp 0x140175105
int3
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140175046
dec qword [rcx + 0x128]
call fcn.14020afc0
jmp 0x140175234
mov rcx, rsi
call fcn.14000d0d0
mov rcx, rsi
call fcn.1401833ec
jmp 0x140175316
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rsi, rax
add rsi, r8
jmp 0x1401752c7
xor eax, eax
ucomisd xmm0, qword [0x14025fee8]
mov edi, 0x7fffffff
cmovb edi, eax
jmp 0x14017561e
xor ecx, ecx
cmp rax, r14
setg cl
lea rax, [0x1402798c0]
movsd xmm0, qword [rax + rcx*8]
jmp 0x1401755f3
xor eax, eax
cmp rsi, r14
setl al
lea rcx, [0x1402798c0]
movsd xmm0, qword [rcx + rax*8]
jmp 0x140175633
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.1400699e0
mov rdi, qword [rdi]
test rdi, rdi
je 0x1401755ba
lock dec dword [rdi]
jne 0x1401755ba
mov rcx, rdi
call fcn.14000d0d0
mov rcx, rdi
call fcn.1401833ec
jmp 0x1401755ba
int3
int3
mov byte [rbp + 0x200], 1
mov r15, rdi
jmp 0x140175741
xor ecx, ecx
cmp rax, rdi
setg cl
not rcx
add rbp, rcx
jmp 0x14017583b
mov r15, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r15, r15
je 0x14017511b
lock dec dword [r15]
jne 0x14017511b
mov rcx, r15
call fcn.14000d0d0
mov rcx, r15
call fcn.1401833ec
jmp 0x14017511b
int3
lock dec dword [r15]
jne 0x1401757a6
mov rcx, r15
call fcn.14000d0d0
mov rcx, r15
call fcn.1401833ec
jmp 0x1401757a6