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

Disassembly:
push 0xffffffffffffffff
push 0x59aeaf
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004f85f0
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x339
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
call dword [0x5a7720]
lea eax, [esp + 0x38]
push str.all_closed_and_reseted
push eax
call fcn.0051a710
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x5c]
xor ebx, ebx
add esp, 8
cmp dword [ecx + 4], ebx
jne 0x4fa6b0
cmp dword [eax + 0x6c], ebx
jne 0x4fa6b0
cmp dword [eax], 1
je 0x4fa69a
mov edx, eax
mov dword [edx], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.0055d0d0
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
lea edi, [eax + 0xc0]
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x4fa6cd
mov ecx, edi
call dword [0x5a7610]
or edi, 1
mov dword [esp + 0x18], edi
mov eax, dword [esi + 8]
cmp dword [eax], 2
mov dword [esp + 0x68], ebx
je 0x4fa6ec
mov dword [eax], 2
mov eax, dword [esi + 8]
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.0055d0d0
mov ecx, dword [esi + 8]
call fcn.004f69d0
mov edi, dword [esi + 8]
cmp dword [edi + 0x58], ebx
jne 0x4fa704
call fcn.00563c78
mov dword [edi + 0x58], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
mov ebp, dword [0x5a7868]
or dword [eax + 0x440], 1
push 0x20
lea ecx, [esp + 0x2c]
call ebp
push 0xf
push str.analyzeduration
mov byte [esp + 0x70], 1
call dword [0x5a7d34]
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 0x7c]
mov byte [esp + 0x70], 2
call fcn.004f3150
mov ecx, eax
call dword [0x5a78d4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 1
call dword [0x5a7d90]
mov edi, dword [0x5a7bec]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call edi
push 0x20
lea ecx, [esp + 0x2c]
call ebp
mov ebp, dword [0x5a7d34]
push 9
push str.probesize
mov byte [esp + 0x70], 3
call ebp
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 0x7c]
mov byte [esp + 0x70], 4
call fcn.004f3150
mov ecx, eax
call dword [0x5a78d4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call dword [0x5a7d90]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call edi
push str.yuv420p
lea ecx, [esp + 0x2c]
call dword [0x5a7544]
push 0xc
push str.pixel_format
mov byte [esp + 0x70], 5
call ebp
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 0x7c]
mov byte [esp + 0x70], 6
call fcn.004f3150
mov ecx, eax
call dword [0x5a78b0]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 5
call dword [0x5a7d90]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call edi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xbc]
mov edx, dword [ecx]
mov eax, dword [eax + 0x58]
mov dword [eax + 0x498], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 0x49c], ecx
mov ecx, dword [esi + 8]
call fcn.004fa030
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x68]
cmp dword [edx + 4], ebx
je 0x4fa911
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [eax + 0x68]
call dword [0x5a7750]
mov edi, dword [esi + 8]
mov ecx, eax
mov byte [esp + 0x68], 7
call dword [0x5a7d9c]
push eax
call fcn.00563c72
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [edi + 0x64], eax
mov byte [esp + 0x68], bl
call dword [0x5a7d74]
mov eax, dword [esi + 8]
push ecx
add eax, 0x68
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [0x5a7cbc]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x37c
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 8
call dword [0x5a7720]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.0051b490
mov byte [esp + 0x6c], 9
push str.force_format:
mov ecx, eax
call fcn.004d23d0
mov ecx, eax
mov byte [esp + 0x6c], 0xa
call fcn.004d5480
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call fcn.0051aee0
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xbc]
cmp dword [eax + 8], ebx
jle 0x4fa922
mov dword [eax + 8], ebx
lea ecx, [eax + 0x28]
mov byte [eax + 0x19], 1
mov dword [eax + 0x1c], ebx
call dword [0x5a762c]
mov eax, dword [esi + 8]
cmp dword [eax + 0x6c], ebx
je 0x4faa8b
mov ecx, dword [eax + 0x6c]
call fcn.0051c310
cmp eax, 1
jne 0x4fa97b
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x386
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
call dword [0x5a7720]
lea eax, [esp + 0x38]
push str.wrong_MediaIO_accessMode._MUST_be_Read
push eax
call fcn.0051b280
add esp, 8
mov edi, dword [esi + 8]
mov ecx, dword [edi + 0x6c]
call fcn.0051c350
mov ecx, dword [edi + 0x58]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
or dword [eax + 0x440], 0x80
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x20]
push eax
call edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 0xb
call dword [0x5a7750]
mov ebp, eax
mov edi, dword [esi + 8]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x38a
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0xc
call dword [0x5a7720]
mov edx, dword [edi + 0x6c]
push edx
mov ecx, ebp
call dword [0x5a7d9c]
push eax
mov eax, dword [edi + 0x58]
push eax
lea ecx, [esp + 0x44]
push str.avformat_open_input:_d__format_ctx:_p...__MediaIO__s_:__p
push ecx
call fcn.0051a710
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xb
call dword [0x5a7d74]
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], bl
call dword [0x5a7d90]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x7c]
cmp dword [edx + 0xc], ebx
jne 0x4faa37
xor eax, eax
jmp 0x4faa3a
add eax, 0x78
mov ecx, dword [esi + 8]
push eax
mov eax, dword [ecx + 0x64]
push eax
add ecx, 0x58
push str.MediaIO
push ecx
call fcn.00563c6c
add esp, 0x10
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x38c
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
mov edi, eax
call dword [0x5a7720]
push edi
lea ecx, [esp + 0x3c]
push str.avformat_open_input:__with_MediaIO__ret:_d
push ecx
call fcn.0051a710
add esp, 0xc
jmp 0x4fabf2
add eax, 0x5c
push eax
lea ecx, [esp + 0x28]
call dword [0x5a7cbc]
mov ebp, dword [0x5a75c0]
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0xd
call ebp
mov edi, eax
mov eax, dword [esi + 8]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x38e
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0xe
mov dword [esp + 0x30], eax
call dword [0x5a7720]
mov ecx, edi
call dword [0x5a7d9c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x58]
push eax
push edx
lea eax, [esp + 0x40]
push str.avformat_open_input:_d__format_ctx:_p__url:_s...
push eax
call fcn.0051a710
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xd
call dword [0x5a7d74]
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], bl
call dword [0x5a7d90]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x7c]
cmp dword [ecx + 0xc], ebx
jne 0x4fab2a
mov dword [esp + 0x1c], ebx
jmp 0x4fab31
lea edx, [eax + 0x78]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [eax + 0x5c]
call dword [0x5a7750]
mov edi, dword [esi + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x64]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x70], 0xf
call dword [0x5a7d9c]
push eax
add edi, 0x58
push edi
call fcn.00563c6c
add esp, 0x10
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x68], bl
call dword [0x5a7d74]
mov eax, dword [esi + 8]
add eax, 0x5c
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7cbc]
lea edx, [esp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0x10
call ebp
mov ebp, eax
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x390
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0x11
call dword [0x5a7720]
push edi
mov ecx, ebp
call dword [0x5a7d9c]
push eax
lea eax, [esp + 0x40]
push str.avformat_open_input:_url:_s_ret:_d
push eax
call fcn.0051a710
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0x10
call dword [0x5a7d74]
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], bl
call dword [0x5a7d90]
mov eax, dword [esi + 8]
mov ebp, dword [eax + 0xbc]
lea ecx, [ebp + 0x28]
call dword [0x5a760c]
mov dword [ebp + 0x1c], 0xffffffff
cmp edi, ebx
jge 0x4fad14
push 0x14
push str.failed_to_open_media
mov dword [esp + 0x2c], 3
call dword [0x5a7d34]
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, esi
mov byte [esp + 0x74], 0x12
call fcn.004f79f0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [0x5a7cbc]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x39a
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0x13
call dword [0x5a7720]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0051b5d0
mov byte [esp + 0x6c], 0x14
push str.Cant_open_media:
mov ecx, eax
call fcn.004d23d0
mov ecx, eax
mov byte [esp + 0x6c], 0x15
call fcn.004d5480
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x12
call fcn.0051aee0
mov eax, dword [esi + 8]
cmp dword [eax], 2
jne 0x4facd4
cmp dword [eax], 8
je 0x4facd4
mov dword [eax], 8
mov eax, dword [esi + 8]
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.0055d0d0
mov ecx, esi
call fcn.0055d000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], bl
call dword [0x5a7d90]
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x4facfe
and ecx, 0xfffffffe
and ecx, 0xfffffffe
call dword [0x5a7618]
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xbc]
cmp dword [eax + 8], ebx
jle 0x4fad25
mov dword [eax + 8], ebx
mov ebp, 1
lea ecx, [eax + 0x28]
mov byte [eax + 0x19], 1
mov dword [eax + 0x1c], ebp
call dword [0x5a762c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
push ebx
push eax
call fcn.00563c66
mov edi, eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x58]
add esp, 8
xor ecx, ecx
cmp dword [edx + 0x18], ebx
jbe 0x4fae50
lea ecx, [ecx]
mov edx, dword [eax + 0x58]
mov edx, dword [edx + 0x1c]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 8]
cmp dword [edx + 8], ebx
mov edx, dword [eax + 0x58]
je 0x4fad80
add ecx, ebp
cmp ecx, dword [edx + 0x18]
jb 0x4fad60
jmp 0x4fae50
mov edx, dword [edx + 0x1c]
mov ecx, dword [edx + ecx*4]
cmp ecx, ebx
je 0x4fae50
cmp dword [ecx + 0x1e0], ebx
jne 0x4fae50
mov eax, dword [eax + 0x58]
push eax
call fcn.00563c60
mov edi, dword [esi + 8]
add esp, 4
call fcn.00563c78
mov dword [edi + 0x58], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
or dword [eax + 0x440], ebp
mov ecx, dword [esi + 8]
call fcn.004fa030
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x7c]
cmp dword [ecx + 0xc], ebx
jne 0x4fadd4
xor ebp, ebp
jmp 0x4fadd7
lea ebp, [eax + 0x78]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + 0x5c]
call dword [0x5a7750]
mov edi, dword [esi + 8]
mov ecx, dword [edi + 0x64]
push ebp
push ecx
mov ecx, eax
mov byte [esp + 0x70], 0x16
call dword [0x5a7d9c]
push eax
add edi, 0x58
push edi
call fcn.00563c6c
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], bl
call dword [0x5a7d74]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
mov ecx, 0x7a1200
mov dword [eax + 0x448], ecx
mov dword [eax + 0x44c], ebx
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x58]
mov dword [eax + 0x450], ecx
mov dword [eax + 0x454], ebx
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x58]
push ebx
push edx
call fcn.00563c66
add esp, 8
mov edi, eax
mov eax, dword [esi + 8]
mov ebp, dword [eax + 0xbc]
lea ecx, [ebp + 0x28]
call dword [0x5a760c]
mov dword [ebp + 0x1c], 0xffffffff
cmp edi, ebx
jge 0x4faf5a
mov eax, dword [esi + 8]
cmp dword [eax], 8
je 0x4fae8c
mov dword [eax], 8
mov eax, dword [esi + 8]
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0055d0d0
push 0x1a
push str.failed_to_find_stream_info
mov dword [esp + 0x2c], 5
call dword [0x5a7d34]
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, esi
mov byte [esp + 0x74], 0x17
call fcn.004f79f0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [0x5a7cbc]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x3cb
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0x18
call dword [0x5a7720]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0051b5d0
mov byte [esp + 0x6c], 0x19
push str.Cant_find_stream_info:
mov ecx, eax
call fcn.004d23d0
mov ecx, eax
mov byte [esp + 0x6c], 0x1a
call fcn.004d5480
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x17
call fcn.0051aee0
mov eax, dword [esi + 8]
cmp dword [eax], 2
jne 0x4facdb
cmp dword [eax], 8
je 0x4facdb
mov dword [eax], 8
mov eax, dword [esi + 8]
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.0055d0d0
jmp 0x4facdb
mov ecx, dword [esi + 8]
call fcn.004f9d10
test al, al
mov eax, dword [esi + 8]
jne 0x4faf8c
cmp dword [eax], 2
jne 0x4face9
mov ecx, eax
mov dword [ecx], 8
mov edx, dword [esi + 8]
mov eax, dword [edx]
push eax
mov ecx, esi
call fcn.0055d0d0
jmp 0x4face9
mov byte [eax + 7], bl
mov eax, dword [esi + 8]
cmp dword [eax], 3
je 0x4fafaa
mov dword [eax], 3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.0055d0d0
mov ecx, esi
call fcn.0055d040
mov edi, dword [esi + 8]
mov dl, byte [edi + 4]
xor al, al
mov byte [esp + 0x17], dl
cmp dword [edi + 0x58], ebx
je 0x4faffb
cmp dword [edi + 0x6c], ebx
je 0x4fafd1
mov ecx, dword [edi + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
mov edi, dword [edi + 0x58]
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x4fafe3
cmp dword [ecx + 0x58], ebx
setne cl
or al, cl
mov edi, dword [edi + 4]
cmp dword [edi + 0x38], ebx
jne 0x4faff4
cmp dword [edi + 0x48], ebx
jne 0x4faff4
xor ecx, ecx
jmp 0x4faff9
mov ecx, 1
or al, cl
mov ecx, dword [esi + 8]
mov dl, byte [esp + 0x17]
mov byte [ecx + 4], al
mov eax, dword [esi + 8]
cmp dl, byte [eax + 4]
je 0x4fb014
mov ecx, esi
call fcn.0055d100
mov edi, dword [esi + 8]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x3e3
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
call dword [0x5a7720]
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [eax + 0x440]
push edx
push ecx
lea edx, [esp + 0x40]
push str.avfmtctx.flags:__d__iformat.flags
push edx
call fcn.0051a710
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xbc]
add esp, 0x10
cmp dword [eax + 8], ebx
jge 0x4fb133
lea ecx, [esp + 0x1c]
call dword [0x5a7d38]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x3e6
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0x1b
call dword [0x5a7720]
push 0xabb6a7bb
lea ecx, [esp + 0x3c]
push str.AVERROR_EXIT:__d
push ecx
call fcn.0051a710
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
push 0xabb6a7bb
mov ecx, esi
call fcn.004f79f0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [0x5a7cbc]
push str.default
push str.bool___thiscall_FAV::AVDemuxer::load_void_
push 0x3e8
push str..._favAVDemuxer.cpp
lea ecx, [esp + 0x60]
mov byte [esp + 0x7c], 0x1c
call dword [0x5a7720]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x54]
call fcn.0051b5d0
mov byte [esp + 0x6c], 0x1d
push str.User_interupted:
mov ecx, eax
call fcn.004d23d0
mov ecx, eax
mov byte [esp + 0x6c], 0x1e
call fcn.004d5480
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x1b
call fcn.0051aee0
jmp 0x4facdb
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x4fb148
and ecx, 0xfffffffe
and ecx, 0xfffffffe
call dword [0x5a7618]
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret