Function at 0x10041e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101638b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov ebx, dword [esi + 0xb0]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 1
cmp dword [ebx], 4
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], 1
je 0x10042870
cmp dword [ebx + 4], 0x15002
jne 0x10041ea8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push edx
push dword [ebp + 8]
call fcn.1003d8c0
add esp, 0x18
test eax, eax
js 0x10042872
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 0x18]
mov eax, 0xaf
bsr esi, eax
lea esi, [esi + 7]
shr esi, 3
test esi, esi
je 0x10041ee2
lea ebx, [esi*8]
sub ebx, 8
mov eax, 0xae
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.libavformat_58.dll_avio_w8
add esp, 8
sub esi, 1
jne 0x10041ec4
mov ebx, dword [ebp - 0x20]
push 8
push edi
call fcn.10043d40
push 1
push 0
push 0
push edi
call sym.libavformat_58.dll_avio_seek
mov esi, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push dword [esi + 0x10]
mov dword [ebp - 0x40], 8
push 0xd7
push edi
call fcn.10043e60
push dword [esi + 0xc]
push dword [esi + 8]
push 0x73c5
push edi
call fcn.10043e00
push 0
push 0
push 0x9c
push edi
call fcn.10043e60
mov esi, dword [ebp + 0x10]
add esp, 0x48
push 0
push 0
push str.title
push dword [esi + 0x40]
call sub.libavutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10041f7a
mov edx, dword [eax + 4]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041f60
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x536e
push edi
call fcn.10043930
add esp, 0x10
push 0
push 0
push str.language
push dword [esi + 0x40]
call sub.libavutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10041f99
mov edx, dword [eax + 4]
test edx, edx
jne 0x10041f9e
mov edx, 0x10138a04
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041fa6
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x22b59c
push edi
call fcn.10043930
add esp, 0x10
cmp dword [ebp + 0x1c], 0
jne 0x10041fd8
push 0
push 0
push 0x88
push edi
call fcn.10043e60
add esp, 0x10
test byte [esi + 0x30], 0x40
je 0x10041ff0
push 0
push 1
push 0x55aa
push edi
call fcn.10043e60
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
jne 0x100420e1
cmp dword [ebx], 3
je 0x1004206a
mov eax, dword [0x101393e0]
xor ecx, ecx
test eax, eax
je 0x10042029
mov edx, dword [ebx + 4]
cmp eax, edx
je 0x10042051
inc ecx
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x101393e0]
test eax, eax
jne 0x10042010
push str.Only_VP8_or_VP9_or_AV1_video_and_Vorbis_or_Opus_audio_and_WebVTT_subtitles_are_supported_for_WebM._n
push 0x10
push dword [ebp + 8]
call sub.libavutil_56.dll_av_log
add esp, 0xc
mov eax, 0xffffffea
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003652
mov esp, ebp
pop ebp
ret
lea eax, [ecx*8]
mov dword [ebp - 8], 1
sub eax, ecx
lea edx, [eax*4 + str.V_VP8]
jmp 0x100420ba
cmp dword [ebx + 4], 0x17809
jne 0x10042029
mov eax, dword [esi + 0x30]
test eax, 0x10000
je 0x10042084
mov edx, str.D_WEBVTT_CAPTIONS
jmp 0x100420b3
test eax, 0x20000
je 0x10042099
mov edx, str.D_WEBVTT_DESCRIPTIONS
mov dword [ebp - 8], 0x21
jmp 0x100420ba
test eax, 0x40000
je 0x100420ae
mov edx, str.D_WEBVTT_METADATA
mov dword [ebp - 8], 0x21
jmp 0x100420ba
mov edx, str.D_WEBVTT_SUBTITLES
mov dword [ebp - 8], 0x11
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100420c2
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x86
push edi
call fcn.10043930
mov ecx, dword [ebp - 8]
add esp, 0x10
jmp 0x10042136
mov edx, dword [ebx + 4]
cmp edx, 0xd
jne 0x1004210b
cmp dword [ebx + 8], 0
jne 0x1004210b
mov edx, eax
cmp dword [edx + 0x178], 0
je 0x10042101
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x10042139
push str.Raw_RGB_is_not_supported_Natively_in_Matroska__you_can_use_AVI_or_NUT_or_nIf_you_would_like_to_store_it_anyway_using_VFW_mode__enable_allow_raw_vfw___allow_raw_vfw_1__n
jmp 0x1004202e
mov eax, dword [0x10138c38]
xor ecx, ecx
test eax, eax
je 0x10042134
cmp eax, edx
jne 0x1004211f
cmp edx, 0x21
jne 0x1004215c
inc ecx
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x10138c38]
test eax, eax
jne 0x10042116
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
sub eax, 0
je 0x100423d1
sub eax, 1
je 0x100421f7
sub eax, 2
je 0x10042198
push str.Only_audio__video__and_subtitles_are_supported_for_Matroska._n
jmp 0x1004202e
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax*4 + str.A_AAC]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042174
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x86
push edi
call fcn.10043930
mov ecx, 1
add esp, 0x10
mov dword [ebp - 8], ecx
jmp 0x10042136
test ecx, ecx
jne 0x100421c7
push dword [ebx + 4]
push str.Subtitle_codec__d_is_not_supported._n
push 0x10
push dword [ebp + 8]
call sub.libavutil_56.dll_av_log
add esp, 0x10
mov eax, 0xffffffd8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003652
mov esp, ebp
pop ebp
ret
cmp dword [edx + 4], 2
jne 0x100421d6
cmp dword [ebx + 4], 0x17809
je 0x100421de
mov ecx, 0x11
mov dword [ebp - 8], ecx
push 0
push ecx
push 0x83
push edi
call fcn.10043e60
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x1004281f
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x10042244
cmp dword [ebx + 4], 0x1503c
jne 0x10042262
push 0x3b9aca00
push 1
push 0xbb80
cdq
push 1
push edx
push eax
call sub.libavutil_56.dll_av_rescale_q
add esp, 0x18
test edx, edx
jg 0x10042234
jl 0x1004222a
test eax, eax
jae 0x10042234
push str.Initial_padding_is_invalid_n
jmp 0x1004202e
push edx
push eax
push 0x56aa
push edi
call fcn.10043e60
add esp, 0x10
cmp dword [ebx + 4], 0x1503c
jne 0x10042262
push 0
push 0x4c4b400
push 0x56bb
push edi
call fcn.10043e60
add esp, 0x10
push 0
push 2
push 0x83
push edi
call fcn.10043e60
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x1004228f
push 8
push str.A_MS_ACM
push 0x86
push edi
call fcn.10043930
add esp, 0x10
xor ecx, ecx
mov edx, 0x2b
xor ebx, ebx
shrd edx, ecx, 7
inc ebx
shr ecx, 7
mov eax, edx
or eax, ecx
jne 0x10042298
mov ecx, 0xe1
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x20]
bsr esi, ecx
lea esi, [esi + 7]
shr esi, 3
test esi, esi
je 0x100422e5
lea ebx, [esi*8]
mov eax, ecx
sub ebx, 8
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.libavformat_58.dll_avio_w8
add esp, 8
mov ecx, 0xe1
sub esi, 1
jne 0x100422c5
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
push esi
push edi
call fcn.10043d40
push 1
push 0
push 0
push edi
call sym.libavformat_58.dll_avio_seek
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x34], edx
cdq
push edx
push eax
push 0x9f
push edi
mov dword [ebp - 0x30], esi
call fcn.10043e60
push 1
push 0
push 0
push edi
call sym.libavformat_58.dll_avio_seek
movd xmm0, dword [ebp - 0x18]
add esp, 0x30
mov ecx, dword [ebp + 0x14]
cvtdq2pd xmm0, xmm0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
movsd qword [esp], xmm0
push 0xb5
push edi
call fcn.100439e0
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
je 0x1004236e
movd xmm0, eax
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x78b5
push edi
call fcn.100439e0
add esp, 0x10
push dword [ebx + 4]
call sub.libavcodec_58.dll_av_get_bits_per_sample
add esp, 4
test eax, eax
jne 0x100423a6
cmp dword [ebx + 4], 0x1100b
je 0x1004239f
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x100423a6
push dword [ebx + 0x14]
call sub.libavutil_56.dll_av_get_bytes_per_sample
shl eax, 3
add esp, 4
test eax, eax
jne 0x100423a6
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100423b7
cdq
push edx
push eax
push 0x6264
push edi
call fcn.10043e60
add esp, 0x10
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.1003d590
mov esi, dword [ebp + 8]
jmp 0x1004281c
push 0
push 1
push 0x83
push edi
mov dword [edx + 0x14c], 1
call fcn.10043e60
mov eax, dword [esi + 0x44]
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x10042425
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x10042425
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x44]
push eax
call fcn.1003d3a0
add esp, 0x10
test eax, eax
jle 0x10042425
mov eax, dword [esi + 0x48]
mov ecx, 0x3b9aca00
imul ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x10042466
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10042482
cmp dword [esi + 0xa8], 0
jle 0x10042482
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push dword [esi + 0xa8]
call fcn.1003d3a0
add esp, 0x10
test eax, eax
jle 0x10042482
mov eax, dword [esi + 0xa8]
mov ecx, 0x3b9aca00
imul ecx
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
call fcn.10001640
push edx
push eax
push 0x23e383
push edi
call fcn.10043e60
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x10042515
push dword [ebx + 4]
push 0x10137ad8
call fcn.100012d0
add esp, 8
test eax, eax
je 0x100424e7
push dword [ebx + 4]
push 0x1014b068
call fcn.100012d0
add esp, 8
test eax, eax
jne 0x100424ba
cmp dword [ebx + 4], 0xd
jne 0x100424cc
mov eax, dword [ebx + 4]
cmp eax, 0x16
je 0x100424cc
cmp eax, 0x17
je 0x100424cc
cmp eax, 0x2b
jne 0x100424e7
push 0xb
push str.V_QUICKTIME
push 0x86
push edi
mov dword [ebp - 0x28], 1
call fcn.10043930
jmp 0x10042512
push 0xf
push str.V_MS_VFW_FOURCC
push 0x86
push edi
call fcn.10043930
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ecx], 1
mov eax, dword [eax + 0x50c]
mov dword [eax + 0x48], 0
add esp, 0x10
mov eax, 0xe1
bsr esi, eax
lea esi, [esi + 7]
shr esi, 3
test esi, esi
je 0x1004254e
lea ebx, [esi*8]
nop
sub ebx, 8
mov eax, 0xe0
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.libavformat_58.dll_avio_w8
add esp, 8
sub esi, 1
jne 0x10042530
mov ebx, dword [ebp - 0x20]
push 8
push edi
call fcn.10043d40
push 1
push 0
push 0
push edi
call sym.libavformat_58.dll_avio_seek
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x34], edx
cdq
push edx
push eax
push 0xb0
push edi
mov dword [ebp - 0x30], 8
call fcn.10043e60
mov eax, dword [ebx + 0x34]
cdq
push edx
push eax
push 0xba
push edi
call fcn.10043e60
mov eax, dword [ebp + 0xc]
add esp, 0x38
mov esi, dword [ebx + 0x40]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp esi, 1
je 0x100425f8
add esi, 0xfffffffe
cmp esi, 3
ja case.default.0x100425c5
push 0
push 1
push 0x9a
push edi
call fcn.10043e60
add esp, 0x10
cmp dword [ebp - 0x10], 2
je case.default.0x100425c5
jmp dword [esi*4 + 0x10042884]
push 0
push 1
push 0x9d
jmp 0x10042601
push 0
push 6
push 0x9d
jmp 0x10042601
push 0
push 9
push 0x9d
jmp 0x10042601
push 0
push 2
push 0x9a
push edi
call fcn.10043e60
add esp, 0x10
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push esi
push edi
push dword [ebp + 8]
call fcn.10041270
add esp, 0x18
test eax, eax
js 0x10042872
push 0
push 0
push str.alpha_mode
push dword [esi + 0x40]
call sub.libavutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10042657
push dword [eax + 4]
call fcn.10001bea
add esp, 4
test eax, eax
jne 0x1004268a
mov eax, dword [ebp + 8]
push 0
push 0
push str.alpha_mode
push dword [eax + 0x48c]
call sub.libavutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10042684
push dword [eax + 4]
call fcn.10001bea
add esp, 4
test eax, eax
jne 0x1004268a
cmp dword [ebx + 0x14], 0x21
jne 0x1004269c
push 0
push 1
push 0x53c0
push edi
call fcn.10043e60
add esp, 0x10
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10042781
mov eax, dword [esi + 0x3c]
cdq
push edx
push eax
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebx + 0x30]
cdq
push edx
push eax
call sub.libavutil_56.dll_av_rescale
mov ecx, eax
add esp, 0x18
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x100426e2
jg 0x100426d8
cmp ecx, 0x7fffffff
jbe 0x100426e2
push str.Overflow_in_display_width_n
jmp 0x1004202e
mov eax, dword [ebx + 0x30]
cdq
cmp ecx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
jne 0x10042702
cmp dword [ebp - 0x10], edx
jne 0x10042702
cmp eax, 1
jne 0x10042702
cmp ecx, eax
je 0x100427d7
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 2
je 0x10042771
cmp eax, 1
jne 0x10042771
cmp ecx, eax
jne 0x10042771
mov eax, dword [ebx + 0x34]
imul dword [esi + 0x3c]
push 0
push 0x100000
push edx
push eax
mov eax, dword [ebx + 0x30]
imul dword [esi + 0x38]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.libavutil_56.dll_av_reduce
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
push 0x54b0
push edi
call fcn.10043e60
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
push 0x54ba
push edi
call fcn.10043e60
add esp, 0x40
push 0
push 3
push 0x54b2
push edi
call fcn.10043e60
add esp, 0x10
jmp 0x100427d7
cdq
push edx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.10001640
jmp 0x100427b2
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
jne 0x100427ab
cmp dword [ebp - 0x1c], ecx
jne 0x100427ab
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
je 0x100427d7
push 0
push 4
push 0x54b2
push edi
call fcn.10043e60
add esp, 0x10
jmp 0x100427d7
mov eax, dword [ebx + 0x30]
cdq
idiv ecx
cdq
push edx
push eax
push 0x54b0
push edi
call fcn.10043e60
mov eax, dword [ebx + 0x34]
cdq
idiv dword [ebp - 0x1c]
cdq
push edx
push eax
push 0x54ba
push edi
call fcn.10043e60
add esp, 0x20
cmp dword [ebx + 4], 0xd
jne 0x100427f7
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
push 0x2eb524
push edi
call fcn.10043930
add esp, 0x10
push ebx
push esi
push edi
call fcn.10042d30
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.100432c0
movups xmm0, xmmword [ebp - 0x38]
add esp, 8
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.1003d590
add esp, 0x14
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
jne 0x10042831
cmp dword [ebx + 4], 0x17809
je 0x1004285b
push 1
push 0
push 0
push edi
call sym.libavformat_58.dll_avio_seek
push dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
push dword [ebp - 8]
push ebx
push edi
push esi
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
call fcn.1003fd70
add esp, 0x24
test eax, eax
js 0x10042872
movups xmm0, xmmword [ebp - 0x48]
sub esp, 0x10
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.1003d590
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003652
mov esp, ebp
pop ebp
ret