Function at 0x18023c030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rsi, rdx
mov rbx, rcx
lea rax, vtable.juce::OutputStream.0
mov qword [rbp - 0x69], rax
lea rax, [0x180375c60]
mov qword [rbp - 9], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x61]
call fcn.18001a440
nop
lea rax, vtable.juce::FileOutputStream.0
mov qword [rbp - 0x69], rax
mov rax, qword [rsi]
mov qword [rbp - 0x59], rax
lea rcx, [rax - 0x10]
lea r15, [0x1802bccb0]
cmp rcx, r15
je 0x18023c0ad
mov eax, 1
lock xadd dword [rcx], eax
xor r14d, r14d
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x49]
call fcn.18000bdd0
nop
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0x4000
mov qword [rbp - 0x31], r14
mov ecx, 0x4000
call fcn.1800a0a4c
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x69]
call fcn.1800c36d0
nop
mov rax, qword [rbp - 0x49]
cmp byte [rax], r14b
je 0x18023c123
lea rcx, [rbp - 0x69]
call fcn.1800e3a90
nop
mov rax, qword [rsi]
mov qword [rbp + 0x27], rax
lea rcx, [rax - 0x10]
cmp rcx, r15
je 0x18023c11c
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18023c11c
call fcn.1800a0c6c
xor al, al
jmp 0x18023c26f
or edi, 0xffffffff
cmp qword [rbp - 0x41], 0
je 0x18023c1bf
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x18023c19a
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18023c196
mov dword [rbp + 0x77], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x77]
mov r8d, eax
mov rdx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18023c196
lea rcx, [rbp - 1]
call fcn.1800c3cf0
mov rcx, qword [rbp - 0x49]
mov rdx, qword [rax]
mov qword [rbp - 0x49], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 1]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x18023c196
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x18023c196
call fcn.1800a0c6c
mov qword [rbp - 0x31], r14
mov qword [rbp + 0x7f], r14
xor r9d, r9d
lea r8, [rbp + 0x83]
xor edx, edx
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x7f], eax
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x69]
call fcn.1800c34a0
mov rcx, qword [rbp + 7]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x18023c1eb
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18023c1eb
call fcn.1800a0c6c
lea rdx, [rbp - 0x19]
mov rcx, qword [rbx + 0x110]
call fcn.1801fb400
nop
mov rbx, qword [rax]
mov qword [rbp + 0x1f], rbx
mov qword [rbp - 0x11], rbx
lea rcx, [rbp - 0x11]
call fcn.18001ae10
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x69]
mov rax, qword [rbp - 0x69]
call qword [rax + 0x20]
nop
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x18023c242
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18023c242
call fcn.1800a0c6c
nop
lea rcx, [rbp - 0x69]
call fcn.1800e3a90
nop
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
lea rcx, [rax - 0x10]
cmp rcx, r15
je 0x18023c26d
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x18023c26d
call fcn.1800a0c6c
mov al, 1
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret