Function at 0x10058c60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e15a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x101279d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
cmp eax, edx
je 0x10058cc6
mov ecx, edx
cmp edx, edx
je 0x10058cc3
mov edi, edx
sub edi, eax
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edi + eax + 8]
mov dword [eax + 8], ebx
mov ebx, dword [edi + eax + 0xc]
mov dword [eax + 0xc], ebx
add ecx, 0x10
add eax, 0x10
cmp ecx, edx
jne 0x10058ca1
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
cmp eax, edx
je 0x10058d05
mov ecx, edx
cmp edx, edx
je 0x10058d02
mov edi, edx
sub edi, eax
lea ebx, [ebx]
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edi + eax + 8]
mov dword [eax + 8], ebx
mov ebx, dword [edi + eax + 0xc]
mov dword [eax + 0xc], ebx
add ecx, 0x10
add eax, 0x10
cmp ecx, edx
jne 0x10058ce0
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x20]
xor edx, edx
mov dword [esi + 0x4c], edx
cmp ecx, edx
jne 0x10058d31
mov dword [esi + 0x64], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x24], edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, SysReAllocString
mov eax, SysReAllocString
mov edi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp ecx, edx
jbe 0x10058d77
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
cmp ebx, eax
cmovl eax, ebx
cmp ebx, dword [ebp - 0x18]
jle 0x10058d62
mov dword [ebp - 0x18], ebx
cmp ecx, edi
cmovl edi, ecx
cmp ecx, dword [ebp - 0x14]
jle 0x10058d6f
mov dword [ebp - 0x14], ecx
add edx, 8
dec dword [ebp - 0x1c]
jne 0x10058d50
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sar eax, 3
and eax, 0xfffffff8
mov ebx, eax
sar edi, 3
add ecx, 7
add edx, 7
and edi, 0xfffffff8
xor eax, eax
sar ecx, 3
sar edx, 3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x20], eax
jbe 0x10058dd0
mov edi, dword [esi + 0x1c]
add ebx, ebx
add ebx, ebx
add ebx, ebx
sub dword [edi + eax*8], ebx
mov ebx, dword [ebp - 0x1c]
lea edi, [edi + eax*8]
mov edi, dword [esi + 0x1c]
add ebx, ebx
add ebx, ebx
add ebx, ebx
sub dword [edi + eax*8 + 4], ebx
mov ebx, dword [ebp - 0x20]
lea edi, [edi + eax*8 + 4]
inc eax
cmp eax, dword [esi + 0x20]
jb 0x10058da4
mov eax, dword [ebp - 0x1c]
cmp ebx, ecx
jg 0x10059336
cmp eax, edx
jg 0x10059336
sub ecx, ebx
sub edx, eax
inc ecx
lea edi, [edx + 1]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edi
cmp ecx, 0x5000
jg 0x1005930e
cmp edi, 0x2800
jg 0x1005930e
push 0x4000
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], 1
mov dword [esi + 0x54], 0x800
call fcn.100a824b
mov dword [esi + 0x50], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008e66b
mov ecx, dword [esi + 0x28]
add ecx, ecx
add ecx, ecx
push ecx
xor edi, edi
push edi
push eax
mov dword [esi + 0x5c], eax
call fcn.100a7150
add esp, 0x14
mov byte [esi + 4], 0
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
cmp dword [esi + 0x20], edi
jbe 0x10058f63
or ebx, 0xffffffff
mov edx, dword [esi + 0x18]
mov al, byte [edi + edx]
and al, 0xfe
movzx eax, al
add eax, 0xfffffffe
cmp eax, 0xfa
ja case.0x10058e95.3
movzx eax, byte [eax + 0x10059390]
jmp dword [eax*4 + 0x10059378]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp dword [esi + 8], eax
jne 0x10058eac
cmp dword [esi + 0xc], ecx
je 0x10058ec3
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.100552d0
mov eax, dword [esi + 0x1c]
mov byte [esi + 4], 0
mov ecx, dword [eax + edi*8]
mov eax, dword [eax + edi*8 + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp case.0x10058e95.3
mov edx, dword [esi + 0x20]
sub edx, edi
inc edx
cmp edx, 2
jb case.0x10058e95.3
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [eax + edi*8]
lea eax, [eax + edi*8]
push ecx
mov ecx, dword [eax - 4]
push edx
mov edx, dword [eax - 8]
push ecx
push edx
mov ecx, esi
call fcn.100552d0
jmp case.0x10058e95.3
mov eax, dword [esi + 0x20]
sub eax, edi
inc eax
cmp eax, 4
jb 0x10058f19
push 0
push ebx
mov ecx, esi
call fcn.10057930
add edi, 2
add ebx, 2
jmp case.0x10058e95.3
mov ecx, dword [esi + 0x20]
sub ecx, edi
inc ecx
cmp ecx, 4
jb 0x10058f36
push 1
push ebx
mov ecx, esi
call fcn.10057930
add edi, 2
add ebx, 2
jmp case.0x10058e95.3
mov edx, dword [esi + 0x20]
sub edx, edi
add edx, 3
cmp edx, 4
jb case.0x10058e95.3
push 1
lea eax, [edi - 3]
push eax
mov ecx, esi
call fcn.10057930
inc edi
inc ebx
cmp edi, dword [esi + 0x20]
jb 0x10058e75
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp dword [esi + 8], eax
jne 0x10058f73
cmp dword [esi + 0xc], ecx
je 0x10058f8a
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.100552d0
mov eax, dword [esi + 0x18]
push eax
call fcn.1008e660
mov eax, dword [esi + 0x1c]
push eax
call fcn.1008e660
xor edi, edi
xor ebx, ebx
xor eax, eax
add esp, 8
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
mov edx, dword [esi + 0x58]
shr edx, 1
push edx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], eax
call fcn.100589f0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x28], eax
jle 0x100592ce
lea esp, [esp]
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100590ea
jmp 0x10059000
mov edx, dword [esi + 0x50]
lea edx, [edx + eax*8 + 4]
mov dword [ebp - 0x20], edx
cmp edx, edi
jae 0x10059078
cmp ebx, edx
ja 0x10059078
sub edx, ebx
sar edx, 2
mov dword [ebp - 0x20], edx
cmp edi, dword [ebp - 0x30]
jne 0x10059067
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10059304
mov ecx, dword [ebp - 0x30]
sub ecx, ebx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x10059067
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x10059051
xor ecx, ecx
jmp 0x10059053
add ecx, edx
cmp ecx, eax
cmovb ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10058560
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test edi, edi
je 0x10059073
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + eax*4]
mov dword [edi], ecx
mov eax, dword [ebp - 0x14]
jmp 0x100590d3
cmp edi, dword [ebp - 0x30]
jne 0x100590cb
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10059304
mov ecx, dword [ebp - 0x30]
sub ecx, ebx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x100590c8
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x100590af
xor ecx, ecx
jmp 0x100590b1
add ecx, edx
cmp ecx, eax
cmovb ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10058560
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x100590d3
mov edx, dword [edx]
mov dword [edi], edx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*8]
add edi, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10059000
mov edx, edi
sub edx, ebx
sar edx, 2
push edx
push edi
push ebx
call fcn.10058ac0
add esp, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0
cmp ebx, edi
je 0x100592aa
mov edi, edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test ecx, ecx
jne 0x10059123
mov edx, eax
shr edx, 1
mov dword [ebp - 0x1c], edx
test al, 1
je 0x1005912a
inc ecx
jmp 0x1005912b
dec ecx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x1005927c
shr eax, 1
cmp eax, dword [ebp - 0x1c]
jbe 0x1005927c
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
xor edi, edi
add esi, ecx
adc edi, edx
add esi, 0x40000000
adc edi, 0x40000000
xor ebx, ebx
add eax, ecx
mov ecx, dword [ebp - 0x10]
adc ebx, edx
add eax, 0x40000000
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x30]
adc ebx, 0x40000000
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], ebx
cmp edx, eax
jae 0x1005920d
mov ecx, dword [ecx + 0x2c]
cmp ecx, edx
ja 0x1005920d
mov esi, edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x34]
sub esi, ecx
cmp eax, edx
jne 0x100591e1
sub eax, ecx
sar eax, 4
cmp eax, 0xffffffe
ja 0x10059304
sub edx, ecx
mov ecx, edx
inc eax
sar ecx, 4
cmp eax, ecx
jbe 0x100591e1
mov edx, ecx
shr edx, 1
mov edi, 0xfffffff
sub edi, edx
cmp edi, ecx
jae 0x100591ce
xor ecx, ecx
jmp 0x100591d0
add ecx, edx
cmp ecx, eax
cmovb ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.100589f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30]
and esi, 0xfffffff0
add esi, dword [ecx + 0x2c]
test eax, eax
je 0x10059278
mov edx, dword [esi]
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
jmp 0x10059278
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x34]
cmp eax, ecx
jne 0x10059260
mov edx, dword [edx + 0x2c]
sub eax, edx
sar eax, 4
cmp eax, 0xffffffe
ja 0x10059304
sub ecx, edx
inc eax
sar ecx, 4
mov dword [ebp - 0x20], eax
cmp eax, ecx
jbe 0x10059260
mov eax, ecx
shr eax, 1
mov edx, 0xfffffff
sub edx, eax
cmp edx, ecx
jae 0x1005924a
xor ecx, ecx
jmp 0x1005924c
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp ecx, eax
cmovb ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.100589f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10059278
mov edx, dword [ebp - 0x50]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
add dword [ecx + 0x30], 0x10
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x34]
jne 0x10059110
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push 0
push eax
push esi
call fcn.100a8b20
mov dword [ebp - 0x34], esi
mov edi, esi
mov ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0xc
add dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x28]
adc ecx, 0
cdq
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jl 0x10058fe0
jg 0x100592ce
cmp dword [ebp - 0x28], eax
jb 0x10058fe0
mov ecx, dword [esi + 0x50]
push ecx
call fcn.100a80e9
mov edx, dword [esi + 0x5c]
push edx
call fcn.1008e660
add esp, 8
test ebx, ebx
je 0x10059362
push ebx
call fcn.1008e660
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.100c4464
push str.VsFilter_X_:_subtitle_size_too_big.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x18]
xor edi, edi
push eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
call fcn.1008e660
mov ecx, dword [esi + 0x1c]
push ecx
jmp 0x10059351
mov edx, dword [esi + 0x18]
xor edi, edi
push edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
call fcn.1008e660
mov eax, dword [esi + 0x1c]
push eax
call fcn.1008e660
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret