Function at 0x140006d90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r8
mov rbx, rdx
mov r15, rcx
mov edx, dword [0x14000f828]
mov eax, dword [0x14000f824]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
sete r8b
cmp eax, 0xa
setl dl
or dl, r8b
cmp qword [r15 + 0x68], 0
je 0x140006dd9
test dl, dl
je 0x140006e7c
jmp 0x140006e4b
mov rdi, qword [r15 + 0x40]
mov rdi, qword [rdi]
test rdi, rdi
je 0x140006e14
test r14, r14
jle 0x140006e14
mov rsi, qword [r15 + 0x58]
mov esi, dword [rsi]
test esi, esi
jle 0x140006e14
movsxd rsi, esi
cmp rsi, r14
cmovg rsi, r14
test dl, dl
je 0x140006f1d
cmp dword [0x14000f830], 0xa
jge 0x140006e8d
jmp 0x140006e9e
mov r12, rbx
mov rdi, r14
test ecx, ecx
sete cl
cmp eax, 0xa
setl al
test rdi, rdi
jle 0x140006e43
mov rsi, qword [r15 + 0x80]
test rsi, rsi
je 0x140006e43
or al, cl
je 0x140006f71
jmp 0x140006f3d
mov rcx, rdi
jmp 0x140006f87
mov rcx, r15
mov rdx, rbx
mov r8, r14
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 [0x14000f824], 0xa
jl 0x140006f8d
mov ecx, dword [0x14000f828]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140006f8d
mov rcx, r15
mov rdx, rbx
mov r8, r14
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]
jmp 0x140006e4b
mov eax, dword [0x14000f82c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x140006ec6
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp dword [0x14000f830], 0xa
jl 0x140006ed6
mov eax, dword [0x14000f82c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140006ed6
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140006e9e
mov rax, qword [r15 + 0x58]
sub dword [rax], esi
mov rax, qword [r15 + 0x40]
movsxd rcx, esi
add qword [rax], rcx
lea r12, [rbx + rsi]
mov rdi, r14
sub rdi, rsi
mov edx, dword [0x14000f828]
mov eax, dword [0x14000f824]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
cmp eax, 0xa
jl 0x140006e1a
test ecx, ecx
je 0x140006e1a
mov rax, qword [r15 + 0x40]
mov rdi, qword [rax]
cmp dword [0x14000f830], 0xa
jl 0x140006f9b
mov eax, dword [0x14000f82c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x140006fc3
jmp 0x140006f9b
mov edx, 1
mov rcx, r12
mov r8, rdi
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
sub rcx, rax
cmp dword [0x14000f824], 0xa
jl 0x140006f87
mov eax, dword [0x14000f828]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x140006f87
mov edx, 1
mov rcx, r12
mov r8, rdi
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140006f3d
sub r14, rcx
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp dword [0x14000f830], 0xa
jl 0x140006fd3
mov eax, dword [0x14000f82c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140006fd3
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140006f9b
mov rax, qword [r15 + 0x58]
sub dword [rax], esi
mov rax, qword [r15 + 0x40]
movsxd rcx, esi
add qword [rax], rcx
mov rax, qword [r15 + 0x40]
mov rdi, qword [rax]
cmp dword [0x14000f830], 0xa
jge 0x140006e8d
jmp 0x140006e9e