Function at 0x47f960
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 0x480c6d
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.00489f05
add esp, 0xc
push edi
call fcn.00490094
add esp, 4
test eax, eax
jne 0x480c6d
lea eax, [ebp - 0xc]
mov dword [esp + 0x44], eax
cmp esi, eax
jae 0x47fb85
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a645
push edi
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47fb85
push edi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0048a645
push edi
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47fb85
push edi
call fcn.00489c23
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 0x47fb26
je 0x47fb12
cmp eax, 0x20746d66
je 0x47fafe
cmp eax, 0x5453494c
jne 0x47fb5b
cmp edx, 4
jb 0x47fb5b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a645
add esp, 0x10
cmp dword [esp + 0x2c], 0x4f464e49
jne 0x47faf8
push edi
xor esi, esi
call fcn.00490094
add esp, 4
test eax, eax
jne 0x47faf8
nop
mov edx, dword [esp + 0x24]
cmp esi, edx
jae 0x47fb5b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a645
push edi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.0048a645
add esp, 0x20
cmp dword [esp + 0x2c], 0x4d414e49
jne 0x47fade
push edi
call fcn.00489c23
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x47fae2
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 1
add eax, ecx
push edi
add esi, eax
call fcn.00490094
add esp, 4
test eax, eax
je 0x47fa90
mov edx, dword [esp + 0x24]
jmp 0x47fb5b
push edi
call fcn.00489c23
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
jmp 0x47fb58
push edi
call fcn.00489c23
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x47fb58
cmp eax, 0x61746164
je 0x47fb48
cmp eax, 0x6c706d73
jne 0x47fb5b
push edi
call fcn.00489c23
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x47fb58
push edi
call fcn.00489c23
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.00489f05
add esp, 0xc
push edi
call fcn.00490094
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47f9d2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x480c6d
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x480c6d
mov esi, dword [esp + 0x20]
test esi, esi
je 0x480c6d
test ebx, ebx
je 0x480c6d
push 0
push eax
push edi
call fcn.00489f05
add esp, 0xc
lea eax, [esp + 0x1c]
push edi
push 1
push 2
push eax
call fcn.0048a645
push edi
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0048a645
push edi
push 1
lea eax, [esp + 0x70]
push 4
push eax
call fcn.0048a645
push 1
push 6
push edi
call fcn.00489f05
add esp, 0x3c
lea eax, [esp + 0x18]
push edi
push 1
push 2
push eax
call fcn.0048a645
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x480c6d
cmp ebx, dword [esp + 0x40]
jae 0x480c6d
mov ax, word [esp + 0x1c]
cmp ax, 1
je 0x47fc4c
cmp ax, 3
je 0x47fc4c
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 0x480c55
cmp cx, 2
ja 0x480c55
cmp ax, 3
mov ax, word [esp + 0x18]
jne 0x47fc7b
cmp ax, 0x20
je 0x47fc7b
cmp ax, 0x40
jne 0x47fc99
cmp ax, 8
je 0x47fcb1
cmp ax, 0x10
je 0x47fcb1
cmp ax, 0x18
je 0x47fcb1
cmp ax, 0x20
je 0x47fcb1
cmp ax, 0x40
je 0x47fcb1
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.00489f05
add esp, 0xc
or ebp, 0xffffffff
mov dword [esp + 0x38], ebp
push edi
call fcn.00489c23
add esp, 4
mov dword [esp + 0x34], eax
push 2
push 0
push edi
call fcn.00489f05
add esp, 0xc
push edi
call fcn.00489c23
add esp, 4
mov esi, eax
push 0
cmp esi, 0xc
jge 0x47fd02
push dword [esp + 0x38]
push edi
call fcn.00489f05
add esp, 0xc
jmp 0x47fe52
push 0xc
push edi
call fcn.00489f05
add esp, 0xc
xor eax, eax
mov dword [esp + 0x40], eax
xor ebp, ebp
push edi
call fcn.00490094
add esp, 4
test eax, eax
jne 0x47fe40
lea eax, [esi - 0xc]
xor ebx, ebx
mov dword [esp + 0x44], eax
nop
cmp ebp, eax
jge 0x47fdcd
push edi
push 1
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.0048a645
push edi
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47fdcd
push edi
push 1
lea eax, [esp + 0x44]
push 4
push eax
call fcn.0048a645
push edi
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47fdcd
push edi
call fcn.00489c23
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 0x47fda3
push edi
call fcn.00489c23
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.00489f05
add esp, 0xc
push edi
call fcn.00490094
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47fd30
mov dword [esp + 0x44], ebx
test ebx, ebx
mov ebx, dword [esp + 0x28]
je 0x47fe40
mov eax, dword [esp + 0x40]
cmp eax, 4
jb 0x47fe40
mov eax, dword [esp + 0x44]
push 0
add eax, 2
push eax
push edi
call fcn.00489f05
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push 1
push 2
push eax
call fcn.0048a645
push 0
push dword [esp + 0x48]
push edi
call fcn.00489f05
add esp, 0x1c
cmp word [esp + 0x20], 2
sete al
test al, al
je 0x47fe4f
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 0x47fe52
push 0
push dword [esp + 0x38]
push edi
call fcn.00489f05
add esp, 0xc
or ebp, 0xffffffff
mov ax, word [esp + 0x18]
cmp ax, 8
jne 0x47ff28
lea eax, [ebx + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480749
push edi
push 1
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a645
add esp, 0x10
cmp eax, 1
jne 0x480785
cmp word [esp + 0x14], 2
mov edx, dword [0x54e67c]
jne 0x47ff0b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x47fef7
lea ebp, [ebx - 1]
sub eax, 1
je 0x47fedb
xor esi, esi
test ebp, ebp
je 0x47fed5
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 0x47fec0
mov byte [esi + edx], 0x80
jmp 0x47ff0b
xor ecx, ecx
test ebp, ebp
je 0x47fef1
lea esi, [edx + 1]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebp
jb 0x47fee4
mov byte [ecx + edx], 0x80
jmp 0x47ff0b
mov ecx, 1
cmp ebx, ecx
jbe 0x47ff0b
mov al, byte [edx + ecx*2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebx
jb 0x47ff00
xor ecx, ecx
test ebx, ebx
je 0x480a68
mov eax, dword [0x54e67c]
xor byte [eax + ecx], 0x80
inc ecx
cmp ecx, ebx
jb 0x47ff15
jmp 0x480a68
cmp ax, 0x10
jne 0x480009
shr ebx, 1
lea eax, [ebx*2 + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480749
push edi
push 2
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a645
add esp, 0x10
cmp eax, 2
jne 0x480785
mov edx, dword [0x54e67c]
cmp word [esp + 0x14], ax
jne 0x480a61
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x47ffea
lea ebp, [ebx - 1]
sub eax, 1
je 0x47ffc1
xor esi, esi
test ebp, ebp
je 0x47ffb6
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 0x47ffa0
xor eax, eax
mov word [edx + esi*2], ax
jmp 0x480a61
xor ecx, ecx
test ebp, ebp
je 0x47ffdf
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 0x47ffd0
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x480a61
mov ecx, 1
cmp ebx, ecx
jbe 0x480a61
mov ax, word [edx + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x47fff7
jmp 0x480a61
cmp ax, 0x18
jne 0x480233
mov eax, 0xaaaaaaab
mul ebx
mov ebx, edx
shr ebx, 1
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480749
push edi
add eax, 0xf
push 3
mov dword [0x54e67c], eax
add eax, ebx
push ebx
push eax
call fcn.0048a645
add esp, 0x10
cmp eax, 3
jne 0x480785
mov ebp, dword [0x54e67c]
xor esi, esi
lea edx, [ebx + ebp]
test ebx, ebx
je 0x480095
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 0x480070
cmp word [esp + 0x14], 2
jne 0x48013e
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x480128
sub eax, 1
je 0x480100
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x4800f6
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 0x4800c7
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 0x48013e
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x48011e
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 0x480110
mov dword [ebp + ecx*4], 0
jmp 0x48013e
mov ecx, 1
cmp ebx, ecx
jbe 0x48013e
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480131
mov edx, ebx
mov ecx, ebp
call fcn.0043e310
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480a61
cmp ebx, 0x10
jb 0x48020f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x480178
cmp edx, ebp
jae 0x48020f
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 0x480190
cmp ecx, ebx
jae 0x480a61
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480220
jmp 0x480a61
mov cx, word [esp + 0x1c]
cmp cx, 1
jne 0x480433
cmp ax, 0x20
jne 0x480a68
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480749
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a645
add esp, 0x10
cmp eax, 4
jne 0x480785
cmp word [esp + 0x14], 2
mov ebp, dword [0x54e67c]
jne 0x48033d
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x48031f
sub eax, 1
je 0x4802fb
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x4802f1
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 0x4802c2
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 0x48033d
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x480315
lea edx, [ebp + 4]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x480307
mov dword [ebp + ecx*4], 0
jmp 0x48033d
mov ecx, 1
cmp ebx, ecx
jbe 0x48033d
nop dword [eax + eax]
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480330
mov edx, ebx
mov ecx, ebp
call fcn.0043e310
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480a61
cmp ebx, 0x10
jb 0x48040f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x480377
cmp edx, ebp
jae 0x48040f
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 0x480390
cmp ecx, ebx
jae 0x480a61
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480420
jmp 0x480a61
cmp cx, 3
jne 0x480a68
cmp ax, 0x20
jne 0x480723
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480749
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a645
add esp, 0x10
cmp eax, 4
jne 0x480785
cmp word [esp + 0x14], 2
mov esi, dword [0x54e67c]
jne 0x48063b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x4805d6
lea ebp, [ebx - 1]
sub eax, 1
je 0x480565
movss xmm1, dword [0x4e2a70]
xor ecx, ecx
cmp ebp, 4
jb 0x480538
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 0x4804e0
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480559
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 0x480540
mov dword [esi + ecx*4], 0
jmp 0x48063b
xor ecx, ecx
cmp ebp, 4
jb 0x4805b0
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 0x480586
mov edi, dword [esp + 0x30]
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480559
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 0x4805c0
mov dword [esi + ecx*4], 0
jmp 0x48063b
mov ecx, 1
cmp ebx, ecx
jbe 0x48063b
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480628
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 0x480601
mov edi, dword [esp + 0x30]
cmp ecx, ebx
jae 0x48063b
nop dword [eax]
mov eax, dword [esi + ecx*8]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480630
mov edx, ebx
mov ecx, esi
call fcn.0043e470
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480a61
cmp ebx, 0x10
jb 0x480704
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x480676
cmp ebp, esi
jae 0x480704
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 0x480685
cmp ecx, ebx
jae 0x480a61
nop dword [eax]
cvttss2si eax, dword [esi + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480710
jmp 0x480a61
cmp ax, 0x40
jne 0x480a68
shr ebx, 3
lea eax, [ebx*8 + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [0x54e680], eax
test eax, eax
jne 0x48076b
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.0048a645
add esp, 0x10
cmp eax, 8
je 0x48079d
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 0x480981
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x480902
lea ebp, [ebx - 1]
sub eax, 1
je 0x48087a
movsd xmm1, qword [0x4e2b10]
xor ecx, ecx
cmp ebp, 4
jb 0x480848
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 0x4807f0
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48086d
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 0x480853
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x480981
xor ecx, ecx
cmp ebp, 4
jb 0x4808d6
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 0x4808a0
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48086d
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 0x4808e4
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x480981
mov edx, 1
cmp ebx, edx
jbe 0x480981
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480963
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 0x480930
cmp edx, ebx
jae 0x480981
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 0x480970
mov edx, ebx
mov ecx, esi
call fcn.0043e620
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480a61
cmp ebx, 8
jb 0x480a4f
lea eax, [esi - 8]
lea eax, [eax + ebx*8]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x4809bc
cmp ebp, esi
jae 0x480a4f
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 0x4809d0
cmp ecx, ebx
jae 0x480a61
cvttsd2si eax, qword [esi + ecx*8]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480a53
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.004370a0
movzx eax, byte [0x789f67]
add esp, 4
mov edx, dword [esp + 0x48]
mov ecx, 0x54e660
push eax
call fcn.004327e0
mov eax, dword [esp + 0x50]
add esp, 4
mov byte [0x54e684], 0x40
mov byte [0x54e686], 0x80
mov dword [0x54e688], ebx
test eax, eax
je 0x480b65
cmp dword [esp + 0x50], 0x34
jbe 0x480b65
push 0
add eax, 0x1c
push eax
push edi
call fcn.00489f05
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a645
add esp, 0x10
cmp dword [esp + 0x64], 1
jne 0x480b65
push 1
push 8
push edi
call fcn.00489f05
add esp, 0xc
lea eax, [esp + 0x44]
push edi
push 1
push 4
push eax
call fcn.0048a645
push edi
push 1
lea eax, [esp + 0x64]
push 4
push eax
call fcn.0048a645
push edi
push 1
lea eax, [esp + 0x78]
push 4
push eax
call fcn.0048a645
mov ecx, dword [esp + 0x80]
add esp, 0x30
inc ecx
cmp ecx, ebx
ja 0x480b65
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 0x480c06
cmp dword [esp + 0x58], 8
jb 0x480c06
push 0
push eax
push edi
call fcn.00489f05
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a645
add esp, 0x10
test byte [esp + 0x64], 0x20
je 0x480bcd
push edi
push 1
lea eax, [esp + 0x60]
push 2
push eax
call fcn.0048a645
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 0x480bda
push 1
push 2
push edi
call fcn.00489f05
add esp, 0xc
push edi
push 1
lea eax, [esp + 0x5c]
push 2
push eax
call fcn.0048a645
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 0x480c4b
mov esi, dword [esp + 0x60]
test esi, esi
je 0x480c4b
push 0
push eax
push edi
call fcn.00489f05
add esp, 0xc
mov eax, 0x16
cmp esi, eax
cmova esi, eax
push edi
push esi
push 1
push 0x54e660
call fcn.0048a645
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