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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
lea edx, [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x34], eax
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4bddd5
mov ecx, dword [esi + 4]
cmp dword [edi + 0x58], eax
je 0x4bddbf
mov eax, dword [esi]
cmp eax, ecx
jne 0x4bdd9b
push eax
push 5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c5ca0
add esp, 0x18
movss xmm0, dword [0x54f0c8]
xor eax, eax
movss dword [esi + 0x74], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x3c]
push dword [ebp + 0x14]
push ecx
push dword [esp + 0x54]
push dword [ebp + 0x10]
call fcn.004d67d0
add esp, 0x28
jmp 0x4bdd86
push ecx
push 5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.004c5d60
add esp, 0x14
jmp 0x4bdd86
mov eax, dword [esi + 4]
lea ecx, [esi + 0x20]
mov dword [esp + 0x30], eax
xor edx, edx
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x10], eax
lea ecx, [esi + 0x24]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x38], eax
lea ecx, [esi + 0x28]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x3c], eax
lea ecx, [esi + 0x38]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x6c], eax
lea eax, [edi + 0x54]
push eax
call fcn.004c37e0
movq xmm0, qword [edi + 0x48]
lea ecx, [edi + 0x54]
mov eax, dword [edi + 0x50]
add esp, 4
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x90], eax
test ecx, ecx
je 0x4bde4d
xor eax, eax
xchg dword [ecx], eax
movss xmm0, dword [edi + 0x18]
lea ecx, [esi + 0x10]
movss dword [esp + 0x7c], xmm0
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
cmp eax, 1
je 0x4bdea9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
push edi
push esi
call fcn.004be800
movq xmm0, qword [esp + 0x50]
add esp, 0x10
mov eax, dword [esp + 0x48]
movq qword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
movq qword [esp + 0x58], xmm0
jmp 0x4bdf05
lea edi, [esi + 0x50]
push edi
call fcn.004c37e0
movq xmm0, qword [esi + 0x44]
add esp, 4
mov ecx, dword [esi + 0x4c]
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x54], ecx
test edi, edi
je 0x4bded2
xor eax, eax
xchg dword [edi], eax
lea edi, [esi + 0x60]
movq qword [esp + 0x40], xmm0
push edi
mov dword [esp + 0x4c], ecx
call fcn.004c37e0
movq xmm0, qword [esi + 0x54]
add esp, 4
mov eax, dword [esi + 0x5c]
movq qword [esp + 0x58], xmm0
mov dword [esp + 0xc], eax
test edi, edi
je 0x4bdf02
xor eax, eax
xchg dword [edi], eax
mov edi, dword [ebp + 0xc]
movss xmm1, dword [esp + 0x44]
movss xmm0, dword [esp + 0x40]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x48]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4bdf3d
sqrtsd xmm0, xmm0
jmp 0x4bdf42
call fcn.00513f10
xorps xmm4, xmm4
lea edx, [esi + 0xc]
cvtsd2ss xmm4, xmm0
xor ecx, ecx
xor eax, eax
movss dword [esp + 0x50], xmm4
lock cmpxchg dword [edx], ecx
movss xmm6, dword [0x552040]
movss xmm0, dword [0x54f0c8]
cmp eax, 3
ja case.0x4bdf73.0
jmp dword [eax*4 + 0x4be7f0]
movss xmm1, dword [esp + 0x10]
movss xmm3, dword [esp + 0x38]
comiss xmm1, xmm3
jae case.0x4bdf73.0
movaps xmm2, xmm4
minss xmm2, xmm3
comiss xmm1, xmm2
jbe 0x4bdf9e
movaps xmm2, xmm1
subss xmm2, xmm1
mulss xmm2, dword [esp + 0x3c]
addss xmm2, xmm1
divss xmm1, xmm2
jmp 0x4be04f
movss xmm1, dword [esp + 0x10]
movss xmm3, dword [esp + 0x38]
comiss xmm1, xmm3
jae case.0x4bdf73.0
movaps xmm2, xmm4
minss xmm2, xmm3
comiss xmm1, xmm2
jbe 0x4bdfd9
movaps xmm2, xmm1
subss xmm2, xmm1
subss xmm3, xmm1
movaps xmm1, xmm0
mulss xmm2, dword [esp + 0x3c]
divss xmm2, xmm3
subss xmm1, xmm2
jmp 0x4be04f
movss xmm1, dword [esp + 0x10]
movss xmm2, dword [esp + 0x38]
comiss xmm1, xmm2
jae case.0x4bdf73.0
movaps xmm0, xmm4
minss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x4be014
movaps xmm0, xmm1
divss xmm0, xmm1
movss xmm1, dword [esp + 0x3c]
xorps xmm1, xmm6
cvtps2pd xmm0, xmm0
cvtss2sd xmm1, xmm1
call fcn.005131f0
movss xmm4, dword [esp + 0x50]
xorps xmm1, xmm1
movss xmm6, dword [0x552040]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x54f0c8]
jmp 0x4be04f
movaps xmm1, xmm0
comiss xmm4, dword [0x551f2c]
movss dword [esp + 0x10], xmm1
jbe 0x4be215
divss xmm0, xmm4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
movq xmm2, qword [esp + 0x80]
movss xmm5, dword [esp + 0x20]
movq qword [esp + 0x18], xmm2
movss xmm3, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x40]
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm4, xmm0
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x20], xmm5
jbe 0x4be21e
xor edx, edx
lea ecx, [esi + 0x2c]
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x78], eax
lea ecx, [esi + 0x30]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [esp + 0x74], eax
lea ecx, [esi + 0x34]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
sub esp, 0x18
mov dword [esp + 0x88], eax
movss xmm0, dword [esp + 0x88]
mov ecx, esp
xorps xmm2, xmm6
xorps xmm3, xmm6
xorps xmm5, xmm6
unpcklps xmm2, xmm3
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esp + 0xc], xmm0
sub esp, 0xc
movq xmm0, qword [esp + 0x7c]
movq qword [ecx], xmm2
movss dword [esp + 0xc4], xmm5
mov eax, dword [esp + 0xc4]
mov dword [ecx + 8], eax
mov eax, esp
mov ecx, dword [esp + 0x30]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
call fcn.004d7570
fmul dword [esp + 0x34]
add esp, 0x24
movss xmm2, dword [edi + 0xc]
movss xmm0, dword [0x551f78]
comiss xmm0, xmm2
fstp dword [esp + 0xc]
movss xmm1, dword [esp + 0xc]
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x10], xmm1
jbe 0x4be21e
cmp dword [edi + 8], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0xbf800000
je 0x4be1b2
mov dword [esp + 0x60], 0x3f800000
movss xmm0, dword [edi + 0x14]
sub esp, 0x18
mov eax, dword [esp + 0x38]
mov ecx, esp
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x30]
movss dword [esp + 0xc], xmm2
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x7c]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esp + 0x84]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.004d7570
fmul dword [esp + 0x30]
add esp, 0x24
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
jmp 0x4be21e
xorps xmm0, xmm0
movss dword [esp + 0x50], xmm0
lea edx, [esi + 0x1c]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov dword [esp + 0xc], eax
movss xmm0, dword [esp + 0xc]
comiss xmm0, xmm1
jbe 0x4be23d
movaps xmm2, xmm1
jmp 0x4be24f
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov dword [esp + 0xc], eax
movss xmm2, dword [esp + 0xc]
lea edi, [esi + 0x18]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov dword [esp + 0xc], eax
xor ecx, ecx
movss xmm0, dword [esp + 0xc]
xor eax, eax
comiss xmm0, xmm2
jbe 0x4be27f
lock cmpxchg dword [edi], ecx
mov edi, eax
mov dword [esp + 0x10], edi
movss xmm1, dword [esp + 0x10]
jmp 0x4be2ac
lock cmpxchg dword [edx], ecx
mov dword [esp + 0xc], eax
movss xmm0, dword [esp + 0xc]
comiss xmm0, xmm1
ja 0x4be2a8
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edi, eax
mov dword [esp + 0x10], edi
movss xmm1, dword [esp + 0x10]
jmp 0x4be2ac
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
xor ecx, ecx
test edx, edx
je 0x4be370
cmp edx, 4
jb 0x4be316
lea eax, [esi + 0x9c]
mov esi, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [edx - 1]
mov dword [esp + 0x38], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc]
cmp esi, eax
mov esi, dword [ebp + 8]
ja 0x4be2ea
cmp dword [esp + 0x3c], eax
jae 0x4be316
mov eax, edx
and eax, 0xfffffffc
nop
add ecx, 4
cmp ecx, eax
jb 0x4be2f0
shr eax, 2
shl eax, 4
shr eax, 2
mov dword [esp + 0xc], ecx
mov ecx, eax
mov eax, edi
mov edi, dword [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
cmp ecx, edx
jae 0x4be370
mov eax, edx
sub eax, ecx
cmp eax, 4
jb 0x4be358
lea edi, [edx - 3]
mov eax, dword [esi + 0x9c]
movss dword [eax + ecx*4], xmm1
mov eax, dword [esi + 0x9c]
movss dword [eax + ecx*4 + 4], xmm1
mov eax, dword [esi + 0x9c]
movss dword [eax + ecx*4 + 8], xmm1
mov eax, dword [esi + 0x9c]
movss dword [eax + ecx*4 + 0xc], xmm1
add ecx, 4
cmp ecx, edi
jb 0x4be322
cmp ecx, edx
jae 0x4be370
nop dword [eax]
mov eax, dword [esi + 0x9c]
movss dword [eax + ecx*4], xmm1
inc ecx
cmp ecx, edx
jb 0x4be360
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x58], 0
je 0x4be3a0
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [ebp + 0x14]
push edx
push dword [esp + 0x54]
push dword [ebp + 0x10]
call fcn.004d67d0
add esp, 0x28
jmp 0x4be3b6
push dword [esi + 4]
push 5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.004c5d60
add esp, 0x14
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4be3d9
push 0xc55a
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pChannelMapOut_____void__0_
call fcn.00512209
mov ecx, dword [esp + 0x40]
add esp, 0xc
movss xmm3, dword [esp + 0x50]
xorps xmm2, xmm2
comiss xmm3, xmm2
jbe 0x4be4ea
movq xmm0, qword [esp + 0x80]
xor edi, edi
movss xmm1, dword [0x54f0c8]
movq qword [esp + 0x18], xmm0
movaps xmm0, xmm1
divss xmm0, xmm3
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
movss xmm3, dword [esp + 0x40]
movss xmm5, dword [esp + 0x1c]
movss xmm6, dword [esp + 0x20]
mulss xmm3, xmm0
mulss xmm5, xmm0
mulss xmm6, xmm0
movss dword [esp + 0x28], xmm3
test eax, eax
je 0x4be4ea
movss xmm7, dword [0x551f40]
nop dword [eax + eax]
test ecx, ecx
jne 0x4be467
push edi
push eax
push ecx
call fcn.004dc910
add esp, 0xc
mov byte [esp + 0x17], al
mov cl, al
jmp 0x4be46e
mov cl, byte [edi + ecx]
mov byte [esp + 0x17], cl
test cl, cl
je 0x4be4b1
cmp cl, 1
je 0x4be4b1
cmp cl, 5
je 0x4be4b1
mov al, cl
sub al, 0x14
cmp al, 0x1f
jbe 0x4be4b1
movzx eax, cl
xor edx, edx
mov dword [esp + 0x2c], eax
lea eax, [eax + eax*2]
lea ecx, [eax*8 + 0xc5cbb8]
movss xmm0, dword [ecx]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x4be592
inc edx
add ecx, 4
cmp edx, 6
jl 0x4be497
movaps xmm0, xmm1
movss xmm3, dword [esi + 0x78]
addss xmm0, xmm1
mulss xmm0, xmm7
comiss xmm0, xmm3
ja 0x4be4c9
movaps xmm0, xmm3
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x34]
mulss xmm0, dword [eax + edi*4]
movss dword [eax + edi*4], xmm0
inc edi
mov eax, dword [esp + 0x30]
cmp edi, eax
jb 0x4be450
lea edx, [esi + 0x7c]
test edx, edx
je 0x4be638
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4be61d
xor edi, edi
cmp dword [edx], edi
jbe 0x4be57d
mov esi, eax
nop
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
movss xmm4, dword [esi + edi*4]
movss xmm2, dword [eax + edi*4]
mov eax, dword [edx + 8]
subss xmm2, dword [ecx + edi*4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x552010]
mov eax, dword [edx + 4]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x552010]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm2, xmm1
addss xmm2, dword [ecx + edi*4]
movss dword [ecx + edi*4], xmm2
mov eax, dword [edx + 0x14]
movss dword [eax + edi*4], xmm4
inc edi
cmp edi, dword [edx]
jb 0x4be510
mov esi, dword [ebp + 8]
cmp dword [edx + 8], 0xffffffff
jne 0x4be614
mov eax, dword [edx + 4]
mov dword [edx + 8], eax
jmp 0x4be621
cmp byte [esp + 0x17], 0x34
jb 0x4be5a9
movss xmm4, dword [0x551fc4]
movaps xmm3, xmm2
movaps xmm0, xmm2
jmp 0x4be5dc
mov eax, dword [esp + 0x2c]
lea eax, [eax + eax*2]
movq xmm0, qword [eax*4 + 0xc5c920]
mov eax, dword [eax*4 + 0xc5c928]
movq qword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x1c]
movss xmm3, dword [esp + 0x18]
mov dword [esp + 0x20], eax
movss xmm4, dword [esp + 0x20]
xor edx, edx
lea ecx, [esi + 0x3c]
xor eax, eax
lock cmpxchg dword [ecx], edx
mulss xmm3, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mulss xmm0, xmm5
mulss xmm4, xmm6
addss xmm0, xmm3
addss xmm0, xmm4
subss xmm0, xmm1
mulss xmm0, dword [esp + 0x2c]
addss xmm0, xmm1
jmp 0x4be4b4
mov dword [edx + 8], 0
jmp 0x4be621
test edx, edx
je 0x4be638
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x18]
push eax
push eax
push edx
call fcn.004d5ec0
add esp, 0x14
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x6c]
comiss xmm0, xmm2
jbe 0x4bdd86
lea edi, [esi + 0x50]
push edi
call fcn.004c37e0
movq xmm0, qword [esi + 0x44]
add esp, 4
mov eax, dword [esi + 0x4c]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
test edi, edi
je 0x4be66d
xor eax, eax
xchg dword [edi], eax
mov edi, dword [ebp + 0xc]
add edi, 0x34
push edi
call fcn.004c37e0
mov eax, dword [ebp + 0xc]
add esp, 4
movq xmm0, qword [eax + 0x28]
mov eax, dword [eax + 0x30]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
test edi, edi
je 0x4be699
xor eax, eax
xchg dword [edi], eax
movss xmm0, dword [esp + 0x18]
lea edi, [esi + 0x70]
subss xmm0, dword [esp + 0x40]
push edi
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x48]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x34], xmm0
call fcn.004c37e0
movq xmm0, qword [esi + 0x64]
add esp, 4
mov eax, dword [esi + 0x6c]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
test edi, edi
je 0x4be6f5
xor eax, eax
xchg dword [edi], eax
movss xmm1, dword [esp + 0x28]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4be72d
sqrtsd xmm0, xmm0
jmp 0x4be732
call fcn.00513f10
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
xorps xmm0, xmm0
ucomiss xmm5, xmm0
lahf
test ah, 0x44
jnp 0x4bdd86
movss xmm3, dword [esp + 0xc]
movss xmm1, dword [esp + 0x28]
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x88]
movaps xmm2, xmm1
mulss xmm2, dword [esp + 0x8c]
mulss xmm1, dword [esp + 0x1c]
movss xmm4, dword [esp + 0x30]
addss xmm2, xmm0
mulss xmm3, dword [esp + 0x18]
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x90]
mulss xmm4, dword [esp + 0x20]
addss xmm1, xmm3
movss xmm3, dword [esp + 0x6c]
addss xmm2, xmm0
addss xmm1, xmm4
movss xmm4, dword [esp + 0x7c]
movaps xmm0, xmm4
divss xmm2, xmm5
divss xmm0, xmm3
divss xmm1, xmm5
comiss xmm0, xmm2
ja 0x4be7c4
movaps xmm2, xmm0
comiss xmm0, xmm1
ja 0x4be7cc
movaps xmm1, xmm0
mulss xmm2, xmm3
movaps xmm0, xmm4
xor eax, eax
mulss xmm1, xmm3
pop edi
subss xmm0, xmm2
subss xmm4, xmm1
divss xmm0, xmm4
movss dword [esi + 0x74], xmm0
pop esi
mov esp, ebp
pop ebp
ret