Function at 0x140136f80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movapd xmmword [rsp + 0xb0], xmm6
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14022d028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movapd xmm0, xmmword [0x1401fa0c0]
lea rsi, [rsp + 0x50]
movapd xmmword [rsi + 0x30], xmm0
movapd xmmword [rsi + 0x20], xmm0
movapd xmmword [rsi + 0x10], xmm0
movapd xmmword [rsi], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x42
call fcn.1400ce6a0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.1400f43b0
mov qword [rsp + 0x90], 0xa
mov al, byte [0x14023efca]
test al, al
jne 0x1401372fe
mov esi, 0xffffffff
test r15, r15
js 0x14013707f
test edi, edi
js 0x14013707f
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x40], xmm0
movapd xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea r9, [rsp + 0xa0]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140137451
mov esi, dword [rsp + 0xa0]
test esi, esi
js 0x14013748a
mov qword [rsp + 0xa0], 0xa
mov al, byte [0x14023efca]
test al, al
jne 0x1401372d7
movabs r14, 0xfffffffc00000000
call fcn.140143d20
mov ebp, dword [rax]
call fcn.140143d20
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 r15, qword [rsp + 0x50]
test r15, r15
je 0x14013718f
cmp qword [rsp + 0x58], 0
jne 0x14013718f
cmp byte [r15 + 0x19], 0
je 0x14013718f
mov rbx, qword [r15 + 0x28]
add rbx, 0x68
mov r12, rbx
and r12, r14
cmp r12, qword [0x14022f688]
jne 0x140137109
mov rcx, rbx
call fcn.1400b3f20
test rbx, rbx
je 0x140137492
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140137368
mov qword [r15 + 0x20], 0
cmp byte [r15 + 0x3a], 0
jne 0x14013716e
cmp byte [r15 + 0x38], 0
mov rax, qword [r15 + 0x28]
jne 0x140137330
dec dword [rax + 0x130]
cmp byte [r15 + 0x19], 0
je 0x140137495
cmp byte [r15 + 0x18], 0
jne 0x14013716e
cmp byte [r15 + 0x39], 0
mov rcx, qword [r15 + 0x28]
jne 0x1401374a8
dec dword [rcx + 0x134]
mov word [r15 + 0x38], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp r12, qword [0x14022f688]
jne 0x14013718f
mov rcx, rbx
call fcn.1400b4080
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140143d20
mov dword [rax], ebp
cmp byte [rsp + 0x88], 0
je 0x14013725e
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14013725e
mov rax, qword [fcn.1400fc780]
lea rcx, [0x140142f90]
cmp rax, rcx
jne 0x140137467
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x1401374c7
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023f400]
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x78]
xor ecx, ecx
cmp rax, r12
setns cl
movabs r13, 0x7fffffffffffffff
add rcx, r13
mov r15, rax
sub r15, r12
cmovo r15, rcx
cmp r15, 0xf4240
jge 0x140137386
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14013725e
lock dec dword [rdi]
je 0x1401374b2
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140137270
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, r14
cmp rax, qword [0x14022f688]
je 0x140137480
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and r14, rcx
cmp r14, qword [0x14022f688]
je 0x1401372d0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140146540
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c5e10
jmp 0x1401372a2
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0xa0]
mov r9d, 2
call fcn.1400bf990
jmp 0x140137099
movzx ecx, al
lea r9, [rsp + 0xa0]
mov qword [r9], r12
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x98]
mov qword [r8], rax
lea rdx, [rsp + 0x90]
call fcn.1400f50c0
jmp 0x140137022
mov rcx, qword [rax + 0x80]
mov rdx, qword [rax + 0x110]
dec rdx
mov qword [rax + 0x110], rdx
cmp rcx, qword [rax + 0x88]
je 0x14013735a
cmp qword [rax + 0x120], rdx
jae 0x140137376
mov word [rax + 0xb8], 0
jmp 0x140137147
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140137123
movzx ecx, word [rcx + 0x10]
mov word [rax + 0xb8], cx
jmp 0x140137147
mov ecx, 0x3938700
add rcx, qword [rdi + 0x1f0]
cmovo rcx, r13
cmp rcx, rax
jle 0x140137537
mov rax, qword [rdi + 0x1f0]
xor edx, edx
cmp r12, rax
setns dl
add rdx, r13
mov rcx, r12
sub rcx, rax
movabs r13, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + r13]
cmp rdx, 2
jb 0x14013751e
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x14020c1a0]
call fcn.14017ad80
movsd xmm6, qword [0x14020c1a8]
ucomisd xmm6, xmm0
jb 0x1401374ee
maxsd xmm0, qword [0x14020c1b0]
cvttsd2si ebx, xmm0
add r13, r15
cmp r13, 2
jae 0x140137416
movsd xmm0, qword [0x14020c1b8]
jmp 0x140137426
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x14020c1a0]
call fcn.14017ae30
ucomisd xmm6, xmm0
jb 0x140137505
maxsd xmm0, qword [0x14020c1b0]
cvttsd2si r8d, xmm0
mov rcx, rdi
mov edx, ebx
call fcn.140005f30
jmp 0x140137248
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14013707f
lea rbx, [rsp + 0xa0]
mov rcx, rbx
call qword [0x14021f820]
mov rax, qword [rbx]
jmp 0x140137217
call fcn.1400c5e10
jmp 0x140137288
int3
int3
lea rcx, [0x1401fff03]
lea rdx, str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140180910
call fcn.1401b2930
jmp 0x14013716e
mov rcx, rdi
call fcn.1400581d0
mov rcx, rdi
call fcn.140143bb0
jmp 0x14013725e
mov rcx, qword [0x14023f400]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14013720f
xor eax, eax
ucomisd xmm0, qword [0x14020c1b0]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x140137403
xor eax, eax
ucomisd xmm0, qword [0x14020c1b0]
mov r8d, 0x7fffffff
cmovb r8d, eax
jmp 0x140137442
xor ecx, ecx
cmp rax, r12
setg cl
lea rax, [0x14020c190]
movsd xmm0, qword [rax + rcx*8]
jmp 0x1401373d8
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rax
call fcn.1400629c0
mov rbx, qword [rbx]
test rbx, rbx
je 0x14013739f
lock dec dword [rbx]
jne 0x14013739f
mov rcx, rbx
call fcn.1400581d0
mov rcx, rbx
call fcn.140143bb0
jmp 0x14013739f