Function at 0x140175f40
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 [0x14029c028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs r13, 0xfffffffc00000000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movapd xmm0, xmmword [0x14026dc70]
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.1400ee990
mov eax, dword [0x1402ac5e0]
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 [0x14029ce48]
je 0x1401764ad
mov qword [rsp + 0x80], r15
mov eax, dword [0x1402ac5e0]
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 [0x14029ce48]
je 0x140176a29
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 0x1401764ba
xor ecx, ecx
mov byte [rsp + 0xa0], cl
mov byte [rsp + 0xa8], 0
mov edx, dword [0x1402ac5e0]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], 0
je 0x140176476
test cl, cl
jne 0x140176548
test rax, rax
jne 0x1401761eb
lea r15, [rsp + 0xb0]
cmp byte [r15 - 8], 0
jne 0x140176a36
mov rax, qword [fcn.14014f070]
lea rcx, [0x140183600]
cmp rax, rcx
jne 0x1401769f1
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 0x140176a5b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
mov rdi, rax
mov qword [rsp + 0xb0], rdi
mov eax, dword [0x1402b77b0]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401769aa
lea rcx, [0x1402b77a8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401769df
mov eax, dword [0x1402b77d0]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401765df
mov qword [rsp + 0x28], r14
cmp qword [0x1402b77c8], 0
jne 0x1401764c2
mov r14d, esi
mov rsi, rbx
mov rbx, r12
mov qword [rsp + 0xb8], 0
lea rcx, [0x1402b77a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x1401761d5
mov rax, qword [r12 + 0x1f0]
cmp qword [rsp + 0xb0], rax
jl 0x140176a4b
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 0x14017620a
cmp qword [rsp + 0x88], 0
jne 0x14017620a
xor edx, edx
call fcn.14017f280
mov ebp, 0xffffffff
test r14, r14
js 0x14017625b
test esi, esi
js 0x14017625b
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.140184e94
mov ebx, dword [rax]
call fcn.140184e94
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 0x140176314
cmp qword [rsp + 0x88], 0
jne 0x140176314
cmp byte [r14 + 0x18], 0
je 0x140176314
mov rdi, qword [r14 + 0x28]
add rdi, 0x28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14017658f
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140176304
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x140176560
dec dword [rax + 0x140]
cmp byte [r14 + 0x18], 0
je 0x140176a27
cmp byte [r14 + 0x19], 0
jne 0x140176304
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x140176a85
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.140184e94
mov dword [rax], ebx
cmp byte [rsp + 0xa8], 0
je 0x1401763ee
mov rbx, qword [rsp + 0xb8]
test rbx, rbx
je 0x1401763e6
mov rax, qword [fcn.14014f070]
lea rcx, [0x140183600]
cmp rax, rcx
jne 0x140176a07
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 0x140176aab
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
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 0x140176671
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x1401763e6
lock dec dword [rsi]
je 0x140176a96
mov byte [rsp + 0xa8], 0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140176406
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r13
cmp rax, qword [0x14029ce48]
je 0x140176a1d
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x80]
and r13, rcx
cmp r13, qword [0x14029ce48]
je 0x14017646f
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401879f0
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.1400de590
jmp 0x140176441
mov eax, dword [0x1402b7b58]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140176614
cmp byte [0x1402b7b54], 0
jne 0x1401761eb
jmp 0x14017665d
mov rcx, r15
call fcn.1400ddc60
jmp 0x14017600d
mov cl, byte [rax + 0x20]
jmp 0x14017606e
mov r14d, esi
mov eax, dword [0x1402b77c0]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401765aa
mov rsi, rbx
mov rbp, qword [0x1402b77b8]
mov r15, rdi
test rbp, rbp
je 0x1401767e2
mov eax, 0x3938700
add rax, qword [rbp + 0x1f0]
movabs r15, 0x7fffffffffffffff
cmovno r15, rax
cmp r15, rdi
jle 0x1401767e2
mov rbx, r12
mov qword [rsp + 0xb8], rbp
mov eax, 1
lock xadd dword [rbp], eax
cmp eax, 0x7fffffff
jne 0x1401761a5
jmp 0x140176a58
test rax, rax
je 0x1401761eb
cmp byte [rax + 0x28], 0
je 0x1401761eb
jmp 0x140176bc5
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x140176584
cmp qword [rax + 0x130], rdx
jae 0x14017659d
mov word [rax + 0x78], 0
jmp 0x1401762dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1401762b9
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x1401762dd
lea rcx, [0x1402b77c0]
call fcn.140184f58
cmp dword [0x1402b77c0], 0xffffffff
jne 0x1401764ea
mov qword [0x1402b77b8], 0
lea rcx, [0x1402b77c0]
call fcn.140184fc0
jmp 0x1401764ea
lea rcx, [0x1402b77d0]
call fcn.140184f58
cmp dword [0x1402b77d0], 0xffffffff
jne 0x14017617d
mov qword [0x1402b77c8], 0
lea rcx, [0x1402b77d0]
call fcn.140184fc0
jmp 0x14017617d
lea rcx, [0x1402b7b58]
call fcn.140184f58
cmp dword [0x1402b7b58], 0xffffffff
jne 0x14017649b
mov rcx, qword [0x1402b7668]
test rcx, rcx
je 0x140176645
lea rdx, str.enable_background_thread_pool
call fcn.140168700
mov byte [0x1402b7b54], 1
lea rcx, [0x1402b7b58]
call fcn.140184fc0
jmp 0x14017649b
mov cl, byte [rsp + 0xa0]
mov rax, qword [rsp + 0x88]
jmp 0x14017609d
mov eax, 0x3938700
add rax, qword [rbx + 0x1f0]
cmovo rax, r12
cmp rax, rsi
jle 0x140176b69
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 0x140176b31
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x14027a8d8]
call fcn.1401c20b0
movsd xmm6, qword [0x140260ed0]
ucomisd xmm6, xmm0
jb 0x140176ae7
maxsd xmm0, qword [0x140260ee8]
cvttsd2si edi, xmm0
add r12, r15
cmp r12, 2
jb 0x140176b4a
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x14027a8d8]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x140176ad5
addsd xmm0, qword [0x140260a70]
call fcn.1401c20b0
ucomisd xmm6, xmm0
jb 0x140176afe
maxsd xmm0, qword [0x140260ee8]
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 0x140176793
cmp edi, r15d
jge 0x14017677e
movsxd rax, edi
movsxd rcx, r15d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140176771
mov rcx, rsi
call r12
cmp r14d, 0x3d
jl 0x1401763d0
jmp 0x140176b17
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140176766
cmp byte [rbp + 0x200], 0
jne 0x140176876
test r12, r12
je 0x1401767c6
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140176bf9
mov r15, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], r12
test r15, r15
je 0x140176876
jmp 0x140176bfc
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 0x140176ba3
mov ecx, 0x208
call fcn.140184dc4
mov r12, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.140189b30
mov qword [r12 + 0x1f0], r15
mov qword [r12 + 0x1f8], 0
mov byte [r12 + 0x200], 0
test r12, r12
je 0x14017686d
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140176b63
test rbp, rbp
jne 0x14017679e
test r12, r12
je 0x140176891
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140176b66
mov rbp, qword [0x1402b77b8]
mov qword [0x1402b77b8], r12
test rbp, rbp
jne 0x14017698b
lea rcx, [0x1402b77a8]
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 0x140176bb2
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.140184dc4
mov r15, rax
mov dword [rax], 1
lea rax, [0x1401c7780]
mov qword [r15 + 8], rax
lea rax, [0x1401c79a0]
mov qword [r15 + 0x10], rax
lea rax, [0x1401fb3c0]
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.1400ee990
lea r9, [rsp + 0x78]
mov qword [r9], r15
mov qword [rsp + 0x20], rbp
lea r8, [0x14027c652]
xor ecx, ecx
mov rdx, rdi
call fcn.1400141f0
mov qword [rsp + 0xb8], r12
jmp 0x1401761ba
lock dec dword [rbp]
jne 0x1401768a8
mov rcx, rbp
call fcn.14000fc10
mov rcx, rbp
call fcn.140184dbc
jmp 0x1401768a8
lea rcx, [0x1402b77b0]
call fcn.140184f58
cmp dword [0x1402b77b0], 0xffffffff
jne 0x140176143
mov qword [0x1402b77a8], 0
lea rcx, [0x1402b77b0]
call fcn.140184fc0
jmp 0x140176143
lea rcx, [0x1402b77a8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140176158
mov rcx, r15
call qword [0x1402ca008]
mov rdi, qword [rsp + 0xb0]
jmp 0x14017611e
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [0x1402ca008]
mov rsi, qword [rsi]
jmp 0x14017639c
call fcn.1400de590
jmp 0x140176421
ud2
mov rcx, r15
call fcn.1400ddc60
jmp 0x140176045
mov rcx, r15
call fcn.1402023e0
mov byte [rsp + 0xa8], 0
jmp 0x1401760c1
mov qword [rsp + 0xb0], rax
jmp 0x1401761d5
int3
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140176116
dec qword [rcx + 0x128]
call fcn.14020bc20
jmp 0x140176304
mov rcx, rsi
call fcn.14000fc10
mov rcx, rsi
call fcn.140184dbc
jmp 0x1401763e6
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rsi, rax
add rsi, r8
jmp 0x140176397
addsd xmm0, qword [0x140260ed8]
call fcn.1401c1cdc
jmp 0x140176726
xor eax, eax
ucomisd xmm0, qword [0x140260ee8]
mov edi, 0x7fffffff
cmovb edi, eax
jmp 0x1401766ee
xor eax, eax
ucomisd xmm0, qword [0x140260ee8]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x14017673d
mov rbx, qword [rbx + 0x1f8]
sub r14d, r15d
xor edi, edi
test rbx, rbx
jne 0x140176744
jmp 0x1401763d0
xor ecx, ecx
cmp rax, r14
setg cl
lea rax, [0x14027a8c0]
movsd xmm0, qword [rax + rcx*8]
jmp 0x1401766c3
xor eax, eax
cmp rsi, r14
setl al
lea rcx, [0x14027a8c0]
movsd xmm0, qword [rcx + rax*8]
jmp 0x140176703
int3
int3
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.14006aa40
mov rdi, qword [rdi]
test rdi, rdi
je 0x14017668a
lock dec dword [rdi]
jne 0x14017668a
mov rcx, rdi
call fcn.14000fc10
mov rcx, rdi
call fcn.140184dbc
jmp 0x14017668a
mov byte [rbp + 0x200], 1
mov r15, rdi
jmp 0x140176811
xor ecx, ecx
cmp rax, rdi
setg cl
not rcx
add rbp, rcx
jmp 0x14017690b
mov r15, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r15, r15
je 0x1401761eb
lock dec dword [r15]
jne 0x1401761eb
mov rcx, r15
call fcn.14000fc10
mov rcx, r15
call fcn.140184dbc
jmp 0x1401761eb
int3
lock dec dword [r15]
jne 0x140176876
mov rcx, r15
call fcn.14000fc10
mov rcx, r15
call fcn.140184dbc
jmp 0x140176876