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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x6c], ecx
cmp dword [esi + 0x18], 0
jne 0x1001fef3
cmp dword [esi + 0x1c], 0x80000000
jne 0x1001fef3
push str.Subtitle_packets_must_have_a_pts_n
push 0x10
push 0
call dword [sym.imp.avutil_56.dll_av_log]
add esp, 0xc
cmp dword [0x100b63dc], 0
je 0x10020177
mov eax, dword [0x100b64d4]
test eax, eax
je 0x1001fecd
push ebx
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x5c], 0
mov edx, dword [edi + 0x50]
mov dword [ebp - 0x58], edx
jne 0x1001ff4e
push 0x100000
call dword [sym.imp.avutil_56.dll_av_malloc]
add esp, 4
mov dword [ebx + 0x5c], eax
test eax, eax
jne 0x1001ff4b
push str.Failed_to_allocate_subtitle_out_n
push 8
push eax
call dword [sym.imp.avutil_56.dll_av_log]
mov eax, dword [0x100b64d4]
add esp, 0xc
test eax, eax
je 0x1001ff36
push ebx
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
mov edx, dword [ebp - 0x58]
mov ecx, dword [edi]
xor eax, eax
cmp dword [edx + 0x10], 0x17001
sete al
inc eax
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
test ecx, ecx
jne 0x1001ff83
cmp eax, 0x80000000
je 0x1001ff90
sub dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x5c]
sbb ecx, eax
mov dword [ebp - 0x5c], ecx
jmp 0x1001ff93
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
nop word [eax + eax]
push dword [edx + 0x50]
mov eax, dword [esi + 0xc]
push dword [edx + 0x4c]
mov dword [ebp - 0x64], eax
push 0xf4240
push 1
push ecx
push dword [ebp - 0x60]
call dword [sym.imp.avutil_56.dll_av_rescale_q]
add esp, 0x18
mov dword [edi + 0x24], edx
mov edx, ebx
mov dword [edi + 0x20], eax
mov ecx, edi
call fcn.1001f8e0
test eax, eax
je 0x10020177
mov eax, dword [ebp - 0x60]
push 0xf4240
push 1
push 0x3e8
push 1
push 0
push dword [esi + 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x1c], eax
call dword [sym.imp.avutil_56.dll_av_rescale_q]
add esp, 0x18
add dword [esi + 0x18], eax
mov eax, dword [esi + 4]
adc dword [esi + 0x1c], edx
sub dword [esi + 8], eax
cmp dword [ebp - 0x54], 1
mov dword [esi + 4], 0
jne 0x1002001f
mov dword [esi + 0xc], 0
add dword [edi + 0x168], 1
push esi
adc dword [edi + 0x16c], 0
push 0x100000
push dword [ebx + 0x5c]
push dword [ebp - 0x58]
call dword [sym.imp.avcodec_58.dll_avcodec_encode_subtitle]
add esp, 0x10
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x54], 1
jne 0x10020051
mov ecx, dword [ebp - 0x64]
mov dword [esi + 0xc], ecx
test eax, eax
jns 0x1002008d
push str.Subtitle_encoding_failed_n
push 8
push 0
call dword [sym.imp.avutil_56.dll_av_log]
mov eax, dword [0x100b64d4]
add esp, 0xc
test eax, eax
je 0x10020078
push ebx
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.avcodec_58.dll_av_init_packet]
mov eax, dword [ebx + 0x5c]
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
push dword [edi + 0x3c]
push dword [edi + 0x38]
push 0xf4240
push 1
push dword [esi + 0x1c]
push dword [esi + 0x18]
call dword [sym.imp.avutil_56.dll_av_rescale_q]
push dword [edi + 0x3c]
mov dword [ebp - 0x48], eax
push dword [edi + 0x38]
mov dword [ebp - 0x44], edx
push 0x3e8
push 1
push 0
push dword [esi + 8]
call dword [sym.imp.avutil_56.dll_av_rescale_q]
mov dword [ebp - 0x20], eax
add esp, 0x30
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], edx
cmp dword [eax + 0x10], 0x17001
jne 0x10020143
cmp dword [ebp - 0x54], 0
push dword [edi + 0x3c]
push dword [edi + 0x38]
push 0x3e8
push 1
push 0
jne 0x10020125
push dword [esi + 4]
call dword [sym.imp.avutil_56.dll_av_rescale_q]
mov ecx, dword [ebp - 0x48]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
adc eax, edx
mov dword [ebp - 0x44], eax
jmp 0x10020149
push dword [esi + 8]
call dword [sym.imp.avutil_56.dll_av_rescale_q]
mov ecx, dword [ebp - 0x48]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
adc eax, edx
mov dword [ebp - 0x44], eax
jmp 0x10020149
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push ebx
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x50]
mov ecx, dword [ebp - 0x6c]
push 0
push edi
mov dword [ebp - 0x3c], eax
call fcn.1001f790
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov edx, dword [ebp - 0x58]
inc eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x70]
jl 0x1001ffa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret