Function at 0x40ec4c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x536260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
push esi
push str.EqualizerCallback
push str._s_cmd__d_index__d_n
mov edi, ecx
mov dword [ebp - 0x22c], ebx
call fcn.0042e448
add esp, 0x10
test esi, esi
jne 0x40f22c
push dword [edi + 0x13ac]
lea ecx, [edi + 0x228]
call fcn.0041cb78
mov ecx, dword [edi + 0x13ac]
mov esi, eax
mov dword [ebp - 0x210], esi
mov eax, dword [edi + ecx*4 + 0x136c]
shl ecx, 6
mov dword [ebp - 0x214], eax
cmp dword [ecx + edi + 0x270], ebx
jle 0x40f505
mov ecx, dword [edi + 0xdb514]
mov edx, ebx
shl edx, 4
add esi, edx
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x228], esi
mov eax, dword [ecx + edx + 0x558]
movss xmm1, dword [ecx + edx + 0x554]
mov dword [ebp - 0x220], eax
lea eax, [ebx + 0x55]
add eax, eax
movss dword [ebp - 0x21c], xmm1
movss xmm0, dword [ecx + eax*8]
mov eax, dword [ebp - 0x220]
movss dword [ebp - 0x224], xmm0
cmp dword [esi + 8], eax
jne 0x40eda9
movss xmm0, dword [esi + 4]
subss xmm0, xmm1
push ecx
push ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b8866
movsd xmm0, qword [0x4f5a18]
fstp dword [ebp - 0x208]
fld dword [ebp - 0x208]
fstp qword [ebp - 0x238]
comisd xmm0, xmmword [ebp - 0x238]
pop ecx
pop ecx
jbe 0x40eda9
movss xmm0, dword [esi]
subss xmm0, dword [ebp - 0x224]
push ecx
push ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b8866
movsd xmm0, qword [0x4f5a18]
fstp dword [ebp - 0x208]
fld dword [ebp - 0x208]
fstp qword [ebp - 0x238]
comisd xmm0, xmmword [ebp - 0x238]
pop ecx
pop ecx
jbe 0x40eda9
cmp byte [esi + 0xc], 1
je 0x40f505
mov eax, dword [edi + 0x13ac]
xor ebx, ebx
shl eax, 6
cmp byte [eax + edi + 0x284], 1
jne 0x40ef89
mov dword [ebp - 0x218], ebx
cmp dword [eax + edi + 0x270], ebx
jle 0x40ee81
mov esi, dword [ebp - 0x210]
add esi, 4
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.004b8866
fstp dword [ebp - 0x208]
fld dword [ebp - 0x208]
fstp dword [ebp - 0x208]
movss xmm0, dword [ebp - 0x208]
comiss xmm0, dword [0x4f92ec]
pop ecx
pop ecx
jbe 0x40ee55
movss xmm0, dword [esi]
movzx eax, word [esi + 4]
and dword [esi - 4], ebx
push ebx
push ecx
push ecx
and dword [esp + 4], ebx
lea ecx, [edi + 0xdc184]
movss dword [esp], xmm0
push eax
push dword [ebp - 0x218]
mov byte [esi + 8], 1
movzx eax, byte [edi + 0x13ac]
push eax
movzx eax, byte [edi + 0x260]
push ebx
push eax
call fcn.0048afaf
mov eax, dword [edi + 0x13ac]
add esi, 0x10
mov ecx, dword [ebp - 0x218]
shl eax, 6
inc ecx
mov dword [ebp - 0x218], ecx
cmp ecx, dword [eax + edi + 0x270]
jl 0x40edde
mov esi, dword [ebp - 0x228]
cmp dword [edi + 0x13b0], 1
mov eax, dword [ebp - 0x214]
jne 0x40ef8f
cmp eax, 0xffffffff
je 0x40ef8f
push eax
lea ecx, [edi + 0x228]
call fcn.0041cb78
mov edx, eax
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x214]
mov ecx, eax
shl ecx, 6
mov dword [ebp - 0x234], ecx
cmp dword [ecx + edi + 0x270], ebx
jle 0x40ef8f
mov esi, dword [ebp - 0x214]
lea eax, [edx + 4]
mov dword [ebp - 0x208], eax
movss xmm0, dword [eax - 4]
cvtps2pd xmm0, xmm0
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.004b8866
fstp dword [ebp - 0x230]
fld dword [ebp - 0x230]
fstp dword [ebp - 0x230]
movss xmm0, dword [ebp - 0x230]
comiss xmm0, dword [0x4f92ec]
pop ecx
pop ecx
jbe 0x40ef54
mov eax, dword [ebp - 0x208]
push ebx
push ecx
push ecx
and dword [esp + 4], ebx
lea ecx, [edi + 0xdc184]
movss xmm0, dword [eax]
and dword [eax - 4], ebx
movss dword [esp], xmm0
mov byte [eax + 8], 1
movzx eax, word [eax + 4]
push eax
push dword [ebp - 0x218]
movzx eax, byte [edi + 0x260]
push esi
push ebx
push eax
call fcn.0048afaf
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, dword [ebp - 0x208]
add eax, 0x10
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x208], eax
cmp ecx, dword [edx + edi + 0x270]
jl 0x40eede
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x214]
movss xmm0, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x224]
mov dword [esi + 8], ecx
movss dword [esi], xmm0
mov byte [esi + 0xc], 1
cmp dword [edi + 0x13b0], 1
jne 0x40efff
cmp eax, 0xffffffff
je 0x40efff
push eax
lea ecx, [edi + 0x228]
call fcn.0041cb78
mov ecx, dword [ebp - 0x20c]
movss xmm0, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
movss dword [ecx + eax + 4], xmm0
movss xmm0, dword [ebp - 0x224]
mov dword [ecx + eax + 8], edx
movss dword [ecx + eax], xmm0
mov byte [ecx + eax + 0xc], 1
ucomiss xmm0, dword [0x4f59f8]
lahf
test ah, 0x44
jnp 0x40f020
push 1
mov ecx, edi
call fcn.00417315
mov dword [ebp - 0x210], ebx
jmp 0x40f0ce
mov eax, dword [edi + 0x13ac]
shl eax, 6
mov dword [ebp - 0x21c], ebx
cmp dword [eax + edi + 0x270], ebx
jle 0x40f0bc
mov esi, ebx
mov eax, dword [ebp - 0x210]
push ecx
push ecx
movss xmm0, dword [eax]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b8866
mov eax, dword [edi + 0x13ac]
add dword [ebp - 0x210], 0x10
movd xmm0, esi
cvtdq2ps xmm0, xmm0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
shl eax, 6
inc ecx
fstp dword [ebp - 0x20c]
fld dword [ebp - 0x20c]
movss dword [ebp - 0x20c], xmm0
fadd dword [ebp - 0x20c]
mov dword [ebp - 0x21c], ecx
fstp dword [ebp - 0x20c]
cvttss2si esi, dword [ebp - 0x20c]
cmp ecx, dword [eax + edi + 0x270]
jl 0x40f03e
test esi, esi
mov esi, dword [ebp - 0x228]
jne 0x40f00c
push ebx
mov ecx, edi
call fcn.00417315
mov dword [ebp - 0x210], 1
movss xmm0, dword [esi]
lea ecx, [edi + 0xdc184]
movzx eax, word [esi + 8]
push ebx
push ecx
push ecx
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 4]
movss dword [esp], xmm0
push eax
push dword [ebp - 0x22c]
movzx eax, byte [edi + 0x13ac]
push eax
movzx eax, byte [edi + 0x260]
push ebx
push eax
call fcn.0048afaf
mov edx, dword [edi + 0x13ac]
mov ecx, dword [ebp - 0x210]
shl edx, 6
movzx eax, byte [edx + edi + 0x284]
cmp eax, ecx
je 0x40f15c
mov byte [edx + edi + 0x284], cl
mov eax, dword [edi + 0x13ac]
mov cl, byte [edi + 0x13ac]
shl eax, 6
push ebx
add eax, 0x284
add eax, edi
push eax
movzx eax, byte [edi + 0x260]
push ecx
push ecx
push ebx
push eax
lea ecx, [edi + 0xdc184]
call fcn.0048e83c
cmp dword [edi + 0x13b0], 1
jne 0x40f1f1
cmp dword [ebp - 0x214], 0xffffffff
je 0x40f1f1
movss xmm0, dword [esi]
movzx eax, word [esi + 8]
push ebx
push ecx
push ecx
movss dword [esp + 4], xmm0
lea ecx, [edi + 0xdc184]
movss xmm0, dword [esi + 4]
mov esi, dword [ebp - 0x214]
movss dword [esp], xmm0
push eax
push dword [ebp - 0x22c]
movzx eax, byte [edi + 0x260]
push esi
push ebx
push eax
call fcn.0048afaf
mov eax, esi
lea ecx, [edi + 0x284]
shl eax, 6
add ecx, eax
movzx eax, byte [ecx]
cmp eax, dword [ebp - 0x210]
je 0x40f1f1
mov eax, dword [edi + 0x13ac]
push ebx
push ecx
shl eax, 6
push esi
push esi
push ebx
mov al, byte [eax + edi + 0x284]
mov byte [ecx], al
lea ecx, [edi + 0xdc184]
movzx eax, byte [edi + 0x260]
push eax
call fcn.0048e83c
push dword [edi + 0x13ac]
mov ecx, edi
call fcn.0041b17a
mov ebx, dword [ebp - 0x22c]
mov ecx, edi
push ebx
call fcn.0041b3a4
mov ecx, dword [edi + ebx*4 + 0xdb780]
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov ecx, dword [edi + ebx*4 + 0xdb780]
call fcn.0045fe54
jmp 0x40f505
cmp esi, 1
jne 0x40f38d
mov eax, dword [edi + 0xdb514]
push dword [eax + 0x740]
lea eax, [ebp - 0x204]
push str.EqualizerCallback_mLpFreq__d__n
push eax
call fcn.00405c58
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xdb514]
lea ecx, [edi + 0x288]
push dword [eax + 0x740]
mov eax, dword [edi + 0x13ac]
shl eax, 6
add ecx, eax
call fcn.0040de1e
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de02
push eax
lea eax, [ebp - 0x204]
push str._dHz
push eax
call fcn.00405c58
mov ecx, dword [edi + 0xdb880]
lea edx, [ebp - 0x204]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
xor ebx, ebx
push ebx
add ecx, eax
call fcn.0040de0a
push eax
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de06
push eax
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de02
push eax
movzx eax, byte [edi + 0x13ac]
lea ecx, [edi + 0xdc184]
push 2
push eax
movzx eax, byte [edi + 0x260]
push ebx
push eax
call fcn.0048b0e5
mov eax, dword [edi + 0x13ac]
mov eax, dword [edi + eax*4 + 0x136c]
mov dword [ebp - 0x20c], eax
cmp dword [edi + 0x13b0], esi
jne 0x40f4fc
cmp eax, 0xffffffff
je 0x40f4fc
shl eax, 6
lea esi, [edi + 0x288]
add esi, eax
mov eax, dword [edi + 0xdb514]
mov ecx, esi
push dword [eax + 0x740]
call fcn.0040de1e
push ebx
mov ecx, esi
call fcn.0040de0a
push eax
mov ecx, esi
call fcn.0040de06
push eax
mov ecx, esi
call fcn.0040de02
push eax
push 2
jmp 0x40f4e2
cmp esi, 2
jne 0x40f505
mov eax, dword [edi + 0xdb514]
push dword [eax + 0x744]
lea eax, [ebp - 0x204]
push str.EqualizerCallback_mLpFreq__d__n
push eax
call fcn.00405c58
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xdb514]
lea ecx, [edi + 0x288]
push dword [eax + 0x744]
mov eax, dword [edi + 0x13ac]
shl eax, 6
add ecx, eax
call fcn.0040de83
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de12
push eax
lea eax, [ebp - 0x204]
push str._dHz
push eax
call fcn.00405c58
mov ecx, dword [edi + 0xdb884]
lea edx, [ebp - 0x204]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
xor ebx, ebx
push ebx
add ecx, eax
call fcn.0040de1a
push eax
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de16
push eax
mov eax, dword [edi + 0x13ac]
lea ecx, [edi + 0x288]
shl eax, 6
add ecx, eax
call fcn.0040de12
push eax
movzx eax, byte [edi + 0x13ac]
lea ecx, [edi + 0xdc184]
push 1
push eax
movzx eax, byte [edi + 0x260]
push ebx
push eax
call fcn.0048b0e5
cmp dword [edi + 0x13b0], 1
mov eax, dword [edi + 0x13ac]
mov eax, dword [edi + eax*4 + 0x136c]
mov dword [ebp - 0x20c], eax
jne 0x40f4fc
cmp eax, 0xffffffff
je 0x40f4fc
shl eax, 6
lea esi, [edi + 0x288]
add esi, eax
mov eax, dword [edi + 0xdb514]
mov ecx, esi
push dword [eax + 0x744]
call fcn.0040de83
push ebx
mov ecx, esi
call fcn.0040de1a
push eax
mov ecx, esi
call fcn.0040de16
push eax
mov ecx, esi
call fcn.0040de12
push eax
push 1
push dword [ebp - 0x20c]
movzx eax, byte [edi + 0x260]
lea ecx, [edi + 0xdc184]
push ebx
push eax
call fcn.0048b0e5
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041b3a4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495b3a
mov esp, ebp
pop ebp
ret 8