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

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x11c
test edx, edx
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x130]
je 0x41db20
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0x2c4]
mov eax, dword [eax]
test eax, eax
jne 0x41daf0
cmp dword [0xc07090], 0xff
je 0x41e0d5
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x41dbc0
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov dword [esp], ebp
call fcn.005d1b20
test eax, eax
je 0x41e321
mov edx, dword [eax]
mov dword [ebx + 0x150], edx
movzx edx, byte [eax + 4]
mov dword [ebx + 0x15c], edx
cmp byte [eax + 5], 0
je 0x41e160
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebx + 0x160], esi
mov dword [ebx + 0x164], edi
movzx edx, byte [eax + 5]
cmp edx, 1
jle 0x41e140
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov dword [ebx + 0x168], esi
mov dword [ebx + 0x16c], edi
movzx edx, byte [eax + 5]
cmp edx, 2
jle 0x41e120
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov dword [ebx + 0x170], esi
mov dword [ebx + 0x174], edi
movzx edx, byte [eax + 5]
cmp edx, 3
jle 0x41e100
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x17c], edx
mov dword [ebx + 0x178], eax
mov edi, dword [ebx + 0x74]
test edi, edi
je 0x41d9d0
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x41e1a0
nop
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 8]
test byte [eax + 0x1c], 0x80
mov eax, dword [ebp + 0x10]
jne 0x41dee0
mov ecx, edx
mov dword [esp + 0x30], eax
mov esi, eax
lea edx, [ecx - 0x80000000]
mov dword [esp + 0x34], ecx
mov edi, ecx
mov ecx, edx
or ecx, eax
je 0x41da40
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, eax
jg 0x41dc15
jl 0x41da20
cmp esi, edx
ja 0x41dc15
lea esi, [esi]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x2c4]
mov ecx, dword [eax]
cmp ecx, 1
mov dword [esp + 0x3c], ecx
jbe 0x41dda5
lea esi, [esi]
mov esi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x30], eax
mov eax, esi
mov dword [ebx + 0x34], edx
cdq
mov eax, dword [ebx + 4]
add dword [ebx + 0x130], esi
adc dword [ebx + 0x134], edx
add dword [ebx + 0x138], 1
adc dword [ebx + 0x13c], 0
mov dword [ebp + 0x20], eax
mov eax, dword [0xeea048]
test eax, eax
jne 0x41def0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00502350
test eax, eax
jns 0x41dadb
mov dword [esp + 4], eax
mov dword [esp], str.av_interleaved_write_frame__
call fcn.00405850
mov edx, dword [0xeea0a8]
mov dword [0xeea1c0], 1
test edx, edx
jle 0x41dadb
mov eax, dword [0xeea0ac]
lea edi, [eax + edx*4]
mov edx, dword [eax]
xor ecx, ecx
cmp ebx, edx
sete cl
add eax, 4
lea ecx, [ecx + ecx + 1]
or dword [edx + 0x104], ecx
cmp eax, edi
jne 0x41dac1
mov dword [esp], ebp
call fcn.005d23b0
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 1
je 0x41dbe5
mov edi, dword [ebx + 0x14]
mov eax, edi
cdq
cmp edx, dword [ebx + 0x54]
jl 0x41db10
jg 0x41dadb
cmp edi, dword [ebx + 0x50]
jae 0x41dadb
nop
lea esi, [esi]
add edi, 1
mov dword [ebx + 0x14], edi
jmp 0x41d9d0
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a8d0
test eax, eax
jne 0x41db80
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a8c0
mov esi, dword [ebx + 0x154]
add eax, eax
cmp eax, esi
jle 0x41e180
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a8c0
cmp eax, esi
jge 0x41e3bc
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a8e0
test eax, eax
js 0x41e23f
lea esi, [esp + 0xc8]
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.005d2770
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x48
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a960
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebx + 0x14]
mov eax, edi
cdq
cmp edx, dword [ebx + 0x54]
jg 0x41dadb
jl 0x41dbda
cmp edi, dword [ebx + 0x50]
jae 0x41dadb
add edi, 1
mov dword [ebx + 0x14], edi
jmp 0x41d911
mov eax, dword [0xeea06c]
test eax, eax
js 0x41e250
mov edi, dword [ebx + 0x14]
mov eax, edi
cdq
cmp dword [ebx + 0x54], edx
jl 0x41dadb
jg 0x41db10
cmp dword [ebx + 0x50], edi
jbe 0x41dadb
jmp 0x41db10
lea edi, [eax - 0x80000000]
or edi, edx
je 0x41da20
mov edi, dword [ebx + 0xc]
mov edi, dword [edi]
mov dword [esp + 0x20], edi
mov edi, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
mov dword [esp + 8], str.Invalid_DTS:__I64d_PTS:__I64d_in_output_stream__d:_d__replacing_by_guess_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x18
mov dword [esp], eax
call fcn.00891920
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x34]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
add edx, 1
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
adc ecx, 0
add eax, esi
mov dword [esp + 0x44], ecx
adc edx, edi
add eax, dword [ebx + 0x30]
adc edx, dword [ebx + 0x34]
mov ecx, edx
mov edx, eax
mov eax, dword [esp + 0x30]
add edx, 1
adc ecx, 0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x4c]
mov edi, eax
mov eax, edx
mov edx, dword [esp + 0x48]
cmp eax, ecx
jl 0x41dce4
jg 0x41dcd8
cmp edi, edx
jbe 0x41dce4
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, edx
mov edx, edi
mov edi, dword [esp + 0x44]
mov ecx, eax
mov esi, dword [esp + 0x40]
cmp eax, edi
jl 0x41dd02
jg 0x41dcfa
cmp edx, esi
jbe 0x41dd02
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
sub esi, edx
mov edx, dword [esp + 0x34]
sbb edi, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov edi, eax
mov eax, edx
mov edx, dword [esp + 0x48]
cmp eax, ecx
jg 0x41dd40
jl 0x41dd34
cmp edi, edx
jae 0x41dd40
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, edx
mov edx, edi
mov edi, dword [esp + 0x44]
mov ecx, eax
mov esi, dword [esp + 0x40]
cmp eax, edi
jg 0x41dd5e
jl 0x41dd56
cmp edx, esi
jae 0x41dd5e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [eax + 0x2c4]
sub esi, edx
sbb edi, ecx
mov dword [esp + 0x30], esi
mov dword [ebp + 0x10], esi
mov dword [esp + 0x34], edi
mov dword [ebp + 0x14], edi
mov ecx, dword [eax]
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edi
cmp ecx, 1
mov dword [esp + 0x3c], ecx
ja 0x41da40
lea edi, [edi - 0x80000000]
or edi, esi
je 0x41da40
cmp dword [eax + 4], 0xa8
je 0x41e210
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
lea edi, [ecx - 0x80000000]
or edi, edx
je 0x41da40
mov eax, dword [esp + 0x38]
xor edi, edi
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
shr eax, 0x11
xor eax, 1
and eax, 1
mov esi, eax
add esi, edx
adc edi, ecx
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
jl 0x41da40
jg 0x41de01
mov eax, dword [esp + 0x30]
cmp esi, eax
jbe 0x41da40
sub esi, dword [esp + 0x30]
sbb edi, dword [esp + 0x34]
cmp edi, 0
jle 0x41e399
mov dword [esp + 0x48], 0x18
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 8], str.Non_monotonous_DTS_in_output_stream__d:_d__previous:__I64d__current:__I64d_
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00891920
mov eax, dword [0xeea044]
test eax, eax
jne 0x41e223
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], str.changing_to__I64d._This_may_result_in_incorrect_timestamps_in_the_output_file._n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00891920
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
jl 0x41dec8
jg 0x41dea8
cmp esi, dword [ebp + 0x10]
jb 0x41dec8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp ecx, eax
mov edi, edx
mov edx, ecx
jg 0x41dec2
jl 0x41debe
cmp edi, esi
jae 0x41dec2
mov edi, esi
mov edx, eax
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x41da40
mov eax, dword [ebx + 0xc]
xor edx, edx
mov dword [esp + edx + 0xc8], 0
add edx, 4
cmp edx, 0x20
jb 0x41def5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea edi, [ecx - 0x80000000]
or edi, edx
je 0x41e2c1
fild dword [eax + 0x28]
fild dword [eax + 0x2c]
lea eax, [esp + 0xc8]
mov dword [esp + 8], 0xc2739c
mov dword [esp + 4], 0x20
mov dword [esp], eax
mov dword [esp + 0x40], eax
fdivp st(1)
fstp qword [esp + 0x58]
fld qword [esp + 0x58]
fild qword [esp + 0x30]
fstp qword [esp + 0x58]
fld qword [esp + 0x58]
fmulp st(1)
fstp qword [esp + 0xc]
call fcn.00bd2660
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [esp + eax + 0xa8], 0
add eax, 4
cmp eax, 0x20
jb 0x41df6b
lea eax, [edx - 0x80000000]
or eax, edi
je 0x41e3f3
lea eax, [esp + 0xa8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0xc273a1
mov dword [esp + 4], 0x20
mov dword [esp], eax
mov dword [esp + 0x3c], eax
call fcn.00bd2660
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
xor edx, edx
mov dword [esp + edx + 0x88], 0
add edx, 4
cmp edx, 0x20
jb 0x41dfca
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea edi, [ecx - 0x80000000]
or edi, edx
je 0x41e271
fild dword [eax + 0x28]
fild dword [eax + 0x2c]
lea eax, [esp + 0x88]
mov dword [esp + 8], 0xc2739c
mov dword [esp + 4], 0x20
mov dword [esp], eax
fdivp st(1)
fstp qword [esp + 0x58]
fld qword [esp + 0x58]
fild qword [esp + 0x30]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x58]
fld qword [esp + 0x58]
fmulp st(1)
fstp qword [esp + 0xc]
call fcn.00bd2660
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + eax + 0x68], 0
add eax, 4
cmp eax, 0x20
jb 0x41e040
lea eax, [edx - 0x80000000]
or eax, edi
je 0x41e2a6
mov dword [esp + 0xc], edi
lea edi, [esp + 0x68]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0xc273a1
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.00bd2660
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.008b9630
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.muxer____type:_s_pkt_pts:_s_pkt_pts_time:_s_pkt_dts:_s_pkt_dts_time:_s_size:_d_n
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x20
mov dword [esp], 0
mov dword [esp + 0x18], ecx
call fcn.00891920
jmp 0x41da81
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0x80000000
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x80000000
jmp 0x41d906
mov dword [ebx + 0x178], 0xffffffff
mov dword [ebx + 0x17c], 0xffffffff
jmp 0x41d9bc
mov dword [ebx + 0x170], 0xffffffff
mov dword [ebx + 0x174], 0xffffffff
jmp 0x41d99d
mov dword [ebx + 0x168], 0xffffffff
mov dword [ebx + 0x16c], 0xffffffff
jmp 0x41d97e
mov dword [ebx + 0x160], 0xffffffff
mov dword [ebx + 0x164], 0xffffffff
jmp 0x41d95f
mov eax, dword [ebx + 0x158]
mov dword [esp], eax
call fcn.0088a8c0
lea esi, [eax + eax]
jmp 0x41db50
cmp dword [ebp + 0x34], 0
jl 0x41e1cb
jle 0x41e38a
mov dword [esp + 8], str.Overriding_packet_duration_by_frame_rate__this_should_not_happen_n
mov dword [esp + 4], 0x18
mov dword [esp], 0
call fcn.00891920
mov edi, dword [ebx + 0x74]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x78]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp], 1
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00892710
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
jmp 0x41d9d0
mov eax, dword [ebx + 0x10c]
test eax, eax
jne 0x41da40
jmp 0x41ddb2
mov dword [esp + 8], str.aborting._n
mov dword [esp + 4], 8
mov dword [esp], 0
call fcn.00891920
mov dword [esp], 1
call fcn.00401b80
nop
lea esi, [esi]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0x80000000
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x80000000
jmp 0x41dbf2
mov edx, 0x53
mov dword [esp + 0x88], 0x54504f4e
xor eax, eax
mov word [esp + 0x8c], dx
mov dword [esp + eax + 0x68], 0
add eax, 4
cmp eax, 0x20
jb 0x41e28b
lea eax, [esp + 0x88]
mov dword [esp + 0x30], eax
mov eax, 0x53
mov dword [esp + 0x68], 0x54504f4e
lea edi, [esp + 0x68]
mov word [esp + 0x6c], ax
jmp 0x41e082
mov edi, 0x53
mov dword [esp + 0xc8], 0x54504f4e
xor edx, edx
mov word [esp + 0xcc], di
mov dword [esp + edx + 0xa8], 0
add edx, 4
cmp edx, 0x20
jb 0x41e2db
lea ecx, [esp + 0xc8]
mov dword [esp + 0x40], ecx
mov ecx, 0x53
mov dword [esp + 0xa8], 0x54504f4e
mov word [esp + 0xac], cx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x3c], ecx
jmp 0x41dfba
mov dword [ebx + 0x150], 0xffffffff
mov dword [ebx + 0x15c], 0
mov dword [ebx + 0x160], 0xffffffff
mov dword [ebx + 0x164], 0xffffffff
mov dword [ebx + 0x168], 0xffffffff
mov dword [ebx + 0x16c], 0xffffffff
mov dword [ebx + 0x170], 0xffffffff
mov dword [ebx + 0x174], 0xffffffff
mov dword [ebx + 0x178], 0xffffffff
mov dword [ebx + 0x17c], 0xffffffff
jmp 0x41d9bc
cmp dword [ebp + 0x30], 0
jbe 0x41e1cb
jmp 0x41e1ac
jl 0x41e3a4
cmp esi, 2
ja 0x41de12
test byte [esp + 0x3c], 1
mov dword [esp + 0x48], 0x30
jne 0x41de1a
jmp 0x41de12
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 8], str.Too_many_packets_buffered_for_output_stream__d:_d._n
mov dword [esp + 4], 0x10
mov dword [esp], 0
mov dword [esp + 0xc], eax
call fcn.00891920
mov dword [esp], 1
call fcn.00401b80
mov eax, dword [ebx + 0xc]
jmp 0x41e2f9