Function at 0x14016d2a0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, r9
mov rdi, r8
mov r15, rcx
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.14017ec90
nop
lea rax, vtable.juce::OutputStream.0
mov qword [rsp + 0x30], rax
lea rax, [0x140429910]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400461b0
nop
lea rax, vtable.juce::FileOutputStream.0
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
lea r13, [0x1402901c8]
cmp rcx, r13
je 0x14016d335
mov eax, 1
lock xadd dword [rcx], eax
xor r12d, r12d
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x50]
call fcn.140037850
nop
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0x4000
mov qword [rsp + 0x68], r12
mov ecx, 0x4000
call fcn.1400c1e7c
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
call fcn.140165280
nop
lea esi, [r12 + 4]
or r14d, 0xffffffff
mov rax, qword [rsp + 0x50]
cmp byte [rax], r12b
jne 0x14016d5e7
mov rbx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rdi, qword [rdi]
mov qword [rbp - 0x18], rdi
lea r8d, [r12 + 0x1e]
lea rdx, str.__xml_version_1.0__encoding_
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov qword [rbp - 0x68], rbx
lea rcx, [rbp - 0x68]
call fcn.140046b60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
lea r8d, [r12 + 3]
lea rdx, [0x14028f77c]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x60], rbx
lea rcx, [rbp - 0x60]
call fcn.140046b60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x58], rbx
lea rcx, [rbp - 0x58]
call fcn.140046b60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
cmp byte [rdi], r12b
je 0x14016d480
mov qword [rbp - 0x50], rdi
lea rcx, [rbp - 0x50]
call fcn.140046b60
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x48], rbx
lea rcx, [rbp - 0x48]
call fcn.140046b60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov r9d, 0x3c
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14016d810
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x40], rbx
lea rcx, [rbp - 0x40]
call fcn.140046b60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
test rax, rax
je 0x14016d532
test rcx, rcx
je 0x14016d52d
mov dword [rbp + 0x60], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016d528
lea rcx, [rbp - 0x38]
call fcn.140165700
mov rcx, qword [rsp + 0x50]
mov qword [rbp - 0x10], rcx
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14016d528
mov eax, r14d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14016d528
call fcn.1400bd658
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x68], r12
test rcx, rcx
je 0x14016d57b
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14016d57b
lea rcx, [rbp - 0x30]
call fcn.140165700
mov rcx, qword [rsp + 0x50]
mov qword [rbp - 8], rcx
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14016d57b
mov eax, r14d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14016d57b
call fcn.1400bd658
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
jne 0x14016d5e7
lea rcx, [rsp + 0x30]
call fcn.14017f400
mov rax, qword [rbp - 0x80]
cmp byte [rax], 0
je 0x14016d5f1
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14016d5f1
mov ebx, esi
nop word [rax + rax]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.140180df0
test al, al
jne 0x14016d5e3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14016d5c0
jmp 0x14016d5f1
mov bl, 1
jmp 0x14016d5f3
lea rcx, [rsp + 0x30]
call fcn.14017f400
xor bl, bl
lea rcx, [rbp - 0x80]
call fcn.140165660
test al, al
jne 0x14016d610
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jns 0x14016d5f3
mov rcx, qword [rbp - 0x78]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14016d62d
mov eax, r14d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14016d62d
call fcn.1400bd658
mov rax, qword [rbp - 0x80]
lea rcx, [rax - 0x10]
cmp rcx, r13
je 0x14016d64a
lock xadd dword [rcx], r14d
test r14d, r14d
jne 0x14016d64a
call fcn.1400bd658
nop
movzx eax, bl
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret