Function at 0x1801f2e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov r14, rdx
mov r13, rcx
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
xor r8d, r8d
lea rdx, [rbp - 0x78]
call fcn.1801f33a0
mov r12d, dword [rbp - 0x70]
mov rdx, r14
lea rcx, [rbp + 0x18]
call fcn.1800e7430
nop
lea rax, vtable.juce::OutputStream.0
mov qword [rsp + 0x30], rax
lea rax, [0x180375c60]
mov qword [rbp], rax
lea rdx, [rbp]
lea rcx, [rsp + 0x38]
call fcn.18001a440
nop
lea rax, vtable.juce::FileOutputStream.0
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x40], rax
lea rsi, [rax - 0x10]
lea rax, [0x1802bccb0]
lea r15d, [rbx + 1]
cmp rsi, rax
je 0x1801f2ebf
mov eax, r15d
lock xadd dword [rsi], eax
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x50]
call fcn.18000bdd0
nop
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0x4000
mov qword [rsp + 0x68], rbx
mov ecx, 0x4000
call fcn.1800a0a4c
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
call fcn.1800c36d0
nop
or edi, 0xffffffff
lea rcx, [0x1802bccb0]
cmp rsi, rcx
je 0x1801f2f26
mov eax, edi
lock xadd dword [rsi], eax
dec eax
cmp eax, edi
jne 0x1801f2f26
mov rcx, rsi
call fcn.1800a0c6c
lea rcx, [0x1802bccb0]
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
je 0x1801f2fa0
mov rax, qword [r14]
mov qword [rbp + 0x28], rax
add rax, 0xfffffffffffffff0
cmp rax, rcx
je 0x1801f2f45
lock xadd dword [rax], r15d
lea r9, [rbp + 0x28]
mov edx, 3
lea r8d, [rdx + 2]
mov rcx, r13
call fcn.1801f3dd0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
nop
mov rcx, qword [rbp - 0x78]
call fcn.1800a09c8
nop
mov rcx, qword [r14]
mov qword [rbp + 0x40], rcx
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1801f2f99
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x1801f2f99
call fcn.1800a0c6c
mov eax, ebx
jmp 0x1801f3378
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x60], 0x4b6e6343
lea edx, [r12 + 0x34]
mov r8d, edx
shl r8d, 0x18
mov ecx, edx
and ecx, 0xff00
shl ecx, 8
mov eax, edx
shr eax, 8
and eax, 0xff00
shr edx, 0x18
add eax, edx
add eax, ecx
add eax, r8d
mov dword [rbp - 0x5c], eax
mov dword [rbp - 0x58], 0x68435046
mov dword [rbp - 0x54], 0x1000000
mov edx, dword [r13 + 0x670]
mov r8d, edx
shl r8d, 0x18
mov ecx, edx
and ecx, 0xff00
shl ecx, 8
mov eax, edx
shr eax, 8
and eax, 0xff00
shr edx, 0x18
add eax, edx
add eax, ecx
add eax, r8d
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x4c], 0x1000000
mov dword [rbp - 0x48], 0xf3000000
movsxd rax, dword [r13 + 0xfcaa8]
imul rcx, rax, 0x3f0
mov rdx, qword [r13 + 0x7e688]
add rdx, 0x3cc
add rdx, rcx
mov r8d, edi
lea rcx, [rbp - 0x20]
call fcn.1800ebc70
nop
lea rax, [rbp - 0x44]
mov qword [rbp + 8], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x10], rax
mov r8d, 0x1c
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 8]
call fcn.18001c560
mov edx, r12d
shl edx, 0x18
mov ecx, r12d
and ecx, 0xff00
shl ecx, 8
mov eax, r12d
shr eax, 8
and eax, 0xff00
shr r12d, 0x18
add eax, r12d
add eax, ecx
add eax, edx
mov dword [rbp - 0x28], eax
cmp qword [rsp + 0x58], 0
je 0x1801f3162
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1801f313e
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1801f3139
mov dword [rbp - 0x68], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x68]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f3139
lea rcx, [rbp - 0x18]
call fcn.1800c3cf0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1801f3139
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f3139
call fcn.1800a0c6c
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x80], rbx
xor r9d, r9d
lea r8, [rbp - 0x7c]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x80], eax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800c34a0
mov rcx, qword [rbp + 0x20]
add rcx, 0xfffffffffffffff0
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801f3196
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f3196
call fcn.1800a0c6c
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 0x3c]
mov rdx, qword [rsp + 0x60]
cmp rax, rdx
jb 0x1801f3255
mov r10, qword [rsp + 0x48]
test rcx, rcx
je 0x1801f324f
test r10, r10
je 0x1801f3236
mov dword [rbp + 0xa0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xa0]
mov r8d, ecx
mov rdx, qword [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f321f
lea rcx, [rbp - 0x10]
call fcn.1800c3cf0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1801f321f
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f321f
call fcn.1800a0c6c
mov eax, dword [rbp + 0xa0]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x48]
jmp 0x1801f3239
mov rax, rbx
cmp rax, rcx
sete al
mov rcx, rbx
mov qword [rsp + 0x68], rbx
test al, al
je 0x1801f3305
cmp rdx, 0x3c
jbe 0x1801f328f
add rcx, qword [rsp + 0x70]
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rcx + 0x20], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rcx + 0x30], xmm1
mov eax, dword [rbp - 0x28]
mov dword [rcx + 0x38], eax
add qword [rsp + 0x68], 0x3c
add qword [rsp + 0x58], 0x3c
jmp 0x1801f3305
test r10, r10
je 0x1801f3300
mov dword [rbp + 0xa8], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xa8]
mov r8d, 0x3c
lea rdx, [rbp - 0x60]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f32f5
lea rcx, [rbp - 8]
call fcn.1800c3cf0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1801f32f5
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f32f5
call fcn.1800a0c6c
mov ebx, dword [rbp + 0xa8]
test rbx, rbx
js 0x1801f3305
add qword [rsp + 0x58], rbx
mov r8, qword [rbp - 0x70]
test r8, r8
je 0x1801f3320
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1801f3340
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f3340
call fcn.1800a0c6c
nop
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
nop
mov rcx, qword [rbp - 0x78]
call fcn.1800a09c8
nop
mov rax, qword [r14]
mov qword [rbp + 0x38], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801f3376
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x1801f3376
call fcn.1800a0c6c
xor eax, eax
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret