Function at 0x1400f01f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movapd xmmword [rsp + 0xa0], xmm6
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [0x140231040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movapd xmm0, xmmword [0x1401fd000]
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.Write
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x7f
call fcn.1400dc8d0
mov rcx, rsi
mov rdx, r12
xor r8d, r8d
call fcn.1400f07b0
mov esi, 0xffffffff
test r15, r15
js 0x1400f02cc
test edi, edi
js 0x1400f02cc
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x40], xmm0
movapd xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea r15, [rsp + 0x90]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
mov qword [rsp + 0x90], 0xa
mov al, byte [0x14024358a]
test al, al
jne 0x1400f0686
call fcn.14012aa74
mov ebp, dword [rax]
call fcn.14012aa74
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 0x1400f0399
cmp qword [rsp + 0x58], 0
jne 0x1400f0399
cmp byte [r14 + 0x19], 0
je 0x1400f0399
mov rbx, qword [r14 + 0x28]
add rbx, 0x68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400f0524
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x1400f0389
cmp byte [r14 + 0x39], 0
mov rax, qword [r14 + 0x28]
jne 0x1400f04ec
dec dword [rax + 0x130]
cmp byte [r14 + 0x19], 0
je 0x1400f06ad
cmp byte [r14 + 0x18], 0
jne 0x1400f0389
cmp byte [r14 + 0x3a], 0
mov rcx, qword [r14 + 0x28]
jne 0x1400f06c0
dec dword [rcx + 0x134]
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.14012aa74
mov dword [rax], ebp
cmp byte [rsp + 0x88], 0
je 0x1400f03c3
mov rbx, qword [rsp + 0x80]
test rbx, rbx
jne 0x1400f0446
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400f03d5
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
movabs rdi, 0xfffffffc00000000
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, rdi
cmp rax, qword [0x1402336c8]
je 0x1400f067c
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and rdi, rcx
cmp rdi, qword [0x1402336c8]
je 0x1400f043f
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14012d2c0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400a3600
jmp 0x1400f0411
mov rax, qword [fcn.140116a00]
lea rcx, [0x140116ab0]
cmp rax, rcx
jne 0x1400f0663
lea rdi, [rsp + 0x30]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x1400f06df
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [rsp + 0x90], rax
mov r15, qword [rsp + 0x78]
xor ecx, ecx
cmp rax, r15
setns cl
movabs r12, 0x7fffffffffffffff
add rcx, r12
mov r14, rax
sub r14, r15
cmovo r14, rcx
cmp r14, 0xf4240
jge 0x1400f0542
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x1400f03c3
lock dec dword [rdi]
jne 0x1400f03c3
jmp 0x1400f06ca
mov rcx, qword [rax + 0x80]
mov rdx, qword [rax + 0x110]
dec rdx
mov qword [rax + 0x110], rdx
cmp rcx, qword [rax + 0x88]
je 0x1400f0516
cmp qword [rax + 0x120], rdx
jae 0x1400f0532
mov word [rax + 0xb8], 0
jmp 0x1400f0362
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400f033e
movzx ecx, word [rcx + 0x10]
mov word [rax + 0xb8], cx
jmp 0x1400f0362
mov ecx, 0x3938700
add rcx, qword [rbx + 0x1f0]
cmovo rcx, r12
cmp rcx, rax
jle 0x1400f0769
mov rax, qword [rbx + 0x1f0]
xor edx, edx
cmp r15, rax
setns dl
add rdx, r12
mov rcx, r15
sub rcx, rax
movabs rdi, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + rdi]
cmp rdx, 2
jb 0x1400f0750
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x14020f7d0]
call fcn.140161f10
movsd xmm6, qword [0x14020f7d8]
ucomisd xmm6, xmm0
jb 0x1400f0706
maxsd xmm0, qword [0x14020f7e0]
cvttsd2si ebp, xmm0
add rdi, r14
cmp rdi, 2
jae 0x1400f05d2
movsd xmm0, qword [0x14020f7e8]
jmp 0x1400f05e2
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, qword [0x14020f7d0]
call fcn.140161fc0
ucomisd xmm6, xmm0
jb 0x1400f071d
maxsd xmm0, qword [0x14020f7e0]
cvttsd2si r14d, xmm0
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add r14d, ebp
cmp r14d, 0x3c
mov r12d, 0x3c
cmovl r12d, r14d
lea rdi, [rbx + 8]
mov rcx, rdi
call r15
test al, al
je 0x1400f0658
cmp ebp, r12d
jge 0x1400f0643
movsxd rax, ebp
movsxd rcx, r12d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x1400f0636
mov rcx, rdi
call r13
cmp r14d, 0x3d
jl 0x1400f04cd
jmp 0x1400f0736
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400f062b
lea rdi, [rsp + 0x90]
mov rcx, rdi
call qword [0x1402233e0]
mov rax, qword [rdi]
jmp 0x1400f04a0
call fcn.1400a3600
jmp 0x1400f03f7
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0x90]
mov r9d, 2
call fcn.14009d110
jmp 0x1400f02e6
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140164a90
call fcn.14019e5f0
jmp 0x1400f0389
mov rcx, rdi
call fcn.140016d30
mov rcx, rdi
call fcn.14012aa6c
jmp 0x1400f03c3
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400f0498
xor eax, eax
ucomisd xmm0, qword [0x14020f7e0]
mov ebp, 0x7fffffff
cmovb ebp, eax
jmp 0x1400f05bf
xor eax, eax
ucomisd xmm0, qword [0x14020f7e0]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x1400f05fe
mov rbx, qword [rbx + 0x1f8]
sub r14d, r12d
xor ebp, ebp
test rbx, rbx
jne 0x1400f060c
jmp 0x1400f04cd
xor ecx, ecx
cmp rax, r15
setg cl
lea rax, [0x14020f7c0]
movsd xmm0, qword [rax + rcx*8]
jmp 0x1400f0594
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.1400695a0
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400f055b
lock dec dword [rdi]
jne 0x1400f055b
mov rcx, rdi
call fcn.140016d30
mov rcx, rdi
call fcn.14012aa6c
jmp 0x1400f055b