Function at 0x14006f310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbp, qword [0x1400e6b50]
lea rbx, [rcx + 0x68]
mov rax, rbx
mov rsi, rcx
shr rax, 3
mov rdi, r8
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f355
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f355
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov rdx, qword [rsp + 0x68]
cmp qword [rbx], 0
je 0x14006f370
mov r8, rdi
mov rcx, rsi
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
jmp 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]
mov qword [rsp + 0x60], r12
mov r12, rdi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
lea r14, [rsi + 0x40]
mov rax, r14
mov qword [rsp + 0x20], r15
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f3ae
movzx eax, r14b
and al, 7
add al, 7
cmp al, cl
jl 0x14006f3ae
mov rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov rbx, qword [r14]
mov rax, rbx
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f3d3
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f3d3
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov r13, qword [rbx]
lea rbx, [rsi + 0x58]
test r13, r13
je 0x14006f42c
mov rax, rbx
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f401
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f401
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov r15, qword [rbx]
mov rax, r15
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f427
movzx eax, r15b
and al, 7
add al, 3
cmp al, cl
jl 0x14006f427
mov rcx, r15
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load4
mov eax, dword [r15]
jmp 0x14006f42e
xor eax, eax
movsxd r15, eax
test rdi, rdi
jle 0x14006f58f
test eax, eax
jle 0x14006f547
mov rdx, qword [rsp + 0x68]
cmp rdi, r15
mov rcx, r13
cmovl r15, rdi
mov r8, r15
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_memcpy
mov r13, qword [rsp + 0x68]
mov rax, rbx
shr rax, 3
add r13, r15
sub rdi, r15
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f486
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f486
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov rbx, qword [rbx]
mov rax, rbx
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f4ab
movzx eax, bl
and al, 7
add al, 3
cmp al, cl
jl 0x14006f4ab
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load4
mov rax, rbx
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f4cd
movzx eax, bl
and al, 7
add al, 3
cmp al, cl
jl 0x14006f4cd
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_store4
sub dword [rbx], r15d
mov rax, r14
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f4f3
movzx eax, r14b
and al, 7
add al, 7
cmp al, cl
jl 0x14006f4f3
mov rcx, r14
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov rbx, qword [r14]
mov rax, rbx
movsxd r14, r15d
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f51b
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f51b
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov rax, rbx
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f53d
movzx eax, bl
and al, 7
add al, 7
cmp al, cl
jl 0x14006f53d
mov rcx, rbx
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_store8
add qword [rbx], r14
test rdi, rdi
jle 0x14006f58f
jmp 0x14006f54c
mov r13, qword [rsp + 0x68]
sub rsi, 0xffffffffffffff80
mov rax, rsi
shr rax, 3
movzx ecx, byte [rax + rbp]
test cl, cl
je 0x14006f573
movzx eax, sil
and al, 7
add al, 7
cmp al, cl
jl 0x14006f573
mov rcx, rsi
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
mov r9, qword [rsi]
test r9, r9
je 0x14006f58f
mov r8, rdi
mov edx, 1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rdi, rax
mov r15, qword [rsp + 0x20]
sub r12, rdi
mov r14, qword [rsp + 0x28]
mov rax, r12
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret