Function at 0x4075f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6a4108]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
push ebx
mov eax, dword [edx + 0x3dcc]
push esi
mov esi, dword [edx + 0x3d0c]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0xf40]
push edi
mov edi, dword [edx + 0x3d30]
add edi, esi
mov dword [ebp - 0x34], eax
mov dword [edx + 0xc7c], 0
mov dword [eax + 0x64], 0
mov eax, edi
sub eax, esi
lea ebx, [edx + 0x3cd0]
lea ecx, [edx + 0xf50]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
cmp eax, 3
jge 0x4076a3
cmp dword [edx + 0x3dc4], 0
jne 0x407679
push str.Truncated_packet
push 7
push ecx
call fcn.00401060
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ecx + 0x9d8], 1
mov dword [ecx + 0x2038], 0
mov dword [ecx + 0x9dc], 1
mov dword [ebp - 0x30], 0
jmp 0x407839
mov ecx, dword [edx + 0x3dd4]
test ecx, ecx
je 0x4076d1
mov esi, 0xa
cmp eax, esi
cmova eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push dword [edx + 0x3dd8]
call ecx
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea esi, [ebp - 0x10]
movzx eax, byte [esi]
and eax, 1
mov dword [edx + 0x1928], eax
movzx eax, byte [esi]
shr eax, 1
and eax, 7
mov dword [edx + 0x2f88], eax
movzx eax, byte [esi]
shr eax, 4
and eax, 1
mov dword [edx + 0x192c], eax
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
sar ecx, 5
shr eax, 5
or ecx, eax
cmp dword [edx + 0x3dc4], 0
mov dword [ebp - 0x30], ecx
jne 0x407746
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
add eax, ecx
cmp eax, edi
ja 0x407731
cmp eax, ecx
jae 0x407746
push str.Truncated_packet_or_corrupt_partition_0_length
push 7
push dword [ebp - 0x24]
call fcn.00401060
mov edx, dword [ebp - 0x18]
add esp, 0xc
add dword [ebp - 0x1c], 3
lea ecx, [edx + 0xf50]
call fcn.00405790
cmp dword [ecx + 0x9d8], 0
jne 0x40780d
cmp dword [edx + 0x3dc4], 0
je 0x407775
mov eax, dword [ebp - 0x1c]
add eax, 3
cmp eax, edi
jae 0x40779d
cmp byte [esi + 3], 0x9d
jne 0x407787
cmp byte [esi + 4], 1
jne 0x407787
cmp byte [esi + 5], 0x2a
je 0x40779d
push str.Invalid_frame_sync_code
push 5
push ecx
call fcn.00401060
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add esp, 0xc
cmp dword [edx + 0x3dc4], 0
je 0x4077b0
mov eax, dword [ebp - 0x1c]
add eax, 6
cmp eax, edi
jae 0x407802
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
and ecx, 0x3fff
mov dword [edx + 0x15f0], ecx
movzx eax, byte [esi + 7]
shr eax, 6
mov dword [edx + 0x15f8], eax
movzx eax, byte [esi + 9]
movzx ecx, byte [esi + 8]
shl eax, 8
or ecx, eax
and ecx, 0x3fff
mov dword [edx + 0x15f4], ecx
movzx eax, byte [esi + 9]
lea ecx, [edx + 0xf50]
shr eax, 6
mov dword [ecx + 0x6ac], eax
mov esi, dword [ebp - 0x1c]
add esi, 7
mov dword [ebp - 0x1c], esi
jmp 0x407839
mov esi, dword [ebp - 0x34]
lea edi, [edx + 0xb20]
mov ecx, 0x1b
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x34]
lea edi, [edx + 0xb8c]
mov ecx, 0x1b
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
lea ecx, [edx + 0xf50]
cmp dword [edx + 0x3dc8], 0
jne 0x40785f
cmp dword [ecx + 0x9d8], 0
je 0x40785f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7124
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.004073d0
mov eax, dword [ebp - 0x18]
sub edi, esi
mov edx, dword [eax + 0x3dd8]
mov ecx, dword [eax + 0x3dd4]
lea eax, [edi + esi]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0xfffffff8
mov dword [ebx + 0x10], 0xff
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], edx
je 0x4078b5
test esi, esi
jne 0x4078b5
mov esi, dword [ebp - 0x24]
push str.Failed_to_allocate_bool_decoder_0
push 2
push esi
call fcn.00401060
add esp, 0xc
jmp 0x4078bf
mov ecx, ebx
call fcn.004174e0
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0x9d8], 0
jne 0x4078e6
mov edx, 0x80
mov ecx, ebx
call fcn.00406040
mov edx, 0x80
mov ecx, ebx
call fcn.00406040
mov dword [esi + 0x6b0], eax
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x407901
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x40791b
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov byte [esi + 0xc34], al
test al, al
je 0x407b41
mov edx, 0x80
mov ecx, ebx
call fcn.00406040
mov edx, 0x80
mov ecx, ebx
mov byte [esi + 0xc35], al
call fcn.00406040
mov byte [esi + 0xc36], al
test al, al
je 0x407aa4
mov edx, 0x80
mov ecx, ebx
call fcn.00406040
mov byte [esi + 0xc37], al
lea eax, [esi + 0xc3b]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movq qword [eax], xmm0
mov dword [ebp - 0x2c], 0x65cb48
xor edi, edi
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
jge 0x4079b6
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x4079db
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407a76
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
mov edx, dword [eax]
call fcn.004060b0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov byte [ecx + edi], al
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
jge 0x407a28
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407a4d
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407a7d
mov al, byte [ecx + edi]
neg al
mov byte [ecx + edi], al
jmp 0x407a7d
mov ecx, dword [ebp - 0x28]
mov byte [ecx + edi], 0
inc edi
cmp edi, 4
jl 0x407997
mov eax, dword [ebp - 0x2c]
add eax, 4
add ecx, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
cmp eax, 0x65cb50
jl 0x407995
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0xc35], 0
je 0x407b4a
or eax, 0xffffffff
mov word [esi + 0xc38], ax
mov byte [esi + 0xc3a], al
xor edi, edi
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
jge 0x407ae2
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407b07
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407b39
mov edx, 8
mov ecx, ebx
call fcn.004060b0
mov ecx, dword [ebp - 0x18]
mov byte [ecx + edi + 0xc38], al
inc edi
cmp edi, 3
jl 0x407ac3
jmp 0x407b4a
mov word [esi + 0xc35], 0
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor edi, edi
inc esi
cmp dword [ebx + 0xc], edi
jge 0x407b63
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407b86
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov edi, 1
movzx ecx, byte [esi + 0x65cb50]
shl esi, cl
shl edx, cl
sub eax, ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x24]
mov dword [ebx + 8], edx
mov edx, 6
mov ecx, ebx
mov dword [esi + 0xa28], edi
call fcn.004060b0
mov edx, 3
mov ecx, ebx
mov dword [esi + 0x1740], eax
call fcn.004060b0
mov dword [esi + 0x1748], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0xc44], 0
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x407bee
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x407c08
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov byte [esi + 0xc43], al
test al, al
je 0x407e8c
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x407c48
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x407c62
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov byte [esi + 0xc44], al
test al, al
je 0x407e8c
xor edi, edi
lea esp, [esp]
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
jge 0x407caf
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407cd4
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407d7d
mov edx, 6
mov ecx, ebx
call fcn.004060b0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov byte [ecx + edi + 0xc49], al
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
jge 0x407d29
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407d4e
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407d7d
mov edx, dword [ebp - 0x18]
mov al, byte [edx + edi + 0xc49]
neg al
mov byte [edx + edi + 0xc49], al
inc edi
cmp edi, 4
jl 0x407c90
xor edi, edi
lea esp, [esp]
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
jge 0x407daf
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407dd4
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x407e7f
mov edx, 6
mov ecx, ebx
call fcn.004060b0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov byte [ecx + edi + 0xc51], al
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
jge 0x407e29
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x407e4e
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl esi, cl
shl edx, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
je 0x407e82
mov al, byte [esi + edi + 0xc51]
neg al
mov byte [esi + edi + 0xc51], al
jmp 0x407e82
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, 4
jl 0x407d90
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ecx, esi
lea edx, [edx + eax]
call fcn.004071f0
lea eax, [esi + 0x3bf0]
mov edx, 7
mov ecx, ebx
mov dword [esi + 0xc78], eax
call fcn.004060b0
mov edx, dword [esi + 0x1958]
lea edi, [esi + 0xf50]
mov ecx, ebx
mov dword [edi + 0xa04], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0
call fcn.004066b0
mov edx, dword [edi + 0xa0c]
mov dword [edi + 0xa08], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004066b0
mov edx, dword [edi + 0xa10]
mov dword [edi + 0xa0c], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004066b0
mov edx, dword [edi + 0xa14]
mov dword [edi + 0xa10], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004066b0
mov edx, dword [edi + 0xa18]
mov dword [edi + 0xa14], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004066b0
add esp, 0x14
cmp dword [ebp - 0x1c], 0
mov dword [edi + 0xa18], eax
je 0x407f4a
mov ecx, esi
call fcn.00406140
mov edx, esi
mov ecx, esi
call fcn.00406270
cmp dword [edi + 0x9d8], 0
je 0x4080f2
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x407f7b
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x407f95
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x10], esi
mov dword [ebx + 8], edx
mov dword [ecx + 0x1750], eax
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x407fcd
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x407fe7
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 0x24]
mov dword [ebx + 8], edx
cmp dword [esi + 0x1750], 0
mov dword [esi + 0x1754], eax
mov dword [esi + 0x1758], 0
jne 0x408029
mov edx, 2
mov ecx, ebx
call fcn.004060b0
mov dword [esi + 0x1758], eax
cmp dword [esi + 0x1754], 0
mov dword [esi + 0x175c], 0
jne 0x40804e
mov edx, 2
mov ecx, ebx
call fcn.004060b0
mov dword [esi + 0x175c], eax
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x408069
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x408083
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl esi, cl
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x10], esi
mov dword [ebx + 8], edx
mov dword [ecx + 0x176c], eax
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x4080bb
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x4080d5
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl edx, cl
shl esi, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], esi
mov dword [ecx + 0x1770], eax
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor edi, edi
inc esi
cmp dword [ebx + 0xc], edi
jge 0x40810b
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x40812e
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov edi, 1
movzx ecx, byte [esi + 0x65cb50]
sub eax, ecx
shl edx, cl
shl esi, cl
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], esi
mov dword [eax + 0x1760], edi
test edi, edi
jne 0x408165
lea esi, [eax + 0x1bda]
lea edi, [eax + 0x1781]
mov ecx, 0x116
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp dword [eax + 0x9d8], 0
je 0x4081bb
mov esi, dword [ebx + 0x10]
dec esi
shl esi, 7
shr esi, 8
xor eax, eax
inc esi
cmp dword [ebx + 0xc], eax
jge 0x408189
mov ecx, ebx
call fcn.004174e0
xor eax, eax
mov edx, dword [ebx + 8]
mov ecx, esi
shl ecx, 0x18
cmp edx, ecx
jb 0x4081a3
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
sub edx, ecx
mov eax, 1
movzx ecx, byte [esi + 0x65cb50]
sub dword [ebx + 0xc], ecx
shl edx, cl
shl esi, cl
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], esi
test eax, eax
je 0x4081c0
mov eax, 1
mov ecx, dword [ebp - 0x24]
mov edx, 0x65cc50
mov dword [ecx + 0x174c], eax
mov eax, dword [ebp - 0x18]
add ecx, 0x1bed
mov dword [eax + 0x3dcc], 1
mov dword [ebp - 0x1c], 8
jmp 0x4081f0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
lea ecx, [ecx]
xor edi, edi
movzx esi, byte [edx + edi]
mov eax, dword [ebx + 0x10]
dec eax
imul esi, eax
shr esi, 8
inc esi
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
jge 0x408225
mov ecx, ebx
call fcn.004174e0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 0x18
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x40824a
mov eax, dword [ebx + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x14], 1
movzx ecx, byte [esi + 0x65cb50]
shl edx, cl
shl esi, cl
sub eax, ecx
cmp dword [ebp - 0x14], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
je 0x40827a
mov edx, 8
mov ecx, ebx
call fcn.004060b0
mov ecx, dword [ebp - 0x30]
mov byte [ecx + edi], al
jmp 0x40827d
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
test eax, eax
jle 0x40829d
mov al, byte [ecx + edi]
cmp al, byte [ecx + edi - 0xb]
mov eax, dword [ebp - 0x28]
je 0x40829d
mov dword [esi + 0x3dcc], 0
mov edx, dword [ebp - 0x2c]
inc edi
cmp edi, 0xb
jl 0x408202
inc eax
add ecx, 0xb
add edx, 0xb
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
cmp eax, 3
jl 0x408200
dec dword [ebp - 0x1c]
jne 0x4081f0
cmp edx, 0x65d070
jl 0x4081e1
push 0x320
lea eax, [esi + 0x180]
push 0
push eax
call fcn.005c8040
mov ecx, esi
call fcn.00417410
mov eax, dword [esi + 0x193c]
lea edi, [esi + 0xf50]
lea eax, [eax + eax*8]
push eax
push 0
push dword [edi + 0x1774]
call fcn.005c8040
add esp, 0x18
cmp dword [esi + 0x3d54], 0
mov dword [esi + 0x3dd0], 0
je 0x4083ed
cmp dword [edi + 0x203c], 0
je 0x4083ed
mov edx, esi
mov ecx, esi
call fcn.00404520
mov ecx, dword [ebp - 0x34]
mov edi, dword [ecx + 0x4c]
mov eax, edi
cdq
sub eax, edx
mov ebx, eax
mov eax, ecx
sar ebx, 1
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
sub ecx, esi
add ecx, edi
push ecx
mov ecx, dword [eax + 4]
sub ecx, edx
add ecx, edi
push ecx
push edi
push edi
push edx
push esi
mov esi, eax
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x34]
call fcn.004084a0
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, ebx
sub eax, edx
add eax, dword [esi + 0x14]
push eax
mov eax, ebx
sub eax, ecx
add eax, dword [esi + 0x18]
push eax
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x24]
call fcn.004084a0
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, ebx
sub eax, edx
add eax, dword [esi + 0x14]
push eax
mov eax, ebx
sub eax, ecx
add eax, dword [esi + 0x18]
push eax
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x24]
call fcn.004084a0
mov esi, dword [ebp - 0x18]
add esp, 0x48
mov ecx, dword [esi + 0x3d60]
test ecx, ecx
je 0x4083fc
mov eax, dword [esi + 0x3d98]
add eax, 0xc7c
xor edx, edx
lea ecx, [ecx]
or edx, dword [eax]
lea eax, [eax + 0xf40]
dec ecx
jne 0x4083e0
jmp 0x4083fe
mov ecx, esi
call fcn.004069f0
mov edx, dword [esi + 0xc7c]
jmp 0x408407
xor edx, edx
mov ebx, dword [ebp - 0x38]
lea edi, [esi + 0xf50]
mov eax, dword [ebx + 0xc]
cmp eax, 0x20
jle 0x40841d
cmp eax, 0x40000000
jge 0x40841d
mov eax, 1
jmp 0x40841f
xor eax, eax
mov ecx, dword [ebp - 0x34]
or eax, edx
mov dword [ecx + 0x64], eax
cmp dword [esi + 0x3dc8], 0
jne 0x408459
cmp dword [edi + 0x9d8], 0
jne 0x408449
test eax, eax
jne 0x408449
mov dword [esi + 0x3dc8], 1
jmp 0x408459
push str.A_stream_must_start_with_a_complete_key_frame
push 7
push edi
call fcn.00401060
add esp, 0xc
cmp dword [edi + 0x1760], 0
jne 0x408482
mov eax, dword [ebp - 0x18]
lea esi, [edi + 0x1781]
add edi, 0x1bda
mov ecx, 0x116
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
movsb byte es:[edi], byte [esi]
mov dword [eax + 0x3dcc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005c7124
mov esp, ebp
pop ebp
ret