Function at 0x1400718c0
Capabilities:
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 [0x14012f028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r13, 0xfffffffc00000000
movapd xmm0, xmmword [0x140114ca0]
movapd xmmword [rsp + 0x80], xmm0
movapd xmmword [rsp + 0x70], xmm0
movapd xmmword [rsp + 0x60], xmm0
movapd xmmword [rsp + 0x50], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea rcx, [rsp + 0x30]
mov r9d, 0x5f
call fcn.140072460
mov eax, dword [0x14013e9b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x170]
mov rax, r14
and rax, r13
cmp rax, qword [0x14012fdc8]
je 0x140071d2f
mov qword [rsp + 0x50], r14
mov eax, dword [0x14013e9b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r15, [rax + 0x178]
mov r14, qword [r15]
mov rax, r14
and rax, r13
cmp rax, qword [0x14012fdc8]
je 0x1400722b8
lea rax, [rsp + 0x50]
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 0x140071d3c
xor ecx, ecx
mov byte [rsp + 0x70], cl
xor edx, edx
mov byte [rsp + 0x78], dl
mov byte [rsp + 0x88], dl
mov r8d, dword [0x14013e9b0]
mov r9, qword gs:[0x58]
mov r8, qword [r9 + r8*8]
cmp byte [r8 + 0x190], dl
je 0x140071cf8
test cl, cl
jne 0x140071dc1
test rax, rax
jne 0x140071ae8
lea r14, [rsp + 0x78]
cmp byte [r14 + 0x10], 0
jne 0x1400722cd
test r14, r14
je 0x140072305
mov rax, qword [fcn.140085890]
mov rcx, r14
call qword [0x140152008]
mov r12, qword [rsp + 0x78]
mov eax, dword [0x140147868]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071e6a
lea rcx, [0x140147860]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140071e58
mov eax, dword [0x140147888]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071e9f
cmp qword [0x140147880], 0
jne 0x140071d44
mov qword [rsp + 0x80], 0
lea rcx, [0x140147860]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x140071ae0
mov rax, qword [r14 + 0x1f0]
cmp qword [rsp + 0x78], rax
jl 0x1400722f8
mov byte [rsp + 0x88], 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140071b01
cmp qword [rsp + 0x58], 0
jne 0x140071b01
xor edx, edx
call fcn.1400917f0
test esi, esi
js 0x1400722a4
lea r9, [rsp + 0x90]
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 0x1400722e2
mov esi, dword [rsp + 0x90]
test esi, esi
js 0x1400722c5
call fcn.140093e50
mov ebp, dword [rax]
call fcn.140093e50
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 + 0x50]
test r14, r14
je 0x140071bfa
cmp qword [rsp + 0x58], 0
jne 0x140071bfa
cmp byte [r14 + 0x19], 0
je 0x140071bfa
mov rbx, qword [r14 + 0x28]
add rbx, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140071e08
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x140071bea
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x140071dd9
dec dword [rax + 0x140]
cmp byte [r14 + 0x19], 0
je 0x140072342
cmp byte [r14 + 0x18], 0
jne 0x140071bea
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x140072331
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.140093e50
mov dword [rax], ebp
cmp byte [rsp + 0x88], 0
je 0x140071c7f
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x140071c7f
mov rax, qword [fcn.140085890]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [0x140152008]
mov r15, qword [rsp + 0x78]
mov rdi, qword [rdi]
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 0x140071f2b
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140071c7f
lock dec dword [rdi]
je 0x14007236e
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140071c91
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, r13
cmp rax, qword [0x14012fdc8]
je 0x1400722ae
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and r13, rcx
cmp r13, qword [0x14012fdc8]
je 0x140071cf1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140095f80
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.140057c80
jmp 0x140071cc3
mov eax, dword [0x14014928c]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071ed4
cmp byte [0x140149288], 0
jne 0x140071ae8
jmp 0x140071f1d
mov rcx, r14
call fcn.140057b30
jmp 0x14007196f
mov cl, byte [rax + 0x20]
jmp 0x1400719ca
mov eax, dword [0x140147878]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071e23
mov r15, qword [0x140147870]
mov rbp, r12
test r15, r15
je 0x140072082
mov eax, 0x3938700
add rax, qword [r15 + 0x1f0]
movabs rbp, 0x7fffffffffffffff
cmovno rbp, rax
cmp rbp, r12
jle 0x140072082
mov qword [rsp + 0x80], r15
mov eax, 1
lock xadd dword [r15], eax
cmp eax, 0x7fffffff
jne 0x140071ab4
jmp 0x140072302
test rax, rax
je 0x140071ae8
cmp byte [rax + 0x38], 0
je 0x140071ae8
jmp 0x140072406
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x120]
dec rdx
mov qword [rax + 0x120], rdx
cmp rcx, qword [rax + 0x48]
je 0x140071dfd
cmp qword [rax + 0x130], rdx
jae 0x140071e16
mov word [rax + 0x78], 0
jmp 0x140071bc3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140071b9f
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x140071bc3
lea rcx, [0x140147878]
call fcn.140093f10
cmp dword [0x140147878], 0xffffffff
jne 0x140071d69
mov qword [0x140147870], 0
lea rcx, [0x140147878]
call fcn.140093f78
jmp 0x140071d69
lea rcx, [0x140147860]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140071a75
lea rcx, [0x140147868]
call fcn.140093f10
cmp dword [0x140147868], 0xffffffff
jne 0x140071a60
mov qword [0x140147860], 0
lea rcx, [0x140147868]
call fcn.140093f78
jmp 0x140071a60
lea rcx, [0x140147888]
call fcn.140093f10
cmp dword [0x140147888], 0xffffffff
jne 0x140071a9a
mov qword [0x140147880], 0
lea rcx, [0x140147888]
call fcn.140093f78
jmp 0x140071a9a
lea rcx, [0x14014928c]
call fcn.140093f10
cmp dword [0x14014928c], 0xffffffff
jne 0x140071d1d
mov rcx, qword [0x1401474c0]
test rcx, rcx
je 0x140071f05
lea rdx, str.enable_background_thread_pool
call fcn.140087ed0
mov byte [0x140149288], 1
lea rcx, [0x14014928c]
call fcn.140093f78
jmp 0x140071d1d
mov cl, byte [rsp + 0x70]
mov rax, qword [rsp + 0x58]
jmp 0x1400719fc
mov eax, 0x3938700
add rax, qword [r14 + 0x1f0]
cmovo rax, rbp
cmp rax, rdi
jle 0x1400723b3
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 0x14007239a
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x140118d58]
call fcn.1400c48f0
movsd xmm6, qword [0x14011a5c8]
ucomisd xmm6, xmm0
jb 0x140072247
maxsd xmm0, qword [0x14011a5d0]
cvttsd2si ebx, xmm0
add rbp, r12
cmp rbp, 2
jb 0x14007225e
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
divsd xmm0, qword [0x140118d58]
call fcn.1400c60bc
ucomisd xmm6, xmm0
jb 0x140072383
maxsd xmm0, qword [0x14011a5d0]
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 0x140072033
cmp ebx, r15d
jge 0x14007201f
movsxd rax, ebx
movsxd rcx, r15d
inc qword [r14 + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x140072012
mov rcx, rdi
call r12
cmp ebp, 0x3d
jl 0x140071c69
jmp 0x140072277
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140072007
cmp byte [r15 + 0x200], 0
jne 0x14007210f
test r14, r14
je 0x140072066
mov eax, 1
lock xadd dword [r14], eax
cmp eax, 0x7fffffff
je 0x14007243a
mov rbp, qword [r15 + 0x1f8]
mov qword [r15 + 0x1f8], r14
test rbp, rbp
je 0x14007210f
jmp 0x14007243d
xor eax, eax
cmp r12, rbp
setns al
movabs rcx, 0x7fffffffffffffff
add rax, rcx
mov rcx, r12
sub rcx, rbp
cmovo rcx, rax
cmp rcx, 0x989680
jge 0x1400723f6
mov ecx, 0x208
call fcn.140093d8c
mov r14, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.1400980c0
mov qword [r14 + 0x1f0], rbp
mov qword [r14 + 0x1f8], 0
mov byte [r14 + 0x200], 0
test r14, r14
je 0x140072106
mov eax, 1
lock xadd dword [r14], eax
cmp eax, 0x7fffffff
je 0x1400723f0
test r15, r15
jne 0x14007203e
test r14, r14
je 0x140072129
mov eax, 1
lock xadd dword [r14], eax
cmp eax, 0x7fffffff
je 0x1400723f3
mov r15, qword [0x140147870]
mov qword [0x140147870], r14
test r15, r15
jne 0x140072228
lea rcx, [0x140147860]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [r14 + 0x1f0]
xor edx, edx
cmp r12, rax
setns dl
movabs r8, 0x7fffffffffffffff
add rdx, r8
mov rcx, r12
sub rcx, rax
movabs rbp, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + rbp]
cmp rdx, 2
jb 0x140072291
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.140093d8c
mov r15, rax
mov dword [rax], 1
lea rax, [0x1400c8900]
mov qword [r15 + 8], rax
lea rax, [0x1400c89c0]
mov qword [r15 + 0x10], rax
lea rax, [0x1400ef860]
mov qword [r15 + 0x18], rax
lea rdx, str.MonitorNextJankWindowIfNecessary
lea r8, str....._base_threading_scoped_blocking_call_internal.cc
lea r12, [rsp + 0x90]
mov rcx, r12
mov r9d, 0xca
call fcn.140072460
lea r9, [rsp + 0xb0]
mov qword [r9], r15
mov qword [rsp + 0x20], rbp
lea r8, [0x14011b234]
xor ecx, ecx
mov rdx, r12
call fcn.140009b40
mov qword [rsp + 0x80], r14
jmp 0x140071ac9
lock dec dword [r15]
jne 0x140072140
mov rcx, r15
call fcn.140009410
mov rcx, r15
call fcn.140093dd0
jmp 0x140072140
xor eax, eax
ucomisd xmm0, qword [0x14011a5d0]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x140071fa8
xor eax, eax
cmp rdi, r15
setl al
lea rcx, [0x140118d40]
movsd xmm0, qword [rcx + rax*8]
jmp 0x140071fbd
mov r14, qword [r14 + 0x1f8]
sub ebp, r15d
xor ebx, ebx
test r14, r14
jne 0x140071fe7
jmp 0x140071c69
xor ecx, ecx
cmp rax, r12
setg cl
not rcx
add rbp, rcx
jmp 0x1400721a2
mov esi, 0xffffffff
jmp 0x140071b47
call fcn.140057c80
jmp 0x140071ca9
mov rcx, r14
call fcn.140057b30
jmp 0x1400719a4
int3
mov rcx, r14
call fcn.1400f6fb0
mov byte [rsp + 0x88], 0
jmp 0x140071a1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140071b47
mov qword [rsp + 0x78], rax
jmp 0x140071ae0
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400c7b30
dec qword [rcx + 0x128]
call fcn.1400fc260
jmp 0x140071bea
lea rax, str.optional_operator_called_on_a_disengaged_value
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcincludeoptional
lea r9, str.this__has_value__
mov r8d, 0x3fd
call fcn.1400c7b30
mov rcx, rdi
call fcn.140009410
mov rcx, rdi
call fcn.140093dd0
jmp 0x140071c7f
xor eax, eax
ucomisd xmm0, qword [0x14011a5d0]
mov ebp, 0x7fffffff
cmovb ebp, eax
jmp 0x140071fe0
xor ecx, ecx
cmp rax, r15
setg cl
lea rax, [0x140118d40]
movsd xmm0, qword [rax + rcx*8]
jmp 0x140071f7d
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov rdx, rdi
call fcn.140032110
mov rbx, qword [rbx]
test rbx, rbx
je 0x140071f44
lock dec dword [rbx]
jne 0x140071f44
mov rcx, rbx
call fcn.140009410
mov rcx, rbx
call fcn.140093dd0
jmp 0x140071f44
int3
int3
mov byte [r15 + 0x200], 1
mov rbp, r12
jmp 0x1400720ae
mov r14, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test r14, r14
je 0x140071ae8
lock dec dword [r14]
jne 0x140071ae8
mov rcx, r14
call fcn.140009410
mov rcx, r14
call fcn.140093dd0
jmp 0x140071ae8
int3
lock dec dword [rbp]
jne 0x14007210f
mov rcx, rbp
call fcn.140009410
mov rcx, rbp
call fcn.140093dd0
jmp 0x14007210f