Function at 0x524f00
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov edx, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x17c
mov ecx, dword [eax + 0x1db4]
mov dword [ebp - 0x10], eax
shl edx, cl
add edx, 4
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1474]
dec eax
mov dword [edx + 0x1474], eax
inc eax
je 0x52506d
mov ecx, edx
mov edx, dword [edx + 0x81c]
cmp edx, 1
je 0x526dd2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + 0x1478], ecx
xor eax, eax
mov esi, esi
lea edi, [edi]
mov esi, dword [ebp - 0x10]
mov edi, 0xffffffff
mov dword [esi + eax*4 + 0x1714], edi
inc eax
cmp eax, 0xb
jle 0x524f60
mov ecx, dword [esi + 0x1d8c]
xor eax, eax
cmp ecx, 3
setne al
lea ebx, [eax + eax*2]
cmp edx, 2
mov dword [esi + 0x1194], ebx
je 0x5251e0
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x146c]
test edi, edi
je 0x5251b0
mov ecx, dword [eax + 0x1470]
mov esi, dword [eax + 0x90]
mov ebx, dword [ebp - 0x10]
mov eax, ecx
imul eax, esi
mov edx, dword [ebx + 0x618]
mov dword [ebp - 0x168], edx
add eax, edi
mov ebx, edx
mov edx, dword [ebx + eax*4 - 4]
mov eax, 0xffffffff
test dl, 7
jne 0x525062
mov ebx, dword [ebp - 0x10]
imul ecx, esi
or edx, 0x800
mov eax, dword [ebx + 0x11e8]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x1198], eax
mov eax, dword [ebx + 0x11ec]
mov dword [ebx + 0x119c], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx + 0x11f8]
mov dword [eax + 0x11b8], ebx
mov ebx, dword [eax + 0x11fc]
mov dword [eax + 0x11bc], ebx
lea ebx, [ecx + edi]
mov edi, dword [ebp - 0x168]
mov dword [edi + ebx*4], edx
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x119c]
mov edx, dword [edi + 0x1198]
mov ecx, dword [edi + 0x11b8]
or eax, edx
or eax, ecx
or eax, dword [edi + 0x11bc]
jne 0x525060
mov esi, 1
mov dword [edi + 0x7d8], esi
lea esi, [esi]
lea edi, [edi]
xor eax, eax
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x81c]
cmp eax, 2
je 0x5257fe
cmp eax, 3
je 0x525258
add edx, 0x1d58
mov eax, edx
mov dword [ebp - 0xa8], edx
call fcn.0051fa10
mov dword [ebp - 0x18], 1
test eax, eax
je 0x525db2
test byte [ebp - 0x18], 7
jne 0x5255a7
test dword [ebp - 0x18], 0x20000000
je 0x5252b9
mov ebx, dword [ebp - 0x10]
cmp dword [ebx + 0x1d8c], 3
je 0x525e8a
test dword [ebp - 0x18], 0x10000
jne 0x525e47
mov ecx, dword [ebp - 0x10]
mov ebx, 2
mov eax, dword [ecx + 0x1d8c]
mov dword [ecx + 0x1190], ebx
cmp eax, 3
je 0x525e7d
or dword [ebp - 0x18], 0x80
mov edx, 3
mov esi, dword [ebp - 0x10]
dec eax
mov dword [esi + 0x1194], edx
mov dword [esi + 0x11d8], eax
mov ecx, dword [ebp - 0x10]
xor edi, edi
xor edx, edx
xor esi, esi
xor eax, eax
xor ebx, ebx
mov dword [ecx + 0x11e8], edi
xor edi, edi
mov dword [ecx + 0x11ec], edx
mov dword [ecx + 0x11f0], esi
mov dword [ecx + 0x11f4], eax
mov dword [ecx + 0x1198], ebx
mov dword [ecx + 0x119c], edi
xor edi, edi
xor eax, eax
mov ebx, dword [ebp - 0x10]
test dword [ebp - 0x18], 0x20000
mov dword [ebx + 0x1478], edi
jne 0x52585f
lea esi, [esi]
lea edi, [edi]
mov esi, dword [ebp - 0x10]
mov ebx, 0xffffffff
mov dword [esi + eax*4 + 0x1714], ebx
inc eax
cmp eax, 0xb
jle 0x525170
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov eax, dword [esi + 0x90]
mov ebx, dword [esi + 0x1470]
mov ecx, dword [esi + 0x146c]
mov edx, dword [esi + 0x618]
imul eax, ebx
add eax, ecx
mov dword [edx + eax*4], edi
jmp 0x525060
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x1470]
mov edx, esi
mov esi, dword [esi + 0x90]
mov ebx, dword [edx + 0x88]
lea eax, [ecx - 1]
imul eax, esi
add eax, ebx
mov ebx, dword [edx + 0x618]
mov dword [ebp - 0x168], ebx
jmp 0x524fca
xor ebx, ebx
xor edx, edx
xor edi, edi
mov dword [esi + 0x119c], ebx
xor ebx, ebx
mov eax, 2
mov dword [esi + 0x11ec], edx
lea edx, [ecx - 1]
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x11f4], ebx
mov ebx, dword [esi + 0x1470]
mov dword [esi + 0x1198], edi
xor edi, edi
imul ecx, ebx
mov dword [esi + 0x11f0], edi
mov edi, dword [esi + 0x146c]
mov dword [esi + 0x11d8], edx
mov edx, dword [esi + 0x618]
add ecx, edi
mov dword [esi + 0x1190], eax
xor eax, eax
mov dword [esi + 0x11e8], eax
mov eax, 1
mov dword [esi + 0x7d8], eax
mov dword [edx + ecx*4], 0x3808
jmp 0x525060
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov ebx, dword [0x75af34]
add ecx, 0x1d58
mov edi, dword [ecx + 8]
mov dword [ebp - 0xa8], ecx
mov esi, dword [edx + 0x1d58]
mov eax, edi
sar eax, 3
mov ecx, edi
add eax, esi
and ecx, 7
mov edx, dword [eax]
mov eax, dword [ebp - 0xa8]
bswap edx
shl edx, cl
shr edx, 0xfa
movsx ecx, word [ebx + edx*4]
movsx esi, word [ebx + edx*4 + 2]
add edi, esi
test ecx, ecx
mov dword [eax + 8], edi
js 0x526f83
mov ecx, dword [ecx*4 + 0x693e30]
mov dword [ebp - 0x18], ecx
jmp 0x5250aa
mov dword [ebp - 0x1c], 2
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1d94]
test ecx, ecx
je 0x525e2f
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x1d8c], 3
je 0x525eae
test dword [ebp - 0x18], 0x10000
jne 0x525df9
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x10]
mov dword [ecx + 0x1190], ebx
mov edx, dword [ebp - 0x10]
add ecx, 0x11a4
mov dword [ebp - 0xdc], ecx
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xec], eax
add edi, 0x11ac
xor ebx, ebx
mov dword [ebp - 0xe0], edi
add edx, 0x11a8
add ecx, 0x11f4
mov dword [ebp - 0xe4], edx
add esi, 0x11a0
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf4], ecx
movzx ecx, byte [ebp - 0xf0]
mov esi, 0x3000
shl esi, cl
test dword [ebp - 0x18], esi
je 0x52555e
movzx ecx, byte [ebp - 0x118]
mov edi, 2
mov edx, dword [ebp - 0x10]
sar edi, cl
or dword [edx + 0x1190], edi
cmp dword [ebp - 0x1c], 2
je 0x525edf
jle 0x525b3c
cmp dword [ebp - 0x1c], 3
jne 0x526f42
mov edi, dword [ebp - 0xf4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [edi - 0xc]
mov edx, dword [esi + eax*4 + 0x1d7c]
mov eax, esi
mov dword [esp], ecx
call fcn.00524c70
mov dword [edi - 0xc], eax
mov ebx, dword [ebp - 0xa8]
mov esi, eax
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
mov ebx, dword [eax + 0x1d58]
mov edi, edx
mov ecx, edx
sar edi, 3
and ecx, 7
movzx eax, byte [edi + ebx]
mov edi, dword [ebp - 0xa8]
mov dword [ebp - 0x54], 0
shl al, cl
test al, 0x80
lea ecx, [edx + 1]
mov dword [edi + 8], ecx
je 0x52542b
mov eax, ecx
and ecx, 7
sar eax, 3
movzx eax, byte [eax + ebx]
add edx, 2
mov dword [edi + 8], edx
mov dword [ebp - 0x54], 1
shl al, cl
shr al, 7
movzx edx, al
add edx, edx
sub dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0xf4]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xf0]
mov eax, dword [ecx - 8]
mov edx, dword [edi + ebx*4 + 0x1d80]
sar eax, 1
mov dword [esp], eax
mov eax, edi
call fcn.00524c70
mov ebx, dword [ebp - 0xa8]
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
mov ebx, dword [ecx + 0x1d58]
mov eax, edx
sar eax, 3
mov ecx, edx
and ecx, 7
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x58], 0
shl al, cl
lea ecx, [edx + 1]
mov byte [ebp - 0x151], al
mov eax, dword [ebp - 0xa8]
test byte [ebp - 0x151], 0x80
mov dword [eax + 8], ecx
je 0x5254c2
mov eax, ecx
and ecx, 7
sar eax, 3
movzx eax, byte [eax + ebx]
add edx, 2
mov dword [ebp - 0x58], 1
shl al, cl
mov ecx, dword [ebp - 0xa8]
shr al, 7
mov dword [ecx + 8], edx
movzx edx, al
add edx, edx
sub dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0xf4]
lea eax, [edi + edi]
mov edx, 4
mov ebx, dword [ebp - 0x10]
mov dword [ecx - 8], eax
mov dword [ecx], eax
mov ecx, dword [ebx + 0x1d8c]
mov dword [ebx + 0x1194], edx
mov edx, dword [ebp - 0xec]
cmp ecx, 3
mov dword [edx + 0x1198], esi
mov dword [edx + 0x119c], edi
mov dword [edx + 0x11a0], esi
mov dword [edx + 0x11a4], edi
je 0x526a5a
or dword [ebp - 0x18], 8
mov edx, dword [ebp - 0xec]
add edx, 0x11a0
test esi, esi
jle 0x526df4
lea eax, [esi + 1]
mov esi, dword [ebp - 0x54]
sar eax, 1
add eax, esi
mov dword [edx + 8], eax
test edi, edi
jle 0x526dc5
mov edx, dword [ebp - 0x58]
lea eax, [edi + 1]
sar eax, 1
add eax, edx
mov edi, dword [ebp - 0xdc]
dec ecx
mov dword [edi + 8], eax
je 0x526d2e
mov ecx, dword [ebp - 0xec]
inc dword [ecx + 0x11ac]
inc dword [ebp - 0x118]
add dword [ebp - 0xf0], 2
add dword [ebp - 0xf4], 0x10
add dword [ebp - 0xec], 0x20
add dword [ebp - 0xe8], 0x20
add dword [ebp - 0xe4], 0x20
add dword [ebp - 0xe0], 0x20
add dword [ebp - 0xdc], 0x20
cmp dword [ebp - 0x118], 1
jle 0x525359
jmp 0x52514a
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x1e14]
mov dword [esp], ebx
call dword [edi + 0x874]
mov ecx, dword [edi + 0x1dbc]
test ecx, ecx
je 0x525fdf
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1d8c], 3
je 0x525ff8
test dword [ebp - 0x18], 0x10000
jne 0x525fa9
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x1d9c]
test eax, eax
jne 0x525ac6
cld
mov edi, dword [ebp - 0x10]
mov ecx, 8
add edi, 0x11e8
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
mov edx, 1
cmp dword [edi + 0x2c], 2
mov dword [edi + 0x1478], edx
je 0x52601f
mov esi, dword [ebp - 0x10]
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x108], ebx
add esi, 0x174c
add edx, 0x14c0
mov dword [ebp - 0x110], esi
mov dword [ebp - 0xa0], edx
mov edi, dword [ebp - 0x10]
xor ebx, ebx
mov edx, dword [ebp - 0x108]
cmp dword [ebp - 0x108], 3
mov eax, dword [edi + 0x800]
mov ecx, dword [edi + edx*4 + 0x1de4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ecx
jle 0x525674
mov ebx, dword [ebp - 0x108]
sub ebx, 3
mov eax, dword [ebp - 0xa8]
mov edx, ebx
call fcn.00524da0
cmp eax, 0xfffe
jg 0x525cbb
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x48]
mov ecx, dword [edx + ebx*4 + 0x760]
mov esi, dword [edx + 0x1d58]
add eax, ecx
mov dword [edx + ebx*4 + 0x760], eax
shl eax, 3
mov word [edi], ax
mov edi, dword [edx + 0x1d60]
mov edx, dword [0x7058fc]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xb8], edx
jmp 0x52571c
add dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x110]
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
imul ebx, edi
mov edi, esi
movzx ecx, byte [edx + eax]
mov edx, dword [ebp - 0xa0]
sar edi, 0xff
movzx eax, word [edx + ecx*2]
imul ebx, eax
sar ebx, 4
lea edx, [ebx - 1]
or edx, 1
xor edx, edi
sub edx, edi
mov edi, dword [ebp - 0x114]
inc edi
cmp dword [ebp - 0x4c], 0x3f
jg 0x525c8b
mov esi, dword [ebp - 0x48]
mov word [esi + ecx*2], dx
mov eax, dword [ebp - 0x10c]
mov ebx, edi
mov ecx, edi
mov esi, dword [ebp - 0xb8]
sar ebx, 3
and ecx, 7
mov edx, dword [eax + ebx]
bswap edx
shl edx, cl
mov eax, edx
shr eax, 0xf7
movsx ecx, byte [esi + eax*4 + 2]
movsx ebx, word [esi + eax*4]
test ecx, ecx
js 0x525c20
mov esi, dword [ebp - 0xb8]
add edi, ecx
movzx eax, byte [esi + eax*4 + 3]
mov esi, edx
shl esi, cl
mov dword [ebp - 0x114], edi
cmp ebx, 0x7f
je 0x525d7e
test ebx, ebx
jne 0x5256cf
mov ecx, dword [ebp - 0x114]
shr esi, 0xfa
lea ebx, [esi + 1]
add ecx, 6
mov esi, dword [ebp - 0x10c]
mov edi, ecx
sar edi, 3
and ecx, 7
mov eax, dword [esi + edi]
mov edi, dword [ebp - 0x114]
bswap eax
shl eax, cl
mov edx, eax
add edi, 0xe
sar edx, 0xf8
shl eax, 8
cmp edx, 0xffffff80
je 0x525c3a
test edx, edx
jne 0x5257c7
mov edx, eax
shr edx, 0xf8
mov edi, dword [ebp - 0x114]
add edi, 0x16
add dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x110]
test edx, edx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + ebx]
js 0x525c68
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0xa0]
imul edx, eax
movzx esi, word [ebx + ecx*2]
imul edx, esi
sar edx, 4
dec edx
or edx, 1
jmp 0x52570b
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x75af24]
add edi, 0x1d58
mov dword [ebp - 0xa8], edi
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [edi + 0x1d58]
mov eax, edx
sar eax, 3
add eax, ecx
mov ecx, edx
and ecx, 7
mov eax, dword [eax]
bswap eax
shl eax, cl
shr eax, 0xfa
movsx ecx, word [ebx + eax*4]
movsx eax, word [ebx + eax*4 + 2]
add edx, eax
test ecx, ecx
mov dword [esi + 8], edx
js 0x526fb0
mov ecx, dword [ecx*4 + 0x693e5c]
mov dword [ebp - 0x18], ecx
jmp 0x5250aa
mov ecx, dword [ebx + 0x1e14]
mov dword [esp], ecx
call dword [ebx + 0x874]
mov eax, dword [ebx + 0x1dbc]
test eax, eax
je 0x525c02
mov edi, dword [ebp - 0xa8]
mov ebx, dword [0x75af44]
mov edx, dword [edi + 8]
mov edi, dword [ebp - 0x10]
mov esi, edx
mov ecx, edx
mov eax, dword [edi + 0x1d58]
sar esi, 3
and ecx, 7
add esi, eax
mov eax, dword [esi]
bswap eax
shl eax, cl
shr eax, 0xf7
movsx esi, word [ebx + eax*4]
movsx eax, word [ebx + eax*4 + 2]
mov ebx, dword [ebp - 0xa8]
mov dword [ebp - 0x120], esi
add edx, eax
cmp esi, 0
mov dword [ebx + 8], edx
jl 0x526da4
jne 0x5258db
cmp dword [edi + 0x1db4], 1
jle 0x526da4
cmp dword [ebp - 0x20], 6
jg 0x526589
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x2c], 2
je 0x5265ad
mov edi, dword [ebp - 0x10]
test byte [edi + 0x3c], 1
je 0x526243
mov eax, dword [0x7058fc]
xor esi, esi
add edi, 0x174c
mov dword [ebp - 0x138], esi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], eax
test byte [ebp - 0x120], 0x20
je 0x525cd3
mov ecx, dword [ebp - 0x10]
mov edx, 0xffffffff
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x84], edx
mov ebx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x800]
mov eax, dword [ecx + esi*4 + 0x1de4]
mov esi, dword [ebx + 0x1d58]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebx + 0x1d60]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x13c], esi
mov eax, edi
mov ecx, edi
sar eax, 3
and ecx, 7
mov edx, dword [esi + eax]
bswap edx
shl edx, cl
test edx, edx
jns 0x5259f8
jmp 0x525d06
add dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x84]
movzx ecx, byte [edi + eax]
lea eax, [esi + esi + 1]
mov edi, ebx
imul eax, edx
sar edi, 0xff
mov dword [ebp - 0x88], ecx
lea ecx, [ebx + ebx]
sar eax, 1
lea edx, [eax - 1]
or edx, 1
xor edx, edi
sub edx, edi
mov edi, dword [ebp - 0x140]
inc edi
mov eax, dword [ebp - 0x88]
cmp ecx, 0xbfffffff
mov ebx, dword [ebp - 0x80]
mov word [ebx + eax*2], dx
jle 0x525d3f
mov esi, dword [ebp - 0x13c]
mov ebx, edi
mov ecx, edi
sar ebx, 3
and ecx, 7
mov edx, dword [esi + ebx]
bswap edx
shl edx, cl
mov ebx, dword [ebp - 0xc8]
mov eax, edx
shr eax, 0xf7
movsx ecx, byte [ebx + eax*4 + 2]
movsx esi, word [ebx + eax*4]
test ecx, ecx
js 0x525c48
mov ebx, dword [ebp - 0xc8]
add edi, ecx
movzx eax, byte [ebx + eax*4 + 3]
mov ebx, edx
shl ebx, cl
mov dword [ebp - 0x140], edi
test esi, esi
jne 0x525984
mov ecx, dword [ebp - 0x140]
shr ebx, 0xfa
inc ebx
mov edx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x140]
add ecx, 6
mov esi, ecx
sar esi, 3
and ecx, 7
mov eax, dword [edx + esi]
bswap eax
shl eax, cl
add edi, 0xe
mov ecx, eax
mov edx, eax
shl ecx, 8
sar edx, 0xf8
cmp edx, 0xffffff80
je 0x525cc5
test edx, edx
jne 0x525a88
mov edx, ecx
shr edx, 0xf8
mov edi, dword [ebp - 0x140]
mov ecx, eax
shl ecx, 0x10
add edi, 0x16
add dword [ebp - 0x84], ebx
test edx, edx
mov esi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x84]
movzx ebx, byte [eax + esi]
mov dword [ebp - 0x88], ebx
js 0x525d60
mov esi, dword [ebp - 0x8c]
lea ebx, [edx + edx + 1]
imul ebx, esi
sar ebx, 1
lea edx, [ebx - 1]
or edx, 1
jmp 0x5259c8
cmp dword [esi + 0x1d8c], 3
je 0x525ad8
mov eax, dword [ebp - 0xa8]
inc dword [eax + 8]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x11e8]
mov edx, dword [edi + 0x1d7c]
mov dword [esp], eax
mov eax, edi
call fcn.00524c70
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x1d80]
mov dword [esi + 0x11f0], eax
mov ecx, dword [esi + 0x11ec]
mov dword [esi + 0x11e8], eax
mov dword [esi + 0x1198], eax
mov eax, esi
mov dword [esp], ecx
call fcn.00524c70
mov dword [esi + 0x11f4], eax
mov edi, dword [ebp - 0xa8]
mov dword [esi + 0x11ec], eax
mov dword [esi + 0x119c], eax
inc dword [edi + 8]
jmp 0x525606
cmp dword [ebp - 0x1c], 1
jne 0x526f42
mov esi, dword [ebp - 0x10]
mov edi, 3
cmp dword [esi + 0x1d8c], 3
mov dword [esi + 0x1194], edi
jne 0x526510
or dword [ebp - 0x18], 0x90
xor edi, edi
mov eax, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xf0]
call fcn.0051fa10
mov esi, dword [ebp - 0x10]
add ebx, edi
mov ecx, dword [esi + ebx*8 + 0x11e8]
mov dword [esi + ebx*4 + 0x11d8], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [esi + eax*4 + 0x1d7c]
mov dword [esp], ecx
mov eax, esi
call fcn.00524c70
mov dword [esi + ebx*8 + 0x11e8], eax
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x10]
lea esi, [edi + edx*4]
inc edi
mov dword [ecx + esi*8 + 0x1198], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ecx + eax*4 + 0x1d80]
mov eax, dword [ecx + ebx*8 + 0x11ec]
sar eax, 1
mov dword [esp], eax
mov eax, ecx
call fcn.00524c70
mov ecx, dword [ebp - 0x10]
lea edx, [eax + eax]
cmp edi, 1
mov dword [ecx + ebx*8 + 0x11ec], edx
mov dword [ecx + esi*8 + 0x119c], eax
jle 0x525b6a
jmp 0x52555e
mov edx, dword [ebx + 0x1e14]
add edx, 0x300
mov dword [esp], edx
call dword [ebx + 0x874]
jmp 0x52587c
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, ebx
movsx ebx, word [esi + eax*4]
movsx ecx, byte [esi + eax*4 + 2]
jmp 0x52574f
shr eax, 0xf8
lea edx, [eax - 0x100]
jmp 0x5257be
mov ebx, dword [ebp - 0xc8]
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, esi
movsx esi, word [ebx + eax*4]
movsx ecx, byte [ebx + eax*4 + 2]
jmp 0x525a14
mov eax, dword [ebp - 0x50]
neg edx
mov esi, dword [ebp - 0xa0]
imul edx, eax
movzx ebx, word [esi + ecx*2]
imul edx, ebx
sar edx, 4
dec edx
or edx, 1
neg edx
jmp 0x52570b
mov edi, dword [ebp - 0x10]
mov esi, 0x6946d4
mov eax, dword [edi + 0x1470]
mov dword [esp + 0x10], eax
mov ebx, dword [edi + 0x146c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [edi]
mov dword [esp], eax
call fcn.0045dc30
mov eax, 0xffffffff
jmp 0x525062
shr ecx, 0xf8
lea edx, [ecx - 0x100]
jmp 0x525a7a
mov esi, dword [ebp - 0x138]
mov edi, 0xffffffff
mov ebx, dword [ebp - 0x10]
mov dword [ebx + esi*4 + 0x1714], edi
inc dword [ebp - 0x138]
shl dword [ebp - 0x120], 1
cmp dword [ebp - 0x138], 5
jle 0x52591e
jmp 0x525185
mov ebx, dword [ebp - 0x8c]
lea eax, [ebx + ebx*2]
sar eax, 1
dec eax
or eax, 1
test edx, 0x40000000
je 0x525d1f
neg eax
mov esi, dword [ebp - 0x80]
shl edx, 2
xor ecx, ecx
mov dword [ebp - 0x84], ecx
add edi, 2
cmp edx, 0xbfffffff
mov word [esi], ax
jg 0x5259f8
lea ecx, [edi + 2]
mov edx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x1d60], ecx
mov dword [edi + eax*4 + 0x1714], edx
jmp 0x525ce8
neg edx
lea eax, [edx + edx + 1]
mov edx, dword [ebp - 0x8c]
imul eax, edx
sar eax, 1
lea edx, [eax - 1]
or edx, 1
neg edx
jmp 0x5259c8
mov edx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x1d60], ebx
mov dword [edi + edx*4 + 0x1714], ecx
inc edx
cmp edx, 5
mov dword [ebp - 0x108], edx
jle 0x525644
jmp 0x525185
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov dword [ebp - 0x18], 0x10001
test eax, eax
jne 0x5250aa
mov ecx, dword [ebp - 0x10]
mov edx, str.invalid_mb_type_in_I_Frame_at__d__d_n
mov eax, dword [ecx + 0x1470]
mov dword [esp + 0x10], eax
mov edi, dword [ecx + 0x146c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [ecx]
jmp 0x525cb3
mov eax, dword [ebp - 0xa8]
mov edx, 5
call fcn.0051f9d0
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x1da0]
test esi, esi
je 0x5267de
movzx eax, byte [eax + 0x693e10]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x800], eax
jmp 0x5252ee
mov eax, dword [ebp - 0xa8]
mov edx, 2
call fcn.0051f9d0
mov dword [ebp - 0x1c], eax
jmp 0x5252d1
mov eax, dword [ebp - 0xa8]
mov edx, 5
call fcn.0051f9d0
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x1da0]
test esi, esi
je 0x5267d7
movzx eax, byte [eax + 0x693e10]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x800], eax
jmp 0x5250de
xor eax, eax
mov dword [ecx + 0x1194], eax
jmp 0x525117
mov eax, dword [ebx + 0x1d94]
test eax, eax
jne 0x5250d1
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov dword [ebx + 0x1dcc], eax
jmp 0x5250d1
mov eax, dword [edi + 0x1d94]
test eax, eax
jne 0x5252e1
test dword [ebp - 0x18], 0x20000
je 0x5252e1
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov dword [edi + 0x1dcc], eax
jmp 0x5252e1
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x1d8c], 3
je 0x526e78
or dword [ebp - 0x18], 0x90
mov ecx, 2
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x118]
mov dword [edi + 0x1194], ecx
mov edi, dword [ebp - 0x118]
shl esi, 2
mov dword [ebp - 0xd8], esi
shl edi, 3
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ebx, dword [ebp - 0xf0]
add ebx, eax
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov edx, dword [ebp - 0x10]
mov dword [edx + ebx*4 + 0x11d8], eax
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x10]
add ebx, esi
mov edx, dword [ecx + ebx*4 + 0x1d7c]
mov ebx, dword [ebp - 0xd8]
add ebx, esi
mov eax, dword [ecx + ebx*4 + 0x11e8]
mov dword [esp], eax
mov eax, ecx
call fcn.00524c70
mov ecx, dword [ebp - 0x10]
lea edx, [edi + esi]
inc esi
cmp esi, 1
mov dword [ecx + ebx*4 + 0x11e8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + edx*4 + 0x1198], eax
jle 0x525f45
inc dword [ebp - 0x14]
add edi, 2
add dword [ebp - 0xd8], 2
cmp dword [ebp - 0x14], 1
jg 0x52555e
jmp 0x525f23
mov eax, dword [ebp - 0xa8]
mov edx, 5
call fcn.0051f9d0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1da0]
test edx, edx
je 0x526853
movzx eax, byte [eax + 0x693e10]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x800], eax
jmp 0x5255e4
mov eax, dword [edi + 0x1e14]
add eax, 0x300
mov dword [esp], eax
call dword [edi + 0x874]
jmp 0x5255c7
mov edi, dword [eax + 0x1d94]
test edi, edi
jne 0x5255d7
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x1dcc], eax
jmp 0x5255d7
test byte [edi + 0x3c], 1
je 0x52685a
xor ebx, ebx
lea esi, [edi + 0x174c]
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xa4], esi
cmp dword [ebp - 0xf8], 3
mov esi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xa4]
mov edx, dword [ebx + esi*4 + 0x1de4]
mov eax, dword [ecx + 0x800]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
jg 0x526208
mov eax, dword [ebp - 0x10]
xor ebx, ebx
add eax, 0x14c0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa8]
mov edx, ebx
call fcn.00524da0
cmp eax, 0xfffe
jg 0x5261f0
mov edi, dword [ebp - 0x10]
mov ecx, 3
mov esi, dword [ebp - 0x24]
mov edx, dword [edi + ebx*4 + 0x760]
add eax, edx
mov edx, dword [edi + 0x1da4]
mov dword [edi + ebx*4 + 0x760], eax
mov ebx, dword [edi + 0x1d90]
sub ecx, ebx
shl eax, cl
test edx, edx
mov word [esi], ax
mov eax, 0x705980
jne 0x5260d3
mov eax, 0x7058c0
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov esi, dword [ecx + 0x1d58]
mov dword [ebp - 0xac], eax
mov edi, dword [ecx + 0x1d60]
mov dword [ebp - 0xb0], esi
jmp 0x526120
add dword [ebp - 0x28], eax
inc edi
mov edx, dword [ebp - 0x28]
movzx ecx, byte [edx]
mov edx, dword [ebp - 0x30]
imul edx, ebx
mov ebx, dword [ebp - 0x2c]
movzx eax, word [ebx + ecx*2]
mov ebx, esi
sar ebx, 0xff
imul edx, eax
sar edx, 4
xor edx, ebx
sub edx, ebx
mov ebx, dword [ebp - 0x24]
mov word [ebx + ecx*2], dx
mov eax, dword [ebp - 0xb0]
mov ebx, edi
mov ecx, edi
mov esi, dword [ebp - 0xac]
sar ebx, 3
and ecx, 7
mov edx, dword [eax + ebx]
bswap edx
shl edx, cl
mov eax, edx
shr eax, 0xf7
movsx ecx, byte [esi + eax*4 + 2]
movsx ebx, word [esi + eax*4]
test ecx, ecx
js 0x5261b7
mov esi, dword [ebp - 0xac]
add edi, ecx
movzx eax, byte [esi + eax*4 + 3]
mov esi, edx
shl esi, cl
cmp ebx, 0x7f
je 0x5261ce
test ebx, ebx
jne 0x5260f3
lea ecx, [edi + 6]
mov ebx, dword [ebp - 0xb0]
mov eax, ecx
sar eax, 3
and ecx, 7
shr esi, 0xfa
mov eax, dword [ebx + eax]
bswap eax
shl eax, cl
mov ecx, dword [ebp - 0x28]
add edi, 0x12
sar eax, 0xf4
lea esi, [esi + ecx + 1]
test eax, eax
mov dword [ebp - 0x28], esi
movzx ecx, byte [esi]
js 0x526225
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
imul edx, eax
movzx eax, word [esi + ecx*2]
imul edx, eax
sar edx, 4
jmp 0x526119
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, ebx
movsx ebx, word [esi + eax*4]
movsx ecx, byte [esi + eax*4 + 2]
jmp 0x52614f
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0x28], edx
mov dword [edx + 0x1d60], edi
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0xf8]
sub ecx, 0x174c
mov dword [edx + edi*4 + 0x1714], ecx
inc dword [ebp - 0xf8]
cmp dword [ebp - 0xf8], 5
jle 0x52603d
jmp 0x525185
mov ecx, dword [ebp - 0xf8]
mov edi, dword [ebp - 0x10]
and ecx, 1
add edi, 0x1540
lea ebx, [ecx + 1]
mov dword [ebp - 0x2c], edi
jmp 0x52607f
mov edx, eax
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
neg edx
imul edx, ebx
movzx esi, word [eax + ecx*2]
imul edx, esi
sar edx, 4
neg edx
jmp 0x526119
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x144], ecx
add edx, 0x174c
add eax, 0x15c0
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xc0], eax
test byte [ebp - 0x120], 0x20
je 0x5264b0
mov ecx, dword [ebp - 0x10]
mov edx, 0xffffffff
mov ebx, dword [ebp - 0x144]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x10]
mov edi, dword [ecx + 0x800]
mov esi, dword [ecx + ebx*4 + 0x1de4]
mov ebx, dword [eax + 0x1d58]
mov dword [ebp - 0x9c], edi
mov edi, dword [eax + 0x1d60]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x148], ebx
mov esi, edi
mov ecx, edi
sar esi, 3
and ecx, 7
mov edx, dword [ebx + esi]
bswap edx
shl edx, cl
test edx, edx
js 0x5267e5
mov eax, dword [0x7058fc]
mov dword [ebp - 0x14c], eax
jmp 0x526372
add dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x94]
movzx ecx, byte [edi + eax]
lea eax, [esi + esi + 1]
mov esi, dword [ebp - 0xc0]
imul eax, edx
mov edi, ebx
sar edi, 0xff
movzx edx, word [esi + ecx*2]
mov dword [ebp - 0x98], ecx
lea ecx, [ebx + ebx]
imul eax, edx
sar eax, 5
lea edx, [eax - 1]
or edx, 1
xor edx, edi
sub edx, edi
mov edi, dword [ebp - 0x150]
inc edi
cmp dword [ebp - 0x94], 0x3f
jg 0x5264e3
mov ebx, dword [ebp - 0x98]
cmp ecx, 0xbfffffff
mov eax, dword [ebp - 0x90]
mov word [eax + ebx*2], dx
jle 0x52682f
mov eax, dword [ebp - 0x148]
mov esi, edi
mov ecx, edi
sar esi, 3
and ecx, 7
mov edx, dword [eax + esi]
bswap edx
shl edx, cl
mov ebx, dword [ebp - 0x14c]
mov eax, edx
shr eax, 0xf7
movsx ecx, byte [ebx + eax*4 + 2]
movsx esi, word [ebx + eax*4]
test ecx, ecx
js 0x526450
mov ebx, dword [ebp - 0x14c]
add edi, ecx
movzx eax, byte [ebx + eax*4 + 3]
mov ebx, edx
shl ebx, cl
mov dword [ebp - 0x150], edi
test esi, esi
jne 0x5262e0
mov ecx, dword [ebp - 0x150]
shr ebx, 0xfa
inc ebx
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x150]
add ecx, 6
mov edx, ecx
sar edx, 3
and ecx, 7
mov eax, dword [esi + edx]
bswap eax
shl eax, cl
add edi, 0xe
mov ecx, eax
mov edx, eax
shl ecx, 8
sar edx, 0xf8
cmp edx, 0xffffff80
je 0x526470
test edx, edx
jne 0x526402
mov edx, ecx
shr edx, 0xf8
mov edi, dword [ebp - 0x150]
mov ecx, eax
shl ecx, 0x10
add edi, 0x16
add dword [ebp - 0x94], ebx
mov ebx, dword [ebp - 0xbc]
test edx, edx
mov esi, dword [ebp - 0x94]
movzx eax, byte [esi + ebx]
mov dword [ebp - 0x98], eax
js 0x52647e
lea eax, [edx + edx + 1]
mov esi, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xc0]
imul eax, edx
movzx edx, word [ebx + esi*2]
imul eax, edx
sar eax, 5
lea edx, [eax - 1]
or edx, 1
jmp 0x526332
mov ebx, dword [ebp - 0x14c]
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, esi
movsx esi, word [ebx + eax*4]
movsx ecx, byte [ebx + eax*4 + 2]
jmp 0x52638e
shr ecx, 0xf8
lea edx, [ecx - 0x100]
jmp 0x5263f4
neg edx
mov esi, dword [ebp - 0x98]
lea eax, [edx + edx + 1]
mov ebx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x9c]
imul eax, edx
movzx edx, word [ebx + esi*2]
imul eax, edx
sar eax, 5
lea edx, [eax - 1]
or edx, 1
neg edx
jmp 0x526332
mov edi, dword [ebp - 0x144]
mov ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + edi*4 + 0x1714], ecx
inc dword [ebp - 0x144]
shl dword [ebp - 0x120], 1
cmp dword [ebp - 0x144], 5
jle 0x526268
jmp 0x525185
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1470]
mov dword [esp + 0x10], eax
mov esi, dword [edx + 0x146c]
mov eax, 0x6946d4
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [edx]
jmp 0x525cb3
or dword [ebp - 0x18], 0x88
xor esi, esi
mov eax, dword [ebp - 0xa8]
call fcn.0051fa10
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x10]
mov dword [edi + ebx*4 + 0x11d8], eax
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x118]
add ebx, esi
mov edx, dword [edi + ebx*4 + 0x1d7c]
lea ebx, [esi + ecx*4]
mov eax, dword [edi + ebx*4 + 0x11e8]
mov dword [esp], eax
mov eax, edi
call fcn.00524c70
mov dword [edi + ebx*4 + 0x11e8], eax
mov ecx, dword [ebp - 0x118]
mov dword [edi + ebx*4 + 0x11f0], eax
lea edx, [esi + ecx*8]
inc esi
mov dword [edi + edx*4 + 0x1198], eax
cmp esi, 1
jle 0x526534
jmp 0x52555e
mov ecx, dword [ebp - 0x20]
mov edi, esi
mov eax, dword [ebp - 0xa8]
sub ecx, 6
mov edx, ecx
shl edi, cl
call fcn.0051f9d0
or eax, edi
mov dword [ebp - 0x120], eax
jmp 0x5258e5
test byte [ecx + 0x3c], 1
je 0x526af2
mov edx, dword [0x7058fc]
xor esi, esi
add ecx, 0x174c
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd4], edx
test byte [ebp - 0x120], 0x20
je 0x526755
mov dword [ebp - 0x60], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x11c]
mov edi, dword [eax + 0x800]
mov esi, dword [ebp - 0x10]
mov ebx, dword [eax + edx*4 + 0x1de4]
mov dword [ebp - 0x68], edi
mov edi, dword [ecx + 0x1d60]
mov edx, dword [esi + 0x1d58]
mov dword [ebp - 0x5c], ebx
mov eax, edi
mov ecx, edi
mov dword [ebp - 0x124], edx
sar eax, 3
and ecx, 7
mov edx, dword [edx + eax]
bswap edx
shl edx, cl
test edx, edx
jns 0x526699
jmp 0x526788
add dword [ebp - 0x60], eax
inc edi
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + edx]
lea edx, [esi + esi + 1]
mov esi, dword [ebp - 0x68]
mov eax, ebx
sar eax, 0xff
mov dword [ebp - 0x64], ecx
imul edx, esi
lea ecx, [ebx + ebx]
sar edx, 1
xor edx, eax
sub edx, eax
mov eax, dword [ebp - 0x64]
cmp ecx, 0xbfffffff
mov ebx, dword [ebp - 0x5c]
mov word [ebx + eax*2], dx
jle 0x5267b9
mov ebx, dword [ebp - 0x124]
mov esi, edi
mov ecx, edi
sar esi, 3
and ecx, 7
mov edx, dword [ebx + esi]
bswap edx
shl edx, cl
mov ebx, dword [ebp - 0xd4]
mov eax, edx
shr eax, 0xf7
movsx ecx, byte [ebx + eax*4 + 2]
movsx esi, word [ebx + eax*4]
test ecx, ecx
js 0x52671e
mov ebx, dword [ebp - 0xd4]
add edi, ecx
movzx eax, byte [ebx + eax*4 + 3]
mov ebx, edx
shl ebx, cl
test esi, esi
jne 0x526640
lea ecx, [edi + 6]
mov esi, dword [ebp - 0x124]
mov edx, ecx
sar edx, 3
and ecx, 7
shr ebx, 0xfa
mov eax, dword [esi + edx]
bswap eax
mov esi, dword [ebp - 0x60]
shl eax, cl
add edi, 0x12
mov edx, eax
mov ecx, eax
shl ecx, 0xc
lea eax, [ebx + esi + 1]
mov esi, dword [ebp - 0xd0]
mov dword [ebp - 0x60], eax
sar edx, 0xf4
movzx ebx, byte [eax + esi]
test edx, edx
mov dword [ebp - 0x64], ebx
js 0x52673e
mov esi, dword [ebp - 0x68]
lea edx, [edx + edx + 1]
imul edx, esi
sar edx, 1
jmp 0x52666c
mov ebx, dword [ebp - 0xd4]
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, esi
movsx esi, word [ebx + eax*4]
movsx ecx, byte [ebx + eax*4 + 2]
jmp 0x5266b1
lea eax, [edx + edx]
mov ebx, dword [ebp - 0x68]
neg eax
lea edx, [eax + 1]
imul edx, ebx
sar edx, 1
neg edx
jmp 0x52666c
mov ebx, dword [ebp - 0x11c]
mov edx, 0xffffffff
mov esi, dword [ebp - 0x10]
mov dword [esi + ebx*4 + 0x1714], edx
inc dword [ebp - 0x11c]
shl dword [ebp - 0x120], 1
cmp dword [ebp - 0x11c], 5
jle 0x5265d7
jmp 0x525185
mov esi, dword [ebp - 0x68]
lea eax, [esi + esi*2]
sar eax, 1
test edx, 0x40000000
je 0x52679a
neg eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x5c]
shl edx, 2
add edi, 2
cmp edx, 0xbfffffff
mov word [ecx], ax
jg 0x526699
lea ecx, [edi + 2]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x11c]
mov dword [edx + 0x1d60], ecx
mov dword [edx + eax*4 + 0x1714], edi
jmp 0x52676a
add eax, eax
jmp 0x525e6f
add eax, eax
jmp 0x525e21
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x9c]
movzx eax, word [esi + 0x15c0]
imul eax, ecx
lea eax, [eax + eax*2]
sar eax, 5
dec eax
or eax, 1
test edx, 0x40000000
je 0x52680c
neg eax
mov ecx, dword [ebp - 0x90]
shl edx, 2
xor ebx, ebx
mov dword [ebp - 0x94], ebx
add edi, 2
cmp edx, 0xbfffffff
mov word [ecx], ax
jg 0x5262d0
lea ecx, [edi + 2]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x144]
mov dword [edx + 0x1d60], ecx
mov dword [edx + ebx*4 + 0x1714], edi
jmp 0x5264c5
add eax, eax
jmp 0x525fd1
xor esi, esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xfc], esi
cmp dword [ebp - 0xfc], eax
jge 0x525185
mov ebx, dword [ebp - 0x10]
add ebx, 0x174c
mov dword [ebp - 0x104], ebx
cmp dword [ebp - 0xfc], 3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xfc]
mov edx, dword [ecx + 0x800]
mov edi, dword [ecx + eax*4 + 0x1de4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edi
jg 0x526d87
mov esi, dword [ebp - 0x10]
xor ebx, ebx
add esi, 0x14c0
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0xa8]
mov edx, ebx
call fcn.00524da0
cmp eax, 0xfffe
jg 0x525cbb
mov dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x10]
mov ecx, 3
mov edi, dword [esi + ebx*4 + 0x760]
mov edx, dword [esi + 0x1d90]
add eax, edi
mov dword [esi + ebx*4 + 0x760], eax
sub ecx, edx
mov edi, dword [ebp - 0x34]
shl eax, cl
mov ecx, dword [esi + 0x1da4]
mov word [edi], ax
xor eax, 1
cwde
mov dword [ebp - 0x44], eax
test ecx, ecx
mov eax, 0x705980
jne 0x526919
mov eax, 0x7058c0
mov esi, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ebx, dword [esi + 0x1d58]
mov dword [ebp - 0xb4], eax
mov edi, dword [esi + 0x1d60]
mov dword [ebp - 0x100], ebx
jmp 0x52697a
add dword [ebp - 0x38], eax
inc edi
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 0x40]
imul edx, ebx
mov ebx, dword [ebp - 0x3c]
movzx eax, word [ebx + ecx*2]
imul edx, eax
mov eax, esi
sar eax, 0xff
sar edx, 4
xor edx, eax
sub edx, eax
cmp dword [ebp - 0x38], 0x3f
jg 0x5264e3
xor dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x34]
mov word [eax + ecx*2], dx
mov ebx, dword [ebp - 0x100]
mov eax, edi
mov ecx, edi
sar eax, 3
and ecx, 7
mov edx, dword [ebx + eax]
bswap edx
shl edx, cl
mov ecx, dword [ebp - 0xb4]
mov eax, edx
shr eax, 0xf7
movsx ebx, word [ecx + eax*4]
movsx ecx, byte [ecx + eax*4 + 2]
test ecx, ecx
js 0x526a1c
mov esi, dword [ebp - 0xb4]
add edi, ecx
movzx eax, byte [esi + eax*4 + 3]
mov esi, edx
shl esi, cl
cmp ebx, 0x7f
je 0x526d3f
test ebx, ebx
jne 0x526939
lea ecx, [edi + 6]
mov ebx, dword [ebp - 0x38]
shr esi, 0xfa
mov edx, dword [ebp - 0x100]
mov eax, ecx
and ecx, 7
sar eax, 3
add edi, 0x12
mov eax, dword [edx + eax]
bswap eax
shl eax, cl
lea ecx, [esi + ebx + 1]
mov esi, dword [ebp - 0x104]
sar eax, 0xf4
mov dword [ebp - 0x38], ecx
test eax, eax
movzx ecx, byte [ecx + esi]
js 0x526a3c
mov edx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
imul edx, eax
movzx esi, word [ebx + ecx*2]
imul edx, esi
sar edx, 4
jmp 0x526966
mov esi, dword [ebp - 0xb4]
shl edx, 9
add edi, 9
mov eax, edx
shr eax, cl
add eax, ebx
movsx ebx, word [esi + eax*4]
movsx ecx, byte [esi + eax*4 + 2]
jmp 0x5269a9
mov edx, eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
neg edx
movzx ebx, word [esi + ecx*2]
imul edx, eax
imul edx, ebx
sar edx, 4
neg edx
jmp 0x526966
or dword [ebp - 0x18], 0x88
mov eax, esi
mov ecx, dword [ebx + 0x1d98]
cmp ecx, 1
sbb ebx, ebx
and ebx, 2
lea edx, [ebx + 1]
imul eax, edx
test esi, esi
jle 0x526a7c
inc eax
mov ecx, dword [ebp - 0x54]
sar eax, 1
mov ebx, dword [ebp - 0xe8]
add eax, ecx
mov dword [ebx + 8], eax
mov eax, edi
imul eax, edx
test edi, edi
jle 0x526f67
mov ebx, dword [ebp - 0x58]
inc eax
sar eax, 1
lea eax, [eax + ebx - 1]
mov ebx, dword [ebp - 0xdc]
mov ecx, 4
sub ecx, edx
mov dword [ebx + 8], eax
mov eax, esi
imul eax, ecx
test esi, esi
jle 0x526abd
inc eax
mov edx, dword [ebp - 0x54]
sar eax, 1
mov esi, dword [ebp - 0xe4]
add eax, edx
mov dword [esi + 8], eax
mov eax, edi
imul eax, ecx
test edi, edi
jle 0x526f75
mov edi, dword [ebp - 0x58]
inc eax
sar eax, 1
lea eax, [eax + edi + 1]
mov ebx, dword [ebp - 0xe0]
mov dword [ebx + 8], eax
jmp 0x52555e
mov ebx, dword [ebp - 0x20]
xor edi, edi
mov ecx, 0xc
mov dword [ebp - 0x128], edi
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x20]
sub ecx, ebx
shl esi, cl
cmp dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], esi
jge 0x525185
mov edx, dword [ebp - 0x10]
add edx, 0x174c
mov dword [ebp - 0xcc], edx
test dword [ebp - 0x12c], 0x800
je 0x526cf9
cmp dword [ebp - 0x128], 3
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x70], 0xffffffff
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + ecx*4 + 0x1de4]
mov eax, dword [edi + 0x800]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x78], eax
mov ebx, dword [ecx + 0x1d60]
jg 0x526f04
add ecx, 0x15c0
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, ebx
sar eax, 3
and ecx, 7
mov edi, dword [edx + 0x1d58]
mov dword [ebp - 0x130], edi
mov edx, dword [edi + eax]
bswap edx
shl edx, cl
test edx, edx
js 0x526e01
mov esi, dword [0x7058fc]
mov dword [ebp - 0x134], esi
jmp 0x526c2a
add dword [ebp - 0x70], eax
inc ebx
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + edx]
lea edx, [edi + edi + 1]
mov eax, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
imul edx, eax
movzx eax, word [edi + ecx*2]
lea edi, [esi + esi]
imul edx, eax
mov eax, esi
sar eax, 0xff
sar edx, 5
xor edx, eax
sub edx, eax
cmp dword [ebp - 0x70], 0x3f
jg 0x526f15
xor dword [ebp - 0x7c], edx
cmp edi, 0xbfffffff
mov esi, dword [ebp - 0x6c]
mov word [esi + ecx*2], dx
jle 0x526e42
mov eax, dword [ebp - 0x130]
mov edi, ebx
mov ecx, ebx
sar edi, 3
and ecx, 7
mov edx, dword [eax + edi]
bswap edx
shl edx, cl
mov ecx, dword [ebp - 0x134]
mov eax, edx
shr eax, 0xf7
movsx edi, word [ecx + eax*4]
movsx ecx, byte [ecx + eax*4 + 2]
test ecx, ecx
js 0x526cb7
mov esi, dword [ebp - 0x134]
add ebx, ecx
movzx eax, byte [esi + eax*4 + 3]
mov esi, edx
shl esi, cl
test edi, edi
jne 0x526bbf
lea ecx, [ebx + 6]
mov edx, dword [ebp - 0x130]
mov edi, ecx
sar edi, 3
and ecx, 7
shr esi, 0xfa
mov eax, dword [edx + edi]
bswap eax
shl eax, cl
add ebx, 0x12
mov edx, eax
mov edi, eax
mov eax, dword [ebp - 0x70]
sar edx, 0xf4
shl edi, 0xc
test edx, edx
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp - 0xcc]
movzx ecx, byte [ecx + esi]
js 0x526cd7
mov eax, dword [ebp - 0x78]
lea edx, [edx + edx + 1]
mov esi, dword [ebp - 0x74]
imul edx, eax
movzx eax, word [esi + ecx*2]
imul edx, eax
sar edx, 5
jmp 0x526bf3
mov esi, dword [ebp - 0x134]
shl edx, 9
add ebx, 9
mov eax, edx
shr eax, cl
add eax, edi
movsx edi, word [esi + eax*4]
movsx ecx, byte [esi + eax*4 + 2]
jmp 0x526c42
lea esi, [edx + edx]
mov eax, dword [ebp - 0x78]
neg esi
lea edx, [esi + 1]
mov esi, dword [ebp - 0x74]
imul edx, eax
movzx eax, word [esi + ecx*2]
imul edx, eax
sar edx, 5
neg edx
jmp 0x526bf3
mov edx, dword [ebp - 0x128]
mov ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
mov dword [ebx + edx*4 + 0x1714], ecx
inc dword [ebp - 0x128]
mov edi, dword [ebp - 0x20]
shl dword [ebp - 0x12c], 1
cmp dword [ebp - 0x128], edi
jl 0x526b30
jmp 0x525185
mov eax, dword [ebp - 0xec]
dec dword [eax + 0x11ac]
jmp 0x52555e
and dword [ebp - 0x44], 1
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x1d60], edi
mov ecx, dword [ebp - 0xfc]
movzx edi, word [ebx + 0x7e]
mov dword [edx + ecx*4 + 0x1714], esi
inc ecx
xor dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp - 0x44]
cmp ecx, edi
mov word [ebx + 0x7e], ax
jl 0x526880
jmp 0x525185
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xfc]
add ebx, 0x1540
mov dword [ebp - 0x3c], ebx
and edx, 1
lea ebx, [edx + 1]
jmp 0x5268b7
mov edx, dword [ebp - 0x10]
mov eax, str.invalid_cbp_at__d__d_n
mov ecx, dword [edx + 0x1470]
mov dword [esp + 0x10], ecx
mov ebx, dword [edx + 0x146c]
mov dword [esp + 0xc], ebx
jmp 0x5264ff
mov esi, dword [ebp - 0x58]
sar edi, 1
lea eax, [edi + esi]
jmp 0x525542
mov esi, dword [ecx + 0x1470]
mov edi, str.skipped_MB_in_I_frame_at__d__d_n
mov dword [esp + 0x10], esi
mov ebx, dword [ecx + 0x146c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
jmp 0x525dec
mov ebx, dword [ebp - 0x54]
sar esi, 1
lea eax, [esi + ebx]
jmp 0x52552d
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
movzx esi, word [eax]
imul esi, ecx
lea eax, [esi + esi*2]
sar eax, 5
test edx, 0x40000000
je 0x526e1d
neg eax
mov dword [ebp - 0x70], 0
mov edi, dword [ebp - 0x6c]
shl edx, 2
add ebx, 2
mov word [edi], ax
xor eax, 1
cmp edx, 0xbfffffff
mov dword [ebp - 0x7c], eax
jg 0x526bb1
and dword [ebp - 0x7c], 1
lea esi, [ebx + 2]
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x70]
movzx eax, word [ecx + 0x7e]
mov dword [ebx + 0x1d60], esi
mov esi, dword [ebp - 0x128]
xor dword [ebp - 0x7c], eax
mov dword [ebx + esi*4 + 0x1714], edx
mov edi, dword [ebp - 0x7c]
mov word [ecx + 0x7e], di
jmp 0x526d0e
or dword [ebp - 0x18], 8
xor edx, edx
mov edi, dword [ebp - 0xf0]
mov dword [esi + 0x1194], edx
mov eax, dword [ebp - 0xf4]
mov edx, dword [esi + edi*4 + 0x1d7c]
mov ebx, dword [eax - 0xc]
mov eax, esi
mov dword [esp], ebx
call fcn.00524c70
mov ebx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov dword [ebx - 0xc], eax
mov edx, dword [ecx + edi*4 + 0x1d80]
mov dword [esi + 0x1198], eax
mov eax, dword [ebx - 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call fcn.00524c70
mov dword [ebx], eax
mov edx, dword [ebp - 0x10]
mov dword [ebx - 8], eax
mov dword [esi + 0x119c], eax
mov ebx, dword [edx + edi*2 + 0x1dc4]
test ebx, ebx
je 0x52555e
shl dword [esi + 0x1198], 1
add eax, eax
mov dword [esi + 0x119c], eax
jmp 0x52555e
mov ecx, dword [ebp - 0x10]
add ecx, 0x1640
mov dword [ebp - 0x74], ecx
jmp 0x526b89
mov ebx, dword [ebp - 0x10]
mov eax, 0x6946d4
xor edx, edx
mov esi, dword [ebx + 0x1470]
mov dword [esp + 0x10], esi
mov edi, dword [ebx + 0x146c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov eax, dword [ebx]
jmp 0x525cb3
mov ecx, dword [ebp - 0x10]
mov ebx, str.00_motion_type_at__d__d_n
mov esi, dword [ecx + 0x1470]
mov dword [esp + 0x10], esi
mov edx, dword [ecx + 0x146c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
jmp 0x525dec
mov ecx, dword [ebp - 0x58]
sar eax, 1
lea eax, [eax + ecx - 1]
jmp 0x526aa3
mov ecx, dword [ebp - 0x58]
sar eax, 1
lea eax, [eax + ecx + 1]
jmp 0x526ae4
mov ebx, dword [ebp - 0x10]
mov eax, str.invalid_mb_type_in_B_Frame_at__d__d_n
xor edi, edi
mov edx, dword [ebx + 0x1470]
mov dword [esp + 0x10], edx
mov esi, dword [ebx + 0x146c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], esi
mov eax, dword [ebx]
jmp 0x525cb3
mov ebx, dword [edi + 0x1470]
mov esi, str.invalid_mb_type_in_P_Frame_at__d__d_n
mov dword [esp + 0x10], ebx
mov edx, dword [edi + 0x146c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
jmp 0x525cab