Function at 0x520af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x59e95b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x520d96
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x520d96
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x20], eax
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x24], ecx
mov dl, byte [edi + 0x24]
and dl, 1
mov byte [ebx], dl
mov eax, dword [edi + 0x24]
shr eax, 1
and al, 1
mov byte [ebx + 1], al
je 0x520b88
push str.default
push str.bool___cdecl_FAV::Packet::fromAVPacket_class_FAV::Packet__const_struct_AVPacket__double_
push 0x59
push str..._favPacket.cpp
lea ecx, [esp + 0x40]
call dword [0x5a7720]
fld qword [ebx + 8]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x38]
push str.currupt_packet._pts:__f
push eax
call fcn.0051a710
add esp, 0x10
mov eax, dword [edi + 8]
fldz
mov ecx, dword [edi + 0xc]
fld qword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x520ba7
cmp ecx, 0x80000000
je 0x520bd4
fild qword [esp + 0x24]
fmul st(1)
fstp qword [ebx + 8]
fxch st(1)
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x520bcc
cmp ecx, 0x80000000
je 0x520bfb
fild qword [esp + 0x24]
fmul st(2)
jmp 0x520bfe
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x520bee
cmp ecx, 0x80000000
je 0x520bf4
fild qword [esp + 0x24]
jmp 0x520bab
fxch st(1)
fst qword [ebx + 8]
jmp 0x520bb2
fld qword [ebx + 8]
fstp qword [ebx + 0x18]
fst qword [esp + 0x24]
fcom qword [ebx + 8]
fnstsw ax
test ah, 5
lea eax, [ebx + 8]
jnp 0x520c16
lea eax, [esp + 0x24]
fld qword [eax]
fstp qword [ebx + 8]
fst qword [esp + 0x24]
fcom qword [ebx + 0x18]
fnstsw ax
test ah, 5
lea eax, [ebx + 0x18]
jnp 0x520c30
lea eax, [esp + 0x24]
fld qword [eax]
fstp qword [ebx + 0x18]
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test eax, eax
jl 0x520c57
jg 0x520c4d
test ecx, ecx
je 0x520c57
fstp st(0)
fild qword [esp + 0x24]
fmulp st(1)
jmp 0x520c59
fstp st(1)
lea ecx, [ebx + 4]
fstp qword [ebx + 0x10]
call dword [0x5a7744]
push 0x50
call fcn.00580794
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
xor ecx, ecx
mov dword [esp + 0x80], ecx
cmp esi, ecx
je 0x520c9c
mov ecx, esi
call dword [0x5a7640]
lea ecx, [esi + 8]
push ecx
mov byte [esi + 4], 0
call fcn.00563bbe
add esp, 4
mov ecx, esi
mov dword [esp + 0x80], 0xffffffff
test ecx, ecx
je 0x520cb6
mov edx, ecx
mov eax, 1
lock xadd dword [edx], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], eax
mov dword [ebx + 0x28], ecx
test eax, eax
je 0x520ce5
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x520ce5
add eax, 8
push eax
call fcn.00563c00
mov eax, dword [esp + 0x28]
push eax
call fcn.0058078e
add esp, 8
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x520cf9
cmp dword [eax], 1
je 0x520cf9
lea ecx, [ebx + 0x28]
call fcn.00520700
mov ecx, dword [ebx + 0x28]
mov byte [ecx + 4], 1
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x520d14
cmp dword [eax], 1
je 0x520d14
lea ecx, [ebx + 0x28]
call fcn.00520700
mov esi, dword [ebx + 0x28]
add esi, 8
push edi
push esi
call fcn.00563c06
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x5a7588]
add esp, 0x14
push eax
lea ecx, [ebx + 4]
call dword [0x5a7b44]
lea ecx, [esp + 0x24]
call dword [0x5a7d74]
fld qword [ebx + 8]
fld qword [0x5ac230]
fmul st(1), st(0)
fxch st(1)
call fcn.00580836
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
fld qword [ebx + 0x18]
fmul st(1)
call fcn.00580836
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
fmul qword [ebx + 0x10]
call fcn.00580836
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret