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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
cmp dword [ebx + 0xc], 0xdf
jle 0x6c4de100
mov dword [esp + 4], 0x1a
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c4dd610
mov esi, dword [ebx]
cmp word [esi + 0x1a], ax
mov dword [esp + 0x1c], esi
jne 0x6c4de0d6
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0x10]
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
mov eax, dword [esi + eax]
add edx, 0x18
mov dword [esp + 0x18], ebp
bswap eax
shl eax, cl
shr eax, 0xe8
cmp edx, ebp
cmova edx, ebp
cmp eax, 0xf8726f
mov dword [ebx + 8], edx
jne 0x6c4ddf68
mov eax, edx
mov ecx, edx
mov ebp, dword [esp + 0x74]
shr eax, 3
and ecx, 7
mov eax, dword [esi + eax]
add edx, 8
bswap eax
shl eax, cl
shr eax, 0xf8
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
cmp eax, 0xbb
mov dword [ebx + 8], edx
mov dword [ebp], eax
je 0x6c4ddf75
cmp eax, 0xba
jne 0x6c4ddf68
mov edi, dword [esp + 0x74]
mov eax, edx
mov ecx, edx
mov ebp, dword [esp + 0x1c]
shr eax, 3
and ecx, 7
add edx, 4
mov dword [edi + 4], 0x18
mov dword [edi + 8], 0
mov eax, dword [ebp + eax]
bswap eax
shl eax, cl
shr eax, 0xfc
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
cmova edx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x4c], 0xf
mov dword [ebx + 8], edx
je 0x6c4dda44
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
and eax, 8
cmp eax, 1
sbb eax, eax
and ecx, 7
and eax, 0xf3c
add eax, 0xac44
shl eax, cl
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x74]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov eax, dword [ebx + 8]
add eax, 4
cmp eax, dword [esp + 0x18]
cmova eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
mov dword [ebx + 8], eax
mov edx, dword [edi + edx]
add eax, 2
bswap edx
shl edx, cl
shr edx, 0xfe
cmp eax, dword [esp + 0x18]
cmova eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov ecx, eax
mov dword [esi + 0x18], edx
mov edx, eax
and ecx, 7
shr edx, 3
add eax, 2
mov edx, dword [edi + edx]
bswap edx
shl edx, cl
shr edx, 0xfe
cmp eax, dword [esp + 0x18]
cmova eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov ecx, eax
mov dword [esi + 0x1c], edx
mov edx, eax
and ecx, 7
shr edx, 3
mov esi, dword [esp + 0x18]
add eax, 5
mov edx, dword [edi + edx]
bswap edx
shl edx, cl
shr edx, 0xfb
cmp eax, dword [esp + 0x18]
mov edi, edx
mov ecx, edx
cmovbe esi, eax
and ecx, 1
sar edi, 1
and edi, 1
mov dword [ebx + 8], esi
lea eax, [edi + ecx*2]
mov dword [ebp + 0x14], edx
mov ebp, edx
mov dword [esp + 0x48], ecx
sar ebp, 2
mov ecx, edx
and ebp, 1
mov dword [esp + 0x24], edi
sar ecx, 3
mov edi, edx
and ecx, 1
add eax, ebp
mov dword [esp + 0x28], ebp
sar edi, 4
mov ebp, edx
and edi, 1
lea eax, [eax + ecx*2]
sar ebp, 5
and ebp, 1
lea eax, [eax + edi*2]
mov dword [esp + 0x34], edi
lea edi, [eax + ebp*2]
mov eax, edx
sar eax, 6
and eax, 1
mov dword [esp + 0x30], ebp
lea ebp, [edi + eax*2]
mov edi, edx
mov dword [esp + 0x2c], ecx
sar edi, 7
mov ecx, edx
and edi, 1
sar ecx, 8
add ebp, edi
and ecx, 1
add ebp, ecx
mov dword [esp + 0x40], ecx
mov ecx, edx
sar ecx, 9
and ecx, 1
mov dword [esp + 0x38], ecx
lea ebp, [ebp + ecx*2]
mov ecx, edx
sar ecx, 0xa
and ecx, 1
lea ebp, [ebp + ecx*2]
mov dword [esp + 0x20], ebp
mov ebp, edx
sar ebp, 0xb
and ebp, 1
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x20]
sar edx, 0xc
add ebp, dword [esp + 0x3c]
and edx, 1
mov dword [esp + 0x20], edx
add ebp, edx
mov edx, dword [esp + 0x74]
mov dword [edx + 0x28], ebp
mov ebp, 0x30
imul ebp
mov ebp, edi
sar ebp, 0x1f
shld ebp, edi, 8
shl edi, 8
or edi, eax
or ebp, edx
mov eax, 0xc0
imul dword [esp + 0x30]
or edi, eax
or ebp, edx
mov eax, 0x5000
imul dword [esp + 0x34]
or edi, eax
mov eax, dword [esp + 0x24]
or ebp, edx
mov edx, eax
sar edx, 0x1f
shld edx, eax, 2
shl eax, 2
or ebp, edx
or edi, eax
mov eax, 0x600
imul dword [esp + 0x2c]
or edi, eax
mov eax, dword [esp + 0x28]
or ebp, edx
mov edx, eax
sar edx, 0x1f
shld edx, eax, 3
shl eax, 3
or ebp, edx
or edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, eax
sar edx, 0x1f
shld edx, eax, 0xb
or ebp, edx
imul edx, dword [esp + 0x38], 6
shl eax, 0xb
or edi, eax
xor eax, eax
or edi, eax
mov eax, 0x80000000
or ebp, edx
mul ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
add edx, ecx
or edi, dword [esp + 0x40]
or ebp, edx
mov ecx, dword [esp + 0x74]
mov edx, eax
sar edx, 0x1f
shld edx, eax, 0xd
shl eax, 0xd
or ebp, edx
or edi, eax
mov eax, 3
imul dword [esp + 0x48]
or ebp, edx
mov edx, dword [esp + 0x20]
or edi, eax
mov dword [ecx + 0x38], edi
mov edi, dword [esp + 0x1c]
mov eax, esi
shr eax, 3
shl edx, 3
or edx, ebp
mov ebp, dword [esp + 0x74]
mov dword [ecx + 0x3c], edx
mov eax, dword [edi + eax]
mov ecx, esi
and ecx, 7
lea edx, [esi + 2]
bswap eax
shl eax, cl
shr eax, 0xfe
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov dword [ebx + 8], edx
mov ecx, edx
mov dword [ebp + 0x20], eax
mov eax, edx
and ecx, 7
shr eax, 3
add edx, 0xd
mov eax, dword [edi + eax]
bswap eax
shl eax, cl
shr eax, 0xf3
cmp edx, dword [esp + 0x18]
mov esi, eax
cmova edx, dword [esp + 0x18]
mov ecx, eax
sar esi, 1
and ecx, 1
and esi, 1
mov edi, eax
mov dword [ebx + 8], edx
mov edx, eax
mov ebp, eax
sar edx, 2
mov dword [esp + 0x48], ecx
and edx, 1
lea ecx, [esi + ecx*2]
sar edi, 3
add ecx, edx
and edi, 1
mov dword [esp + 0x24], edi
lea ecx, [ecx + edi*2]
mov edi, eax
sar ebp, 4
and ebp, 1
sar edi, 5
and edi, 1
lea ecx, [ecx + ebp*2]
mov dword [esp + 0x28], edi
lea ecx, [ecx + edi*2]
mov edi, eax
sar edi, 6
and edi, 1
mov dword [esp + 0x2c], edi
lea ecx, [ecx + edi*2]
mov edi, eax
sar edi, 7
and edi, 1
mov dword [esp + 0x30], edi
add ecx, edi
mov edi, eax
sar edi, 8
and edi, 1
mov dword [esp + 0x34], edi
add ecx, edi
mov edi, eax
sar edi, 9
and edi, 1
mov dword [esp + 0x38], edi
lea ecx, [ecx + edi*2]
mov edi, eax
sar edi, 0xa
and edi, 1
lea ecx, [ecx + edi*2]
mov dword [esp + 0x20], ecx
mov ecx, eax
sar ecx, 0xb
and ecx, 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
sar eax, 0xc
add ecx, dword [esp + 0x3c]
and eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], edx
add ecx, eax
mov eax, dword [esp + 0x74]
mov dword [eax + 0x2c], ecx
mov ecx, edx
mov eax, dword [esp + 0x40]
sar ecx, 0x1f
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x44]
shld edx, eax, 3
mov dword [esp + 0x44], edx
mov edx, esi
mov ecx, dword [esp + 0x44]
shl eax, 3
sar edx, 0x1f
mov dword [esp + 0x40], eax
shld edx, esi, 2
mov eax, esi
mov esi, dword [esp + 0x40]
shl eax, 2
or ecx, edx
or esi, eax
mov eax, 0x600
imul dword [esp + 0x24]
or esi, eax
mov eax, 0x5000
or ecx, edx
imul ebp
or esi, eax
or ecx, edx
mov eax, 0xc0
imul dword [esp + 0x28]
or esi, eax
or ecx, edx
mov eax, 0x30
imul dword [esp + 0x2c]
or esi, eax
mov eax, dword [esp + 0x30]
or ecx, edx
mov edx, eax
sar edx, 0x1f
shld edx, eax, 8
shl eax, 8
or ecx, edx
or esi, eax
mov eax, dword [esp + 0x34]
mov edx, eax
sar edx, 0x1f
shld edx, eax, 0xb
or ecx, edx
imul edx, dword [esp + 0x38], 6
shl eax, 0xb
or esi, eax
xor eax, eax
or esi, eax
mov eax, 0x80000000
or ecx, edx
mul edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
add edx, edi
or esi, dword [esp + 0x40]
or ecx, edx
mov edx, eax
mov edi, eax
sar edx, 0x1f
mov ebp, edx
shld ebp, eax, 0xd
mov eax, 3
imul dword [esp + 0x48]
or ecx, ebp
shl edi, 0xd
or esi, edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x40], eax
or esi, eax
mov eax, dword [esp + 0x20]
or ecx, edx
mov dword [esp + 0x44], edx
mov ebp, edi
mov dword [edi + 0x40], esi
shl eax, 3
or eax, ecx
mov dword [edi + 0x44], eax
mov ecx, dword [esp + 0x4c]
mov eax, 0x28
and ecx, 7
shl eax, cl
mov dword [ebp + 0x48], eax
mov eax, 0x40
shl eax, cl
mov dword [ebp + 0x4c], eax
mov edx, dword [ebx + 8]
mov eax, edx
neg eax
cmp eax, 0x30
jg 0x6c4ddea7
mov eax, dword [esp + 0x18]
mov ecx, 0x30
sub eax, edx
cmp eax, 0x30
cmovge eax, ecx
add eax, edx
mov edx, eax
mov edi, eax
shr edx, 3
and edi, 7
add edx, dword [esp + 0x1c]
mov ecx, edi
mov dword [ebx + 8], eax
movzx esi, byte [edx]
shl esi, cl
mov ecx, esi
shr cl, 7
cmp eax, dword [esp + 0x18]
mov esi, ecx
jge 0x6c4ddeda
add eax, 1
mov edx, eax
shr edx, 3
add edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
and esi, 0xff
mov ecx, eax
mov dword [ebx + 8], eax
and ecx, 7
add eax, 0xf
mov ebp, dword [esp + 0x1c]
mov dword [edi + 0x50], esi
mov edx, dword [edx]
bswap edx
shl edx, cl
shr edx, 0xf1
cmp eax, dword [esp + 0x18]
cmova eax, dword [esp + 0x18]
imul edx, dword [edi + 0xc]
mov dword [ebx + 8], eax
mov ecx, eax
and ecx, 7
add edx, 8
shr edx, 4
mov dword [edi + 0x54], edx
mov edx, eax
add eax, 4
shr edx, 3
mov edx, dword [ebp + edx]
bswap edx
shl edx, cl
shr edx, 0xfc
cmp eax, dword [esp + 0x18]
cmova eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov dword [edi + 0x58], edx
mov edx, eax
neg edx
cmp edx, 0x5c
jg 0x6c4ddf59
mov edx, dword [esp + 0x18]
mov ecx, 0x5c
sub edx, eax
cmp edx, 0x5c
cmovge edx, ecx
add eax, edx
mov dword [ebx + 8], eax
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 0xbebbb1b7
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
mov eax, dword [esi + eax]
add edx, 4
bswap eax
shl eax, cl
shr eax, 0xfc
movzx eax, byte [eax + 0x6c5819a0]
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov dword [ebx + 8], edx
mov ecx, edx
mov dword [ebp + 4], eax
mov eax, edx
and ecx, 7
shr eax, 3
add edx, 4
mov eax, dword [esi + eax]
bswap eax
shl eax, cl
shr eax, 0xfc
movzx eax, byte [eax + 0x6c5819a0]
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov dword [ebx + 8], edx
mov ecx, edx
mov dword [ebp + 8], eax
mov eax, edx
and ecx, 7
shr eax, 3
add edx, 4
mov eax, dword [esi + eax]
bswap eax
shl eax, cl
shr eax, 0xfc
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
cmova edx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x4c], 0xf
mov dword [ebx + 8], edx
je 0x6c4de01e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
and eax, 8
cmp eax, 1
sbb eax, eax
and ecx, 7
and eax, 0xf3c
add eax, 0xac44
shl eax, cl
mov esi, dword [esp + 0x74]
mov ecx, edx
mov edi, dword [esp + 0x1c]
and ecx, 7
mov dword [esi + 0xc], eax
mov eax, edx
add edx, 4
shr eax, 3
mov eax, dword [edi + eax]
bswap eax
shl eax, cl
shr eax, 0xfc
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov dword [ebx + 8], edx
xor edx, edx
cmp eax, 0xf
je 0x6c4de070
mov edx, eax
mov ecx, eax
and edx, 8
cmp edx, 1
sbb edx, edx
and ecx, 7
and edx, 0xf3c
add edx, 0xac44
shl edx, cl
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x10], edx
mov edx, dword [ebx + 8]
add edx, 0xb
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
mov dword [ebx + 8], edx
mov eax, dword [esi + eax]
add edx, 5
bswap eax
shl eax, cl
shr eax, 0xfb
cmp edx, dword [esp + 0x18]
cmova edx, dword [esp + 0x18]
mov dword [ebx + 8], edx
movzx edx, byte [eax + 0x6c5819c0]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x24], edx
mov edx, dword [eax*8 + 0x6c5818a4]
mov eax, dword [eax*8 + 0x6c5818a0]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x30], eax
jmp 0x6c4dde6f
mov edi, dword [esp + 0x70]
mov dword [esp + 8], str.major_sync_info_header_checksum_error_n
mov dword [esp + 4], 0x10
mov dword [esp], edi
call sub.avutil_52.dll_av_log
mov eax, 0xbebbb1b7
jmp 0x6c4ddf60
mov eax, dword [esp + 0x70]
mov dword [esp + 8], str.packet_too_short__unable_to_read_major_sync_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sub.avutil_52.dll_av_log
mov eax, 0xffffffff
jmp 0x6c4ddf60