Function at 0x647240
Capabilities:
Encode data using base64

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x759e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x8bb040]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp + 0xc], eax
mov edi, dword [eax + 0x68]
mov esi, dword [edi + 0xc]
lea eax, [esi + 2]
mov dword [ebp + 0x28], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, esi
fild dword [ebp - 0x14]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
fstp qword [ebp + 4]
fld qword [ebp + 4]
fld qword [0x892cc0]
fmul st(1)
call fcn.00733ff0
mov dword [ebp + 0x3c], eax
xor ecx, ecx
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp esi, 0x18
mov dword [ebp + 0x10], eax
setge cl
lea ecx, [ecx*8 + 0xe]
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
fstp qword [ebp + 4]
fld qword [ebp + 4]
fxch st(1)
fmul qword [0x892c50]
faddp st(1)
call fcn.00733ff0
sub esp, 8
mov dword [ebp - 0x18], eax
mov edx, esp
mov ecx, edi
mov dword [edx], str.Volume
mov dword [edx + 4], 7
call fcn.006179e0
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
sub esp, 8
mov byte [ebp - 4], 1
mov eax, esp
mov ecx, dword [edi + 0x158]
mov dword [eax], str._Audio
mov dword [eax + 4], 7
call fcn.0063d970
push 0x17c
mov dword [ebp - 0x1c], eax
call fcn.0073298e
mov dword [ebp], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x68]
mov esi, dword [edi + 0x158]
push 0x41447365
push ebx
push dword [ebp + 0x3c]
mov dword [ecx], str.Enable_sound
push edx
mov dword [ecx + 4], 0xc
mov ecx, eax
push esi
call fcn.0064eed0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
mov dword [edi + 0x460], eax
mov dword [eax + 0xb8], 0xf6
mov dword [eax + 0xbc], 0
mov dword [eax + 0xc0], 0
mov eax, dword [edi + 0x460]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
call fcn.004c97a0
mov eax, dword [ebp + 0x3c]
add eax, dword [ebp - 0x18]
add ebx, dword [ebp + 0x10]
add ebx, dword [ebp + 0x28]
push 0x1b4
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.0073298e
mov esi, eax
add esp, 4
mov dword [ebp + 0x40], esi
push 0
sub esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x68]
mov eax, esp
mov edx, dword [edi + 0x158]
mov dword [eax], 0x80a730
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x14]
shl eax, 2
push eax
push 0
push dword [ebp + 0x18]
mov dword [ebp], eax
sub esp, 8
mov eax, esp
push ebx
push dword [ebp + 0x14]
mov dword [eax], 0x80b76c
push ecx
push edx
mov ecx, esi
mov dword [eax + 4], 6
call fcn.0064f630
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x464], ecx
mov eax, dword [ecx]
mov dword [ecx + 0x164], 1
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x464]
mov eax, dword [ecx]
mov dword [ecx + 0x168], 0x64
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x464]
mov eax, dword [ecx]
mov dword [ecx + 0x1b0], 4
call dword [eax + 0x2c]
mov eax, dword [edi + 0x464]
mov dword [eax + 0xb8], 0xf4
mov dword [eax + 0xbc], 0xf5
mov dword [eax + 0xc0], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x464]
mov dword [ebp + 0x38], ecx
cmp eax, dword [ebp + 0x24]
je 0x6474cc
mov dword [eax], ecx
add eax, 4
mov dword [ebp + 0x20], eax
jmp 0x6474d9
lea ecx, [ebp + 0x38]
push ecx
push eax
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov eax, dword [ebp + 0x28]
add eax, dword [ebp + 0x10]
add ebx, eax
push 0x1c8
mov dword [ebp + 0x38], ebx
call fcn.0073298e
mov ebx, eax
mov dword [ebp + 0x40], ebx
mov byte [ebp - 4], 4
mov eax, 0x21
mov ecx, dword [edi + 0x34]
mov edi, dword [edi + 0x68]
mov esi, dword [ecx + 0xc]
mov ecx, 0x15
add esi, 8
cmp dword [edi + 0xc], 0x18
cmovl eax, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x158]
sub edx, eax
sub edx, dword [ebp + 0x14]
sub edx, dword [ebp + 0x18]
sub edx, dword [ebp + 0x3c]
push ecx
mov eax, esp
sub edx, 2
push 0x41446463
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x28]
mov esi, dword [ebp + 0x38]
push edx
push esi
push dword [ebp + 0x14]
mov dword [eax], str.Device
push edi
push ecx
mov ecx, ebx
mov dword [eax + 4], 6
call fcn.00638d30
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x20]
mov dword [ebp + 0x3c], eax
mov dword [ecx + 0x468], eax
cmp ebx, dword [ebp + 0x24]
je 0x64757d
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x64758d
lea eax, [ebp + 0x3c]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
lea ecx, [ebp + 0x44]
add eax, dword [ebp + 0x10]
add esi, eax
push 2
mov dword [ebp + 0x38], esi
call fcn.00481840
mov byte [ebp - 4], 5
lea edx, [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x3c], 0x1f
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
call fcn.00481700
mov ecx, dword [ebp + 0x3c]
mov esi, str.Low_quality__medium_lag
mov dword [ebp + 0x70], ecx
mov edi, eax
mov ecx, 5
mov dword [ebp + 0x5c], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x6c], 0x17
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x17], 0
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp + 0x5c]
push eax
push 0
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 3
lea ecx, [ebp + 0x44]
call fcn.00481840
mov byte [ebp - 4], 8
lea edx, [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x3c], 0x1f
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
call fcn.00481700
mov ecx, dword [ebp + 0x3c]
mov edx, eax
mov dword [ebp + 0x70], ecx
mov ecx, dword [str.High_quality__medium_lag]
mov dword [ebp + 0x5c], edx
mov dword [edx], ecx
mov ecx, dword [0x888e7c]
mov dword [edx + 4], ecx
mov eax, dword [0x888e80]
mov dword [edx + 8], eax
mov eax, dword [0x888e84]
mov dword [edx + 0xc], eax
mov eax, dword [0x888e88]
mov dword [edx + 0x10], eax
mov eax, dword [0x888e8c]
mov dword [edx + 0x14], eax
mov dword [ebp + 0x6c], 0x18
mov byte [edx + 0x18], 0
mov byte [ebp - 4], 9
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x34]
cmp esi, edi
je 0x6476b2
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x6476c9
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x34]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 4
lea ecx, [ebp + 0x44]
call fcn.00481840
mov byte [ebp - 4], 0xb
lea edx, [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x3c], 0x1f
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
call fcn.00481700
mov ecx, dword [ebp + 0x3c]
mov edx, eax
mov dword [ebp + 0x70], ecx
mov ecx, dword [str.High_quality__low_lag]
mov dword [ebp + 0x5c], edx
mov dword [edx], ecx
mov ecx, dword [0x888e98]
mov dword [edx + 4], ecx
mov eax, dword [0x888e9c]
mov dword [edx + 8], eax
mov eax, dword [0x888ea0]
mov dword [edx + 0xc], eax
mov eax, dword [0x888ea4]
mov dword [edx + 0x10], eax
mov al, byte [0x888ea8]
mov byte [edx + 0x14], al
mov dword [ebp + 0x6c], 0x15
mov byte [edx + 0x15], 0
mov byte [ebp - 4], 0xc
cmp esi, edi
je 0x64777a
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x64778b
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 5
lea ecx, [ebp + 0x44]
call fcn.00481840
mov byte [ebp - 4], 0xe
lea edx, [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x3c], 0x1f
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
call fcn.00481700
mov ecx, dword [ebp + 0x3c]
mov esi, str.Ultra_quality__minimal_lag
mov dword [ebp + 0x70], ecx
mov edi, eax
mov ecx, 6
mov dword [ebp + 0x5c], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x6c], 0x1a
movsw word es:[edi], word [esi]
mov byte [eax + 0x1a], 0
mov byte [ebp - 4], 0xf
mov esi, dword [ebp + 0x30]
cmp esi, dword [ebp + 0x34]
je 0x64781d
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647831
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 1
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 6
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [0x80a6f4]
mov dword [ebp + 0x5c], eax
mov ax, word [0x80a6f8]
mov dword [ebp + 0x70], 0xf
mov word [ebp + 0x60], ax
mov byte [ebp + 0x62], 0
mov byte [ebp - 4], 0x12
cmp esi, dword [ebp + 0x34]
je 0x6478ad
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x6478be
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x1c8
call fcn.0073298e
mov edi, eax
mov dword [ebp + 0x40], edi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 0x14
mov ecx, dword [esi + 0x68]
push ecx
mov edx, esp
mov dword [edx], str.Ultra_quality__minimal_lag
mov dword [edx + 4], 0x1a
call fcn.006179e0
mov edx, dword [esi + 0x68]
sub esp, 8
mov esi, dword [esi + 0x158]
mov ecx, esp
push 0x41446d63
push dword [ebp + 0x18]
mov dword [ecx], str.Mode
mov dword [ecx + 4], 4
lea ecx, [ebp + 0x2c]
push ecx
push dword [ebp + 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.00638d30
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 0x3c], eax
mov dword [edi + 0x470], eax
cmp ebx, dword [ebp + 0x24]
je 0x647959
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x647969
lea eax, [ebp + 0x3c]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
sub esp, 8
add eax, dword [ebp + 0x10]
add dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x18]
add dword [ebp + 0x14], eax
mov eax, esp
mov ecx, dword [edi + 0x68]
mov dword [eax], str.Resampling_quality
mov dword [eax + 4], 0x13
call fcn.006179e0
mov ecx, dword [edi + 0x68]
mov esi, 0x21
mov dword [ebp + 0x18], eax
mov eax, 0x15
cmp dword [ecx + 0xc], 0x18
mov ecx, dword [edi + 0x470]
cmovl esi, eax
mov edx, dword [ecx]
call dword [edx + 0x64]
sub eax, esi
mov esi, dword [ebp + 0x30]
sub eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x18]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x6479ef
mov ebx, eax
jmp 0x6479d0
lea ecx, [ebx + 0x18]
call fcn.00481520
mov ecx, ebx
call fcn.00481520
add ebx, 0x30
cmp ebx, esi
jne 0x6479d0
mov esi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x20]
mov dword [ebp + 0x30], esi
push 0x80
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xb
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.128_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888fb4]
mov dword [ebp + 0x60], eax
mov ax, word [0x888fb8]
mov word [ebp + 0x64], ax
mov al, byte [0x888fba]
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x66], al
mov byte [ebp + 0x67], 0
mov byte [ebp - 4], 0x16
cmp esi, dword [ebp + 0x34]
je 0x647a67
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x17
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647a7b
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x100
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xb
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.256_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888f88]
mov dword [ebp + 0x60], eax
mov ax, word [0x888f8c]
mov word [ebp + 0x64], ax
mov al, byte [0x888f8e]
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x66], al
mov byte [ebp + 0x67], 0
mov byte [ebp - 4], 0x19
cmp esi, dword [ebp + 0x34]
je 0x647b07
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x1a
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647b1b
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x200
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xb
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.512_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888f94]
mov dword [ebp + 0x60], eax
mov ax, word [0x888f98]
mov word [ebp + 0x64], ax
mov al, byte [0x888f9a]
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x66], al
mov byte [ebp + 0x67], 0
mov byte [ebp - 4], 0x1c
cmp esi, dword [ebp + 0x34]
je 0x647ba7
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x1d
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647bbb
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x400
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xa
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.1k_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888fdc]
mov dword [ebp + 0x60], eax
mov ax, word [0x888fe0]
mov dword [ebp + 0x70], 0xf
mov word [ebp + 0x64], ax
mov byte [ebp + 0x66], 0
mov byte [ebp - 4], 0x1f
cmp esi, dword [ebp + 0x34]
je 0x647c3f
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x20
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647c53
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x800
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xa
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.2k_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888fe8]
mov dword [ebp + 0x60], eax
mov ax, word [0x888fec]
mov dword [ebp + 0x70], 0xf
mov word [ebp + 0x64], ax
mov byte [ebp + 0x66], 0
mov byte [ebp - 4], 0x22
cmp esi, dword [ebp + 0x34]
je 0x647cd7
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x23
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647ceb
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x1000
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 0xa
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.4K_samples]
mov dword [ebp + 0x5c], eax
mov eax, dword [0x888fc0]
mov dword [ebp + 0x60], eax
mov ax, word [0x888fc4]
mov dword [ebp + 0x70], 0xf
mov word [ebp + 0x64], ax
mov byte [ebp + 0x66], 0
mov byte [ebp - 4], 0x25
cmp esi, dword [ebp + 0x34]
je 0x647d6f
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x40], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x26
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647d80
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x1c8
call fcn.0073298e
mov dword [ebp + 0x40], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x27
mov edx, dword [edi + 0x68]
mov esi, dword [edi + 0x158]
push 0
push dword [ebp + 0x18]
mov dword [ecx], str.Fragment_size
mov dword [ecx + 4], 0xd
lea ecx, [ebp + 0x2c]
push ecx
push dword [ebp + 0x28]
mov ecx, eax
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.00638d30
mov byte [ebp - 4], 1
mov dword [edi + 0x474], eax
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x647df8
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x647e08
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
add eax, dword [ebp + 0x10]
add dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x30]
cmp eax, esi
je 0x647e3f
mov ebx, eax
lea ecx, [ecx]
lea ecx, [ebx + 0x18]
call fcn.00481520
mov ecx, ebx
call fcn.00481520
add ebx, 0x30
cmp ebx, esi
jne 0x647e20
mov esi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x20]
mov dword [ebp + 0x30], esi
push 0xac44
lea ecx, [ebp + 0x44]
call fcn.00481840
mov eax, dword [str.44100_Hz]
mov ecx, dword [0x888f48]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 8
mov dword [ebp + 0x70], 0xf
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], ecx
mov byte [ebp + 0x64], 0
mov byte [ebp - 4], 0x29
cmp esi, dword [ebp + 0x34]
je 0x647eac
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x2a
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647ec0
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0xbb80
lea ecx, [ebp + 0x44]
call fcn.00481840
mov eax, dword [str.48000_Hz]
mov ecx, dword [0x888f54]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 8
mov dword [ebp + 0x70], 0xf
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], ecx
mov byte [ebp + 0x64], 0
mov byte [ebp - 4], 0x2c
cmp esi, dword [ebp + 0x34]
je 0x647f41
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x2d
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647f55
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x17700
lea ecx, [ebp + 0x44]
call fcn.00481840
mov eax, dword [str.96000_Hz]
mov ecx, dword [0x888f30]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x6c], 8
mov dword [ebp + 0x70], 0xf
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], ecx
mov byte [ebp + 0x64], 0
mov byte [ebp - 4], 0x2f
cmp esi, dword [ebp + 0x34]
je 0x647fd6
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x30
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x647fe7
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x1c8
call fcn.0073298e
mov dword [ebp + 8], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x31
mov edx, dword [edi + 0x68]
mov esi, dword [edi + 0x158]
push 0
push dword [ebp + 0x18]
mov dword [ecx], str.Sample_rate
mov dword [ecx + 4], 0xb
lea ecx, [ebp + 0x2c]
push ecx
push dword [ebp + 0x28]
mov ecx, eax
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.00638d30
mov byte [ebp - 4], 1
mov dword [edi + 0x478], eax
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x64805f
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x64806f
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
add eax, dword [ebp + 0x10]
add dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x30]
cmp eax, esi
je 0x6480a3
mov ebx, eax
lea ecx, [ebx + 0x18]
call fcn.00481520
mov ecx, ebx
call fcn.00481520
add ebx, 0x30
cmp ebx, esi
jne 0x648084
mov esi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x20]
mov dword [ebp + 0x30], esi
push 1
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 3
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov ax, word [0x888f78]
mov word [ebp + 0x5c], ax
mov al, byte [0x888f7a]
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x5e], al
mov byte [ebp + 0x5f], 0
mov byte [ebp - 4], 0x33
cmp esi, dword [ebp + 0x34]
je 0x64810e
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x34
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x648122
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 2
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 4
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.High]
mov dword [ebp + 0x70], 0xf
mov dword [ebp + 0x5c], eax
mov byte [ebp + 0x60], 0
mov byte [ebp - 4], 0x36
cmp esi, dword [ebp + 0x34]
je 0x648194
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x37
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x6481a8
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 3
lea ecx, [ebp + 0x44]
call fcn.00481840
xor eax, eax
mov dword [ebp + 0x6c], 5
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov eax, dword [str.Ultra]
mov dword [ebp + 0x5c], eax
mov al, byte [0x888f60]
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x60], al
mov byte [ebp + 0x61], 0
mov byte [ebp - 4], 0x39
cmp esi, dword [ebp + 0x34]
je 0x648222
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], esi
push eax
mov ecx, esi
call fcn.00485000
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x3a
lea ecx, [esi + 0x18]
push eax
call fcn.00485000
add esi, 0x30
mov dword [ebp + 0x30], esi
jmp 0x648233
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x5c]
push eax
push esi
lea ecx, [ebp + 0x2c]
call fcn.0048b400
lea ecx, [ebp + 0x5c]
call fcn.00481520
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.00481520
push 0x1c8
call fcn.0073298e
mov dword [ebp + 8], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x3b
mov edx, dword [edi + 0x68]
mov esi, dword [edi + 0x158]
push 0
push dword [ebp + 0x18]
mov dword [ecx], str.Resampling_quality
mov dword [ecx + 4], 0x13
lea ecx, [ebp + 0x2c]
push ecx
push dword [ebp + 0x28]
mov ecx, eax
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.00638d30
mov byte [ebp - 4], 1
mov dword [edi + 0x47c], eax
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x6482ab
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x6482bb
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
mov ecx, 0x15
add eax, dword [ebp + 0x10]
add dword [ebp + 0x38], eax
mov eax, dword [edi + 0x68]
push 0x1b4
cmp dword [eax + 0xc], 0x18
mov eax, 0x21
cmovl eax, ecx
add eax, dword [ebp + 0x3c]
mov dword [ebp + 0x18], eax
call fcn.0073298e
mov edi, eax
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x3c
sub esp, 8
mov edx, dword [eax + 0x68]
mov esi, dword [eax + 0x158]
mov eax, esp
mov dword [ecx], 0x775914
mov dword [ecx + 4], 0
push 0
mov dword [eax], str.Headroom
mov dword [eax + 4], 0x13
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, edi
lea eax, [eax + eax*4]
add eax, eax
push eax
push 0x41446863
push 0
push dword [ebp + 0x28]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.0064f400
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x480], ecx
mov eax, dword [ecx]
mov dword [ecx + 0x164], 0
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x480]
mov eax, dword [ecx]
mov dword [ecx + 0x168], 0xa
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x480]
mov eax, dword [ecx]
mov dword [ecx + 0x1b0], 5
call dword [eax + 0x2c]
mov eax, dword [esi + 0x480]
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x6483ab
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x6483bb
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x10]
add eax, ecx
add dword [ebp + 0x38], eax
push 0x1b4
call fcn.0073298e
mov edi, eax
mov dword [ebp + 8], edi
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x3d
sub esp, 8
mov edx, dword [esi + 0x68]
mov esi, dword [esi + 0x158]
mov eax, esp
mov dword [ecx], 0x775914
push 0
push ecx
push dword [ebp + 0x3c]
mov dword [ecx + 4], 0
mov ecx, edi
push 0x41446263
push 0
push dword [ebp + 0x28]
mov dword [eax], str.Buffer_size
push dword [ebp + 0x18]
mov dword [eax + 4], 0x13
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push edx
push esi
call fcn.0064f400
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x484], ecx
mov eax, dword [ecx]
mov dword [ecx + 0x164], 0
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x484]
mov eax, dword [ecx]
mov dword [ecx + 0x168], 0xa
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x484]
mov eax, dword [ecx]
mov dword [ecx + 0x1b0], 5
call dword [eax + 0x2c]
mov eax, dword [edi + 0x484]
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x648486
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x648496
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x10]
add eax, ecx
add dword [ebp + 0x38], eax
push 0x17c
call fcn.0073298e
mov dword [ebp + 8], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x3e
mov edx, dword [edi + 0x68]
mov esi, dword [edi + 0x158]
push 0
push dword [ebp + 0x38]
mov dword [ecx], str.Stereo_for_all_ROMs
push dword [ebp - 0x10]
mov dword [ecx + 4], 0x13
mov ecx, eax
push edx
push esi
call fcn.0064eed0
mov byte [ebp - 4], 1
mov dword [edi + 0x46c], eax
mov dword [ebp + 0x40], eax
cmp ebx, dword [ebp + 0x24]
je 0x6484f8
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x648508
lea eax, [ebp + 0x40]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x10]
add eax, ecx
add dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp]
add dword [ebp + 0x18], eax
push 0x1b4
call fcn.0073298e
mov edi, eax
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x3f
sub esp, 8
mov edx, dword [eax + 0x68]
mov esi, dword [eax + 0x158]
mov eax, esp
mov dword [ecx], 0x775914
push 0
mov dword [ecx + 4], 0
push ecx
mov dword [eax], str.Pitfall_II_music_pitch
mov ecx, edi
mov dword [eax + 4], 0x17
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
push eax
push 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x18]
push dword [ebp + 0x38]
push dword [ebp - 0x10]
push edx
push esi
call fcn.0064f400
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x488], ecx
mov eax, dword [ecx]
mov dword [ecx + 0x164], 0x2710
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x488]
mov eax, dword [ecx]
mov dword [ecx + 0x168], 0x7530
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x488]
mov eax, dword [ecx]
mov dword [ecx + 0x160], 0x64
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x488]
mov eax, dword [ecx]
mov dword [ecx + 0x1b0], 2
call dword [eax + 0x2c]
mov eax, dword [esi + 0x488]
mov dword [ebp], eax
cmp ebx, dword [ebp + 0x24]
je 0x6485f5
mov dword [ebx], eax
add ebx, 4
mov dword [ebp + 0x20], ebx
jmp 0x648602
lea eax, [ebp]
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004c97a0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push edi
push dword [esi + 0x158]
mov ecx, esi
push eax
call fcn.006101d0
mov ecx, dword [esi + 0x158]
push edi
call fcn.0063dd10
mov esi, eax
push 0xf
push str.VideoAudioAudio
lea ecx, [esi + 0xc4]
call fcn.004833e0
mov ecx, dword [esi + 0x3c]
mov byte [esi + 0xf4], 0
call fcn.0060f760
mov edi, dword [ebp + 0x2c]
test edi, edi
je 0x6486ac
mov ebx, dword [ebp + 0x30]
mov esi, edi
cmp esi, ebx
je 0x64866c
lea ecx, [esi + 0x18]
call fcn.00481520
mov ecx, esi
call fcn.00481520
add esi, 0x30
cmp esi, ebx
jne 0x648656
mov ecx, dword [ebp + 0x34]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 4
cmp ecx, 0x1000
jb 0x6486a2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6486d5
push ecx
push edi
call fcn.00732c0f
add esp, 8
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x6486e5
mov ecx, dword [ebp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x6486db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x6486db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00732c0f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0073297b
lea esp, [ebp + 0x78]
pop ebp
ret