Function at 0x1800a6f00
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 [0x180333c48]
xor r13d, r13d
test rdi, rdi
je 0x1800a6f4c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1800a6f40
jmp 0x1800a6f78
mov rax, qword [0x180333c78]
mov rcx, rax
test rax, rax
jne 0x1800a6f60
mov rax, r13
jmp 0x1800a6f66
shr rax, 1
dec rax
lea rdi, [0x1802d7730]
test rcx, rcx
cmovne rdi, qword [0x180333c68]
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 0x1800a6fe6
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 0x1800a704b
lea r15, [r14 + 2]
cmp r15, r14
jne 0x1800a6ff5
mov rax, qword [rbp - 0x28]
jmp 0x1800a7036
test r15, r15
jne 0x1800a700b
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov rax, r13
jmp 0x1800a7036
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 0x1800a70ce
cmp rsi, 2
jne 0x1800a7082
test rdi, rdi
movzx ecx, r13w
je 0x1800a7069
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 0x1800a7103
cmp rsi, 4
jne 0x1800a70a7
test rdi, rdi
mov ecx, r13d
je 0x1800a7092
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 0x1800a7103
cmp rsi, 8
jne 0x1800a70ce
test rdi, rdi
mov rcx, r13
je 0x1800a70b8
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 0x1800a7103
test rsi, rsi
jle 0x1800a7103
lea rdx, [rsi + rbx]
lea rcx, [rbp - 0x40]
call fcn.1800a4d20
add rax, rbx
mov r8, rsi
mov rcx, rax
test rdi, rdi
je 0x1800a70f8
mov rdx, rdi
call fcn.180246bc0
jmp 0x1800a70ff
xor edx, edx
call fcn.180247270
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x28]
test r12, r12
je 0x1800a7157
cmp word [r12], 0
je 0x1800a7157
test rbx, rbx
js 0x1800a7157
lea rdx, [0x1802df83c]
mov rcx, r12
call fcn.1802535f4
mov rsi, rax
test rax, rax
je 0x1800a7157
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.180253330
mov rdi, r13
cmp rax, rbx
sete dil
mov rcx, rsi
call fcn.18025004c
jmp 0x1800a715a
mov rdi, r13
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1800a717a
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