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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, ecx
mov esi, edx
sub esp, 0xec
lea eax, [esp + 0x78]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.006668d0
mov edi, dword [ebx]
mov ecx, eax
mov dword [esp + 0x50], eax
shr ecx, 0x1f
test edi, edi
jne 0x421410
test cl, cl
jne 0x421410
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x421949
mov eax, dword [esp + 0x50]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, cl
mov eax, dword [ecx*8 + 0xeea1e0]
mov edx, dword [ecx*8 + 0xeea1e4]
add eax, 1
mov dword [ecx*8 + 0xeea1e0], eax
mov eax, dword [esp + 0x50]
adc edx, 0
mov dword [ecx*8 + 0xeea1e4], edx
test eax, eax
js 0x421930
test edi, edi
je 0x4213ee
mov ecx, dword [ebp + 0xc0]
test ecx, ecx
jne 0x4219b5
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x100]
test eax, eax
mov dword [esp + 0x54], eax
je 0x4216e9
mov ebx, dword [ebp + 4]
mov ecx, 0x3e8
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov dword [esp + 0x38], ecx
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, ecx
mul dword [esp + 0x7c]
add eax, esi
adc edx, edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892710
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov dword [esp + 0x10], eax
mov eax, ecx
mov dword [esp + 0x14], edx
mul dword [esp + 0x80]
add eax, esi
adc edx, edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892710
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], edx
mov dword [esp], eax
call fcn.0088c270
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x100]
mov edx, dword [ecx + 0x7c]
test edx, edx
jne 0x42152b
mov edx, dword [ebp + 0x104]
mov dword [eax + 0x44], edx
mov edx, dword [ecx + 0x80]
test edx, edx
jne 0x42153e
mov edx, dword [ebp + 0x108]
mov edi, dword [esp + 0x54]
mov dword [eax + 0x48], edx
mov dword [eax + 0x50], 0x1e
mov dword [esp + 4], 0x20
mov dword [esp], edi
call fcn.0088bcf0
test eax, eax
js 0x421e1e
mov eax, dword [edi + 0x48]
mov edx, dword [edi]
imul eax, dword [edi + 0x20]
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, edi
mov edi, dword [edi]
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0x20]
mov dword [esp + 0x68], edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x421674
mov dword [esp + 0x6c], ebp
nop
lea esi, [esi]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax + edi*4]
cmp dword [ecx + 0x74], 1
jne 0x421bf0
mov eax, dword [esp + 0x54]
mov ebp, dword [eax + 0x48]
mov esi, dword [eax + 0x44]
mov eax, dword [ecx]
test eax, eax
js 0x421b8c
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
lea ebx, [eax + edx]
mov dword [esp + 0x38], edi
cmp esi, ebx
mov ebx, dword [ecx + 4]
jl 0x421ba0
test ebx, ebx
js 0x421ba0
add edi, ebx
cmp ebp, edi
jl 0x421ba0
imul ebx, dword [esp + 0x40]
mov esi, dword [ecx + 0x54]
mov edi, dword [ecx + 0x58]
lea ebx, [ebx + eax*4]
mov eax, dword [esp + 0x38]
add ebx, dword [esp + 0x68]
test eax, eax
jle 0x42165d
xor ebp, ebp
xor eax, eax
test edx, edx
jle 0x42164b
nop
lea esi, [esi]
movzx edx, byte [esi + eax]
mov edx, dword [edi + edx*4]
mov dword [ebx + eax*4], edx
mov edx, dword [ecx + 8]
add eax, 1
cmp eax, edx
jl 0x421630
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
add esi, dword [ecx + 0x64]
add ebp, 1
add ebx, eax
cmp ebp, dword [esp + 0x38]
jl 0x421622
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x48], eax
jne 0x4215b0
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
mov ebx, dword [ebp + 0x100]
xor esi, esi
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], edx
mov dword [ebp + 0xf0], eax
mov eax, dword [ebp + 0x118]
mov dword [ebp + 0xf4], edx
test eax, eax
jle 0x4216ca
mov dword [esp + 8], 0xc
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x114]
mov eax, dword [eax + esi*4]
add esi, 1
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0042f640
cmp esi, dword [ebp + 0x118]
jl 0x4216a0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [ebp + 0xf8], eax
mov eax, dword [esp + 0x84]
mov dword [ebp + 0xfc], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x421c28
mov edi, dword [0xeea0a8]
add dword [ebp + 0x160], 1
adc dword [ebp + 0x164], 0
test edi, edi
jle 0x421c28
mov dword [esp + 0x38], 0
jmp 0x421731
add dword [esp + 0x38], 1
mov eax, dword [esp + 0x38]
cmp eax, edi
jge 0x421c28
mov eax, dword [0xeea0ac]
mov esi, dword [esp + 0x38]
mov edx, dword [ebp]
mov ebx, dword [eax + esi*4]
mov eax, dword [0xeea0b4]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 4]
mov eax, dword [eax]
add eax, dword [edx + 0xc]
cmp eax, dword [ebx + 8]
jne 0x421720
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x421720
mov edx, dword [ebx]
mov eax, dword [0xeea0a4]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x68], eax
lea esi, [ecx - 0x80000000]
or esi, edx
je 0x421788
cmp ecx, dword [ebp + 0x4c]
jg 0x421720
jge 0x421c43
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x421720
mov eax, dword [ebx + 0x4c]
cmp dword [eax + 8], 3
jne 0x421720
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov eax, esi
mov dword [esp + 0x48], esi
lea esi, [edi - 0x80000000]
mov dword [esp + 0x4c], edi
or esi, eax
je 0x421e62
mov esi, dword [0xeea1d4]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x68]
test esi, esi
mov dword [esp + 0x40], eax
je 0x421ea0
cmp dword [eax + 0x30], 0x17001
lea esi, [ecx - 0x80000000]
sete al
movzx eax, al
add eax, 1
or esi, edx
mov dword [esp + 0x58], eax
je 0x4217fd
sub dword [esp + 0x48], edx
sbb dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x60], ebp
lea esi, [esi]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x6c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892710
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov edi, esi
mov ebp, ecx
not edi
xor ebp, 0x7fffffff
or ebp, edi
je 0x421c51
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xf4240
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx + 0x6c]
mov edi, dword [ecx + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892760
test eax, eax
js 0x421c51
mov edx, dword [ebx]
mov eax, dword [0xeea0a4]
mov ebp, dword [esp + 0x60]
mov edi, dword [eax + edx*4]
or dword [ebx + 0x104], 1
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x421923
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov eax, dword [ebx + 0x44]
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
sbb edx, dword [ebx + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892710
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
cmp ecx, edx
jl 0x42191d
jg 0x421919
cmp esi, eax
jbe 0x42191d
mov esi, eax
mov ecx, edx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
mov edi, dword [0xeea0a8]
jmp 0x421720
mov edi, dword [0xeea044]
test edi, edi
jne 0x421e8c
mov ebx, dword [esi + 0x1c]
test ebx, ebx
jne 0x4213f9
mov eax, dword [ebp + 0xf8]
mov edx, dword [ebp + 0xfc]
not eax
xor edx, 0x7fffffff
or edx, eax
je 0x421968
mov eax, ebp
call fcn.00419320
mov esi, dword [ebp + 0x118]
test esi, esi
jle 0x4213f9
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x114]
mov eax, dword [eax + ebx*4]
add ebx, 1
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0042f380
cmp ebx, dword [ebp + 0x118]
jl 0x421980
mov eax, dword [esp + 0x50]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0xc8]
mov ecx, 1
test esi, esi
je 0x421a64
mov dword [esp + 0x10], 0xf4240
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x90]
sub eax, dword [ebp + 0xe8]
mov edx, dword [esp + 0x94]
sbb edx, dword [ebp + 0xec]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00892690
mov ecx, eax
mov eax, dword [ebp + 0xd8]
cmp eax, ecx
jbe 0x421a64
test ecx, ecx
mov edx, 0xc2674f
jle 0x421e49
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Subtitle_duration_reduced_from__d_to__d_s_n
mov dword [esp + 4], 0x30
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call fcn.00891920
mov ecx, dword [esp + 0x38]
mov esi, dword [ebp + 0xc8]
mov dword [ebp + 0xd8], ecx
mov edi, dword [ebx]
mov dword [ebp + 0xc8], edi
mov dword [ebx], esi
test ecx, ecx
mov eax, dword [ebp + 0xcc]
mov edx, dword [ebp + 0xec]
mov esi, dword [ebp + 0xdc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x48], esi
mov esi, dword [ebp + 0xe0]
mov dword [ebp + 0xcc], eax
movzx eax, word [ebp + 0xd0]
mov dword [ebp + 0xd0], edx
mov edx, dword [esp + 0x7c]
mov edi, eax
mov eax, dword [ebp + 0xd4]
mov dword [ebp + 0xd4], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xd8]
mov dword [ebp + 0xd8], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xe8]
mov dword [ebp + 0xdc], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov dword [ebp + 0xe0], edx
mov edx, dword [esp + 0x8c]
mov dword [ebp + 0xe4], edx
mov edx, dword [esp + 0x90]
mov dword [ebp + 0xe8], edx
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x50]
mov word [esp + 0x78], di
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x88], esi
mov dword [ebp + 0xec], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
jle 0x421c24
mov edx, dword [ebx]
mov dword [esp + 0x50], eax
test edx, edx
jne 0x42145e
mov eax, dword [esp + 0x50]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], edi
lea esi, [esi]
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 8], str.sub2video:_rectangle___d__d__d__d__overflowing__d__d_n
mov dword [esp + 4], 0x18
mov dword [esp], 0
call fcn.00891920
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x48], eax
jne 0x4215b0
jmp 0x421670
mov dword [esp + 8], str.sub2video:_non_bitmap_subtitle_n
mov dword [esp + 4], 0x18
mov dword [esp], 0
call fcn.00891920
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x48], eax
jne 0x4215b0
jmp 0x421670
mov dword [esp + 0x50], eax
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.006675e0
mov eax, dword [esp + 0x50]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, dword [ebp + 0x48]
ja 0x421720
jmp 0x421788
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x3e8
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00892710
add eax, dword [esp + 0x48]
mov dword [esp + 0x7c], 0
adc edx, dword [esp + 0x4c]
sub dword [esp + 0x80], esi
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
je 0x421f19
lea eax, [esp + 0x78]
add dword [ebx + 0x140], 1
adc dword [ebx + 0x144], 0
mov dword [esp + 8], 0x100000
mov dword [esp + 0xc], eax
mov eax, dword [0xeea1d4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00665670
mov esi, eax
test esi, esi
js 0x421f0f
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.005d0e60
mov ecx, dword [ebx + 0xc]
mov eax, dword [0xeea1d4]
mov dword [esp + 0xb4], esi
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00892710
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
mov esi, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xa4], edx
mov edi, edx
mov edx, dword [ecx + 0x2c]
mov ebp, eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x3e8
mov dword [esp], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
call fcn.00892710
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xcc], edx
cmp dword [eax + 0x30], 0x17001
je 0x421df9
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x98]
mov ecx, ebx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], edi
call fcn.0041e400
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x58]
je 0x421e53
mov edx, dword [ebx]
mov eax, dword [0xeea0a4]
mov edi, dword [eax + edx*4]
jmp 0x421810
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x421ee4
imul eax, ebp, 0x5a
xor edx, edx
add esi, eax
adc edi, edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], edi
jmp 0x421dbb
mov dword [esp + 8], str.Impossible_to_get_a_blank_canvas._n
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.00891920
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], eax
jmp 0x4216e9
mov edx, str.__dropping_it
jmp 0x421a27
mov ebp, dword [esp + 0x60]
mov edi, dword [0xeea0a8]
jmp 0x421720
mov dword [esp + 8], str.Subtitle_packets_must_have_a_pts_n
mov dword [esp + 4], 0x10
mov dword [esp], 0
call fcn.00891920
mov edi, dword [0xeea044]
test edi, edi
je 0x421923
mov dword [esp], 1
call fcn.00401b80
nop
lea esi, [esi]
mov dword [esp], 0x100000
call fcn.00893ca0
test eax, eax
mov dword [0xeea1d4], eax
je 0x421eee
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov eax, dword [0xeea0a4]
mov edx, dword [ebx]
mov edi, dword [eax + edx*4]
mov eax, dword [esp + 0x40]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
jmp 0x4217d7
imul eax, dword [esp + 0x7c], 0x5a
jmp 0x421e08
mov dword [esp + 8], str.Failed_to_allocate_subtitle_out_n
mov dword [esp + 4], 8
mov dword [esp], 0
call fcn.00891920
jmp 0x421e8c
mov dword [esp + 8], str.Subtitle_encoding_failed_n
jmp 0x421ef6
lea eax, [esp + 0x78]
add dword [ebx + 0x140], 1
mov dword [esp + 0x84], 0
adc dword [ebx + 0x144], 0
mov dword [esp + 8], 0x100000
mov dword [esp + 0xc], eax
mov eax, dword [0xeea1d4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00665670
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
jmp 0x421cea