Function at 0x47f780
Capabilities:
Encode data using xor
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x40], ebp
mov edi, ecx
mov dword [esp + 0x30], edi
cmp ebp, 0xc
jb 0x480a8d
xor ebx, ebx
xor eax, eax
push ebx
xor ecx, ecx
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x38], ecx
push 0xc
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call fcn.00489d25
add esp, 0xc
push edi
call fcn.0048feb4
add esp, 4
test eax, eax
jne 0x480a8d
lea eax, [ebp - 0xc]
mov dword [esp + 0x44], eax
cmp esi, eax
jae 0x47f9a5
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a465
push edi
call fcn.0048feb4
add esp, 0x14
test eax, eax
jne 0x47f9a5
push edi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0048a465
push edi
call fcn.0048feb4
add esp, 0x14
test eax, eax
jne 0x47f9a5
push edi
call fcn.00489a43
mov edx, dword [esp + 0x28]
add esp, 4
mov ebp, edx
add eax, edx
and ebp, 1
add ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x61727478
ja 0x47f946
je 0x47f932
cmp eax, 0x20746d66
je 0x47f91e
cmp eax, 0x5453494c
jne 0x47f97b
cmp edx, 4
jb 0x47f97b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a465
add esp, 0x10
cmp dword [esp + 0x2c], 0x4f464e49
jne 0x47f918
push edi
xor esi, esi
call fcn.0048feb4
add esp, 4
test eax, eax
jne 0x47f918
nop
mov edx, dword [esp + 0x24]
cmp esi, edx
jae 0x47f97b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a465
push edi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.0048a465
add esp, 0x20
cmp dword [esp + 0x2c], 0x4d414e49
jne 0x47f8fe
push edi
call fcn.00489a43
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x47f902
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 1
add eax, ecx
push edi
add esi, eax
call fcn.0048feb4
add esp, 4
test eax, eax
je 0x47f8b0
mov edx, dword [esp + 0x24]
jmp 0x47f97b
push edi
call fcn.00489a43
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
jmp 0x47f978
push edi
call fcn.00489a43
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x47f978
cmp eax, 0x61746164
je 0x47f968
cmp eax, 0x6c706d73
jne 0x47f97b
push edi
call fcn.00489a43
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x47f978
push edi
call fcn.00489a43
mov edx, dword [esp + 0x28]
mov ebx, edx
mov dword [esp + 0x24], eax
add esp, 4
mov ecx, edx
push 0
and ecx, 1
add ecx, edx
push ebp
push edi
add esi, ecx
call fcn.00489d25
add esp, 0xc
push edi
call fcn.0048feb4
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47f7f2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x480a8d
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x480a8d
mov esi, dword [esp + 0x20]
test esi, esi
je 0x480a8d
test ebx, ebx
je 0x480a8d
push 0
push eax
push edi
call fcn.00489d25
add esp, 0xc
lea eax, [esp + 0x1c]
push edi
push 1
push 2
push eax
call fcn.0048a465
push edi
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0048a465
push edi
push 1
lea eax, [esp + 0x70]
push 4
push eax
call fcn.0048a465
push 1
push 6
push edi
call fcn.00489d25
add esp, 0x3c
lea eax, [esp + 0x18]
push edi
push 1
push 2
push eax
call fcn.0048a465
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x480a8d
cmp ebx, dword [esp + 0x40]
jae 0x480a8d
mov ax, word [esp + 0x1c]
cmp ax, 1
je 0x47fa6c
cmp ax, 3
je 0x47fa6c
push str.Error_loading_sample:_The_sample_is_not_supported_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [esp + 0x14]
test cx, cx
je 0x480a75
cmp cx, 2
ja 0x480a75
cmp ax, 3
mov ax, word [esp + 0x18]
jne 0x47fa9b
cmp ax, 0x20
je 0x47fa9b
cmp ax, 0x40
jne 0x47fab9
cmp ax, 8
je 0x47fad1
cmp ax, 0x10
je 0x47fad1
cmp ax, 0x18
je 0x47fad1
cmp ax, 0x20
je 0x47fad1
cmp ax, 0x40
je 0x47fad1
push str.Error_loading_sample:_Unsupported_bitdepth_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
push edi
call fcn.00489d25
add esp, 0xc
or ebp, 0xffffffff
mov dword [esp + 0x38], ebp
push edi
call fcn.00489a43
add esp, 4
mov dword [esp + 0x34], eax
push 2
push 0
push edi
call fcn.00489d25
add esp, 0xc
push edi
call fcn.00489a43
add esp, 4
mov esi, eax
push 0
cmp esi, 0xc
jge 0x47fb22
push dword [esp + 0x38]
push edi
call fcn.00489d25
add esp, 0xc
jmp 0x47fc72
push 0xc
push edi
call fcn.00489d25
add esp, 0xc
xor eax, eax
mov dword [esp + 0x40], eax
xor ebp, ebp
push edi
call fcn.0048feb4
add esp, 4
test eax, eax
jne 0x47fc60
lea eax, [esi - 0xc]
xor ebx, ebx
mov dword [esp + 0x44], eax
nop
cmp ebp, eax
jge 0x47fbed
push edi
push 1
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.0048a465
push edi
call fcn.0048feb4
add esp, 0x14
test eax, eax
jne 0x47fbed
push edi
push 1
lea eax, [esp + 0x44]
push 4
push eax
call fcn.0048a465
push edi
call fcn.0048feb4
add esp, 0x14
test eax, eax
jne 0x47fbed
push edi
call fcn.00489a43
mov edx, dword [esp + 0x40]
add esp, 4
mov esi, edx
add eax, edx
and esi, 1
add esi, eax
cmp dword [esp + 0x64], 0x20746d66
jne 0x47fbc3
push edi
call fcn.00489a43
mov edx, dword [esp + 0x40]
add esp, 4
mov ebx, eax
mov dword [esp + 0x40], edx
mov ecx, edx
push 0
and ecx, 1
add ecx, edx
push esi
push edi
add ebp, ecx
call fcn.00489d25
add esp, 0xc
push edi
call fcn.0048feb4
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47fb50
mov dword [esp + 0x44], ebx
test ebx, ebx
mov ebx, dword [esp + 0x28]
je 0x47fc60
mov eax, dword [esp + 0x40]
cmp eax, 4
jb 0x47fc60
mov eax, dword [esp + 0x44]
push 0
add eax, 2
push eax
push edi
call fcn.00489d25
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push 1
push 2
push eax
call fcn.0048a465
push 0
push dword [esp + 0x48]
push edi
call fcn.00489d25
add esp, 0x1c
cmp word [esp + 0x20], 2
sete al
test al, al
je 0x47fc6f
push 0
push str.This_is_a_stereo_sample...
push str.System_request
push 4
call dword [0x54e484]
movzx ebp, ax
add esp, 0x10
mov dword [esp + 0x38], ebp
jmp 0x47fc72
push 0
push dword [esp + 0x38]
push edi
call fcn.00489d25
add esp, 0xc
or ebp, 0xffffffff
mov ax, word [esp + 0x18]
cmp ax, 8
jne 0x47fd48
lea eax, [ebx + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480569
push edi
push 1
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x4805a5
cmp word [esp + 0x14], 2
mov edx, dword [0x54e67c]
jne 0x47fd2b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x47fd17
lea ebp, [ebx - 1]
sub eax, 1
je 0x47fcfb
xor esi, esi
test ebp, ebp
je 0x47fcf5
nop
movzx ecx, byte [edx + esi*2 + 1]
movzx eax, byte [edx + esi*2]
add ecx, eax
shr ecx, 1
mov byte [esi + edx], cl
inc esi
cmp esi, ebp
jb 0x47fce0
mov byte [esi + edx], 0x80
jmp 0x47fd2b
xor ecx, ecx
test ebp, ebp
je 0x47fd11
lea esi, [edx + 1]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebp
jb 0x47fd04
mov byte [ecx + edx], 0x80
jmp 0x47fd2b
mov ecx, 1
cmp ebx, ecx
jbe 0x47fd2b
mov al, byte [edx + ecx*2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebx
jb 0x47fd20
xor ecx, ecx
test ebx, ebx
je 0x480888
mov eax, dword [0x54e67c]
xor byte [eax + ecx], 0x80
inc ecx
cmp ecx, ebx
jb 0x47fd35
jmp 0x480888
cmp ax, 0x10
jne 0x47fe29
shr ebx, 1
lea eax, [ebx*2 + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480569
push edi
push 2
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a465
add esp, 0x10
cmp eax, 2
jne 0x4805a5
mov edx, dword [0x54e67c]
cmp word [esp + 0x14], ax
jne 0x480881
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x47fe0a
lea ebp, [ebx - 1]
sub eax, 1
je 0x47fde1
xor esi, esi
test ebp, ebp
je 0x47fdd6
nop dword [eax + eax]
movsx ecx, word [edx + esi*4 + 2]
movsx eax, word [edx + esi*4]
add ecx, eax
sar ecx, 1
mov word [edx + esi*2], cx
inc esi
cmp esi, ebp
jb 0x47fdc0
xor eax, eax
mov word [edx + esi*2], ax
jmp 0x480881
xor ecx, ecx
test ebp, ebp
je 0x47fdff
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [esi]
lea esi, [esi + 4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebp
jb 0x47fdf0
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x480881
mov ecx, 1
cmp ebx, ecx
jbe 0x480881
mov ax, word [edx + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x47fe17
jmp 0x480881
cmp ax, 0x18
jne 0x480053
mov eax, 0xaaaaaaab
mul ebx
mov ebx, edx
shr ebx, 1
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480569
push edi
add eax, 0xf
push 3
mov dword [0x54e67c], eax
add eax, ebx
push ebx
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 3
jne 0x4805a5
mov ebp, dword [0x54e67c]
xor esi, esi
lea edx, [ebx + ebp]
test ebx, ebx
je 0x47feb5
nop word [eax + eax]
movzx ecx, byte [edx + 2]
lea edx, [edx + 3]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [ebp + esi*4], ecx
inc esi
cmp esi, ebx
jb 0x47fe90
cmp word [esp + 0x14], 2
jne 0x47ff5e
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x47ff48
sub eax, 1
je 0x47ff20
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x47ff16
xor edi, edi
mov ebx, ecx
mov eax, dword [ebp + edi*8 + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp + edi*8]
cdq
add esi, eax
adc ecx, edx
shrd esi, ecx, 1
mov dword [ebp + edi*4], esi
inc edi
cmp edi, ebx
jb 0x47fee7
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
mov dword [ebp + eax*4], 0
jmp 0x47ff5e
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x47ff3e
lea edx, [ebp + 4]
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x47ff30
mov dword [ebp + ecx*4], 0
jmp 0x47ff5e
mov ecx, 1
cmp ebx, ecx
jbe 0x47ff5e
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x47ff51
mov edx, ebx
mov ecx, ebp
call fcn.0043e150
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480881
cmp ebx, 0x10
jb 0x48002f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x47ff98
cmp edx, ebp
jae 0x48002f
mov eax, ebx
lea edx, [ebp + 0x20]
and eax, 0xfffffff0
mov dword [esp + 0x64], eax
mov eax, 0x10
movd xmm1, eax
lea eax, [esi + 0x10]
movups xmm0, xmmword [edx - 0x20]
add ecx, 0x10
lea edx, [edx + 0x40]
lea eax, [eax + 0x20]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x50]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x28], xmm0
movups xmm0, xmmword [edx - 0x40]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x20], xmm0
movups xmm0, xmmword [edx - 0x30]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x18], xmm0
cmp ecx, dword [esp + 0x64]
jb 0x47ffb0
cmp ecx, ebx
jae 0x480881
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480040
jmp 0x480881
mov cx, word [esp + 0x1c]
cmp cx, 1
jne 0x480253
cmp ax, 0x20
jne 0x480888
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480569
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a465
add esp, 0x10
cmp eax, 4
jne 0x4805a5
cmp word [esp + 0x14], 2
mov ebp, dword [0x54e67c]
jne 0x48015d
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x48013f
sub eax, 1
je 0x48011b
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x480111
xor edi, edi
mov ebx, ecx
mov eax, dword [ebp + edi*8 + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp + edi*8]
cdq
add esi, eax
adc ecx, edx
shrd esi, ecx, 1
mov dword [ebp + edi*4], esi
inc edi
cmp edi, ebx
jb 0x4800e2
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
mov dword [ebp + eax*4], 0
jmp 0x48015d
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x480135
lea edx, [ebp + 4]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x480127
mov dword [ebp + ecx*4], 0
jmp 0x48015d
mov ecx, 1
cmp ebx, ecx
jbe 0x48015d
nop dword [eax + eax]
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480150
mov edx, ebx
mov ecx, ebp
call fcn.0043e150
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480881
cmp ebx, 0x10
jb 0x48022f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x480197
cmp edx, ebp
jae 0x48022f
mov eax, ebx
lea edx, [ebp + 0x20]
and eax, 0xfffffff0
mov dword [esp + 0x64], eax
mov eax, 0x10
movd xmm1, eax
lea eax, [esi + 0x10]
nop
movups xmm0, xmmword [edx - 0x20]
add ecx, 0x10
lea edx, [edx + 0x40]
lea eax, [eax + 0x20]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x50]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x28], xmm0
movups xmm0, xmmword [edx - 0x40]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x20], xmm0
movups xmm0, xmmword [edx - 0x30]
psrad xmm0, xmm1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x18], xmm0
cmp ecx, dword [esp + 0x64]
jb 0x4801b0
cmp ecx, ebx
jae 0x480881
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480240
jmp 0x480881
cmp cx, 3
jne 0x480888
cmp ax, 0x20
jne 0x480543
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480569
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a465
add esp, 0x10
cmp eax, 4
jne 0x4805a5
cmp word [esp + 0x14], 2
mov esi, dword [0x54e67c]
jne 0x48045b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x4803f6
lea ebp, [ebx - 1]
sub eax, 1
je 0x480385
movss xmm1, dword [0x4e29d0]
xor ecx, ecx
cmp ebp, 4
jb 0x480358
add ebp, 0xfffffffc
lea edx, [esi + 8]
shr ebp, 2
lea eax, [esi + 0xc]
inc ebp
lea ecx, [ebp*4]
nop dword [eax]
nop dword [eax + eax]
movss xmm0, dword [eax - 0xc]
addss xmm0, dword [eax - 8]
mulss xmm0, xmm1
movss dword [edx - 8], xmm0
movss xmm0, dword [eax - 4]
addss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [edx - 4], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, dword [eax + 4]
mulss xmm0, xmm1
movss dword [edx], xmm0
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [eax + 0xc]
add eax, 0x20
mulss xmm0, xmm1
movss dword [edx + 4], xmm0
add edx, 0x10
sub ebp, 1
jne 0x480300
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480379
nop dword [eax]
movss xmm0, dword [esi + ecx*8 + 4]
addss xmm0, dword [esi + ecx*8]
mulss xmm0, xmm1
movss dword [esi + ecx*4], xmm0
inc ecx
cmp ecx, ebp
jb 0x480360
mov dword [esi + ecx*4], 0
jmp 0x48045b
xor ecx, ecx
cmp ebp, 4
jb 0x4803d0
lea eax, [ebx - 5]
shr eax, 2
lea edx, [esi + 8]
inc eax
lea ebp, [esi + 0xc]
mov dword [esp + 0x64], eax
mov edi, eax
lea ecx, [eax*4]
mov eax, dword [ebp - 8]
lea edx, [edx + 0x10]
mov dword [edx - 0x18], eax
lea ebp, [ebp + 0x20]
mov eax, dword [ebp - 0x20]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [edx - 0xc], eax
sub edi, 1
jne 0x4803a6
mov edi, dword [esp + 0x30]
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480379
lea edx, [esi + 4]
lea edx, [edx + ecx*8]
nop word [eax + eax]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebp
jb 0x4803e0
mov dword [esi + ecx*4], 0
jmp 0x48045b
mov ecx, 1
cmp ebx, ecx
jbe 0x48045b
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480448
lea eax, [ebx - 5]
shr eax, 2
lea edx, [esi + 0xc]
inc eax
lea ebp, [esi + 0x18]
mov dword [esp + 0x64], eax
mov edi, eax
lea ecx, [eax*4 + 1]
mov eax, dword [ebp - 0x10]
lea ebp, [ebp + 0x20]
mov dword [edx - 8], eax
lea edx, [edx + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [edx - 0xc], eax
sub edi, 1
jne 0x480421
mov edi, dword [esp + 0x30]
cmp ecx, ebx
jae 0x48045b
nop dword [eax]
mov eax, dword [esi + ecx*8]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480450
mov edx, ebx
mov ecx, esi
call fcn.0043e2b0
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480881
cmp ebx, 0x10
jb 0x480524
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x480496
cmp ebp, esi
jae 0x480524
mov eax, ebx
lea ebp, [esi + 0x20]
and eax, 0xfffffff0
mov dword [esp + 0x64], eax
lea eax, [edx + 0x10]
movups xmm0, xmmword [ebp - 0x20]
add ecx, 0x10
lea ebp, [ebp + 0x40]
lea eax, [eax + 0x20]
cvttps2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x30], xmm0
movups xmm0, xmmword [ebp - 0x50]
cvttps2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x28], xmm0
movups xmm0, xmmword [ebp - 0x40]
cvttps2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x30]
cvttps2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x18], xmm0
cmp ecx, dword [esp + 0x64]
jb 0x4804a5
cmp ecx, ebx
jae 0x480881
nop dword [eax]
cvttss2si eax, dword [esi + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480530
jmp 0x480881
cmp ax, 0x40
jne 0x480888
shr ebx, 3
lea eax, [ebx*8 + 0x1f]
push eax
call fcn.004893b5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
jne 0x48058b
push str.Not_enough_memory_
mov dword [0x54e67c], 0
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 8
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a465
add esp, 0x10
cmp eax, 8
je 0x4805bd
push str.General_I_O_error_during_loading__Is_the_file_in_use_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esp + 0x14], 2
mov esi, dword [0x54e67c]
jne 0x4807a1
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x480722
lea ebp, [ebx - 1]
sub eax, 1
je 0x48069a
movsd xmm1, qword [0x4e2a70]
xor ecx, ecx
cmp ebp, 4
jb 0x480668
add ebp, 0xfffffffc
lea edx, [esi + 0x10]
shr ebp, 2
lea eax, [esi + 0x18]
inc ebp
lea ecx, [ebp*4]
nop dword [eax]
movsd xmm0, qword [eax - 0x18]
addsd xmm0, qword [eax - 0x10]
mulsd xmm0, xmm1
movsd qword [edx - 0x10], xmm0
movsd xmm0, qword [eax - 8]
addsd xmm0, qword [eax]
mulsd xmm0, xmm1
movsd qword [edx - 8], xmm0
movsd xmm0, qword [eax + 0x10]
addsd xmm0, qword [eax + 8]
mulsd xmm0, xmm1
movsd qword [edx], xmm0
movsd xmm0, qword [eax + 0x20]
addsd xmm0, qword [eax + 0x18]
add eax, 0x40
mulsd xmm0, xmm1
movsd qword [edx + 8], xmm0
add edx, 0x20
sub ebp, 1
jne 0x480610
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48068d
mov eax, ecx
shl eax, 4
add eax, esi
movsd xmm0, qword [eax + 8]
addsd xmm0, qword [eax]
add eax, 0x10
mulsd xmm0, xmm1
movsd qword [esi + ecx*8], xmm0
inc ecx
cmp ecx, ebp
jb 0x480673
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x4807a1
xor ecx, ecx
cmp ebp, 4
jb 0x4806f6
add ebp, 0xfffffffc
lea eax, [esi + 0x10]
shr ebp, 2
lea edx, [esi + 0x18]
inc ebp
lea ecx, [ebp*4]
nop word [eax + eax]
movsd xmm0, qword [edx - 0x10]
lea eax, [eax + 0x20]
movsd qword [eax - 0x30], xmm0
lea edx, [edx + 0x40]
movsd xmm0, qword [edx - 0x40]
movsd qword [eax - 0x28], xmm0
movsd xmm0, qword [edx - 0x30]
movsd qword [eax - 0x20], xmm0
movsd xmm0, qword [edx - 0x20]
movsd qword [eax - 0x18], xmm0
sub ebp, 1
jne 0x4806c0
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48068d
mov eax, ecx
shl eax, 4
add eax, 8
add eax, esi
movsd xmm0, qword [eax]
lea eax, [eax + 0x10]
movsd qword [esi + ecx*8], xmm0
inc ecx
cmp ecx, ebp
jb 0x480704
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x4807a1
mov edx, 1
cmp ebx, edx
jbe 0x4807a1
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480783
lea ebp, [ebx - 5]
shr ebp, 2
lea eax, [esi + 0x18]
inc ebp
lea ecx, [esi + 0x30]
lea edx, [ebp*4 + 1]
nop word [eax + eax]
movsd xmm0, qword [ecx - 0x20]
lea ecx, [ecx + 0x40]
movsd qword [eax - 0x10], xmm0
lea eax, [eax + 0x20]
movsd xmm0, qword [ecx - 0x50]
movsd qword [eax - 0x28], xmm0
movsd xmm0, qword [ecx - 0x40]
movsd qword [eax - 0x20], xmm0
movsd xmm0, qword [ecx - 0x30]
movsd qword [eax - 0x18], xmm0
sub ebp, 1
jne 0x480750
cmp edx, ebx
jae 0x4807a1
mov eax, edx
shl eax, 4
add eax, esi
nop
movsd xmm0, qword [eax]
lea eax, [eax + 0x10]
movsd qword [esi + edx*8], xmm0
inc edx
cmp edx, ebx
jb 0x480790
mov edx, ebx
mov ecx, esi
call fcn.0043e460
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480881
cmp ebx, 8
jb 0x48086f
lea eax, [esi - 8]
lea eax, [eax + ebx*8]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x4807dc
cmp ebp, esi
jae 0x48086f
mov eax, ebx
lea ebp, [esi + 0x20]
and eax, 0xfffffff8
mov dword [esp + 0x64], eax
lea eax, [edx + 8]
nop dword [eax + eax]
movups xmm0, xmmword [ebp - 0x20]
add ecx, 8
lea ebp, [ebp + 0x40]
lea eax, [eax + 0x10]
cvttpd2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movd dword [eax - 0x18], xmm0
movups xmm0, xmmword [ebp - 0x50]
cvttpd2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movd dword [eax - 0x14], xmm0
movups xmm0, xmmword [ebp - 0x40]
cvttpd2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movd dword [eax - 0x10], xmm0
movups xmm0, xmmword [ebp - 0x30]
cvttpd2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movd dword [eax - 0xc], xmm0
cmp ecx, dword [esp + 0x64]
jb 0x4807f0
cmp ecx, ebx
jae 0x480881
cvttsd2si eax, qword [esi + ecx*8]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480873
or byte [0x54e685], 0x10
mov eax, 0x3fffffff
mov ecx, 0x54e660
cmp ebx, eax
cmova ebx, eax
mov al, byte [0x54e685]
shr al, 4
mov edx, ebx
and al, 1
movzx eax, al
push eax
call fcn.00436f20
movzx eax, byte [0x789f67]
add esp, 4
mov edx, dword [esp + 0x48]
mov ecx, 0x54e660
push eax
call fcn.00432690
mov eax, dword [esp + 0x50]
add esp, 4
mov byte [0x54e684], 0x40
mov byte [0x54e686], 0x80
mov dword [0x54e688], ebx
test eax, eax
je 0x480985
cmp dword [esp + 0x50], 0x34
jbe 0x480985
push 0
add eax, 0x1c
push eax
push edi
call fcn.00489d25
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a465
add esp, 0x10
cmp dword [esp + 0x64], 1
jne 0x480985
push 1
push 8
push edi
call fcn.00489d25
add esp, 0xc
lea eax, [esp + 0x44]
push edi
push 1
push 4
push eax
call fcn.0048a465
push edi
push 1
lea eax, [esp + 0x64]
push 4
push eax
call fcn.0048a465
push edi
push 1
lea eax, [esp + 0x78]
push 4
push eax
call fcn.0048a465
mov ecx, dword [esp + 0x80]
add esp, 0x30
inc ecx
cmp ecx, ebx
ja 0x480985
mov eax, dword [esp + 0x4c]
sub ecx, eax
cmp dword [esp + 0x44], 0
mov dword [0x54e68c], eax
setne al
mov dword [0x54e690], ecx
inc al
or byte [0x54e685], al
mov eax, dword [esp + 0x54]
test eax, eax
je 0x480a26
cmp dword [esp + 0x58], 8
jb 0x480a26
push 0
push eax
push edi
call fcn.00489d25
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a465
add esp, 0x10
test byte [esp + 0x64], 0x20
je 0x4809ed
push edi
push 1
lea eax, [esp + 0x60]
push 2
push eax
call fcn.0048a465
mov eax, dword [esp + 0x68]
mov ecx, 0xff
add esp, 0x10
cmp ax, cx
cmova eax, ecx
mov dword [esp + 0x58], eax
mov byte [0x54e686], al
jmp 0x4809fa
push 1
push 2
push edi
call fcn.00489d25
add esp, 0xc
push edi
push 1
lea eax, [esp + 0x5c]
push 2
push eax
call fcn.0048a465
mov eax, dword [esp + 0x64]
mov ecx, 0x100
add esp, 0x10
cmp ax, cx
cmova eax, ecx
add eax, 2
shr eax, 2
mov byte [0x54e684], al
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x480a6b
mov esi, dword [esp + 0x60]
test esi, esi
je 0x480a6b
push 0
push eax
push edi
call fcn.00489d25
add esp, 0xc
mov eax, 0x16
cmp esi, eax
cmova esi, eax
push edi
push esi
push 1
push 0x54e660
call fcn.0048a465
add esp, 0x10
mov byte [0x54e676], 0
mov byte [0x54e65d], 1
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_loading_sample:_Unsupported_number_of_channels_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_loading_sample:_The_sample_is_not_supported_or_is_invalid_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret