Function at 0x1400cc970
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 r14, rdx
mov rdi, qword [rcx + 0x18]
xor r15d, r15d
test rdi, rdi
je 0x1400cc9b1
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400cc9a5
jmp 0x1400cc9d0
mov rax, qword [rcx + 0x48]
test rax, rax
jne 0x1400cc9c6
mov rax, r15
lea rdi, [0x1401eac10]
jmp 0x1400cc9d0
shr rax, 1
dec rax
mov rdi, qword [rcx + 0x38]
lea rsi, [rax + rax]
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x40], rax
lea r12, vtable.CVolObject.0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
lea r13, vtable.CVolMem.0
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x10], 0x40
mov rax, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
sub rax, rbx
cmp rax, 2
jl 0x1400cca3d
mov ecx, 0xfeff
mov rax, qword [rbp - 0x28]
mov word [rbx + rax], cx
mov rbx, qword [rbp - 0x18]
add rbx, 2
mov qword [rbp - 0x18], rbx
jmp 0x1400cca8c
lea rdx, [rbx + 2]
cmp rdx, rbx
jne 0x1400cca4c
mov rax, qword [rbp - 0x28]
jmp 0x1400cca7f
test rdx, rdx
jne 0x1400cca76
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400cca65
lea rcx, [rbp - 0x40]
mov rax, qword [rbp - 0x40]
call qword [rax + 0x18]
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r15
mov rax, r15
jmp 0x1400cca7f
lea rcx, [rbp - 0x40]
call fcn.1400c6490
mov ecx, 0xfeff
mov word [rax + rbx], cx
mov rbx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
sub rax, rbx
cmp rax, rsi
jl 0x1400ccb0f
cmp rsi, 2
jne 0x1400ccac3
test rdi, rdi
movzx ecx, r15w
je 0x1400ccaaa
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 0x1400ccb44
cmp rsi, 4
jne 0x1400ccae8
test rdi, rdi
mov ecx, r15d
je 0x1400ccad3
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 0x1400ccb44
cmp rsi, 8
jne 0x1400ccb0f
test rdi, rdi
mov rcx, r15
je 0x1400ccaf9
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 0x1400ccb44
test rsi, rsi
jle 0x1400ccb44
lea rdx, [rsi + rbx]
lea rcx, [rbp - 0x40]
call fcn.1400c6510
add rax, rbx
mov r8, rsi
mov rcx, rax
test rdi, rdi
je 0x1400ccb39
mov rdx, rdi
call fcn.1401b2830
jmp 0x1400ccb40
xor edx, edx
call fcn.1401b2ee0
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x28]
test r14, r14
je 0x1400ccb97
cmp word [r14], 0
je 0x1400ccb97
test rbx, rbx
js 0x1400ccb97
lea rdx, [0x1402015d4]
mov rcx, r14
call fcn.1401bd7cc
mov rsi, rax
test rax, rax
je 0x1400ccb97
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1401bbb30
mov rdi, r15
cmp rax, rbx
sete dil
mov rcx, rsi
call fcn.1401bb2cc
jmp 0x1400ccb9a
mov rdi, r15
mov qword [rbp - 0x40], r13
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400ccbb3
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x40], r12
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