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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
mov esi, dword [ebx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x58f82c
mov edx, dword [esi + 0x38]
test edx, edx
je 0x58fac0
test byte [esp + 0xd0], 2
jne 0x58f8a2
mov eax, dword [esp + 0xc4]
test eax, eax
js 0x58fb30
mov edx, dword [esi + 0x38]
test edx, edx
je 0x58f930
mov dword [esp], ebx
call fcn.0058b750
mov edi, dword [esp + 0xd0]
mov eax, dword [ebx + 4]
mov dword [esp], ebx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 4], edi
call dword [eax + 0x38]
test eax, eax
js 0x58f92a
mov dword [esp], ebx
call fcn.005880c0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [esi + 9], 0x80
jne 0x58fcbc
mov dword [esp], ebx
call fcn.0058b750
mov eax, dword [ebx + 0x504]
mov esi, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00457fb0
cmp dword [esp + 0x34], esi
jl 0x58f8f1
jg 0x58f8d9
cmp dword [esp + 0x38], edi
jb 0x58f8f1
add eax, 0xffffffff
adc edx, 0xffffffff
cmp edx, dword [esp + 0x34]
mov edi, eax
mov esi, edx
jl 0x58f8f1
jg 0x58f920
cmp eax, dword [esp + 0x38]
ja 0x58f920
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00457a80
mov dword [ebx + 0x508], 1
jmp 0x58f88f
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x58f8f1
mov esi, dword [ebx + 4]
lea esi, [esi]
mov eax, dword [esi + 0x3c]
test eax, eax
mov eax, dword [esi + 8]
je 0x58f943
test ah, 0x20
je 0x58fcd8
and eax, 0x4000
mov dword [esp + 0x3c], eax
jne 0x58fcbc
mov dword [esp], ebx
call fcn.0058b750
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0xc4]
mov ebp, dword [eax + ecx*4]
mov eax, dword [esp + 0xd0]
mov edx, dword [ebp + 0x190]
mov edi, dword [ebp + 0x194]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], eax
call fcn.0058bbc0
test eax, eax
mov esi, eax
mov edx, dword [esp + 0x40]
js 0x58fd20
lea eax, [edi - 1]
cmp esi, eax
je 0x58fe69
mov dword [esp], ebx
call fcn.0058b750
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x58f9fc
mov ecx, dword [esp + 0xd0]
mov edi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 4], ecx
call eax
test eax, eax
jns 0x58f88f
mov eax, dword [ebp + 0x190]
lea edx, [esi + esi*2]
mov dword [esp + 0xc], 0
lea esi, [eax + edx*8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00457a80
test edx, edx
js 0x58fd0e
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, edx
mov edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x58f88f
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x28]
lea ebp, [esi + eax*4]
mov dword [esp + 0x3c], ebp
mov ebp, ecx
mov dword [esp + 0x34], edi
mov edi, edx
nop
lea esi, [esi]
mov ebx, dword [esi]
mov eax, dword [esp + 0x38]
add esi, 4
imul dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
imul dword [ebx + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00892690
cmp dword [esp + 0x3c], esi
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], edx
jne 0x58fa70
mov ebx, dword [esp + 0xc0]
jmp 0x58f88f
test byte [esp + 0xd0], 1
jne 0x58fcc6
mov edx, dword [esp + 0x38]
mov esi, 0xffffffff
mov ecx, 0x7fffffff
mov edi, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], ecx
and edi, 0xfffffffe
mov dword [esp + 8], edx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], edi
call fcn.0058f3f0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x58fcbc
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc4], 0
xor edx, edx
mov edi, 0x80000000
mov dword [esp + 0x44], esi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x40], eax
mov ebp, eax
jmp 0x58fbde
mov esi, dword [ecx + 0x48]
and esi, 0x400
cmp esi, 1
sbb eax, eax
and eax, 0x190
sub eax, 0x177
cmp esi, 1
sbb esi, esi
and esi, 0x190
sub esi, 0x145
cmp dword [ebx + 0x30], 0
je 0x58fbb0
mov ebx, dword [ebx + 0x34]
test ebx, ebx
je 0x58fbb0
mov eax, esi
nop
lea esi, [esi]
mov ebx, dword [ecx + 0xe8]
test ebx, ebx
je 0x58fbbd
add eax, 0xc
cmp dword [ecx + 0x4c], 0x30
je 0x58fbc8
add eax, 0xc8
cmp eax, edi
jle 0x58fbd5
mov edi, eax
mov dword [esp + 0xc4], edx
add edx, 1
cmp edx, dword [esp + 0x3c]
je 0x58fc03
mov ecx, dword [ebp + edx*4]
mov ebx, dword [ecx + 0x2c4]
mov esi, dword [ebx]
test esi, esi
je 0x58fb70
xor eax, eax
cmp esi, 1
jne 0x58fbb0
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x58fbb0
mov eax, 0x32
jmp 0x58fbb0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0xc4]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0xc0]
mov ecx, dword [eax + edi*4]
mov eax, 0xf4240
imul dword [ecx + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00892690
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jmp 0x58f845
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.seek_frame_generic_failed_as_this_stream_seems_to_contain_no_keyframes_after_the_target_timestamp___d_non_keyframes_found_n
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call fcn.00891920
mov dword [esp], esi
call fcn.005d23b0
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x190]
mov dword [esp], eax
call fcn.0058bbc0
test eax, eax
mov esi, eax
jns 0x58f9b7
mov eax, 0xffffffff
jmp 0x58f897
mov ecx, eax
mov esi, dword [esp + 0x38]
xor edx, edx
mov eax, 0x80000000
jmp 0x58fadc
mov dword [esp], ebx
call fcn.0058b750
mov eax, dword [esp + 0xd0]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], eax
call fcn.0058ee30
test eax, eax
js 0x58f897
jmp 0x58f88f
test edi, edi
je 0x58feb0
mov eax, dword [esp + 0x34]
cmp eax, dword [edx + 0xc]
jl 0x58fcbc
jg 0x58fd3c
mov eax, dword [esp + 0x38]
cmp eax, dword [edx + 8]
jb 0x58fcbc
lea eax, [edi + edi*2]
mov dword [esp + 0xc], 0
lea esi, [edx + eax*8 - 0x18]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00457a80
test edx, edx
js 0x58fd0e
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, edx
mov edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x58fdec
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x44], edi
mov edi, dword [ebp + 0x28]
lea eax, [esi + eax*4]
mov ebp, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edi
mov edi, edx
nop
mov ebx, dword [esi]
mov eax, dword [esp + 0x44]
add esi, 4
imul dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x48]
imul dword [ebx + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00892690
cmp dword [esp + 0x40], esi
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], edx
jne 0x58fda0
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc0]
lea esi, [esp + 0x58]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0058cf00
cmp eax, 0xfffffff5
je 0x58fdf0
test eax, eax
js 0x58fc7f
mov eax, dword [esp + 0x78]
cmp dword [esp + 0xc4], eax
jne 0x58fe5f
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x6c]
jg 0x58fe5f
jl 0x58fe2c
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x68]
jae 0x58fe5f
test byte [esp + 0x7c], 1
jne 0x58fc77
mov ecx, dword [esp + 0x3c]
mov eax, ecx
add eax, 1
cmp ecx, 0x3e8
jle 0x58fe5b
mov edx, dword [ebp + 0x2c4]
cmp dword [edx + 4], 0x85
jne 0x58fc5b
mov dword [esp + 0x3c], eax
mov dword [esp], esi
call fcn.005d23b0
jmp 0x58fdf0
test edi, edi
je 0x58feb0
test edx, edx
jne 0x58fd3c
mov dword [esp + 0x14], 0x91e
mov dword [esp + 0x10], str.libavformat_utils.c
mov dword [esp + 0xc], str.st__index_entries
mov dword [esp + 8], 0xc6b3fe
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00891920
call sub.msvcrt.dll_abort
nop
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x504]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00457a80
test edx, edx
jns 0x58fdec
jmp 0x58fd0e