Function at 0x1400078a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x1400078ec
mov rax, rsi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
mov rdi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r8
call rdi
movsxd rdx, dword [rax]
lea rbp, [rsp + 0x30]
mov rcx, rbp
call fcn.140004b20
mov rax, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r13, rax
call rdi
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov rdx, rax
mov rcx, rbp
call fcn.140010800
mov r14, qword [rsp + 0x30]
lea r12, [rsp + 0x70]
mov rax, qword [rsp + 0x38]
mov rcx, r12
lea rdx, [r15 + r14 + 0xa]
mov qword [rsp + 0x28], rax
mov rdi, rax
call fcn.14000c590
movdqa xmm0, xmmword [0x1400651b0]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400061c0
mov rax, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rax
call fcn.1400061c0
movdqa xmm1, xmmword [0x140065190]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm1
call fcn.1400061c0
mov rax, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rax
call fcn.1400061c0
movdqa xmm2, xmmword [0x140065170]
mov rdx, rbp
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm2
call fcn.1400061c0
movdqa xmm3, xmmword [rsp + 0x70]
mov rcx, rbx
movaps xmmword [rsp + 0x60], xmm3
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
lea rcx, [rsp + 0x60]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
call fcn.14000bdb0
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
call fcn.140006440
mov rcx, rax
xor edi, edi
mov rax, rdx
xor r13d, r13d
sub rax, 1
jne 0x140007a9c
call sub.libstdc_6.dll___cxa_begin_catch
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140059e38
mov rax, qword [rsp + 0x48]
xor ecx, ecx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
test rax, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdx
je 0x140007a6d
lea rcx, [rsp + 0x58]
call fcn.140059e50
cmp qword [rsp + 0x50], 0
je 0x140007a7d
mov rcx, rbx
call fcn.140059e50
call sub.libstdc_6.dll___cxa_end_catch
jmp 0x140007ae5
call sub.libstdc_6.dll___cxa_begin_catch
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140059e38
xor eax, eax
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
test rax, rax
mov qword [rsp + 0x58], rax
je 0x140007ad8
lea rcx, [rsp + 0x58]
call fcn.140059e50
cmp qword [rsp + 0x50], 0
jne 0x140007b49
call sub.libstdc_6.dll___cxa_end_catch
test rdi, rdi
je 0x140007af8
test byte [rdi + 7], 0x40
jne 0x140007af8
mov rcx, rdi
call fcn.14000b620
test r13, r13
je 0x140007b0c
test byte [r13 + 7], 0x40
jne 0x140007b0c
mov rcx, r13
call fcn.14000b620
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140007b21
test byte [rcx + 7], 0x40
jne 0x140007b21
call fcn.14000b620
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400078d5
lea rsi, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rcx, rsi
call fcn.140059e48
mov rcx, rsi
call fcn.140059e30
mov rcx, rbx
call fcn.140059e50
jmp 0x140007ae0