Function at 0x14006b320
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14006b3bb
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
cmp dword [0x1400cd750], 0xa
jl 0x14006b5f0
mov ecx, dword [0x1400cd754]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006b5f0
mov r14, qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call r14
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call r14
cmp dword [0x1400cd750], 0xa
jl 0x14006b5f0
mov ecx, dword [0x1400cd754]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
jne 0x14006b380
jmp 0x14006b5f0
mov rax, qword [rdi + 0x40]
mov r14, qword [rax]
test r14, r14
je 0x14006b530
test rsi, rsi
jle 0x14006b530
mov rax, qword [rdi + 0x58]
mov eax, dword [rax]
test eax, eax
jle 0x14006b530
movsxd r15, eax
cmp r15, rsi
cmovae r15, rsi
movsxd rbp, r15d
lea rax, [r15 + r15]
mov qword [rsp + 0x28], rax
lea rax, [rbx + r15]
mov qword [rsp + 0x30], rax
xor r13d, r13d
jmp 0x14006b429
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rax, qword [rdi + 0x40]
add qword [rax], rbp
mov rax, qword [rdi + 0x40]
mov r14, qword [rax]
add r13, qword [rsp + 0x28]
lea r12, [rbx + r13]
cmp dword [0x1400cb6c0], 0xa
jl 0x14006b450
mov eax, dword [0x1400cb6c4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14006b478
nop word [rax + rax]
mov rcx, r14
mov rdx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp dword [0x1400cb6c0], 0xa
jl 0x14006b490
mov eax, dword [0x1400cb6c4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14006b490
mov rcx, r14
mov rdx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14006b450
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rax, qword [rdi + 0x40]
add qword [rax], rbp
mov rax, qword [rsp + 0x30]
lea r14, [rax + r13]
cmp dword [0x1400cd750], 0xa
jl 0x14006b540
mov eax, dword [0x1400cd754]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14006b540
mov rax, qword [rdi + 0x40]
mov r12, qword [rax]
cmp dword [0x1400cb6c0], 0xa
jl 0x14006b4f0
mov eax, dword [0x1400cb6c4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14006b520
nop word cs:[rax + rax]
mov rcx, r12
mov rdx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp dword [0x1400cb6c0], 0xa
jl 0x14006b410
mov eax, dword [0x1400cb6c4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14006b410
mov rcx, r12
mov rdx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14006b4f0
mov r14, rbx
mov rbx, rsi
test rbx, rbx
jg 0x14006b552
jmp 0x14006b5ea
mov rbx, rsi
sub rbx, r15
sub rbx, r13
test rbx, rbx
jle 0x14006b5ea
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006b5ea
mov edx, 1
mov rcx, r14
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
cmp dword [0x1400cd750], 0xa
jl 0x14006b5ea
mov eax, dword [0x1400cd754]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14006b5ea
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop word [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, rbx
call r15
sub rbx, rax
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, rbx
call r15
sub rbx, rax
cmp dword [0x1400cd750], 0xa
jl 0x14006b5ea
mov eax, dword [0x1400cd754]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14006b5a0
sub rsi, rbx
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret