Function at 0x14006da20
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
sub rsp, 0x28
mov r15, qword [rcx + 0x20]
mov r14, rcx
cmp r15, qword [rcx + 0x18]
je 0x14006dd49
cmp byte [r15 - 8], 0
mov rax, qword [r15 - 0x10]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
je 0x14006dba1
test rax, rax
je 0x14006dada
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14006da93
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006da93
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x2c
inc qword [rbx + 0x18]
test byte [r14 + 0x48], 1
je 0x14006dae5
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14006dad3
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006dad3
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x20
inc qword [rbx + 0x18]
test byte [r14 + 0x48], 1
jne 0x14006dcbf
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14006db17
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006db17
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0xa
inc qword [rbx + 0x18]
mov rdi, qword [r14]
mov rsi, qword [r14 + 0x20]
sub rsi, qword [r14 + 0x18]
mov eax, dword [r14 + 0x44]
mov rcx, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
movsx ebp, byte [r14 + 0x40]
sub rbx, rcx
shr rsi, 4
imul rsi, rax
cmp rsi, rbx
jbe 0x14006dcac
nop
mov r8, rbx
mov edx, ebp
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
add rcx, rbx
mov qword [rdi + 0x18], rcx
cmp rcx, rax
je 0x14006db8d
mov r9, qword [rdi]
sub rcx, rax
mov r8, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x18], rcx
sub rsi, rbx
mov rbx, qword [rdi + 0x10]
sub rbx, rcx
cmp rsi, rbx
ja 0x14006db50
jmp 0x14006dcac
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
test rax, rax
je 0x14006dbee
test al, 1
mov rax, r8
jne 0x14006dce0
cmp r8, qword [rbx + 0x10]
jb 0x14006dbe0
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006dbe0
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x2c
inc qword [rbx + 0x18]
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14006dc19
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006dc19
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0xa
inc qword [rbx + 0x18]
test byte [r15 - 0x10], 1
jne 0x14006dcbf
mov rdi, qword [r14]
mov rsi, qword [r14 + 0x20]
sub rsi, qword [r14 + 0x18]
mov eax, dword [r14 + 0x44]
mov rcx, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
movsx ebp, byte [r14 + 0x40]
sub rbx, rcx
shr rsi, 4
imul rsi, rax
cmp rsi, rbx
jbe 0x14006dcac
nop word [rax + rax]
mov r8, rbx
mov edx, ebp
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
add rcx, rbx
mov qword [rdi + 0x18], rcx
cmp rcx, rax
je 0x14006dc9d
mov r9, qword [rdi]
sub rcx, rax
mov r8, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x18], rcx
sub rsi, rbx
mov rbx, qword [rdi + 0x10]
sub rbx, rcx
cmp rsi, rbx
ja 0x14006dc60
test rsi, rsi
je 0x14006dcbf
mov r8, rsi
mov edx, ebp
call sub.VCRUNTIME140.dll_memset
add qword [rdi + 0x18], rsi
inc qword [r15 - 0x10]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop r14
ret
cmp r8, qword [rbx + 0x10]
jb 0x14006dd08
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006dd08
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x3a
inc qword [rbx + 0x18]
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14006dd41
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14006dd41
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x20
jmp 0x14006dc1c
mov byte [rcx + 0x3c], 1
add rsp, 0x28
pop r15
pop r14
ret