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

Disassembly:
push 0xffffffffffffffff
push 0x59c3ac
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x78]
push eax
push 1
lea ecx, [esi + 0xa0]
call fcn.004f8000
mov ecx, dword [esi + 0xc8]
test ecx, ecx
je 0x508f5d
call fcn.0050a0d0
mov ecx, eax
call fcn.004f2b50
mov ecx, dword [esi + 0xc8]
push 0
call fcn.0050a0e0
push 0xffffffffffffffff
lea ecx, [esi + 0xa0]
call fcn.004f71f0
mov dword [esp + 0x14], eax
test eax, eax
je 0x5091a3
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x508fad
push 0
push 0
push 0
push eax
call dword [0x5a7bbc]
mov ecx, dword [esi + 0xc0]
add esp, 0x10
test ecx, ecx
je 0x508fa3
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 1
call eax
mov dword [esi + 0xc0], 0
lea ecx, [esi + 0x1b0]
push ecx
lea ecx, [esp + 0x34]
call fcn.00420050
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
lea ecx, [eax + ebp]
lea eax, [eax + edx*4]
add eax, ebp
mov ebx, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 0
jmp 0x508ff4
mov eax, dword [esp + 0x38]
cmp ecx, eax
je 0x5090d4
mov edi, dword [ecx]
test ebx, ebx
je 0x5090bc
push str.default
push str.bool___thiscall_FAV::AVPlayer::Private::setupVideoThread_class_FAV::AVPlayer__
push 0x267
push str..._favAVPlayerPrivate.cpp
lea ecx, [esp + 0x2c]
call dword [0x5a7720]
push edi
call fcn.005282e0
push eax
lea eax, [esp + 0x24]
push str.trying_video_decoder:__s...
push eax
call fcn.0051a710
push edi
call fcn.00528200
mov edi, eax
add esp, 0x14
test edi, edi
je 0x50907b
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004f5ae0
lea edx, [esi + 0x1c4]
push edx
mov ecx, edi
call fcn.004f6630
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
mov ecx, edi
call edx
test al, al
jne 0x50907f
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 1
mov ecx, edi
call edx
xor ebx, ebx
jmp 0x5090bc
push str.default
push str.bool___thiscall_FAV::AVPlayer::Private::setupVideoThread_class_FAV::AVPlayer__
push 0x273
push str..._favAVPlayerPrivate.cpp
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc0], edi
call dword [0x5a7720]
mov eax, dword [esi + 0xc0]
push eax
lea ecx, [esp + 0x20]
push str.Video_decoder_found:_p
push ecx
call fcn.0051a710
add esp, 0xc
mov ecx, dword [esp + 0x34]
add ecx, 4
xor ebx, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ebx
jne 0x508ff0
mov eax, dword [ebp]
or edi, 0xffffffff
mov dword [esp + 0x5c], edi
test eax, eax
je 0x5090f5
cmp eax, edi
je 0x509103
mov edx, ebp
mov eax, edi
lock xadd dword [edx], eax
setne al
test al, al
jne 0x509103
push 4
push 4
push ebp
call dword [0x5a7a74]
add esp, 0xc
mov eax, dword [esi + 0xc0]
push 0
test eax, eax
jne 0x5091aa
push 0xe
lea ecx, [esp + 0x24]
call fcn.004fec90
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 1
call fcn.004ff240
push str.default
push str.bool___thiscall_FAV::AVPlayer::Private::setupVideoThread_class_FAV::AVPlayer__
push 0x27b
push str..._favAVPlayerPrivate.cpp
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 2
call dword [0x5a7720]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.0051b5d0
mov byte [esp + 0x60], 3
mov ecx, eax
mov byte [esp + 0x60], 4
call fcn.004d5480
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 1
call fcn.0051aee0
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push eax
call fcn.0055d820
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], edi
call dword [0x5a7d90]
xor al, al
jmp 0x509429
mov edi, dword [esp + 0x68]
push str.2error_FAV::AVError_
push edi
push str.2error_FAV::AVError_
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [0x5a7d7c]
add esp, 0x18
lea ecx, [esp + 0x14]
call dword [0x5a7d80]
cmp dword [esi + 0xc8], 0
jne 0x5093b9
push 0x18
call fcn.00580794
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], 5
test eax, eax
je 0x509203
push edi
mov ecx, eax
call fcn.00536e70
jmp 0x509205
xor eax, eax
lea edx, [edi + 8]
or ebp, 0xffffffff
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], ebp
mov dword [esi + 0xc8], eax
call dword [0x5a7cbc]
mov eax, dword [esi + 0xc8]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [eax + 8]
call dword [0x5a7cc4]
lea ecx, [esp + 0x14]
call dword [0x5a7d90]
mov edx, dword [esi + 0xb0]
mov ecx, dword [esi + 0xc8]
push edx
call fcn.0050a0b0
mov ecx, dword [esi + 0xc8]
lea eax, [esi + 0xd0]
push eax
call fcn.0050a320
mov ecx, dword [esi + 0xcc]
push ecx
mov ecx, dword [esi + 0xc8]
call fcn.00536760
mov edx, dword [esi + 0x1a8]
mov ecx, dword [esi + 0xc8]
push edx
call fcn.0050a1d0
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xac]
push eax
call fcn.004fc510
lea ecx, [esp + 0x64]
push edi
push ecx
call fcn.0050fa10
mov ecx, eax
call fcn.0050ef90
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
mov ebx, 6
mov dword [esp + 0x5c], ebx
test edx, edx
jle 0x509362
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x34]
call fcn.004f26c0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
lea ecx, [eax + ecx*4 + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
lea eax, [eax + edx*4 + 0x10]
mov dword [esp + 0x38], eax
mov eax, 1
mov dword [esp + 0x3c], eax
mov byte [esp + 0x5c], 7
jmp 0x509300
cmp ecx, dword [esp + 0x38]
je 0x509335
mov edx, dword [ecx]
test eax, eax
je 0x509325
mov ecx, dword [esi + 0xc8]
push 1
push 0x7fffffff
push edx
call fcn.0050aac0
mov ecx, dword [esp + 0x34]
xor eax, eax
add ecx, 4
xor eax, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
jne 0x509300
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov byte [esp + 0x5c], bl
test eax, eax
je 0x509358
cmp eax, ebp
je 0x509362
mov edx, ebp
lock xadd dword [ecx], edx
setne al
test al, al
jne 0x509362
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esi + 0xc8]
push 1
push str.1tryClearVideoRenderers__
push edi
push str.2finished__
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [0x5a7d7c]
add esp, 0x18
lea ecx, [esp + 0x18]
call dword [0x5a7d80]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov dword [esp + 0x5c], ebp
test eax, eax
je 0x5093af
cmp eax, ebp
je 0x5093b9
lock xadd dword [ecx], ebp
setne al
test al, al
jne 0x5093b9
mov ecx, dword [esp + 0x64]
push ecx
call dword [0x5a7d8c]
add esp, 4
mov edx, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc8]
push edx
call fcn.0050a0e0
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0xc8]
push eax
call fcn.00536b70
mov ecx, dword [esi + 0x1b8]
push ecx
mov ecx, dword [esi + 0xc8]
call fcn.00536b90
mov edx, dword [esi + 0x1bc]
mov ecx, dword [esi + 0xc8]
push edx
call fcn.00536bb0
mov ecx, dword [esi + 0xc8]
call fcn.0050a0d0
push eax
mov ecx, esi
call fcn.00506cc0
lea ecx, [esi + 0xa0]
call fcn.004f7190
push eax
mov ecx, esi
call fcn.005083d0
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4