Function at 0x1400abb70
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 0x1400abe99
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 0x1400abcf1
test rax, rax
je 0x1400abc2a
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400abbe3
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abbe3
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 0x1400abc35
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400abc23
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abc23
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 0x1400abe0f
mov rbx, qword [r14]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400abc67
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abc67
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 0x1400abdfc
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 0x1400abcdd
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 0x1400abca0
jmp 0x1400abdfc
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x18]
test rax, rax
je 0x1400abd3e
test al, 1
mov rax, r8
jne 0x1400abe30
cmp r8, qword [rbx + 0x10]
jb 0x1400abd30
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abd30
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 0x1400abd69
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abd69
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 0x1400abe0f
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 0x1400abdfc
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 0x1400abded
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 0x1400abdb0
test rsi, rsi
je 0x1400abe0f
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 0x1400abe58
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abe58
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 0x1400abe91
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400abe91
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 0x1400abd6c
mov byte [rcx + 0x3c], 1
add rsp, 0x28
pop r15
pop r14
ret