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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1ac
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x1cc]
mov ebp, dword [esp + 0x1c0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1e0]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1e4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1e8]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x1ec]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1d0]
mov dword [esp + 0x64], edx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x1d4]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x1dc]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x1f0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + eax + 0xc0], 0
add eax, 4
cmp eax, 0x20
jb 0x58e1c9
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
lea edx, [ebx - 0x80000000]
or edx, ecx
je 0x58e340
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0xc0]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.00bd2660
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.gen_seek:__d__s_n
mov dword [esp + 4], 0x38
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call fcn.00891920
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
lea edx, [esi - 0x80000000]
or edx, ebx
je 0x58e3a0
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
cmp edx, ebx
jl 0x58e2a0
jg 0x58e270
cmp eax, ecx
jb 0x58e2a0
mov edi, dword [esp + 0x1fc]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [edi], eax
mov eax, dword [esp + 0xa8]
mov dword [edi + 4], edx
mov edx, dword [esp + 0xac]
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x58ed70
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ebx, eax
jl 0x58e2f3
jg 0x58e2ce
cmp ecx, edx
jb 0x58e2f3
mov edi, dword [esp + 0x1fc]
mov dword [edi], edx
mov dword [edi + 4], eax
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp ebx, eax
jle 0x58e4b0
mov dword [esp + 0x14], 0x8b0
mov dword [esp + 0x10], str.libavformat_utils.c
mov dword [esp + 0xc], str.ts_min___ts_max
mov dword [esp + 8], 0xc6b3fe
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00891920
call sub.msvcrt.dll_abort
lea esi, [esi]
lea eax, [esp + 0xc0]
mov edx, 0x53
mov dword [esp + 8], str.gen_seek:__d__s_n
mov dword [esp + 4], 0x38
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c4]
mov word [esp + 0xc4], dx
mov dword [esp + 0xc0], 0x54504f4e
mov dword [esp + 0xc], eax
call fcn.00891920
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea edx, [ebx - 0x80000000]
or edx, ecx
jne 0x58e270
lea esi, [esi]
mov eax, dword [ebp + 0x504]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp], ebp
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xac], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 4], eax
call dword [esp + 0x200]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x64], edx
test eax, eax
js 0x58e490
mov eax, dword [ebp + 0x1c]
mov edi, dword [esp + 0x1c4]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x58e490
mov esi, dword [ebx + 0x1f4]
mov edi, dword [ebx + 0x1f0]
lea edx, [esi - 0x80000000]
or edx, edi
je 0x58e490
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add ecx, 0x80000000
or ecx, edx
je 0x58edd6
cmp eax, 1
je 0x58ede5
cmp eax, 0xffffffff
jne 0x58e256
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
cmp edx, esi
jg 0x58e470
jl 0x58e256
cmp eax, edi
jb 0x58e256
mov ecx, dword [ebx + 0xc0]
xor eax, eax
xor edx, edx
test cl, 0x20
sete al
setne dl
shl edx, cl
shl eax, cl
sub dword [esp + 0x60], eax
sbb dword [esp + 0x64], edx
nop
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea edx, [ebx - 0x80000000]
or edx, ecx
jne 0x58e256
or eax, 0xffffffff
mov edx, eax
jmp 0x58e292
jl 0x58e4ba
cmp ecx, edx
jae 0x58e303
mov edi, dword [esp + 0x1c4]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x80], 0
shl edi, 2
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x74]
add edi, 0x80000000
mov dword [esp + 0x94], edi
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp esi, edx
jg 0x58e554
jge 0x58e550
test byte [esp + 0x1f8], 1
jne 0x58e531
mov edi, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov ecx, dword [esp + 0x1fc]
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [ecx], edi
mov dword [ecx + 4], ebp
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, eax
jbe 0x58e503
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
xor eax, eax
mov dword [esp + eax + 0x100], 0
add eax, 4
cmp eax, 0x20
jb 0x58e564
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x58ebf4
lea eax, [esp + 0x100]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.00bd2660
xor eax, eax
mov dword [esp + eax + 0xe0], 0
add eax, 4
cmp eax, 0x20
jb 0x58e5ae
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
lea edx, [esi - 0x80000000]
or edx, ebx
je 0x58ebd0
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0xe0]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.00bd2660
lea eax, [esp + 0x100]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], str.pos_min0x_I64x_pos_max0x_I64x_dts_min_s_dts_max_s_n
mov dword [esp + 4], 0x38
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xac]
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call fcn.00891920
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x58]
cmp esi, edx
jl 0x58e694
jle 0x58e690
mov dword [esp + 0x14], 0x8b7
mov dword [esp + 0x10], str.libavformat_utils.c
mov dword [esp + 0xc], str.pos_limit___pos_max
jmp 0x58e31b
cmp ebx, eax
ja 0x58e66d
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x58eb90
mov ebx, eax
sub ebx, dword [esp + 0x58]
mov esi, edx
sbb esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0x10], ecx
mov edi, esi
mov esi, ebx
mov ebx, dword [esp + 0x9c]
sbb ebx, dword [esp + 0x64]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x14], ebx
mov ebx, esi
mov esi, dword [esp + 0x70]
sub eax, ebx
sbb edx, edi
sub esi, dword [esp + 0x60]
mov edi, dword [esp + 0x74]
sbb edi, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00892690
add eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
adc edx, dword [esp + 0x7c]
sub eax, dword [esp + 0x68]
sbb edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0xbc], edx
cmp edx, ebx
jg 0x58eb50
jl 0x58e760
cmp eax, ecx
ja 0x58eb50
lea esi, [esi]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
add esi, 1
adc edi, 0
mov dword [esp + 0x68], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0xbc], edi
lea eax, [esp + 0xb8]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 4], eax
call dword [esp + 0x200]
mov esi, eax
mov eax, dword [esp + 0x1c4]
mov edi, edx
test eax, eax
js 0x58e850
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x90]
mov eax, dword [eax + ebx]
mov edx, dword [eax + 0x1f8]
test edx, edx
je 0x58e850
mov ebx, dword [eax + 0x1f4]
mov ecx, dword [eax + 0x1f0]
mov dword [esp + 0x78], ecx
lea ecx, [ebx - 0x80000000]
mov dword [esp + 0x84], ebx
mov ebx, ecx
or ebx, dword [esp + 0x78]
je 0x58e850
lea ebx, [edi - 0x80000000]
or ebx, esi
je 0x58e850
cmp edx, 1
je 0x58ed03
cmp edi, dword [esp + 0x84]
jg 0x58e827
jl 0x58e850
cmp esi, dword [esp + 0x78]
jb 0x58e850
cmp edx, 0xffffffff
jne 0x58e850
mov ecx, dword [eax + 0xc0]
xor edx, edx
xor eax, eax
test cl, 0x20
sete al
setne dl
shl eax, cl
shl edx, cl
sub esi, eax
sbb edi, edx
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
xor eax, dword [esp + 0xa0]
xor edx, dword [esp + 0xa4]
or edx, eax
je 0x58ebc0
mov dword [esp + 0x80], 0
xor eax, eax
mov dword [esp + eax + 0x180], 0
add eax, 4
cmp eax, 0x20
jb 0x58e881
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x94]
je 0x58ec90
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], eax
lea eax, [esp + 0x180]
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov dword [esp + 0x88], eax
call fcn.00bd2660
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
xor eax, eax
mov dword [esp + eax + 0x160], 0
add eax, 4
cmp eax, 0x20
jb 0x58e8eb
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x58ec60
lea eax, [esp + 0x160]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp], eax
mov dword [esp + 0x84], eax
call fcn.00bd2660
xor eax, eax
mov dword [esp + eax + 0x140], 0
add eax, 4
cmp eax, 0x20
jb 0x58e93c
lea edx, [edi - 0x80000000]
or edx, esi
je 0x58ec35
lea eax, [esp + 0x140]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp], eax
mov dword [esp + 0x78], eax
call fcn.00bd2660
mov ebx, dword [esp + 0x78]
xor eax, eax
mov dword [esp + eax + 0x120], 0
add eax, 4
cmp eax, 0x20
jb 0x58e98e
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea edx, [ebx - 0x80000000]
mov eax, ecx
or edx, eax
je 0x58ec11
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 8], 0xc6bbab
mov dword [esp + 4], 0x20
mov dword [esp + 0x10], edx
lea edx, [esp + 0x120]
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov dword [esp + 0x8c], edx
call fcn.00bd2660
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], str._I64d__I64d__I64d____s__s__s_target:_s_limit:_I64d_start:_I64d_noc:_d_n
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x38
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
call fcn.00891920
lea edx, [edi - 0x80000000]
or edx, esi
je 0x58ed40
cmp dword [esp + 0x74], edi
jg 0x58eb22
jl 0x58eabd
cmp dword [esp + 0x70], esi
ja 0x58eb22
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edi
mov ecx, dword [esp + 0x70]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xbc]
cmp ebx, edi
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
jg 0x58eb30
jl 0x58eb0f
cmp ecx, esi
jae 0x58eb30
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
jmp 0x58e4f5
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
jmp 0x58e4f5
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp edx, esi
jl 0x58e784
jg 0x58eb6a
cmp eax, ebx
jbe 0x58e784
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
jmp 0x58e784
cmp dword [esp + 0x80], 1
je 0x58ecc0
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x58e760
add dword [esp + 0x80], 1
jmp 0x58e87f
mov esi, 0x53
lea ebx, [esp + 0xe0]
mov dword [esp + 0xe0], 0x54504f4e
mov word [esp + 0xe4], si
jmp 0x58e5fe
mov edi, 0x53
mov dword [esp + 0x100], 0x54504f4e
mov word [esp + 0x104], di
jmp 0x58e5ac
mov eax, 0x53
lea edx, [esp + 0x120]
mov dword [esp + 0x120], 0x54504f4e
mov word [esp + 0x124], ax
jmp 0x58e9fa
lea eax, [esp + 0x140]
mov edx, 0x53
mov dword [esp + 0x140], 0x54504f4e
mov word [esp + 0x144], dx
mov dword [esp + 0x78], eax
mov ebx, eax
jmp 0x58e98c
lea eax, [esp + 0x160]
mov ecx, 0x53
mov dword [esp + 0x160], 0x54504f4e
mov word [esp + 0x164], cx
mov dword [esp + 0x84], eax
jmp 0x58e93a
lea eax, [esp + 0x180]
mov ebx, 0x53
mov dword [esp + 0x180], 0x54504f4e
mov word [esp + 0x184], bx
mov dword [esp + 0x88], eax
jmp 0x58e8db
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x78], ecx
adc edx, ebx
mov dword [esp + 0x7c], ebx
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
jmp 0x58e747
cmp edi, dword [esp + 0x84]
jg 0x58e850
jl 0x58ed1c
cmp esi, dword [esp + 0x78]
jae 0x58e850
mov ecx, dword [eax + 0xc0]
xor edx, edx
xor eax, eax
test cl, 0x20
sete al
setne dl
shl eax, cl
shl edx, cl
add esi, eax
adc edi, edx
jmp 0x58e850
mov dword [esp], ebp
mov dword [esp + 8], str.read_timestamp___failed_in_the_middle_n
mov dword [esp + 4], 0x10
call fcn.00891920
add esp, 0x1ac
mov eax, 0xffffffff
mov edx, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x200]
mov dword [esp], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 4], eax
call fcn.0058dca0
cdq
test eax, eax
js 0x58e292
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
jmp 0x58e2bc
mov eax, 0xffffffff
mov edx, 0xffffffff
jmp 0x58e292
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
cmp edx, esi
jg 0x58e256
jl 0x58edff
cmp eax, edi
jae 0x58e256
mov ecx, dword [ebx + 0xc0]
xor eax, eax
xor edx, edx
test cl, 0x20
sete al
setne dl
shl edx, cl
shl eax, cl
add dword [esp + 0x60], eax
adc dword [esp + 0x64], edx
jmp 0x58e490