Function at 0x40ac00
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1ac
mov ebp, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esp + 0x1d4]
lea edx, [eax - 0x80000000]
or edx, dword [esp + 0x1d0]
je 0x40b799
cmp dword [0x5271a8], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 8]
je 0x40b784
mov ecx, 1
mov edx, 2
cmp dword [esi + 0xe4], 0x17001
mov eax, dword [esp + 0x1cc]
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x198], ecx
mov dword [esp + 0x194], edi
mov dword [esp + 0x1a4], ebx
cmovne edx, ecx
mov ebx, eax
mov dword [esp + 0x1a0], edx
push dword [0x4264bc]
push dword [0x4264b8]
mov edx, dword [ebp + 8]
push dword [edx + 0x44]
push dword [edx + 0x40]
push dword [esp + 0x1e4]
push dword [esp + 0x1e4]
call sub.avutil.dll_av_rescale_q
push dword [0x4264bc]
push dword [0x4264b8]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov edx, dword [ebp + 8]
push dword [edx + 0x44]
push dword [edx + 0x40]
push 0
push dword [ebx + 4]
call sub.avutil.dll_av_rescale_q
add dword [ebx + 0x18], eax
adc dword [ebx + 0x1c], edx
push ebx
push 0x100000
mov edx, dword [ebx + 4]
push dword [0x5271a8]
push dword [esp + 0x1e4]
sub dword [ebx + 8], edx
mov dword [ebx + 4], 0
call sub.avcodec.dll_avcodec_encode_subtitle
add esp, 0x40
mov esi, eax
test esi, esi
jl 0x40b765
lea edx, [esp + 0x120]
push edx
call sub.avcodec.dll_av_init_packet
mov edx, dword [esp + 0x1a8]
mov edi, dword [0x5271a8]
mov ecx, dword [edx + 4]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], esi
mov esi, dword [ebp + 8]
push dword [0x4264bc]
push dword [0x4264b8]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esp + 0x1e8]
push dword [esp + 0x1e8]
call sub.avutil.dll_av_rescale_q
imul edi, dword [0x938514], 0x640
mov ecx, dword [ebp]
mov esi, dword [edi + ecx*8 + 0x8b0420]
mov ecx, dword [edi + ecx*8 + 0x8b0424]
add esi, eax
adc ecx, edx
mov edx, dword [esp + 0x1c0]
mov edx, dword [edx + 0xc]
push dword [edx + 0x44]
push dword [edx + 0x40]
push dword [0x4264bc]
push dword [0x4264b8]
push ecx
push esi
call sub.avutil.dll_av_rescale_q
add esp, 0x34
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], edx
mov ecx, dword [ecx + 0xe4]
cmp ecx, 0x17001
jne 0x40ae11
cmp dword [esp + 0x19c], 0
jne 0x40adf8
imul ecx, dword [ebx + 4], 0x5a
add ecx, eax
adc edx, 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
jmp 0x40ae8b
imul ecx, dword [ebx + 8], 0x5a
add ecx, eax
adc edx, 0
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
jmp 0x40ae8b
cmp ecx, 0x17005
jne 0x40ae8b
mov edx, dword [esp + 0x1a4]
mov ecx, dword [edx + 0xc]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push dword [0x4264bc]
push dword [0x4264b8]
push dword [0x93843c]
push dword [0x938438]
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov esi, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
add esi, eax
adc ecx, edx
mov dword [esp + 0x120], esi
sub esi, dword [0x5271a0]
mov dword [esp + 0x124], ecx
sbb ecx, dword [0x5271a4]
jl 0x40ae7f
or esi, ecx
jne 0x40b398
cmp dword [esp + 0x198], 1
je 0x40aec0
jmp 0x40ae99
cmp dword [esp + 0x198], 1
je 0x40afd8
mov edx, dword [esp + 0x19c]
inc edx
cmp edx, dword [esp + 0x1a0]
mov dword [esp + 0x19c], edx
jl 0x40ac8b
add esp, 0x1ac
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x1a4]
mov esi, dword [ecx + 0xc]
mov edx, 1
mov edi, 0x3e8
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
push edx
push 0
push dword [ebx + 8]
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov ecx, dword [esp + 0x120]
mov esi, dword [0x938514]
mov edi, dword [esi*8 + 0x567980]
mov esi, dword [esi*8 + 0x567984]
cdq
mov dword [esp + 0x140], eax
add ecx, eax
adc edx, dword [esp + 0x124]
mov dword [0x5271a0], ecx
mov dword [0x5271a4], edx
sub esi, 0
jl 0x40afd8
or edi, esi
je 0x40afd8
mov esi, dword [esp + 0x1a4]
push dword [0x4264bc]
mov edi, dword [esi + 0xc]
push dword [0x4264b8]
push dword [edi + 0x44]
push dword [edi + 0x40]
push edx
push ecx
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0xc8], eax
mov esi, dword [0x938514]
mov ecx, dword [esi*8 + 0x567980]
mov eax, dword [esi*8 + 0x567984]
add ecx, dword [0x938438]
adc eax, dword [0x93843c]
mov edi, dword [esp + 0xc8]
sub edi, ecx
sbb edx, eax
jl 0x40afd8
mov esi, dword [esp + 0x1a4]
mov edi, dword [esi + 0xc]
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [0x4264bc]
push dword [0x4264b8]
push eax
push ecx
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov ecx, dword [esp + 0x120]
sub eax, ecx
cdq
mov dword [esp + 0x140], eax
add ecx, eax
adc edx, dword [esp + 0x124]
mov dword [0x5271a0], ecx
mov dword [0x5271a4], edx
mov ecx, dword [esp + 0x1a4]
mov esi, dword [ecx + 0xc]
mov edx, dword [esi + 8]
mov esi, dword [esp + 0x138]
mov edi, dword [ecx]
mov dword [esp + 0x16c], edx
mov edx, edi
shl edx, 4
sub edx, edi
shl edx, 4
mov ecx, dword [edx + esi*4 + 0x8fe940]
test ecx, ecx
je 0x40b37c
mov eax, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
mov edi, dword [esp + 0x128]
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x170], edi
mov edi, dword [esp + 0x130]
mov dword [esp + 0x174], edx
mov edx, dword [esp + 0x134]
mov dword [esp + 0x178], edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x17c], edx
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x184], edx
mov dword [esp + 0x18c], edi
mov edi, dword [esp + 0x144]
mov dword [esp + 0x188], edi
mov edi, dword [esp + 0x148]
mov dword [esp + 0x11c], edi
mov edi, dword [esp + 0x14c]
mov ebx, dword [esp + 0x11c]
mov dword [esp + 0x180], edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0x190], edi
mov edi, dword [esp + 0x154]
mov dword [esp + 0x118], edi
mov edi, dword [esp + 0x158]
mov dword [esp + 0x114], edi
mov edi, dword [esp + 0x15c]
mov dword [esp + 0x164], edx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x160], esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x168], ecx
mov ecx, edi
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x118]
mov edi, dword [esp + 0x178]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x174]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x160]
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0x164]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x188]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ebx
mov ebx, dword [esp + 0x180]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x184]
and ecx, 1
push ecx
push dword [esp + 0x138]
push dword [esp + 0x138]
lea ebp, [esp + 0xec]
push ebp
lea esi, [esp + 0xec]
push esi
push 0
push dword [esp + 0x184]
push dword [esp + 0x184]
call sub.avcodec.dll_av_bitstream_filter_filter
add esp, 0x20
test eax, eax
je 0x40b220
lea eax, [esp + 0x120]
push eax
call sub.avcodec.dll_av_free_packet
pop ecx
mov dword [esp + 0xf0], 0x41630e
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0xd0]
mov ebx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd8]
mov ebp, dword [esp + 0xdc]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0x174], ecx
mov dword [esp + 0x12c], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x178], ebp
mov dword [esp + 0x130], ebp
mov ebp, dword [esp + 0xf0]
mov dword [esp + 0x17c], esi
mov dword [esp + 0x134], esi
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x160], edi
mov dword [esp + 0x138], edi
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x164], ebx
mov dword [esp + 0x13c], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x140], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x188], ebp
mov dword [esp + 0x144], ebp
mov ebp, dword [esp + 0x100]
mov dword [esp + 0x148], ebx
mov dword [esp + 0x180], esi
mov dword [esp + 0x14c], esi
mov esi, dword [esp + 0x104]
mov dword [esp + 0x190], edi
mov dword [esp + 0x150], edi
mov edi, dword [esp + 0x168]
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], esi
mov dword [esp + 0x15c], ecx
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x168], edi
je 0x40b36e
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x184], edi
jmp 0x40b10c
mov ebx, dword [esp + 0x1cc]
mov ebp, dword [esp + 0x10c]
lea edx, [esp + 0x120]
push edx
push dword [esp + 0x198]
call sub.avformat.dll_Ordinal_21
add esp, 8
jmp 0x40ae99
lea edx, [esp + 0x50]
push edx
call sub.avcodec.dll_av_init_packet
pop ecx
mov edx, dword [esp + 0x1a4]
mov edi, dword [0x5271a0]
mov esi, dword [0x5271a4]
mov eax, dword [esp + 0x120]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x124]
mov dword [esp + 0x60], 0x5271ac
mov dword [esp + 0x68], ecx
mov ecx, dword [0x938514]
mov dword [esp + 0x64], 2
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov esi, dword [ecx*8 + 0x567980]
mov ecx, dword [ecx*8 + 0x567984]
neg edi
add edi, eax
mov dword [esp + 0x70], edi
sub ecx, 0
jl 0x40b471
or esi, ecx
je 0x40b471
mov ecx, dword [esp + 0x1a4]
push dword [0x4264bc]
mov esi, dword [ecx + 0xc]
push dword [0x4264b8]
push dword [esi + 0x44]
push dword [esi + 0x40]
push edx
push eax
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0xc4], eax
mov ecx, dword [0x938514]
mov esi, dword [0x938438]
mov eax, dword [0x93843c]
add esi, dword [ecx*8 + 0x567980]
adc eax, dword [ecx*8 + 0x567984]
mov edi, dword [esp + 0xc4]
sub edi, esi
sbb edx, eax
jl 0x40b471
mov dword [esp + 0x198], 0
jmp 0x40ae99
cmp dword [esp + 0x198], 1
jne 0x40ae99
mov ecx, dword [esp + 0x1a4]
mov esi, dword [ecx + 0xc]
mov edx, dword [esi + 8]
mov esi, dword [esp + 0x68]
mov edi, dword [ecx]
mov dword [esp + 0x9c], edx
mov edx, edi
shl edx, 4
sub edx, edi
shl edx, 4
mov ecx, dword [edx + esi*4 + 0x8fe940]
test ecx, ecx
je 0x40b74c
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc0], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0xb8], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x98], ecx
mov ecx, edi
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xb0]
and ecx, 1
push ecx
push dword [esp + 0x68]
push dword [esp + 0x68]
lea ebp, [esp + 0x20]
push ebp
lea esi, [esp + 0x20]
push esi
push 0
push dword [esp + 0xb4]
push dword [esp + 0xb4]
call sub.avcodec.dll_av_bitstream_filter_filter
add esp, 0x20
test eax, eax
je 0x40b648
lea eax, [esp + 0x50]
push eax
call sub.avcodec.dll_av_free_packet
pop ecx
mov dword [esp + 0x24], 0x41630e
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xb4], esi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x90], edi
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xac], ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x78], ebx
mov dword [esp + 0xa4], esi
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ecx
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x98], edi
je 0x40b73e
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xb0], edi
jmp 0x40b577
mov ebx, dword [esp + 0x1cc]
mov ebp, dword [esp + 0x10c]
lea edx, [esp + 0x50]
push edx
push dword [esp + 0x198]
call sub.avformat.dll_Ordinal_21
add esp, 8
jmp 0x40aec0
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Subtitle_encoding_failed_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
push 0x100000
call sub.avutil.dll_av_malloc
pop ecx
mov dword [0x5271a8], eax
jmp 0x40ac3d
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Subtitle_packets_must_have_a_pts_n
call sub.MSVCR90.dll_fputs
add esp, 0x1b4
pop ebx
pop ebp
pop esi
pop edi
ret