Function at 0x140175c50
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 [0x1402724c0]
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.1400ed710
mov eax, dword [0x1402ab7ac]
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 [0x1402aaec8]
je 0x14017626b
mov qword [rsp + 0x80], r15
mov eax, dword [0x1402ab7ac]
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 [0x1402aaec8]
je 0x1401767d1
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 0x140176282
xor ecx, ecx
mov byte [rsp + 0xa0], cl
mov byte [rsp + 0xa8], 0
mov edx, dword [0x1402ab7ac]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x208], 0
je 0x14017620b
test cl, cl
jne 0x14017628a
test rax, rax
jne 0x140175efb
lea r15, [rsp + 0xb0]
cmp byte [r15 - 8], 0
jne 0x1401767e8
mov rax, qword [fcn.140105050]
lea rcx, [0x140182e50]
cmp rax, rcx
jne 0x140176709
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 0x1401767fd
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov rdi, rax
mov qword [rsp + 0xb0], rdi
mov eax, dword [0x1402b4358]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140176347
lea rcx, [0x1402b4350]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401763fa
mov eax, dword [0x1402b4378]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14017637c
mov qword [rsp + 0x28], r14
cmp qword [0x1402b4370], 0
jne 0x1401760c6
mov r14d, esi
mov rsi, rbx
mov rbx, r12
mov qword [rsp + 0xb8], 0
lea rcx, [0x1402b4350]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x140175ee5
mov rax, qword [r12 + 0x1f0]
cmp qword [rsp + 0xb0], rax
jl 0x140176829
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 0x140175f1a
cmp qword [rsp + 0x88], 0
jne 0x140175f1a
xor edx, edx
call fcn.14015ab40
mov ebp, 0xffffffff
test r14, r14
js 0x140175f6b
test esi, esi
js 0x140175f6b
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.1401848e8
mov ebx, dword [rax]
call fcn.1401848e8
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 0x14017600f
cmp qword [rsp + 0x88], 0
jne 0x14017600f
cmp byte [r14 + 0x18], 0
je 0x14017600f
mov rdi, qword [r14 + 0x28]
add rdi, 0x28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140176304
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140175fff
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x1401762d1
dec dword [rax + 0x140]
cmp byte [r14 + 0x18], 0
je 0x140176827
cmp byte [r14 + 0x19], 0
je 0x140176251
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.1401848e8
mov dword [rax], ebx
cmp byte [rsp + 0xa8], 0
je 0x140176041
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
jne 0x140176151
mov byte [rsp + 0xa8], 0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140176059
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401767de
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x80]
and r13, rcx
cmp r13, qword [0x1402aaec8]
je 0x140176278
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401874c0
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
mov r14d, esi
mov eax, dword [0x1402b4368]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140176312
mov rsi, rbx
mov rbp, qword [0x1402b4360]
mov r15, rdi
test rbp, rbp
je 0x140176563
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 0x140176563
mov rbx, r12
mov qword [rsp + 0xb8], rbp
mov eax, 1
lock xadd dword [rbp], eax
cmp eax, 0x7fffffff
jne 0x140175eb5
int3
mov rax, qword [fcn.140105050]
lea rcx, [0x140182e50]
cmp rax, rcx
jne 0x1401767ad
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 0x140176836
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0xb0]
xor ecx, ecx
cmp rax, rbx
setns cl
movabs r15, 0x7fffffffffffffff
add rcx, r15
mov r14, rax
sub r14, rbx
cmovo r14, rcx
cmp r14, 0xf4240
jge 0x14017640c
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x140176039
lock dec dword [rsi]
jne 0x140176039
mov rcx, rsi
call fcn.140011010
mov rcx, rsi
call fcn.14018482c
jmp 0x140176039
mov eax, dword [0x1402b6cbc]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401763b1
cmp byte [0x1402b6cb8], 0
jne 0x140175efb
mov cl, byte [rsp + 0xa0]
mov rax, qword [rsp + 0x88]
jmp 0x140175dad
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x14017679c
dec dword [rcx + 0x144]
jmp 0x140175fff
mov rcx, r15
call fcn.1400da330
jmp 0x140175d1d
call fcn.1400da480
jmp 0x140176098
mov cl, byte [rax + 0x20]
jmp 0x140175d7e
test rax, rax
je 0x140175efb
cmp byte [rax + 0x28], 0
je 0x140175efb
mov r15, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test r15, r15
je 0x140175efb
lock dec dword [r15]
jne 0x140175efb
mov rcx, r15
call fcn.140011010
mov rcx, r15
call fcn.14018482c
jmp 0x140175efb
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x1401762f9
cmp qword [rax + 0x130], rdx
jae 0x1401764b1
mov word [rax + 0x78], 0
jmp 0x140175fe9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140175fc5
lea rcx, [0x1402b4368]
call fcn.140184b80
cmp dword [0x1402b4368], 0xffffffff
jne 0x1401760ee
mov qword [0x1402b4360], 0
lea rcx, [0x1402b4368]
call fcn.140184be8
jmp 0x1401760ee
lea rcx, [0x1402b4358]
call fcn.140184b80
cmp dword [0x1402b4358], 0xffffffff
jne 0x140175e53
mov qword [0x1402b4350], 0
lea rcx, [0x1402b4358]
call fcn.140184be8
jmp 0x140175e53
lea rcx, [0x1402b4378]
call fcn.140184b80
cmp dword [0x1402b4378], 0xffffffff
jne 0x140175e8d
mov qword [0x1402b4370], 0
lea rcx, [0x1402b4378]
call fcn.140184be8
jmp 0x140175e8d
lea rcx, [0x1402b6cbc]
call fcn.140184b80
cmp dword [0x1402b6cbc], 0xffffffff
jne 0x140176230
mov rcx, qword [0x1402b0d20]
test rcx, rcx
je 0x1401763e2
lea rdx, str.enable_background_thread_pool
call fcn.1400ea630
mov byte [0x1402b6cb8], 1
lea rcx, [0x1402b6cbc]
call fcn.140184be8
jmp 0x140176230
lea rcx, [0x1402b4350]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140175e68
mov rcx, qword [rdi + 0x1f0]
mov edx, 0x3938700
lea r8, [rdx + rcx]
sar r8, 0x3f
btc r8, 0x3f
add rdx, rcx
cmovo rdx, r8
cmp rdx, rax
jle 0x14017685d
mov rax, qword [rdi + 0x1f0]
xor ecx, ecx
cmp rbx, rax
setns cl
add rcx, r15
sub rbx, rax
movabs rsi, 0x8000000000000001
cmovo rbx, rcx
lea rax, [rbx + rsi]
cmp rax, 2
jb 0x140176897
cvtsi2sd xmm0, rbx
divsd xmm0, qword [0x140278820]
call fcn.1401c0de0
movsd xmm6, qword [0x14025fed0]
ucomisd xmm6, xmm0
jb 0x1401768ac
maxsd xmm0, qword [0x14025fee8]
cvttsd2si ebx, xmm0
add rsi, r14
cmp rsi, 2
jb 0x1401764be
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, qword [0x140278820]
jmp 0x1401764c6
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x140175fe9
movsd xmm0, qword [0x14027a280]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1401768c3
addsd xmm0, qword [0x14025fa70]
call fcn.1401c0de0
ucomisd xmm6, xmm0
jb 0x1401768d5
maxsd xmm0, qword [0x14025fee8]
cvttsd2si r14d, xmm0
mov r12, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add r14d, ebx
cmp r14d, 0x3c
mov r15d, 0x3c
cmovl r15d, r14d
lea rsi, [rdi + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401767c3
cmp ebx, r15d
jge 0x14017653d
movsxd rax, ebx
movsxd rcx, r15d
inc qword [rdi + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140176530
mov rcx, rsi
call r12
cmp r14d, 0x3d
jl 0x1401761dc
mov rdi, qword [rdi + 0x1f8]
sub r14d, r15d
xor ebx, ebx
test rdi, rdi
jne 0x1401764ff
jmp 0x1401761dc
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 0x1401768ee
mov ecx, 0x208
call fcn.140184834
mov r12, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.140189600
mov qword [r12 + 0x1f0], r15
mov qword [r12 + 0x1f8], 0
mov byte [r12 + 0x200], 0
test r12, r12
je 0x1401765ee
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x1401768fd
test rbp, rbp
jne 0x14017671f
test r12, r12
je 0x140176612
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140176900
mov rbp, qword [0x1402b4360]
mov qword [0x1402b4360], r12
test rbp, rbp
jne 0x14017677d
lea rcx, [0x1402b4350]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r12 + 0x1f0]
xor ecx, ecx
cmp rdi, rax
setns cl
movabs rdx, 0x7fffffffffffffff
add rcx, rdx
sub rdi, rax
movabs rax, 0x8000000000000001
cmovo rdi, rcx
lea rcx, [rdi + rax]
cmp rcx, 2
jb 0x140176903
mov ebp, 0x3938700
xor eax, eax
cmp rbp, rdi
setns al
add rax, rdx
sub rbp, rdi
cmovo rbp, rax
mov ecx, 0x28
call fcn.140184834
mov r15, rax
mov dword [rax], 1
lea rax, [0x1401c6830]
mov qword [r15 + 8], rax
lea rax, [0x1401c6ab0]
mov qword [r15 + 0x10], rax
lea rax, [0x1401f2580]
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.1400ed710
lea r9, [rsp + 0x78]
mov qword [r9], r15
mov qword [rsp + 0x20], rbp
lea r8, [0x14027a5f7]
xor ecx, ecx
mov rdx, rdi
call fcn.14011ad20
mov qword [rsp + 0xb8], r12
jmp 0x140175eca
mov rcx, r15
call qword [case.0x1401eda70.0]
mov rdi, qword [rsp + 0xb0]
jmp 0x140175e2e
cmp byte [rbp + 0x200], 0
jne 0x1401765f7
test r12, r12
je 0x140176747
mov eax, 1
lock xadd dword [r12], eax
cmp eax, 0x7fffffff
je 0x140176913
mov r15, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], r12
test r15, r15
je 0x1401765f7
lock dec dword [r15]
jne 0x1401765f7
mov rcx, r15
call fcn.140011010
mov rcx, r15
call fcn.14018482c
jmp 0x1401765f7
lock dec dword [rbp]
jne 0x140176629
mov rcx, rbp
call fcn.140011010
mov rcx, rbp
call fcn.14018482c
jmp 0x140176629
dec qword [rcx + 0x128]
call fcn.1401c3c70
jmp 0x140175fff
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [case.0x1401eda70.0]
mov rax, qword [rsi]
jmp 0x1401761a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140176525
mov rcx, r15
call fcn.1400da330
jmp 0x140175d55
call fcn.1400da480
jmp 0x140176074
mov rcx, r15
call fcn.1401f9cf0
mov byte [rsp + 0xa8], 0
jmp 0x140175dd1
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140175e26
ud2
mov qword [rsp + 0xb0], rax
jmp 0x140175ee5
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401761a3
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rax
call fcn.14006cc00
mov rsi, qword [rsi]
test rsi, rsi
je 0x140176435
lock dec dword [rsi]
jne 0x140176435
mov rcx, rsi
call fcn.140011010
mov rcx, rsi
call fcn.14018482c
jmp 0x140176435
shr rbx, 0x3f
lea rax, [0x14027a270]
movsd xmm0, qword [rax + rbx*8]
jmp 0x14017646b
xor eax, eax
ucomisd xmm0, qword [0x14025fee8]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x140176496
addsd xmm0, qword [0x14025fed8]
call fcn.1401c0a0c
jmp 0x1401764e1
xor eax, eax
ucomisd xmm0, qword [0x14025fee8]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x1401764f8
mov byte [rbp + 0x200], 1
mov r15, rdi
jmp 0x140176592
int3
int3
sar rdi, 0x3f
lea rbp, [rdi + rax]
dec rbp
jmp 0x140176689
int3