Function at 0x1401235b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rbx, r8
mov rdi, rcx
lea rcx, [rbp + 0x3f]
call fcn.140141680
nop
mov r8d, 0x4000
lea rdx, [rbp + 0x3f]
lea rcx, [rbp - 0x29]
call fcn.140141f10
nop
mov rax, qword [rbp - 9]
cmp byte [rax], 0
jne 0x1401237ce
mov r8, rbx
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140123810
xor edi, edi
lea rsi, [0x140592ec8]
lea ebx, [rdi - 1]
mov r8, qword [rbp + 0xf]
test r8, r8
je 0x140123680
mov dword [rbp + 0x7f], edi
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140123679
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140123679
lea rcx, [rbp + 0x27]
call fcn.14011a340
mov rcx, qword [rbp - 9]
mov rdx, qword [rax]
mov qword [rbp - 9], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x27]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140123679
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x140123679
call fcn.1400c9d7c
mov r8, rdi
mov qword [rbp + 0xf], rdi
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1401236cc
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1401236c8
lea rcx, [rbp + 0x2f]
call fcn.14011a340
mov rcx, qword [rbp - 9]
mov rdx, qword [rax]
mov qword [rbp - 9], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x2f]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1401236c8
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x1401236c8
call fcn.1400c9d7c
mov r8, qword [rbp + 0xf]
mov rax, qword [rbp - 9]
cmp byte [rax], dil
jne 0x1401237ce
lea rax, vtable.juce::FileOutputStream.0
mov qword [rbp - 0x29], rax
test r8, r8
je 0x140123746
mov dword [rbp - 0x39], edi
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140123742
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
mov rdx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140123742
lea rcx, [rbp + 0x37]
call fcn.14011a340
mov rcx, qword [rbp - 9]
mov rdx, qword [rax]
mov qword [rbp - 9], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x37]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140123742
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140123742
call fcn.1400c9d7c
mov qword [rbp + 0xf], rdi
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x17]
call fcn.1400d4bdc
mov rcx, qword [rbp - 9]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140123778
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140123778
call fcn.1400c9d7c
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140123797
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140123797
call fcn.1400c9d7c
lea rax, vtable.juce::OutputStream.0
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1401237c0
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x1401237c0
call fcn.1400c9d7c
nop
lea rcx, [rbp + 0x3f]
call fcn.1401414a0
movzx ebx, al
jmp 0x1401237d9
lea rcx, [rbp - 0x29]
call fcn.140141e40
xor bl, bl
lea rcx, [rbp + 0x3f]
call fcn.1401415b0
movzx eax, bl
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret