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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x100
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, r9
mov rdi, r8
mov rsi, rcx
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.1800e3080
nop
lea rax, vtable.juce::OutputStream.0
mov qword [rsp + 0x30], rax
lea rax, [0x180375c60]
mov qword [rbp - 1], rax
lea rdx, [rbp - 1]
lea rcx, [rsp + 0x38]
call fcn.18001a440
nop
lea rax, vtable.juce::FileOutputStream.0
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x39]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
lea r15, [0x1802bccb0]
cmp rcx, r15
je 0x1800cc1f1
mov eax, 1
lock xadd dword [rcx], eax
xor r14d, r14d
mov qword [rbp - 0x79], r14
lea rcx, [rbp - 0x71]
call fcn.18000bdd0
nop
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], 0x4000
mov qword [rbp - 0x59], r14
mov ecx, 0x4000
call fcn.1800a0a4c
mov qword [rbp - 0x51], rax
lea rcx, [rsp + 0x30]
call fcn.1800c36d0
nop
mov rax, qword [rbp - 0x71]
cmp byte [rax], r14b
jne 0x1800cc479
mov rbx, qword [rbx]
mov qword [rbp + 0x27], rbx
mov rdi, qword [rdi]
mov qword [rbp + 0x37], rdi
lea r8d, [r14 + 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 + 0x17], rbx
lea rcx, [rbp + 0x17]
call fcn.18001ae10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
lea r8d, [r14 + 3]
lea rdx, [0x1802c0638]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x11], rbx
lea rcx, [rbp - 0x11]
call fcn.18001ae10
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 - 9], rbx
lea rcx, [rbp - 9]
call fcn.18001ae10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
cmp byte [rdi], r14b
je 0x1800cc32a
mov qword [rbp + 7], rdi
lea rcx, [rbp + 7]
call fcn.18001ae10
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 + 0xf], rbx
lea rcx, [rbp + 0xf]
call fcn.18001ae10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov r9d, dword [rbp + 0x7f]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1800cc600
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x29], rbx
lea rcx, [rbp - 0x29]
call fcn.18001ae10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
or ebx, 0xffffffff
mov rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x79]
test rax, rax
je 0x1800cc3d3
test rcx, rcx
je 0x1800cc3cf
mov dword [rbp - 0x41], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x41]
mov r8d, eax
mov rdx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800cc3cb
lea rcx, [rbp - 0x19]
call fcn.1800c3cf0
mov rcx, qword [rbp - 0x71]
mov rdx, qword [rax]
mov qword [rbp - 0x71], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1800cc3cb
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x1800cc3cb
call fcn.1800a0c6c
mov rcx, qword [rbp - 0x79]
mov qword [rbp - 0x59], r14
test rcx, rcx
je 0x1800cc417
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1800cc417
lea rcx, [rbp - 0x21]
call fcn.1800c3cf0
mov rcx, qword [rbp - 0x71]
mov rdx, qword [rax]
mov qword [rbp - 0x71], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1800cc417
lock xadd dword [rcx], ebx
lea eax, [rbx - 1]
cmp eax, 0xffffffff
jne 0x1800cc417
call fcn.1800a0c6c
mov rax, qword [rbp - 0x71]
cmp byte [rax], 0
jne 0x1800cc479
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
mov rax, qword [rbp - 0x39]
cmp byte [rax], 0
je 0x1800cc483
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x2f]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800cc483
mov ebx, 4
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1800e6d50
test al, al
jne 0x1800cc475
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
jns 0x1800cc453
jmp 0x1800cc483
mov bl, 1
jmp 0x1800cc485
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
xor bl, bl
lea rcx, [rbp - 0x39]
call fcn.1800e2fd0
movzx eax, bl
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret