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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x7c]
mov eax, dword [ebx + 0x50]
sub ecx, esi
mov dword [esp + 0x7c], ecx
push edi
mov edi, dword [esp + 0x70]
inc eax
mov ecx, 0x120
xor esi, esi
mov dword [esp + 0x28], eax
cmp ecx, esi
mov eax, edi
jle 0x10020f8e
mov dword [eax], esi
add eax, 4
mov dword [eax], esi
add eax, 4
dec ecx
jne 0x10020f81
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x48]
mov ecx, 0x120
sub ecx, eax
mov dword [esp + 0x10], edi
sar ecx, 1
cmp eax, edx
mov dword [esp + 0x2c], ecx
jg 0x10020fba
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
jmp 0x10020fdc
cmp eax, ebp
mov dword [esp + 0x4c], edx
jg 0x10020fce
sub eax, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], eax
jmp 0x10020fdc
mov ecx, ebp
sub ecx, edx
sub eax, ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea ebp, [esp + 0x4c]
mov esi, 3
xor edx, edx
mov eax, dword [ebp]
cmp eax, edx
jge 0x1002100a
push eax
push str.mpg123:_Bogus_region_length___d__n
push 0x10039a88
call fcn.10025fb3
add esp, 0xc
mov dword [ebp], 0
xor edx, edx
add ebp, 4
dec esi
jne 0x10020fe7
mov eax, dword [ebx + 0x10]
mov ecx, 2
cmp eax, ecx
jne 0x1002173d
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x20], edx
cmp eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
je 0x10021067
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ecx
lea eax, [eax + eax*2]
mov dword [esp + 0x58], ecx
shl eax, 2
mov ebp, dword [eax + 0x100459cc]
mov eax, dword [eax + 0x10051a98]
jmp 0x10021090
or eax, 0xffffffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
lea eax, [eax + eax*2]
shl eax, 2
mov ebp, dword [eax + 0x100459d0]
mov eax, dword [eax + 0x10051a9c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edx
lea edx, [esp + 0x4c]
lea eax, [ebx + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [ecx]
mov ecx, dword [edx]
test eax, eax
lea edx, [ecx*8 + 0x10034960]
mov dword [esp + 0x30], edx
je 0x1002143e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
jmp 0x100210e0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10021165
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
add ebp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
add ebp, 4
add ebp, 4
lea edi, [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp]
add ebp, 4
cmp eax, 3
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jne 0x1002113f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edx, dword [eax]
shl edx, cl
mov ecx, dword [ebx + 0x64]
add eax, 4
mov dword [esp + 0x74], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x14]
jmp 0x10021165
mov edx, dword [esp + 0x74]
mov eax, dword [ebx + eax*4 + 0x58]
mov dword [esp + 0x20], 3
mov edx, dword [edx]
shl edx, cl
fld dword [eax + edx*4]
mov eax, dword [esp + 0x74]
fstp dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + 4]
movsx eax, word [ebx]
add ebx, 2
mov dword [esp + 0x6c], eax
test eax, eax
jge 0x100211d2
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
mov dl, byte [edi]
lea eax, [ecx + 1]
shl dl, cl
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, edi
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x100211b1
mov eax, dword [esp + 0x6c]
neg eax
lea ebx, [ebx + eax*2]
movsx eax, word [ebx]
mov edi, dword [esp + 0x80]
add ebx, 2
dec edi
mov dword [esp + 0x6c], eax
test eax, eax
mov dword [esp + 0x80], edi
jl 0x1002117a
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
mov eax, ecx
and ecx, 0xf
sar eax, 4
cmp eax, 0xf
mov dword [esp + 0x40], eax
mov dword [esp + 0x6c], ecx
jne 0x10021273
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x58], edx
or edx, 0xffffffff
mov eax, dword [ecx]
mov ecx, dword [esp + 0x80]
sub edx, eax
push eax
add ecx, edx
push esi
mov dword [esp + 0x88], ecx
call fcn.1001e3b0
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
add esp, 8
add eax, 0xf
mov dl, byte [edi]
shl dl, cl
fld dword [esp + 0x14]
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, edi
mov dword [esi + 0x5034], ecx
mov dword [esi + 0x5038], ebx
fmul dword [eax*4 + 0x10049a5c]
test dl, 0x80
je 0x10021269
mov eax, dword [esp + 0x10]
fchs
fstp dword [eax]
mov edi, eax
jmp 0x100212f1
mov ecx, dword [esp + 0x10]
mov edi, ecx
fstp dword [ecx]
jmp 0x100212f1
test eax, eax
je 0x100212eb
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esi + 0x5038]
mov dword [esp + eax*4 + 0x58], edx
mov eax, dword [esi + 0x5034]
mov dl, byte [ebx]
mov ecx, eax
shl dl, cl
inc eax
fld dword [esp + 0x14]
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x100212d5
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x80]
dec eax
fmul dword [edx*4 + 0x10049a5c]
mov dword [esp + 0x80], eax
fchs
fstp dword [edi]
jmp 0x100212f1
mov eax, dword [esp + 0x40]
fmul dword [eax*4 + 0x10049a5c]
dec dword [esp + 0x80]
fstp dword [edi]
jmp 0x100212f1
mov dword [edi], 0
mov ecx, dword [esp + 0x20]
lea eax, [ecx*4]
add edi, eax
mov eax, dword [esp + 0x6c]
cmp eax, 0xf
mov dword [esp + 0x10], edi
jne 0x10021393
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x58], edx
or edx, 0xffffffff
mov eax, dword [ecx]
mov ecx, dword [esp + 0x80]
sub edx, eax
push eax
add ecx, edx
push esi
mov dword [esp + 0x88], ecx
call fcn.1001e3b0
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
add esp, 8
add eax, 0xf
mov dl, byte [edi]
shl dl, cl
fld dword [esp + 0x14]
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, edi
mov dword [esi + 0x5034], ecx
mov dword [esi + 0x5038], ebx
fmul dword [eax*4 + 0x10049a5c]
test dl, 0x80
je 0x10021389
mov eax, dword [esp + 0x10]
fchs
fstp dword [eax]
mov edi, eax
jmp 0x10021411
mov ecx, dword [esp + 0x10]
mov edi, ecx
fstp dword [ecx]
jmp 0x10021411
test eax, eax
je 0x1002140b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esi + 0x5038]
mov dword [esp + eax*4 + 0x58], edx
mov eax, dword [esi + 0x5034]
mov dl, byte [ebx]
mov ecx, eax
shl dl, cl
inc eax
fld dword [esp + 0x14]
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x100213f5
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
dec eax
fmul dword [edx*4 + 0x10049a5c]
mov dword [esp + 0x80], eax
fchs
fstp dword [edi]
jmp 0x10021411
mov eax, dword [esp + 0x6c]
fmul dword [eax*4 + 0x10049a5c]
dec dword [esp + 0x80]
fstp dword [edi]
jmp 0x10021411
mov dword [edi], 0
mov ecx, dword [esp + 0x20]
lea eax, [ecx*4]
mov ecx, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x44]
dec ecx
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
jne 0x100210d8
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], eax
jne 0x100210af
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002166d
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x1002166d
mov edx, dword [ebx + 0x54]
mov ecx, dword [edx*8 + 0x10034a64]
mov ax, word [ecx]
add ecx, 2
test ax, ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], ecx
jge 0x1002151b
mov eax, dword [esp + 0x80]
dec eax
mov dword [esp + 0x80], eax
js 0x1002150a
mov ebx, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov ecx, eax
mov dl, byte [ebx]
shl dl, cl
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x100214ed
movsx edx, word [esp + 0x48]
mov eax, dword [esp + 0x6c]
neg edx
lea ecx, [eax + edx*2]
jmp 0x100214f1
mov ecx, dword [esp + 0x6c]
mov ax, word [ecx]
mov ebx, dword [esp + 0x78]
add ecx, 2
mov dword [esp + 0x48], eax
test ax, ax
mov dword [esp + 0x6c], ecx
jl 0x1002149e
jmp 0x1002151b
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
xor eax, eax
movsx ecx, ax
xor edx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x6c], edx
test dl, 1
jne 0x100215bc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100215b8
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
add ebp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
add ebp, 4
add ebp, 4
lea edi, [eax + ecx*4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp]
add ebp, 4
mov dword [esp + 0x1c], eax
cmp eax, 3
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
jne 0x10021594
shl eax, cl
mov ecx, dword [ebx + 0x64]
mov dword [esp + 0x20], 1
fld dword [ecx + eax*4]
mov eax, dword [esp + 0x74]
fstp dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x74], eax
jmp 0x100215b8
shl eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 3
mov ecx, dword [ebx + ecx*4 + 0x58]
fld dword [ecx + eax*4]
mov eax, dword [esp + 0x74]
fstp dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x74], eax
dec dword [esp + 0x18]
mov eax, 8
mov ecx, edx
sar eax, cl
mov ecx, dword [esp + 0x48]
test ecx, eax
je 0x1002163a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + eax*4 + 0x58], edx
mov eax, dword [esp + 0x80]
dec eax
mov dword [esp + 0x80], eax
js 0x10021657
mov ebx, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov ecx, eax
mov dl, byte [ebx]
shl dl, cl
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x1002162a
fld dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
fchs
fstp dword [edi]
jmp 0x10021640
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
mov dword [edi], edx
mov edx, dword [esp + 0x6c]
jmp 0x10021640
mov dword [edi], 0
mov eax, dword [esp + 0x20]
inc edx
cmp edx, 4
mov dword [esp + 0x6c], edx
lea edi, [edi + eax*4]
jl 0x10021528
jmp 0x1002165e
inc dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x10021472
cmp ebp, dword [esp + 0x3c]
jae 0x100216c8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test ecx, ecx
jne 0x100216aa
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x70]
add ebp, 4
add ebp, 4
lea edi, [eax + edx*4]
mov edx, dword [ebp]
add ebp, 4
cmp edx, 3
mov edx, 1
je 0x100216a7
mov edx, 3
add ebp, 4
lea eax, [edx*4]
mov dword [edi], 0
add edi, eax
dec ecx
mov dword [edi], 0
add edi, eax
cmp ebp, dword [esp + 0x3c]
jb 0x1002167b
mov eax, dword [esp + 0x58]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
lea edx, [ecx + 1]
mov dword [ebx + 0x34], edx
mov edx, dword [esp + 0x60]
lea edi, [edx + 1]
mov dword [ebx + 0x38], edi
mov edi, dword [esp + 0x64]
lea ebp, [edi + 1]
mov dword [ebx + 0x3c], ebp
jg 0x100216f6
mov eax, ecx
cmp eax, edx
jg 0x100216fc
mov eax, edx
inc eax
test eax, eax
je 0x10021720
mov ecx, dword [esp + 0x7c]
lea edx, [ecx*8]
sub edx, ecx
lea eax, [eax + edx*2]
mov eax, dword [eax*4 + 0x100466b4]
mov dword [ebx + 0x40], eax
jmp 0x10021c86
mov eax, dword [esp + 0x7c]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
add ecx, edi
mov eax, dword [ecx*4 + 0x10045f7c]
mov dword [ebx + 0x40], eax
jmp 0x10021c86
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x18], 0x10034fe8
cmp eax, edx
jne 0x10021754
mov dword [esp + 0x18], 0x10035040
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
lea eax, [eax + eax*2]
lea edx, [esp + 0x4c]
add ebx, 0x18
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [eax*4 + 0x100459d4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], 3
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [eax]
test eax, eax
lea ecx, [edx*8 + 0x10034960]
mov dword [esp + 0x6c], ecx
je 0x10021a6b
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1002180e
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
mov edx, dword [eax]
mov ebx, dword [edi]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
add eax, 4
add edi, 4
mov ecx, dword [edx]
add edx, 4
add ebx, ecx
mov ecx, dword [esp + 0x28]
shl ebx, cl
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [eax]
add eax, 4
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x74], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
fld dword [ecx + ebx*4]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax + 4]
movsx ebp, word [ebx]
add ebx, 2
test ebp, ebp
jge 0x1002186b
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
mov dl, byte [edi]
lea eax, [ecx + 1]
shl dl, cl
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, edi
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x10021852
neg ebp
lea ebx, [ebx + ebp*2]
movsx ebp, word [ebx]
mov edx, dword [esp + 0x80]
add ebx, 2
dec edx
test ebp, ebp
mov dword [esp + 0x80], edx
jl 0x1002181f
mov ebx, ebp
and ebp, 0xf
sar ebx, 4
cmp ebx, 0xf
jne 0x100218f1
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
mov edx, dword [esp + 0x80]
sub ecx, eax
push eax
add edx, ecx
push esi
mov dword [esp + 0x88], edx
call fcn.1001e3b0
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
add esp, 8
add eax, ebx
mov dl, byte [edi]
shl dl, cl
fld dword [esp + 0x14]
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, edi
mov dword [esi + 0x5034], ecx
mov dword [esi + 0x5038], ebx
fmul dword [eax*4 + 0x10049a5c]
test dl, 0x80
je 0x100218e0
fchs
mov eax, dword [esp + 0x10]
fstp dword [eax]
add eax, 4
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x10021967
test ebx, ebx
je 0x10021956
mov edx, dword [esp + 0x24]
mov edi, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov dword [esp + 0x1c], edx
mov dl, byte [edi]
mov ecx, eax
shl dl, cl
fld dword [esp + 0x14]
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, edi
mov dword [esi + 0x5034], eax
mov dword [esi + 0x5038], ecx
fmul dword [ebx*4 + 0x10049a5c]
test dl, 0x80
je 0x10021938
fchs
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
fstp dword [edi]
add edi, 4
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x80], eax
jmp 0x10021967
mov edi, dword [esp + 0x10]
mov dword [edi], 0
add edi, 4
mov dword [esp + 0x10], edi
cmp ebp, 0xf
jne 0x100219e5
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov eax, dword [eax]
mov dword [esp + 0x1c], edx
sub ecx, eax
push eax
add ebx, ecx
push esi
mov dword [esp + 0x88], ebx
call fcn.1001e3b0
mov edi, dword [esi + 0x5038]
mov ecx, dword [esi + 0x5034]
add esp, 8
add eax, ebp
mov dl, byte [edi]
shl dl, cl
fld dword [esp + 0x14]
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, edi
mov dword [esi + 0x5034], ecx
mov dword [esi + 0x5038], ebx
fmul dword [eax*4 + 0x10049a5c]
test dl, 0x80
je 0x100219d4
fchs
mov eax, dword [esp + 0x10]
fstp dword [eax]
add eax, 4
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x10021a53
test ebp, ebp
je 0x10021a46
mov edx, dword [esp + 0x24]
mov ebx, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov dword [esp + 0x1c], edx
mov dl, byte [ebx]
mov ecx, eax
shl dl, cl
fld dword [esp + 0x14]
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [esi + 0x5034], eax
mov dword [esi + 0x5038], ecx
fmul dword [ebp*4 + 0x10049a5c]
test dl, 0x80
je 0x10021a2c
fchs
fstp dword [edi]
mov eax, dword [esp + 0x80]
add edi, 4
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x80], eax
jmp 0x10021a53
mov dword [edi], 0
add edi, 4
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
dec ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], eax
jne 0x100217bc
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
jne 0x10021799
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10021c3b
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x10021c3b
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x54]
mov ebx, dword [eax*8 + 0x10034a64]
mov ax, word [ebx]
add ebx, 2
test ax, ax
mov dword [esp + 0x6c], eax
jge 0x10021b37
mov eax, dword [esp + 0x80]
dec eax
mov dword [esp + 0x80], eax
js 0x10021b26
mov ebp, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov ecx, eax
mov dl, byte [ebp]
shl dl, cl
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebp
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x10021b15
movsx edx, word [esp + 0x6c]
neg edx
lea ebx, [ebx + edx*2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
mov dword [esp + 0x6c], eax
jl 0x10021acb
jmp 0x10021b37
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
xor eax, eax
movsx eax, ax
xor ebx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], ebx
test bl, 1
jne 0x10021ba1
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x10021b9c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x74]
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov ebx, dword [edx]
add eax, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add eax, 4
add ebx, ecx
mov ecx, dword [esp + 0x28]
shl ebx, cl
mov ecx, dword [esp + 0x78]
add edx, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x74], edx
mov ecx, dword [ecx + 0x64]
fld dword [ecx + ebx*4]
mov ebx, dword [esp + 0x6c]
fstp dword [esp + 0x14]
dec ebp
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x48]
mov edx, 8
mov ecx, ebx
sar edx, cl
test eax, edx
je 0x10021c0c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x80], eax
js 0x10021c25
mov ebp, dword [esi + 0x5038]
mov eax, dword [esi + 0x5034]
mov ecx, eax
mov dl, byte [ebp]
shl dl, cl
inc eax
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebp
mov dword [esi + 0x5034], eax
test dl, 0x80
mov dword [esi + 0x5038], ecx
je 0x10021c04
fld dword [esp + 0x14]
fchs
fstp dword [edi]
jmp 0x10021c12
mov edx, dword [esp + 0x14]
mov dword [edi], edx
jmp 0x10021c12
mov dword [edi], 0
add edi, 4
inc ebx
cmp ebx, 4
mov dword [esp + 0x6c], ebx
jl 0x10021b44
jmp 0x10021c2c
inc dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x10021a9f
mov eax, dword [esp + 0x70]
sub eax, edi
add eax, 0x900
sar eax, 3
je 0x10021c60
mov dword [edi], 0
add edi, 4
mov dword [edi], 0
add edi, 4
dec eax
jne 0x10021c4b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x7c]
mov dword [edx + 0x3c], ecx
lea edi, [eax + eax*2]
shl edi, 3
sub edi, eax
add edi, ecx
mov ecx, dword [edi*4 + 0x10045f78]
mov dword [edx + 0x40], ecx
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jle 0x10021cb6
lea edi, [eax - 1]
shr edi, 4
mov edx, edi
neg edx
shl edx, 4
add eax, edx
mov dword [esp + 0x80], eax
push 0x10
push esi
call fcn.1001e3b0
add esp, 8
dec edi
jne 0x10021ca8
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x10021cd5
push eax
push esi
call fcn.1001e3b0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
jge 0x10021ccb
mov eax, dword [esp + 0x80]
neg eax
push eax
push str.mpg123:_Cant_rewind_stream_by__d_bits__n
push 0x10039a88
call fcn.10025fb3
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret