Function at 0x140072270
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
mov rsi, qword [rsp + 0x1e0]
mov rax, qword [0x1402840b0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov r14, r8
mov r15, r9
mov rcx, qword [rsi + 0x18]
mov rdi, qword [rax]
mov qword [rsp + 0x168], rdi
xor edi, edi
test rcx, rcx
je 0x140072484
mov rdx, qword [r9 + 0x28]
mov rbx, qword [rdx + 8]
call sym.libvlccore.dll_vlc_strftime
mov rbp, rax
mov rdx, rax
mov rcx, rbx
call sym.libvlccore.dll_vlc_strfinput
mov rcx, rbp
mov rdi, rax
call fcn.14016b5d8
test rdi, rdi
je 0x140072484
mov rcx, rdi
call fcn.14008f150
lea rbp, [rsp + 0xa0]
mov rcx, qword [rsi + 8]
mov rdx, rbp
call sym.libvlccore.dll_vlc_stat
test eax, eax
je 0x1400723c0
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll__strdup
mov qword [rsp + 0x58], rax
mov rcx, rdi
call fcn.14016b5d8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14007249c
lea rdx, [0x140187c79]
call sym.libvlccore.dll_vlc_fopen
test rax, rax
mov rdi, rax
je 0x1400725fd
mov rdx, qword [r14 + 0x10]
mov rcx, qword [r14 + 8]
mov r9, rax
mov r8d, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x140072590
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x1400725ec
mov rbp, qword [rsp + 0x58]
xor eax, eax
mov qword [r14], rbp
mov rdx, qword [0x1402840b0]
mov rsi, qword [rsp + 0x168]
xor rsi, qword [rdx]
jne 0x140072651
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rsp + 0xa6]
and cx, 0xf000
cmp cx, 0x4000
jne 0x14007230f
cmp byte [rsi], 0
je 0x1400724b1
mov ebx, dword [rsi + 4]
lea r13, [rsp + 0x58]
lea r12, str._s_s_05d._s
jmp 0x140072414
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call sym.libvlccore.dll_vlc_stat
test eax, eax
jne 0x1400724a5
mov rcx, qword [rsp + 0x58]
add ebx, 1
call fcn.14016b5d8
mov rcx, qword [rsi + 0x10]
mov dword [rsp + 0x20], ebx
mov r9, rdi
mov rdx, r12
mov qword [rsp + 0x28], rcx
mov r8, qword [rsi + 8]
mov rcx, r13
call fcn.140072030
test eax, eax
jns 0x1400723f2
lea rbx, str.vout_snapshot_SaveImage
mov rcx, rdi
call fcn.14016b5d8
lea rax, str.could_not_save_snapshot
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_video_output_snapshot.c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xe6
mov edx, 1
mov qword [rsp + 0x30], rax
mov rcx, r15
call sym.libvlccore.dll_vlc_Log
mov eax, 0xffffffff
jmp 0x14007238b
lea rcx, str.vlcsnap_
call sub.msvcrt.dll__strdup
test rax, rax
mov rdi, rax
jne 0x1400722f3
lea rbx, str.vout_snapshot_SaveImage
jmp 0x140072446
mov rsi, qword [rsp + 0x48]
mov dword [rsi], ebx
jmp 0x14007231d
lea r12, [rsp + 0x60]
lea r13, [rsp + 0x70]
mov edx, 1
mov rcx, r12
call fcn.1400c6410
mov rdx, r12
mov rcx, r13
call qword [0x140171690]
test eax, eax
jne 0x140072560
lea rbx, [rsp + 0xe0]
lea r8, str._Y__m__d__Hh_Mm_Ss
mov r9, r13
mov edx, pe_nt_image_headers64
mov rcx, rbx
call sub.msvcrt.dll_strftime
test rax, rax
je 0x140072571
mov r10d, dword [rsp + 0x68]
mov r11d, 0x431bde83
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov eax, r10d
sar r10d, 0x1f
mov qword [rsp + 0x30], r9
imul r11d
mov r9, rdi
sar edx, 0x12
sub edx, r10d
mov dword [rsp + 0x28], edx
lea rdx, str._s_s_s_03lu._s
call fcn.140072030
test eax, eax
jns 0x14007231d
mov qword [rsp + 0x58], 0
jmp 0x14007231d
mov rdx, r12
mov rcx, r13
call qword [0x140171680]
jmp 0x1400724dc
mov r8d, 0x72
mov dword [rsp + 0xe0], 0x6f727265
mov word [rsp + 0xe4], r8w
jmp 0x140072500
mov r8, qword [rsp + 0x58]
lea r9, str.Failed_to_write_to__s
lea rbx, str.vout_snapshot_SaveImage
mov edx, 1
mov rcx, r15
mov dword [rsp + 0x20], 0xd6
mov qword [rsp + 0x30], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_video_output_snapshot.c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], r8
mov r8, qword [str.main]
call sym.libvlccore.dll_vlc_Log
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rcx, qword [rsp + 0x58]
call fcn.14016b5d8
jmp 0x140072446
mov rcx, qword [rsp + 0x58]
call fcn.14016b5d8
xor eax, eax
jmp 0x14007238b
mov r10, qword [rsp + 0x58]
lea r11, str.Failed_to_open__s
lea rbx, str.vout_snapshot_SaveImage
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_video_output_snapshot.c
mov rcx, r15
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rbx
mov edx, 1
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x20], 0xd1
call sym.libvlccore.dll_vlc_Log
mov rcx, qword [rsp + 0x58]
call fcn.14016b5d8
jmp 0x140072446
call fcn.1400c4db0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, rcx
ret