Function at 0x1800af7e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12, rdx
mov rdi, qword [0x18033ee88]
xor r13d, r13d
test rdi, rdi
je 0x1800af82c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1800af820
jmp 0x1800af858
mov rax, qword [0x18033eeb8]
mov rcx, rax
test rax, rax
jne 0x1800af840
mov rax, r13
jmp 0x1800af846
shr rax, 1
dec rax
lea rdi, [0x1802e0740]
test rcx, rcx
cmovne rdi, qword [0x18033eea8]
lea rsi, [rax + rax]
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x40], rax
lea r15, vtable.CVolObject.0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], 0x40
mov rax, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
sub rax, r14
cmp rax, 2
jl 0x1800af8c6
mov ecx, 0xfeff
mov rax, qword [rbp - 0x28]
mov word [r14 + rax], cx
mov rbx, qword [rbp - 0x18]
add rbx, 2
mov qword [rbp - 0x18], rbx
jmp 0x1800af92b
lea r15, [r14 + 2]
cmp r15, r14
jne 0x1800af8d5
mov rax, qword [rbp - 0x28]
jmp 0x1800af916
test r15, r15
jne 0x1800af8eb
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov rax, r13
jmp 0x1800af916
mov rbx, qword [rbp - 0x10]
mov rax, r15
cqo
idiv rbx
sub rbx, rdx
add rbx, r15
mov rdx, rbx
lea rcx, [rbp - 0x40]
mov rax, qword [rbp - 0x40]
call qword [rax]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], r15
mov ecx, 0xfeff
mov word [rax + r14], cx
mov rbx, qword [rbp - 0x18]
lea r15, vtable.CVolObject.0
mov rax, qword [rbp - 0x20]
sub rax, rbx
cmp rax, rsi
jl 0x1800af9ae
cmp rsi, 2
jne 0x1800af962
test rdi, rdi
movzx ecx, r13w
je 0x1800af949
movzx ecx, word [rdi]
mov rax, qword [rbp - 0x28]
mov word [rbx + rax], cx
mov rbx, qword [rbp - 0x18]
add rbx, 2
mov qword [rbp - 0x18], rbx
jmp 0x1800af9e3
cmp rsi, 4
jne 0x1800af987
test rdi, rdi
mov ecx, r13d
je 0x1800af972
mov ecx, dword [rdi]
mov rax, qword [rbp - 0x28]
mov dword [rbx + rax], ecx
mov rbx, qword [rbp - 0x18]
add rbx, 4
mov qword [rbp - 0x18], rbx
jmp 0x1800af9e3
cmp rsi, 8
jne 0x1800af9ae
test rdi, rdi
mov rcx, r13
je 0x1800af998
mov rcx, qword [rdi]
mov rax, qword [rbp - 0x28]
mov qword [rbx + rax], rcx
mov rbx, qword [rbp - 0x18]
add rbx, 8
mov qword [rbp - 0x18], rbx
jmp 0x1800af9e3
test rsi, rsi
jle 0x1800af9e3
lea rdx, [rsi + rbx]
lea rcx, [rbp - 0x40]
call fcn.1800ad600
add rax, rbx
mov r8, rsi
mov rcx, rax
test rdi, rdi
je 0x1800af9d8
mov rdx, rdi
call fcn.18024f4a0
jmp 0x1800af9df
xor edx, edx
call fcn.18024fb50
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x28]
test r12, r12
je 0x1800afa37
cmp word [r12], 0
je 0x1800afa37
test rbx, rbx
js 0x1800afa37
lea rdx, [0x1802e8c74]
mov rcx, r12
call fcn.18025bed4
mov rsi, rax
test rax, rax
je 0x1800afa37
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.18025bc10
mov rdi, r13
cmp rax, rbx
sete dil
mov rcx, rsi
call fcn.18025892c
jmp 0x1800afa3a
mov rdi, r13
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1800afa5a
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x40], r15
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret