Function at 0x1400ba660
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 r12, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je case.default.0x1400ba693
mov rcx, rbx
mov rdx, r12
mov r8, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
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 rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400ba72a
test r14, r14
jle 0x1400ba72a
mov rax, qword [rbx + 0x58]
mov eax, dword [rax]
test eax, eax
jle 0x1400ba72a
movsxd rsi, eax
cmp rsi, r14
cmovg rsi, r14
movsxd rdi, esi
nop word cs:[rax + rax]
mov rdx, r12
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
cmp dword [0x1406ce4bc], 0xa
jl 0x1400ba734
mov eax, dword [0x1406ce4b8]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400ba734
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
mov rdx, r12
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
jmp 0x1400ba6d0
mov r15, r14
test r15, r15
jg 0x1400ba742
jmp 0x1400ba762
mov r15, r14
sub r15, rsi
add r12, rsi
test r15, r15
jle 0x1400ba762
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400ba762
mov edx, 1
mov rcx, r12
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r15, rax
sub r14, r15
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea ecx, [rbp + 7]
mov dword [rbp + 7], 0x50f350a9
mov dword [rbp + 0xb], 0x50ea50de
mov dword [rbp + 0xf], 0x50cc50db
mov dword [rbp + 0x13], 0x50dd50c8
mov dword [rbp + 0x17], 0x50ef50cc
mov dword [rbp + 0x1b], 0x50c550c0
mov dword [rbp + 0x1f], 0x50cc
mov word [rbp + 0x23], di
call 0x1404f32a0
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x69]
call 0x1404f3198
lea rcx, [rbp - 0x69]
mov rax, rbx
call qword [0x140501050]
mov rcx, qword [0x1406673c0]
mov qword [rcx + 0x1b8], rax
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x59], 0x5155510f
mov dword [rbp - 0x55], 0x515d5178
js 0x1404f3ccc
pop rbp
push rcx
mov dword [rbp - 0x51], 0x516e516a
push 0x51
outsb dx, byte [rsi]
push rcx
mov dword [rbp - 0x4d], 0x5149516b
imul edx, dword [rcx + 0x49], 0x51
mov dword [rbp - 0x49], 0x51635166
push cx
invalid
push rcx
mov dword [rbp - 0x45], 0x516a
mov word [rbp - 0x41], di
call 0x1404f32a0
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call 0x1404f3198
lea rcx, [rbp - 0x69]
mov rax, rbx
call qword [0x140501050]
mov rcx, qword [0x1406673c0]
mov qword [rcx + 0x1b0], rax
lea rcx, [rbp - 0x19]
mov dword [rbp - 0x19], 0x68f06d5
mov dword [rbp - 0x15], 0x68206a2
mov dword [rbp - 0x11], 0x6bc06a7
mov dword [rbp - 0xd], 0x6b006a1
mov dword [rbp - 9], 0x6bc0693
mov qword [rbp - 5], 0x6b006b9
call 0x1404f32a0
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x69]
call 0x1404f3198
lea rcx, [rbp - 0x69]
mov rax, rbx
call qword [0x140501050]
mov rcx, qword [0x1406673c0]
mov qword [rcx + 0x1a8], rax
lea rcx, [rbp + 0x27]
mov dword [rbp + 0x27], 0x9bf09ed
mov dword [rbp + 0x2b], 0x9810999
mov dword [rbp + 0x2f], 0x98809aa
mov dword [rbp + 0x33], 0x9bb0999
mov dword [rbp + 0x37], 0x99f0988
mov dword [rbp + 0x3b], 0x984099e
mov qword [rbp + 0x3f], 0x9830982
call 0x1404f32a0
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x69]
call 0x1404f3198
lea rcx, [rbp - 0x69]
mov rax, rbx
call qword [0x140501050]
mov rcx, qword [0x1406673c0]
mov qword [rcx + 0xf0], rax
lea eax, [rdi + 1]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call 0x140500308
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret