Function at 0x47fa90
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 0x480d9d
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.0048a035
add esp, 0xc
push edi
call fcn.004901c4
add esp, 4
test eax, eax
jne 0x480d9d
lea eax, [ebp - 0xc]
mov dword [esp + 0x44], eax
cmp esi, eax
jae 0x47fcb5
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a775
push edi
call fcn.004901c4
add esp, 0x14
test eax, eax
jne 0x47fcb5
push edi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0048a775
push edi
call fcn.004901c4
add esp, 0x14
test eax, eax
jne 0x47fcb5
push edi
call fcn.00489d53
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 0x47fc56
je 0x47fc42
cmp eax, 0x20746d66
je 0x47fc2e
cmp eax, 0x5453494c
jne 0x47fc8b
cmp edx, 4
jb 0x47fc8b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a775
add esp, 0x10
cmp dword [esp + 0x2c], 0x4f464e49
jne 0x47fc28
push edi
xor esi, esi
call fcn.004901c4
add esp, 4
test eax, eax
jne 0x47fc28
nop
mov edx, dword [esp + 0x24]
cmp esi, edx
jae 0x47fc8b
push edi
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0048a775
push edi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.0048a775
add esp, 0x20
cmp dword [esp + 0x2c], 0x4d414e49
jne 0x47fc0e
push edi
call fcn.00489d53
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x47fc12
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 1
add eax, ecx
push edi
add esi, eax
call fcn.004901c4
add esp, 4
test eax, eax
je 0x47fbc0
mov edx, dword [esp + 0x24]
jmp 0x47fc8b
push edi
call fcn.00489d53
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
jmp 0x47fc88
push edi
call fcn.00489d53
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x47fc88
cmp eax, 0x61746164
je 0x47fc78
cmp eax, 0x6c706d73
jne 0x47fc8b
push edi
call fcn.00489d53
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x47fc88
push edi
call fcn.00489d53
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.0048a035
add esp, 0xc
push edi
call fcn.004901c4
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47fb02
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x480d9d
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x480d9d
mov esi, dword [esp + 0x20]
test esi, esi
je 0x480d9d
test ebx, ebx
je 0x480d9d
push 0
push eax
push edi
call fcn.0048a035
add esp, 0xc
lea eax, [esp + 0x1c]
push edi
push 1
push 2
push eax
call fcn.0048a775
push edi
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0048a775
push edi
push 1
lea eax, [esp + 0x70]
push 4
push eax
call fcn.0048a775
push 1
push 6
push edi
call fcn.0048a035
add esp, 0x3c
lea eax, [esp + 0x18]
push edi
push 1
push 2
push eax
call fcn.0048a775
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x480d9d
cmp ebx, dword [esp + 0x40]
jae 0x480d9d
mov ax, word [esp + 0x1c]
cmp ax, 1
je 0x47fd7c
cmp ax, 3
je 0x47fd7c
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 0x480d85
cmp cx, 2
ja 0x480d85
cmp ax, 3
mov ax, word [esp + 0x18]
jne 0x47fdab
cmp ax, 0x20
je 0x47fdab
cmp ax, 0x40
jne 0x47fdc9
cmp ax, 8
je 0x47fde1
cmp ax, 0x10
je 0x47fde1
cmp ax, 0x18
je 0x47fde1
cmp ax, 0x20
je 0x47fde1
cmp ax, 0x40
je 0x47fde1
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.0048a035
add esp, 0xc
or ebp, 0xffffffff
mov dword [esp + 0x38], ebp
push edi
call fcn.00489d53
add esp, 4
mov dword [esp + 0x34], eax
push 2
push 0
push edi
call fcn.0048a035
add esp, 0xc
push edi
call fcn.00489d53
add esp, 4
mov esi, eax
push 0
cmp esi, 0xc
jge 0x47fe32
push dword [esp + 0x38]
push edi
call fcn.0048a035
add esp, 0xc
jmp 0x47ff82
push 0xc
push edi
call fcn.0048a035
add esp, 0xc
xor eax, eax
mov dword [esp + 0x40], eax
xor ebp, ebp
push edi
call fcn.004901c4
add esp, 4
test eax, eax
jne 0x47ff70
lea eax, [esi - 0xc]
xor ebx, ebx
mov dword [esp + 0x44], eax
nop
cmp ebp, eax
jge 0x47fefd
push edi
push 1
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.0048a775
push edi
call fcn.004901c4
add esp, 0x14
test eax, eax
jne 0x47fefd
push edi
push 1
lea eax, [esp + 0x44]
push 4
push eax
call fcn.0048a775
push edi
call fcn.004901c4
add esp, 0x14
test eax, eax
jne 0x47fefd
push edi
call fcn.00489d53
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 0x47fed3
push edi
call fcn.00489d53
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.0048a035
add esp, 0xc
push edi
call fcn.004901c4
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47fe60
mov dword [esp + 0x44], ebx
test ebx, ebx
mov ebx, dword [esp + 0x28]
je 0x47ff70
mov eax, dword [esp + 0x40]
cmp eax, 4
jb 0x47ff70
mov eax, dword [esp + 0x44]
push 0
add eax, 2
push eax
push edi
call fcn.0048a035
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push 1
push 2
push eax
call fcn.0048a775
push 0
push dword [esp + 0x48]
push edi
call fcn.0048a035
add esp, 0x1c
cmp word [esp + 0x20], 2
sete al
test al, al
je 0x47ff7f
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 0x47ff82
push 0
push dword [esp + 0x38]
push edi
call fcn.0048a035
add esp, 0xc
or ebp, 0xffffffff
mov ax, word [esp + 0x18]
cmp ax, 8
jne 0x480058
lea eax, [ebx + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480879
push edi
push 1
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a775
add esp, 0x10
cmp eax, 1
jne 0x4808b5
cmp word [esp + 0x14], 2
mov edx, dword [0x54e67c]
jne 0x48003b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x480027
lea ebp, [ebx - 1]
sub eax, 1
je 0x48000b
xor esi, esi
test ebp, ebp
je 0x480005
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 0x47fff0
mov byte [esi + edx], 0x80
jmp 0x48003b
xor ecx, ecx
test ebp, ebp
je 0x480021
lea esi, [edx + 1]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebp
jb 0x480014
mov byte [ecx + edx], 0x80
jmp 0x48003b
mov ecx, 1
cmp ebx, ecx
jbe 0x48003b
mov al, byte [edx + ecx*2]
mov byte [ecx + edx], al
inc ecx
cmp ecx, ebx
jb 0x480030
xor ecx, ecx
test ebx, ebx
je 0x480b98
mov eax, dword [0x54e67c]
xor byte [eax + ecx], 0x80
inc ecx
cmp ecx, ebx
jb 0x480045
jmp 0x480b98
cmp ax, 0x10
jne 0x480139
shr ebx, 1
lea eax, [ebx*2 + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480879
push edi
push 2
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a775
add esp, 0x10
cmp eax, 2
jne 0x4808b5
mov edx, dword [0x54e67c]
cmp word [esp + 0x14], ax
jne 0x480b91
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x48011a
lea ebp, [ebx - 1]
sub eax, 1
je 0x4800f1
xor esi, esi
test ebp, ebp
je 0x4800e6
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 0x4800d0
xor eax, eax
mov word [edx + esi*2], ax
jmp 0x480b91
xor ecx, ecx
test ebp, ebp
je 0x48010f
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 0x480100
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x480b91
mov ecx, 1
cmp ebx, ecx
jbe 0x480b91
mov ax, word [edx + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480127
jmp 0x480b91
cmp ax, 0x18
jne 0x480363
mov eax, 0xaaaaaaab
mul ebx
mov ebx, edx
shr ebx, 1
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480879
push edi
add eax, 0xf
push 3
mov dword [0x54e67c], eax
add eax, ebx
push ebx
push eax
call fcn.0048a775
add esp, 0x10
cmp eax, 3
jne 0x4808b5
mov ebp, dword [0x54e67c]
xor esi, esi
lea edx, [ebx + ebp]
test ebx, ebx
je 0x4801c5
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 0x4801a0
cmp word [esp + 0x14], 2
jne 0x48026e
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x480258
sub eax, 1
je 0x480230
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x480226
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 0x4801f7
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 0x48026e
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x48024e
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 0x480240
mov dword [ebp + ecx*4], 0
jmp 0x48026e
mov ecx, 1
cmp ebx, ecx
jbe 0x48026e
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480261
mov edx, ebx
mov ecx, ebp
call fcn.0043e3b0
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480b91
cmp ebx, 0x10
jb 0x48033f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x4802a8
cmp edx, ebp
jae 0x48033f
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 0x4802c0
cmp ecx, ebx
jae 0x480b91
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480350
jmp 0x480b91
mov cx, word [esp + 0x1c]
cmp cx, 1
jne 0x480563
cmp ax, 0x20
jne 0x480b98
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480879
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a775
add esp, 0x10
cmp eax, 4
jne 0x4808b5
cmp word [esp + 0x14], 2
mov ebp, dword [0x54e67c]
jne 0x48046d
mov eax, dword [esp + 0x38]
shr ebx, 1
cwde
mov dword [esp + 0x28], ebx
sub eax, 1
je 0x48044f
sub eax, 1
je 0x48042b
lea ecx, [ebx - 1]
xor eax, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x480421
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 0x4803f2
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 0x48046d
lea esi, [ebx - 1]
xor ecx, ecx
test esi, esi
je 0x480445
lea edx, [ebp + 4]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x480437
mov dword [ebp + ecx*4], 0
jmp 0x48046d
mov ecx, 1
cmp ebx, ecx
jbe 0x48046d
nop dword [eax + eax]
mov eax, dword [ebp + ecx*8]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480460
mov edx, ebx
mov ecx, ebp
call fcn.0043e3b0
mov esi, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480b91
cmp ebx, 0x10
jb 0x48053f
lea eax, [ebp - 4]
lea eax, [eax + ebx*4]
lea edx, [esi - 2]
lea edx, [edx + ebx*2]
cmp esi, eax
ja 0x4804a7
cmp edx, ebp
jae 0x48053f
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 0x4804c0
cmp ecx, ebx
jae 0x480b91
nop word [eax + eax]
mov ax, word [ebp + ecx*4 + 2]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480550
jmp 0x480b91
cmp cx, 3
jne 0x480b98
cmp ax, 0x20
jne 0x480853
shr ebx, 2
lea eax, [ebx*4 + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
je 0x480879
push edi
push 4
add eax, 0xf
push ebx
push eax
mov dword [0x54e67c], eax
call fcn.0048a775
add esp, 0x10
cmp eax, 4
jne 0x4808b5
cmp word [esp + 0x14], 2
mov esi, dword [0x54e67c]
jne 0x48076b
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x480706
lea ebp, [ebx - 1]
sub eax, 1
je 0x480695
movss xmm1, dword [0x4e2a30]
xor ecx, ecx
cmp ebp, 4
jb 0x480668
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 0x480610
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480689
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 0x480670
mov dword [esi + ecx*4], 0
jmp 0x48076b
xor ecx, ecx
cmp ebp, 4
jb 0x4806e0
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 0x4806b6
mov edi, dword [esp + 0x30]
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x480689
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 0x4806f0
mov dword [esi + ecx*4], 0
jmp 0x48076b
mov ecx, 1
cmp ebx, ecx
jbe 0x48076b
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480758
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 0x480731
mov edi, dword [esp + 0x30]
cmp ecx, ebx
jae 0x48076b
nop dword [eax]
mov eax, dword [esi + ecx*8]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x480760
mov edx, ebx
mov ecx, esi
call fcn.0043e510
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480b91
cmp ebx, 0x10
jb 0x480834
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x4807a6
cmp ebp, esi
jae 0x480834
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 0x4807b5
cmp ecx, ebx
jae 0x480b91
nop dword [eax]
cvttss2si eax, dword [esi + ecx*4]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480840
jmp 0x480b91
cmp ax, 0x40
jne 0x480b98
shr ebx, 3
lea eax, [ebx*8 + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [0x54e680], eax
test eax, eax
jne 0x48089b
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.0048a775
add esp, 0x10
cmp eax, 8
je 0x4808cd
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 0x480ab1
movsx eax, bp
shr ebx, 1
sub eax, 1
je 0x480a32
lea ebp, [ebx - 1]
sub eax, 1
je 0x4809aa
movsd xmm1, qword [0x4e2ad0]
xor ecx, ecx
cmp ebp, 4
jb 0x480978
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 0x480920
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48099d
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 0x480983
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x480ab1
xor ecx, ecx
cmp ebp, 4
jb 0x480a06
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 0x4809d0
lea ebp, [ebx - 1]
cmp ecx, ebp
jae 0x48099d
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 0x480a14
xorps xmm0, xmm0
movsd qword [esi + ecx*8], xmm0
jmp 0x480ab1
mov edx, 1
cmp ebx, edx
jbe 0x480ab1
lea eax, [ebx - 1]
cmp eax, 4
jb 0x480a93
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 0x480a60
cmp edx, ebx
jae 0x480ab1
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 0x480aa0
mov edx, ebx
mov ecx, esi
call fcn.0043e6c0
mov edx, dword [0x54e67c]
xor ecx, ecx
test ebx, ebx
je 0x480b91
cmp ebx, 8
jb 0x480b7f
lea eax, [esi - 8]
lea eax, [eax + ebx*8]
lea ebp, [edx - 2]
lea ebp, [ebp + ebx*2]
cmp edx, eax
ja 0x480aec
cmp ebp, esi
jae 0x480b7f
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 0x480b00
cmp ecx, ebx
jae 0x480b91
cvttsd2si eax, qword [esi + ecx*8]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x480b83
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.00437150
movzx eax, byte [0x789f67]
add esp, 4
mov edx, dword [esp + 0x48]
mov ecx, 0x54e660
push eax
call fcn.00432870
mov eax, dword [esp + 0x50]
add esp, 4
mov byte [0x54e684], 0x40
mov byte [0x54e686], 0x80
mov dword [0x54e688], ebx
test eax, eax
je 0x480c95
cmp dword [esp + 0x50], 0x34
jbe 0x480c95
push 0
add eax, 0x1c
push eax
push edi
call fcn.0048a035
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a775
add esp, 0x10
cmp dword [esp + 0x64], 1
jne 0x480c95
push 1
push 8
push edi
call fcn.0048a035
add esp, 0xc
lea eax, [esp + 0x44]
push edi
push 1
push 4
push eax
call fcn.0048a775
push edi
push 1
lea eax, [esp + 0x64]
push 4
push eax
call fcn.0048a775
push edi
push 1
lea eax, [esp + 0x78]
push 4
push eax
call fcn.0048a775
mov ecx, dword [esp + 0x80]
add esp, 0x30
inc ecx
cmp ecx, ebx
ja 0x480c95
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 0x480d36
cmp dword [esp + 0x58], 8
jb 0x480d36
push 0
push eax
push edi
call fcn.0048a035
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push 1
push 4
push eax
call fcn.0048a775
add esp, 0x10
test byte [esp + 0x64], 0x20
je 0x480cfd
push edi
push 1
lea eax, [esp + 0x60]
push 2
push eax
call fcn.0048a775
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 0x480d0a
push 1
push 2
push edi
call fcn.0048a035
add esp, 0xc
push edi
push 1
lea eax, [esp + 0x5c]
push 2
push eax
call fcn.0048a775
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 0x480d7b
mov esi, dword [esp + 0x60]
test esi, esi
je 0x480d7b
push 0
push eax
push edi
call fcn.0048a035
add esp, 0xc
mov eax, 0x16
cmp esi, eax
cmova esi, eax
push edi
push esi
push 1
push 0x54e660
call fcn.0048a775
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