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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100e1694]
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 0x10038244
cmp dword [ebx + 4], 0x15002
jne 0x100377c8
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.10033220
add esp, 0x18
test eax, eax
js 0x10038246
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 0x10037802
lea ebx, [esi*8]
sub ebx, 8
mov eax, 0xae
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.avformat_58.dll_avio_w8
add esp, 8
sub esi, 1
jne 0x100377e4
mov ebx, dword [ebp - 0x20]
push 8
push edi
call fcn.10039690
push 1
push 0
push 0
push edi
call sym.avformat_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.100397b0
push dword [esi + 0xc]
push dword [esi + 8]
push 0x73c5
push edi
call fcn.10039750
push 0
push 0
push 0x9c
push edi
call fcn.100397b0
mov esi, dword [ebp + 0x10]
add esp, 0x48
push 0
push 0
push str.title
push dword [esi + 0x40]
call sub.avutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x1003789a
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 0x10037880
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x536e
push edi
call fcn.10039290
add esp, 0x10
push 0
push 0
push str.language
push dword [esi + 0x40]
call sub.avutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x100378ba
mov edx, dword [eax + 4]
cmp byte [edx], 0
jne 0x100378bf
mov edx, 0x100c000c
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100378c7
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x22b59c
push edi
call fcn.10039290
add esp, 0x10
cmp dword [ebp + 0x1c], 0
jne 0x100378f9
push 0
push 0
push 0x88
push edi
call fcn.100397b0
add esp, 0x10
test byte [esi + 0x30], 0x40
je 0x10037911
push 0
push 1
push 0x55aa
push edi
call fcn.100397b0
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
jne 0x10037a05
cmp dword [ebx], 3
je 0x1003798b
mov eax, dword [0x100c1750]
xor ecx, ecx
test eax, eax
je 0x1003794a
mov edx, dword [ebx + 4]
cmp eax, edx
je 0x10037972
inc ecx
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x100c1750]
test eax, eax
jne 0x10037931
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.avutil_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.10001348
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 0x100379db
cmp dword [ebx + 4], 0x17809
jne 0x1003794a
mov eax, dword [esi + 0x30]
test eax, 0x10000
je 0x100379a5
mov edx, str.D_WEBVTT_CAPTIONS
jmp 0x100379d4
test eax, 0x20000
je 0x100379ba
mov edx, str.D_WEBVTT_DESCRIPTIONS
mov dword [ebp - 8], 0x21
jmp 0x100379db
test eax, 0x40000
je 0x100379cf
mov edx, str.D_WEBVTT_METADATA
mov dword [ebp - 8], 0x21
jmp 0x100379db
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 0x100379e3
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x86
push edi
call fcn.10039290
mov ecx, dword [ebp - 8]
add esp, 0x10
jmp 0x10037ad0
mov eax, dword [esi + 0x30]
test al, 8
je 0x10037a21
push 0
push 1
push 0x55af
push edi
call fcn.100397b0
mov eax, dword [esi + 0x30]
add esp, 0x10
test al, al
jns 0x10037a3a
push 0
push 1
push 0x55ab
push edi
call fcn.100397b0
mov eax, dword [esi + 0x30]
add esp, 0x10
test eax, 0x100
je 0x10037a56
push 0
push 1
push 0x55ac
push edi
call fcn.100397b0
mov eax, dword [esi + 0x30]
add esp, 0x10
mov ecx, eax
and ecx, 6
je 0x10037a79
cmp ecx, 6
je 0x10037a79
shr eax, 2
push 0
and eax, 1
push eax
push 0x55ae
push edi
call fcn.100397b0
add esp, 0x10
mov edx, dword [ebx + 4]
cmp edx, 0xd
jne 0x10037aa4
cmp dword [ebx + 8], 0
jne 0x10037aa4
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x138], 0
je 0x10037a9a
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x10037ad3
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 0x1003794f
mov eax, dword [0x100c0fa8]
xor ecx, ecx
test eax, eax
je 0x10037ace
nop
cmp eax, edx
jne 0x10037ab9
cmp edx, 0x21
jne 0x10037af6
inc ecx
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x100c0fa8]
test eax, eax
jne 0x10037ab0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
sub eax, 0
je 0x10037d9c
sub eax, 1
je 0x10037bbe
sub eax, 2
je 0x10037b34
push str.Only_audio__video__and_subtitles_are_supported_for_Matroska._n
jmp 0x1003794f
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
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10037b10
sub ecx, dword [ebp - 0xc]
push ecx
push edx
push 0x86
push edi
call fcn.10039290
mov ecx, 1
add esp, 0x10
mov dword [ebp - 8], ecx
jmp 0x10037ad0
test ecx, ecx
jne 0x10037b63
push dword [ebx + 4]
push str.Subtitle_codec__d_is_not_supported._n
push 0x10
push dword [ebp + 8]
call sub.avutil_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.10001348
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 4]
cmp eax, 2
je 0x10037b94
test dword [esi + 0x30], 0x20000
je 0x10037b9d
push 0
push 1
push 0x55ad
push edi
call fcn.100397b0
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x10037b9d
cmp dword [ebx + 4], 0x17809
je 0x10037ba5
mov ecx, 0x11
mov dword [ebp - 8], ecx
push 0
push ecx
push 0x83
push edi
call fcn.100397b0
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x100381f3
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x10037c0b
cmp dword [ebx + 4], 0x1503c
jne 0x10037c29
push 0x3b9aca00
push 1
push 0xbb80
cdq
push 1
push edx
push eax
call sub.avutil_56.dll_av_rescale_q
add esp, 0x18
test edx, edx
jg 0x10037bfb
jl 0x10037bf1
test eax, eax
jae 0x10037bfb
push str.Initial_padding_is_invalid_n
jmp 0x1003794f
push edx
push eax
push 0x56aa
push edi
call fcn.100397b0
add esp, 0x10
cmp dword [ebx + 4], 0x1503c
jne 0x10037c29
push 0
push 0x4c4b400
push 0x56bb
push edi
call fcn.100397b0
add esp, 0x10
push 0
push 2
push 0x83
push edi
call fcn.100397b0
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x10037c56
push 8
push str.A_MS_ACM
push 0x86
push edi
call fcn.10039290
add esp, 0x10
xor ecx, ecx
mov edx, 0x2b
xor ebx, ebx
nop
shrd edx, ecx, 7
inc ebx
shr ecx, 7
mov eax, edx
or eax, ecx
jne 0x10037c60
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 0x10037cb0
lea ebx, [esi*8]
nop dword [eax]
mov eax, ecx
sub ebx, 8
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.avformat_58.dll_avio_w8
add esp, 8
mov ecx, 0xe1
sub esi, 1
jne 0x10037c90
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
push esi
push edi
call fcn.10039690
push 1
push 0
push 0
push edi
call sym.avformat_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.100397b0
push 1
push 0
push 0
push edi
call sym.avformat_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.10039340
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
je 0x10037d39
movd xmm0, eax
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x78b5
push edi
call fcn.10039340
add esp, 0x10
push dword [ebx + 4]
call sub.avcodec_58.dll_av_get_bits_per_sample
add esp, 4
test eax, eax
jne 0x10037d71
cmp dword [ebx + 4], 0x1100b
je 0x10037d6a
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x10037d71
push dword [ebx + 0x14]
call sub.avutil_56.dll_av_get_bytes_per_sample
shl eax, 3
add esp, 4
test eax, eax
jne 0x10037d71
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10037d82
cdq
push edx
push eax
push 0x6264
push edi
call fcn.100397b0
add esp, 0x10
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.10032f00
mov esi, dword [ebp + 8]
jmp 0x100381f0
push 0
push 1
push 0x83
push edi
mov dword [edx + 0x108], 1
call fcn.100397b0
mov eax, dword [esi + 0x44]
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x10037df0
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x10037df0
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x44]
push eax
call fcn.10032d10
add esp, 0x10
test eax, eax
jle 0x10037df0
mov eax, dword [esi + 0x48]
mov ecx, 0x3b9aca00
imul ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x10037e31
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10037e4d
cmp dword [esi + 0xa8], 0
jle 0x10037e4d
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push dword [esi + 0xa8]
call fcn.10032d10
add esp, 0x10
test eax, eax
jle 0x10037e4d
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.100018f2
push edx
push eax
push 0x23e383
push edi
call fcn.100397b0
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x10037ee5
push dword [ebx + 4]
push 0x100c00f0
call fcn.100016a4
add esp, 8
test eax, eax
je 0x10037eb7
push dword [ebx + 4]
push 0x100d72b0
call fcn.100016a4
add esp, 8
test eax, eax
jne 0x10037e8a
cmp dword [ebx + 4], 0xd
jne 0x10037e9c
mov eax, dword [ebx + 4]
jmp 0x10037e92
mov eax, dword [ebx + 4]
cmp eax, 0x16
je 0x10037e9c
cmp eax, 0x17
je 0x10037e9c
cmp eax, 0x2b
jne 0x10037eb7
push 0xb
push str.V_QUICKTIME
push 0x86
push edi
mov dword [ebp - 0x28], 1
call fcn.10039290
jmp 0x10037ee2
push 0xf
push str.V_MS_VFW_FOURCC
push 0x86
push edi
call fcn.10039290
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ecx], 1
mov eax, dword [eax + 0x50c]
mov dword [eax + 0x50], 0
add esp, 0x10
mov eax, 0xe1
bsr esi, eax
lea esi, [esi + 7]
shr esi, 3
test esi, esi
je 0x10037f1e
lea ebx, [esi*8]
nop
sub ebx, 8
mov eax, 0xe0
mov ecx, ebx
shr eax, cl
push eax
push edi
call sym.avformat_58.dll_avio_w8
add esp, 8
sub esi, 1
jne 0x10037f00
mov ebx, dword [ebp - 0x20]
push 8
push edi
call fcn.10039690
push 1
push 0
push 0
push edi
call sym.avformat_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.100397b0
mov eax, dword [ebx + 0x34]
cdq
push edx
push eax
push 0xba
push edi
call fcn.100397b0
mov eax, dword [ebp + 0xc]
add esp, 0x38
mov esi, dword [ebx + 0x40]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x10037faa
jmp dword [eax*4 + 0x10038258]
push 0
push 2
push 0x9a
jmp 0x10037fcc
push 0
push 1
push 0x9a
push edi
call fcn.100397b0
add esp, 0x10
cmp dword [ebp - 0x10], 2
je case.default.0x10037faa
lea eax, [esi - 2]
cmp eax, 3
ja case.default.0x10037faa
jmp dword [eax*4 + 0x1003826c]
push 0
push 1
jmp 0x10037fc7
push 0
push 6
jmp 0x10037fc7
push 0
push 9
jmp 0x10037fc7
push 0
push 0xe
push 0x9d
push edi
call fcn.100397b0
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.10036b50
add esp, 0x18
test eax, eax
js 0x10038246
push 0
push 0
push str.alpha_mode
push dword [esi + 0x40]
call sub.avutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10038023
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10038057
mov eax, dword [ebp + 8]
push 0
push 0
push str.alpha_mode
push dword [eax + 0x48c]
call sub.avutil_56.dll_av_dict_get
add esp, 0x10
test eax, eax
je 0x10038051
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10038057
cmp dword [ebx + 0x14], 0x21
jne 0x10038069
push 0
push 1
push 0x53c0
push edi
call fcn.100397b0
add esp, 0x10
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10038155
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.avutil_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 0x100380af
jg 0x100380a5
cmp ecx, 0x7fffffff
jbe 0x100380af
push str.Overflow_in_display_width_n
jmp 0x1003794f
mov eax, dword [ebx + 0x30]
cdq
cmp ecx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
jne 0x100380cf
cmp dword [ebp - 0x10], edx
jne 0x100380cf
cmp eax, 1
jne 0x100380cf
cmp ecx, eax
je 0x100381ab
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 2
je 0x10038145
cmp eax, 1
jne 0x10038145
cmp ecx, eax
jne 0x10038145
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.avutil_56.dll_av_reduce
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
push 0x54b0
push edi
call fcn.100397b0
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
push 0x54ba
push edi
call fcn.100397b0
add esp, 0x40
push 0
push 3
push 0x54b2
push edi
call fcn.100397b0
add esp, 0x10
jmp 0x100381ab
cdq
push edx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.100018f2
jmp 0x10038186
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
jne 0x1003817f
cmp dword [ebp - 0x1c], ecx
jne 0x1003817f
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
je 0x100381ab
push 0
push 4
push 0x54b2
push edi
call fcn.100397b0
add esp, 0x10
jmp 0x100381ab
mov eax, dword [ebx + 0x30]
cdq
idiv ecx
cdq
push edx
push eax
push 0x54b0
push edi
call fcn.100397b0
mov eax, dword [ebx + 0x34]
cdq
idiv dword [ebp - 0x1c]
cdq
push edx
push eax
push 0x54ba
push edi
call fcn.100397b0
add esp, 0x20
cmp dword [ebx + 4], 0xd
jne 0x100381cb
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
push 0x2eb524
push edi
call fcn.10039290
add esp, 0x10
push ebx
push esi
push edi
call fcn.10038740
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10038cd0
movups xmm0, xmmword [ebp - 0x38]
add esp, 8
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.10032f00
add esp, 0x14
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 2
jne 0x10038205
cmp dword [ebx + 4], 0x17809
je 0x1003822f
push 1
push 0
push 0
push edi
call sym.avformat_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.100356c0
add esp, 0x24
test eax, eax
js 0x10038246
movups xmm0, xmmword [ebp - 0x48]
sub esp, 0x10
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.10032f00
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001348
mov esp, ebp
pop ebp
ret