Function at 0x140085c30
Capabilities:
Write 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 [0x140346038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbp, 0xfffffffc00000000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movapd xmm0, xmmword [0x1402fccc0]
movapd xmmword [rsp + 0x90], xmm0
movapd xmmword [rsp + 0x80], xmm0
movapd xmmword [rsp + 0x70], xmm0
movapd xmmword [rsp + 0x60], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x85
call fcn.1400c6940
mov eax, dword [0x1403576e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x1a8]
mov rax, rsi
and rax, rbp
cmp rax, qword [0x140346fc8]
je 0x140085f0c
mov qword [rsp + 0x60], rsi
mov eax, dword [0x1403576e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r13, [rax + 0x1b0]
mov rsi, qword [r13]
mov rax, rsi
and rax, rbp
cmp rax, qword [0x140346fc8]
je 0x140085f19
lea rax, [rsp + 0x60]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r13
mov rcx, qword [r13]
mov qword [r13], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
jne 0x140085ef6
xor ecx, ecx
mov byte [rsp + 0x80], cl
mov byte [rsp + 0x88], 0
mov edx, dword [0x1403576e0]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], 0
je 0x140085f80
test cl, cl
jne 0x140085f3a
test rax, rax
jne 0x140085db6
lea rsi, [rsp + 0x90]
cmp byte [rsi - 8], 0
jne 0x14008628b
mov rcx, rsi
call fcn.1400d5970
mov byte [rsp + 0x88], 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140085dcc
cmp qword [rsp + 0x68], 0
je 0x140085f26
mov esi, 0xffffffff
test r15, r15
js 0x140085e1c
test edi, edi
js 0x140085e1c
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x40], xmm0
movapd xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea r15, [rsp + 0x58]
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]
call fcn.140153d5c
mov r15d, dword [rax]
call fcn.140153d5c
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 rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140085e55
cmp qword [rsp + 0x68], 0
je 0x14008603e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140153d5c
mov dword [rax], r15d
cmp byte [rsp + 0x88], 0
je 0x140085e88
mov rdi, qword [rsp + 0x98]
test rdi, rdi
jne 0x140085fc3
mov byte [rsp + 0x88], 0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140085e9a
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
and rax, rbp
cmp rax, qword [0x140346fc8]
je 0x140085f05
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
and rbp, rcx
cmp rbp, qword [0x140346fc8]
je 0x140085efe
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140156fe0
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
mov cl, byte [rax + 0x20]
jmp 0x140085d58
call fcn.140151ea0
jmp 0x140085ec8
call fcn.140151ea0
jmp 0x140085eae
mov rcx, rsi
call fcn.140151d50
jmp 0x140085cfa
mov rcx, rsi
call fcn.140151d50
jmp 0x140085d30
mov rax, qword [rcx]
mov rax, qword [rax + 8]
xor edx, edx
call qword [0x14037e008]
jmp 0x140085dcc
test rax, rax
je 0x140085db6
cmp byte [rax + 0x28], 0
je 0x140085db6
mov rsi, qword [rax + 0x38]
mov qword [rax + 0x38], 0
test rsi, rsi
je 0x140085db6
lock dec dword [rsi]
jne 0x140085db6
mov rcx, rsi
call fcn.140124450
mov rcx, rsi
call fcn.140153bcc
jmp 0x140085db6
mov eax, dword [0x1403632dc]
mov ecx, dword [0x1403576e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400860d0
cmp byte [0x1403632d8], 0
jne 0x140085db6
mov cl, byte [rsp + 0x80]
mov rax, qword [rsp + 0x68]
jmp 0x140085d87
mov rax, qword [fcn.1400e35f0]
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [0x14037e008]
mov r15, qword [rsp + 0x90]
mov rbx, qword [rbx]
xor eax, eax
cmp rbx, r15
setns al
movabs r13, 0x7fffffffffffffff
add rax, r13
mov r12, rbx
sub r12, r15
cmovo r12, rax
cmp r12, 0xf4240
jge 0x140086113
mov rdi, qword [rsp + 0x98]
test rdi, rdi
je 0x140085e80
lock dec dword [rdi]
jne 0x140085e80
mov rcx, rdi
call fcn.140124450
mov rcx, rdi
call fcn.140153bcc
jmp 0x140085e80
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
lea rcx, [0x1400b4680]
cmp rax, rcx
jne 0x1400862f7
cmp byte [rbx + 0x18], 0
je 0x140085e55
mov r14, qword [rbx + 0x28]
add r14, 0x28
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14008626d
mov qword [rbx + 0x20], 0
cmp byte [rbx + 0x3b], 0
jne 0x1400860a6
cmp byte [rbx + 0x39], 0
mov rcx, qword [rbx + 0x28]
jne 0x140086105
dec dword [rcx + 0x140]
cmp byte [rbx + 0x18], 0
je 0x1400862f5
cmp byte [rbx + 0x19], 0
je 0x1400860ba
mov word [rbx + 0x39], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140085e55
cmp byte [rbx + 0x3a], 0
mov rcx, qword [rbx + 0x28]
jne 0x14008627a
dec dword [rcx + 0x144]
jmp 0x1400860a6
lea rcx, [0x1403632dc]
call fcn.1401547b8
cmp dword [0x1403632dc], 0xffffffff
jne 0x140085fa5
call fcn.14006c390
mov byte [0x1403632d8], al
lea rcx, [0x1403632dc]
call fcn.140153cf4
jmp 0x140085fa5
dec qword [rcx + 0x120]
call fcn.14012a960
jmp 0x140086096
mov eax, 0x3938700
add rax, qword [rdi + 0x1f0]
cmovo rax, r13
cmp rax, rbx
jg 0x140086156
lea r14, [rsp + 0x30]
mov rcx, r14
mov rdx, rbx
call fcn.140129da0
mov r14, qword [r14]
test r14, r14
je 0x140086156
lock dec dword [r14]
jne 0x140086156
mov rcx, r14
call fcn.140124450
mov rcx, r14
call fcn.140153bcc
mov rax, qword [rdi + 0x1f0]
xor edx, edx
cmp r15, rax
setns dl
add rdx, r13
mov rcx, r15
sub rcx, rax
movabs r13, 0x8000000000000001
cmovo rcx, rdx
lea rdx, [rcx + r13]
cmp rdx, 2
jb 0x14008618d
cvtsi2sd xmm0, rcx
jmp 0x1400861a1
xor ecx, ecx
cmp rax, r15
setg cl
lea rax, [0x14030e380]
movsd xmm0, qword [rax + rcx*8]
divsd xmm0, qword [0x14030e398]
call fcn.1401948a0
movsd xmm6, qword [0x1402eff20]
ucomisd xmm6, xmm0
jb 0x1400861cb
maxsd xmm0, qword [0x1402eff38]
cvttsd2si r14d, xmm0
jmp 0x1400861df
xor eax, eax
ucomisd xmm0, qword [0x1402eff38]
mov r14d, 0x7fffffff
cmovb r14d, eax
add r13, r12
cmp r13, 2
jb 0x1400861f2
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
jmp 0x140086206
xor eax, eax
cmp rbx, r15
setl al
lea rcx, [0x14030e380]
movsd xmm0, qword [rcx + rax*8]
divsd xmm0, qword [0x14030e398]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x140086227
addsd xmm0, qword [0x1402efac0]
call fcn.1401948a0
jmp 0x140086234
addsd xmm0, qword [0x1402eff28]
call fcn.1401944cc
ucomisd xmm6, xmm0
jb 0x140086249
maxsd xmm0, qword [0x1402eff38]
cvttsd2si r8d, xmm0
jmp 0x14008625d
xor eax, eax
ucomisd xmm0, qword [0x1402eff38]
mov r8d, 0x7fffffff
cmovb r8d, eax
mov rcx, rdi
mov edx, r14d
call fcn.140129e90
jmp 0x14008600f
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140086078
dec qword [rcx + 0x128]
call fcn.14012a960
jmp 0x1400860a6
mov r13, qword [rsp + 0x98]
test r13, r13
je 0x1400862d6
mov rax, qword [fcn.1400e35f0]
lea rcx, [rsp + 0x58]
call qword [0x14037e008]
mov rdx, qword [rsp + 0x90]
lea rax, [rsp + 0x58]
mov r8, qword [rax]
mov rcx, r13
call fcn.140258e00
mov r13, qword [rsp + 0x98]
test r13, r13
je 0x1400862d6
lock dec dword [r13]
je 0x1400862e3
mov byte [rsp + 0x88], 0
jmp 0x140085da6
mov rcx, r13
call fcn.140124450
mov rcx, r13
call fcn.140153bcc
jmp 0x1400862d6
ud2
mov rcx, rbx
call qword [0x14037e008]
jmp 0x140085e55