Function at 0x1801f28b0
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 - 0x90]
sub rsp, 0x190
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov r14, rdx
mov r13, rcx
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
xor r8d, r8d
lea rdx, [rbp - 0x70]
call fcn.1801f3670
mov r12d, dword [rbp - 0x68]
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1800e7430
nop
lea rax, vtable.juce::OutputStream.0
mov qword [rsp + 0x30], rax
lea rax, [0x180375c60]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x38]
call fcn.18001a440
nop
lea rax, vtable.juce::FileOutputStream.0
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
lea rsi, [rax - 0x10]
lea rax, [0x1802bccb0]
lea r15d, [rbx + 1]
cmp rsi, rax
je 0x1801f2962
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 0x1801f29c9
mov eax, edi
lock xadd dword [rsi], eax
dec eax
cmp eax, edi
jne 0x1801f29c9
mov rcx, rsi
call fcn.1800a0c6c
lea rcx, [0x1802bccb0]
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
je 0x1801f2a43
mov rax, qword [r14]
mov qword [rbp - 0x38], rax
add rax, 0xfffffffffffffff0
cmp rax, rcx
je 0x1801f29e8
lock xadd dword [rax], r15d
lea r9, [rbp - 0x38]
mov edx, 3
lea r8d, [rdx + 3]
mov rcx, r13
call fcn.1801f3dd0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
nop
mov rcx, qword [rbp - 0x70]
call fcn.1800a09c8
nop
mov rcx, qword [r14]
mov qword [rbp - 0x18], rcx
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1801f2a3c
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x1801f2a3c
call fcn.1800a0c6c
mov eax, ebx
jmp 0x1801f2de5
xor edx, edx
mov r8d, 0xa0
lea rcx, [rbp - 0x10]
call fcn.1800a7360
mov dword [rbp - 0x10], 0x4b6e6343
lea edx, [r12 + 0x98]
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 - 0xc], eax
mov dword [rbp - 8], 0x68434246
mov dword [rbp - 4], 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], eax
mov dword [rbp + 4], 0x1000000
mov dword [rbp + 8], 0x20000
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 + 0x8c], eax
cmp qword [rsp + 0x58], 0
je 0x1801f2bac
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1801f2b88
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1801f2b83
mov dword [rbp - 0x78], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x78]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f2b83
lea rcx, [rbp - 0x40]
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 - 0x40]
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1801f2b83
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f2b83
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 - 0x48]
lea rcx, [rsp + 0x30]
call fcn.1800c34a0
mov rcx, qword [rbp - 0x48]
add rcx, 0xfffffffffffffff0
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801f2be0
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f2be0
call fcn.1800a0c6c
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 0xa0]
mov rdx, qword [rsp + 0x60]
cmp rax, rdx
jb 0x1801f2ca5
mov r10, qword [rsp + 0x48]
test rcx, rcx
je 0x1801f2c9c
test r10, r10
je 0x1801f2c83
mov dword [rbp + 0xe0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xe0]
mov r8d, ecx
mov rdx, qword [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f2c6c
lea rcx, [rbp - 0x60]
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 - 0x60]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1801f2c6c
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f2c6c
call fcn.1800a0c6c
mov eax, dword [rbp + 0xe0]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x48]
jmp 0x1801f2c86
mov rax, rbx
cmp rax, rcx
sete al
mov rcx, rbx
mov qword [rsp + 0x68], rbx
test al, al
je 0x1801f2d92
cmp rdx, 0xa0
jbe 0x1801f2d1c
add rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x10]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm0
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx + 0x80], xmm1
movups xmm0, xmmword [rax + 0x90]
movups xmmword [rcx + 0x90], xmm0
add qword [rsp + 0x68], 0xa0
add qword [rsp + 0x58], 0xa0
jmp 0x1801f2d92
test r10, r10
je 0x1801f2d8d
mov dword [rbp + 0xe8], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xe8]
mov r8d, 0xa0
lea rdx, [rbp - 0x10]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801f2d82
lea rcx, [rbp - 0x50]
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 - 0x50]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1801f2d82
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f2d82
call fcn.1800a0c6c
mov ebx, dword [rbp + 0xe8]
test rbx, rbx
js 0x1801f2d92
add qword [rsp + 0x58], rbx
mov r8, qword [rbp - 0x68]
test r8, r8
je 0x1801f2dad
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x30]
call fcn.1800e3a90
nop
mov rcx, qword [rbp - 0x70]
call fcn.1800a09c8
nop
mov rax, qword [r14]
mov qword [rbp - 0x20], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801f2de3
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x1801f2de3
call fcn.1800a0c6c
xor eax, eax
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret