Function at 0x140098c90
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 0x140098fb9
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 0x140098e11
test rax, rax
je 0x140098d4a
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140098d03
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098d03
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 0x140098d55
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140098d43
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098d43
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 0x140098f2f
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140098d87
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098d87
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 0x140098f1c
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 0x140098dfd
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 0x140098dc0
jmp 0x140098f1c
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
test rax, rax
je 0x140098e5e
test al, 1
mov rax, r8
jne 0x140098f50
cmp r8, qword [rbx + 0x10]
jb 0x140098e50
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098e50
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 0x140098e89
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098e89
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 0x140098f2f
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 0x140098f1c
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 0x140098f0d
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 0x140098ed0
test rsi, rsi
je 0x140098f2f
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 0x140098f78
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098f78
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 0x140098fb1
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140098fb1
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 0x140098e8c
mov byte [rcx + 0x3c], 1
add rsp, 0x28
pop r15
pop r14
ret