Function at 0x1400a0120
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x208
mov rbp, qword [0x1402840b0]
mov rdi, qword [rcx + 0x38]
mov rbx, rcx
mov r12, rdx
mov r13, r8
mov rsi, r9
mov rax, qword [rbp]
mov qword [rsp + 0x1f8], rax
xor eax, eax
test rdi, rdi
je 0x14009f892
mov eax, dword [r9]
cmp dword [rdi + 0x144], eax
je 0x14009fb00
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14009f86d
mov rcx, rdi
call sym.libvlccore.dll_module_unneed
lea rcx, [rdi + 0x38]
call sym.libvlccore.dll_es_format_Clean
lea rcx, [rdi + 0x140]
call sym.libvlccore.dll_es_format_Clean
mov rcx, rdi
call sym.libvlccore.dll_vlc_object_release
mov qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x28]
call sym.libvlccore.dll_sout_EncoderCreate
test rax, rax
mov rdi, rax
je 0x14009fde0
lea r15, [rdi + 0x38]
mov qword [rdi + 0x28], 0
mov rdx, r13
mov rcx, r15
call sym.libvlccore.dll_es_format_InitFromVideo
mov r8d, dword [rdi + 0x84]
test r8d, r8d
je 0x14009fb25
mov r9d, dword [rdi + 0x88]
test r9d, r9d
je 0x14009fb25
mov r10d, dword [rdi + 0x18c]
test r10d, r10d
je 0x14009fb25
mov r11d, dword [rdi + 0x190]
test r11d, r11d
je 0x14009fb25
mov r14d, dword [rsi + 0x20]
test r14d, r14d
je 0x14009f960
mov edx, dword [rsi + 0x24]
test edx, edx
je 0x14009f960
mov ecx, dword [r13 + 0x24]
mov eax, dword [r13 + 0x20]
mov r8d, r14d
mov r9d, edx
imul r8d, ecx
imul r9d, eax
cmp r8d, r9d
je 0x14009f960
imul rax, rdx
mov r10, rax
mov eax, dword [r13 + 4]
imul rax, r10
cqo
idiv rcx
cqo
idiv r14
mov dword [rdi + 0x74], eax
mov eax, dword [r13 + 0x14]
imul rax, r10
cqo
idiv rcx
cqo
idiv r14
mov dword [rdi + 0x84], eax
nop dword [rax]
lea r14, [rdi + 0x140]
mov rdx, rsi
mov dword [rdi + 0x98], 0x19
mov dword [rdi + 0x9c], 1
mov rcx, r14
call sym.libvlccore.dll_es_format_InitFromVideo
mov esi, dword [rdi + 0x74]
mov eax, dword [rdi + 0x78]
lea rdx, [0x140199715]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rdi + 0x17c], esi
mov dword [rdi + 0x180], eax
call sym.libvlccore.dll_module_need
test rax, rax
mov qword [rdi + 0x28], rax
je 0x14009fd6b
mov r15d, dword [rdi + 0x3c]
mov dword [rdi + 0x70], r15d
mov qword [rbx + 0x38], rdi
mov rdx, qword [r13]
cmp qword [rdi + 0x70], rdx
je 0x14009fb71
mov rdi, qword [rbx + 0x40]
lea r14, [rsp + 0xf0]
test rdi, rdi
je 0x14009fa41
mov edx, dword [rdi + 0x70]
cmp edx, dword [r13]
lea r14, [rsp + 0xf0]
jne 0x14009fa0b
mov rsi, qword [rbx + 0x38]
mov r8d, dword [rsi + 0x70]
cmp dword [rdi + 0x178], r8d
je 0x14009fc14
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14009fa1c
mov rcx, rdi
call sym.libvlccore.dll_module_unneed
lea rcx, [rdi + 0x38]
call sym.libvlccore.dll_es_format_Clean
lea rcx, [rdi + 0x140]
call sym.libvlccore.dll_es_format_Clean
mov rcx, rdi
call sym.libvlccore.dll_vlc_object_release
mov qword [rbx + 0x40], 0
mov r8d, dword [r13]
mov edx, 1
mov rcx, r14
lea rdi, [rsp + 0x128]
mov rsi, r13
call sym.libvlccore.dll_es_format_Init
mov r9, qword [rbx + 0x38]
mov ecx, 0x16
mov rdx, r14
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rbx + 0x28]
lea r8, [r9 + 0x70]
call fcn.14009f690
test rax, rax
mov qword [rbx + 0x40], rax
je 0x14009fc0c
mov rcx, r12
call sym.libvlccore.dll_picture_Hold
mov r15, qword [rbx + 0x40]
mov rdx, r12
mov rcx, r15
call qword [r15 + 0x260]
test rax, rax
mov r14, rax
je 0x14009fbd0
mov r12, qword [rbx + 0x38]
mov rdx, rax
mov rcx, r12
call qword [r12 + 0x248]
mov rcx, r14
mov r12, rax
call sym.libvlccore.dll_picture_Release
test r12, r12
je 0x14009fbd0
mov rbx, qword [rsp + 0x1f8]
xor rbx, qword [rbp]
mov rax, r12
jne 0x14009fdf0
add rsp, 0x208
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r9 + 4]
cmp dword [rdi + 0x17c], edx
jne 0x14009f85c
mov ecx, dword [r9 + 8]
cmp dword [rdi + 0x180], ecx
jne 0x14009f85c
jmp 0x14009f9c6
mov r11d, dword [rsi + 4]
test r11d, r11d
je 0x14009f960
mov r14d, dword [rsi + 8]
test r14d, r14d
je 0x14009f960
mov dword [rdi + 0x74], r11d
mov dword [rdi + 0x78], r14d
mov ecx, dword [rsi + 0x14]
test ecx, ecx
je 0x14009fd50
mov r8d, dword [rsi + 0x18]
test r8d, r8d
je 0x14009fd50
mov dword [rdi + 0x84], ecx
mov dword [rdi + 0x88], r8d
jmp 0x14009f960
mov r11d, dword [r13 + 8]
cmp dword [rdi + 0x78], r11d
jne 0x14009f9d4
mov ecx, dword [rdi + 0x70]
lea r8d, [rcx - 0x35315652]
and r8d, 0xfeffffff
je 0x14009fce0
cmp ecx, 0x34325652
sete r9b
cmp ecx, 0x32335652
sete r10b
or r9b, r10b
jne 0x14009fce0
mov rdx, r12
mov rcx, rdi
call qword [rdi + 0x248]
mov r12, rax
jmp 0x14009fac8
mov rcx, qword [rbx + 0x28]
lea r10, str.ImageWrite
lea rbx, str.no_image_encoded
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_misc_image.c
mov dword [rsp + 0x20], 0x1bb
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r10
mov edx, 3
call sym.libvlccore.dll_vlc_Log
xor r12d, r12d
jmp 0x14009fad1
lea r9d, [rdx - 0x35315652]
and r9d, 0xfeffffff
je 0x14009fc60
cmp edx, 0x32335652
sete r10b
cmp edx, 0x34325652
sete r15b
or r10b, r15b
jne 0x14009fc60
mov r13d, dword [rsi + 0x3c]
mov dword [rdi + 0x3c], edx
add rsi, 0x70
lea rdi, [rdi + 0x178]
mov ecx, 0x16
mov dword [rdi - 0x34], r13d
rep movsq qword [rdi], qword [rsi]
jmp 0x14009fa86
lea rdx, [rsp + 0x40]
lea r14, [rsp + 0xf0]
mov eax, 0x16
mov rcx, rax
lea rsi, [rdi + 0x70]
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
mov rdi, r14
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
mov rcx, rdx
call sym.libvlccore.dll_video_format_FixRgb
mov rcx, r14
call sym.libvlccore.dll_video_format_FixRgb
mov r11, qword [rsp + 0x120]
cmp qword [rsp + 0x70], r11
mov rdi, qword [rbx + 0x40]
jne 0x14009fa0b
mov r8d, dword [rsp + 0x128]
cmp dword [rsp + 0x78], r8d
jne 0x14009fa0b
test rdi, rdi
je 0x14009fa41
mov edx, dword [r13]
mov rsi, qword [rbx + 0x38]
jmp 0x14009fc3d
lea r15, [rsp + 0x40]
lea r14, [rsp + 0xf0]
mov eax, 0x16
mov rcx, rax
lea rsi, [rdi + 0x70]
mov rdi, r15
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
mov rdi, r14
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
mov rcx, r15
call sym.libvlccore.dll_video_format_FixRgb
mov rcx, r14
call sym.libvlccore.dll_video_format_FixRgb
mov rdx, qword [rsp + 0x120]
cmp qword [rsp + 0x70], rdx
jne 0x14009f9d4
mov r11d, dword [rsp + 0x128]
cmp dword [rsp + 0x78], r11d
jne 0x14009f9d4
mov rdi, qword [rbx + 0x38]
jmp 0x14009fbb3
mov r9d, dword [rsi + 4]
mov dword [rdi + 0x84], r9d
mov r10d, dword [rsi + 8]
mov dword [rdi + 0x88], r10d
jmp 0x14009f960
lea r8, str.CreateEncoder
lea rax, [rdi + 0x144]
lea r11, str.no_suitable_encoder_module_for_fourcc___4.4s._nVLC_probably_does_not_support_this_image_format.
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_misc_image.c
mov edx, 1
mov dword [rsp + 0x20], 0x307
mov qword [rsp + 0x28], r8
mov r8, qword [str.main]
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r11
call sym.libvlccore.dll_vlc_Log
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14009fdc3
mov rcx, rdi
call sym.libvlccore.dll_module_unneed
mov rcx, r15
call sym.libvlccore.dll_es_format_Clean
mov rcx, r14
call sym.libvlccore.dll_es_format_Clean
mov rcx, rdi
call sym.libvlccore.dll_vlc_object_release
nop dword [rax + rax]
mov qword [rbx + 0x38], 0
xor r12d, r12d
jmp 0x14009fad1
call fcn.1400c4db0
nop
nop word cs:[rax + rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov r14, qword [0x1402840b0]
mov r12, rcx
mov ecx, dword [r9 + 4]
mov r13, rdx
mov r15, r8
mov rbx, r9
mov rax, qword [r14]
mov qword [rsp + 0x158], rax
xor eax, eax
test ecx, ecx
jne 0x14009fff0
mov r8d, dword [r9 + 8]
mov r10d, dword [rbx + 0x24]
mov r9d, dword [r9 + 0x20]
test r8d, r8d
jne 0x1400a0060
test r9d, r9d
je 0x1400a0060
test r10d, r10d
je 0x1400a0060
mov edi, dword [r15 + 0x24]
mov esi, dword [r15 + 0x20]
mov r11d, r9d
mov edx, r10d
imul r11d, edi
imul edx, esi
cmp r11d, edx
je 0x1400a0060
mov ebp, r10d
mov eax, dword [r15 + 4]
imul rbp, rsi
mov esi, r9d
imul rax, rbp
cqo
idiv rdi
cqo
idiv rsi
mov r11, rax
mov ecx, eax
mov dword [rbx + 4], eax
mov eax, dword [r15 + 0x14]
imul rax, rbp
cqo
idiv rdi
mov edi, dword [rbx]
cqo
idiv rsi
test edi, edi
mov dword [rbx + 0x14], eax
je 0x1400a0007
test r11d, r11d
jne 0x14009fee5
nop dword [rax]
mov ecx, dword [r15 + 4]
mov dword [rbx + 0x14], ecx
mov dword [rbx + 4], ecx
nop word [rax + rax]
test r8d, r8d
jne 0x14009fef1
mov r8d, dword [r15 + 8]
mov dword [rbx + 0x18], r8d
mov dword [rbx + 8], r8d
test r9d, r9d
jne 0x14009fefe
mov r9d, dword [r15 + 0x20]
mov dword [rbx + 0x20], r9d
test r10d, r10d
jne 0x14009ff0b
mov r10d, dword [r15 + 0x24]
mov dword [rbx + 0x24], r10d
mov rbp, qword [r12 + 0x40]
test rbp, rbp
je 0x14009ff58
mov esi, dword [r15]
cmp dword [rbp + 0x70], esi
je 0x1400a0023
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x14009ff32
mov rcx, rbp
call sym.libvlccore.dll_module_unneed
lea rcx, [rbp + 0x38]
call sym.libvlccore.dll_es_format_Clean
lea rcx, [rbp + 0x140]
call sym.libvlccore.dll_es_format_Clean
mov rcx, rbp
call sym.libvlccore.dll_vlc_object_release
mov qword [r12 + 0x40], 0
lea rbp, [rsp + 0x50]
mov r8d, dword [r15]
mov edx, 1
lea rdi, [rsp + 0x88]
mov rsi, r15
mov rcx, rbp
call sym.libvlccore.dll_es_format_Init
mov ecx, 0x16
mov r8, rbx
mov rdx, rbp
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [r12 + 0x28]
call fcn.14009f690
test rax, rax
mov qword [r12 + 0x40], rax
je 0x1400a0110
mov rcx, r13
call sym.libvlccore.dll_picture_Hold
mov rax, qword [r12 + 0x40]
mov rdx, r13
mov rcx, rax
call qword [rax + 0x260]
mov rdx, qword [rbx]
cmp qword [r15], rdx
je 0x1400a0080
mov rdi, qword [rsp + 0x158]
xor rdi, qword [r14]
jne 0x1400a0117
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r9]
mov r8d, dword [r9 + 8]
mov r10d, dword [rbx + 0x24]
mov r9d, dword [r9 + 0x20]
test eax, eax
jne 0x14009fee0
mov ebp, dword [r15]
test ecx, ecx
mov dword [rbx], ebp
jne 0x14009fee0
mov ecx, dword [r15 + 4]
mov dword [rbx + 0x14], ecx
mov dword [rbx + 4], ecx
jmp 0x14009fee0
mov r11d, dword [rbx]
cmp dword [rbp + 0x178], r11d
jne 0x14009ff21
mov eax, 0x16
lea rdi, [rbp + 0x70]
mov rsi, r15
mov rcx, rax
add rbp, 0x178
rep movsq qword [rdi], qword [rsi]
mov rdi, rbp
mov rsi, rbx
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
jmp 0x14009ff9e
mov ebp, dword [rbx]
test ebp, ebp
jne 0x14009fed0
mov ebp, dword [r15]
test ecx, ecx
mov dword [rbx], ebp
je 0x1400a0014
jmp 0x14009fee0
mov ebx, dword [rbx + 8]
cmp dword [r15 + 8], ebx
jne 0x14009ffc3
mov rcx, rax
call sym.libvlccore.dll_picture_Release
mov r12, qword [r12 + 0x40]
mov rcx, r12
call qword [r12 + 0x298]
test rax, rax
je 0x1400a00c4
mov rcx, rax
mov rdx, r13
mov qword [rsp + 0x48], rax
call sym.libvlccore.dll_picture_Copy
mov rax, qword [rsp + 0x48]
jmp 0x14009ffc3
lea r13, str.cant_get_output_picture
lea r15, str.filter_NewPicture
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._include_vlc_filter.h
mov dword [rsp + 0x20], 0xa7
mov edx, 2
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r15
mov rcx, r12
mov qword [rsp + 0x48], rax
call sym.libvlccore.dll_vlc_Log
mov rax, qword [rsp + 0x48]
jmp 0x14009ffc3
xor eax, eax
jmp 0x14009ffc3
call fcn.1400c4db0
nop
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14d, dword [r9]
mov r15, rcx
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xc0], r8
mov rbp, r9
test r14d, r14d
je 0x1400a0282
mov rcx, qword [rsp + 0xd0]
lea rdx, [0x1401997f9]
call sym.libvlccore.dll_vlc_fopen
test rax, rax
mov rsi, rax
je 0x1400a03ea
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov r9, rbp
mov rcx, r15
call fcn.14009f810
test rax, rax
mov r12, rax
je 0x1400a0258
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov r9, rsi
mov r8d, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x1400a0250
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
mov rcx, r12
mov ebp, dword [rax]
call qword [r12 + 0x48]
mov rcx, rsi
call sub.msvcrt.dll_fclose
test eax, eax
je 0x1400a03c5
test ebp, ebp
je 0x1400a03c0
call r13
mov dword [rax], ebp
call r13
mov ecx, dword [rax]
call sym.libvlccore.dll_vlc_strerror_c
mov r8, qword [rsp + 0xd0]
lea r9, str._s:__s
lea r10, str.ImageWriteUrl
mov rcx, qword [r15 + 0x28]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x20], 0x1e6
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_misc_image.c
mov edx, 1
call sym.libvlccore.dll_vlc_Log
mov eax, 0xffffffff
jmp 0x1400a0271
mov rcx, r12
call qword [r12 + 0x48]
mov rcx, rsi
call sub.msvcrt.dll_fclose
test eax, eax
mov r13, qword [sym.imp.msvcrt.dll__errno]
jne 0x1400a03c0
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xd0]
mov edx, 0x2e
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x1400a03af
lea rsi, [rax + 1]
xor ebx, ebx
mov r12, qword [sym.imp.msvcrt.dll__stricmp]
lea rcx, [0x140199bc4]
mov rdx, rsi
call r12
test eax, eax
je 0x1400a03d2
lea rdi, [0x140199bd0]
mov ebx, 1
mov rdx, rsi
mov rcx, rdi
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0xc]
lea r13d, [rbx + 1]
mov rdx, rsi
mov qword [rsp + 0x58], rcx
mov ebx, r13d
call r12
test eax, eax
je 0x1400a03d2
add ebx, 1
lea rcx, [rdi + 0x18]
mov rdx, rsi
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x24]
mov rdx, rsi
lea ebx, [r13 + 2]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x30]
mov rdx, rsi
lea ebx, [r13 + 3]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x3c]
mov rdx, rsi
lea ebx, [r13 + 4]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x48]
mov rdx, rsi
lea ebx, [r13 + 5]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x54]
mov rdx, rsi
lea ebx, [r13 + 6]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x60]
mov rdx, rsi
lea ebx, [r13 + 7]
call r12
test eax, eax
je 0x1400a03d2
lea rcx, [rdi + 0x6c]
mov rdx, rsi
lea ebx, [r13 + 8]
call r12
test eax, eax
je 0x1400a03d2
mov rdi, qword [rsp + 0x58]
lea ebx, [r13 + 9]
add rdi, 0x6c
cmp ebx, 0x15
jne 0x1400a02cb
mov dword [rbp], r14d
jmp 0x1400a0152
call r13
mov ebp, dword [rax]
test ebp, ebp
je 0x1400a026f
jmp 0x1400a01e5
lea rdx, [rbx + rbx*2]
lea rax, str.jpegjpeg
mov r14d, dword [rax + rdx*4]
mov dword [rbp], r14d
jmp 0x1400a0152
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
lea rbx, str.ImageWriteUrl
call sym.libvlccore.dll_vlc_strerror_c
mov r11, qword [rsp + 0xd0]
mov rcx, qword [r15 + 0x28]
lea r15, str._s:__s
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], 0x1d2
mov qword [rsp + 0x38], r11
jmp 0x1400a022a