Function at 0x4457a0
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x4fc00c]
xor eax, esp
mov dword [esp + 0x230], eax
movzx edx, word [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], edx
movzx ecx, word [ebp + 8]
push esi
push edi
movzx eax, word [ebx]
cmp dx, ax
jae 0x445ac8
cmp byte [ebp + 0x10], 0
je 0x4457e6
mov word [ebx + 2], cx
jmp 0x445873
mov ecx, 0xffff
xor edi, edi
mov word [ebx + 2], cx
xor ecx, ecx
cmp cx, ax
jae 0x445873
mov ecx, eax
nop word [eax + eax]
movzx eax, cx
cmp di, dx
je 0x44586a
movzx eax, cx
cmp di, cx
jae 0x44586a
movzx eax, di
imul esi, eax, 0x378
add esi, dword [ebx + 4]
cmp byte [ebx + 0xd0], 3
jne 0x445832
push ecx
push 0
lea ecx, [esi + 0x50]
call fcn.004491e0
jmp 0x44584e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x445852
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esi + 4]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov byte [esi + 0x43], 1
mov edx, dword [esp + 0x24]
xorps xmm0, xmm0
mov dword [esi + 0x364], 0
movsd qword [esi + 0x368], xmm0
movzx eax, word [ebx]
inc edi
movzx ecx, ax
cmp di, ax
jb 0x445800
mov edi, dword [ebp + 0xc]
movzx eax, dx
imul esi, eax, 0x378
mov dword [esp + 0x24], eax
add esi, dword [ebx + 4]
cmp dword [esi + 0x364], 2
jne 0x44589c
cmp word [esi + 0x360], di
je 0x445ac8
push edi
push edx
mov ecx, ebx
call fcn.00445500
test al, al
jne 0x4458d5
movzx eax, di
push eax
movzx eax, word [esi + 0x360]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x44]
push str.CS9SS::Play_LoadTrack_Failed__d____d__d__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x38]
jmp 0x445ac1
mov eax, dword [ebx + 8]
mov dl, byte [eax]
test dl, dl
jne 0x4458ff
mov dword [esi + 0x364], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 9
movzx eax, dl
cmp dl, cl
cmovb ecx, eax
cmp byte [ebp + 0x10], 0
mov al, byte [ebx + 0xd0]
movsd xmm2, qword [ecx*8 + 0x4f1028]
movsd qword [esp + 0x30], xmm2
jne 0x4459b0
movsd xmm1, qword [0x4f3de8]
comisd xmm2, xmm1
movsd qword [esp + 0x28], xmm1
ja 0x4459e2
xorps xmm0, xmm0
cmp al, 3
jne 0x445982
comisd xmm0, xmm2
ja 0x4459e2
mov ecx, dword [esi + 0x328]
movaps xmm0, xmm2
subsd xmm0, xmm1
mulsd xmm0, xmm1
cvttsd2si edx, xmm0
mov dword [esi + 0x34c], edx
test ecx, ecx
je 0x4459e2
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x3c]
movsd xmm1, qword [esp + 0x28]
jmp 0x4459e2
comisd xmm0, xmm2
ja 0x4459e2
mov ecx, dword [esi + 4]
movaps xmm0, xmm2
subsd xmm0, xmm1
mulsd xmm0, xmm1
cvttsd2si edx, xmm0
mov dword [esi + 0x20], edx
test ecx, ecx
je 0x4459e2
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x3c]
movsd xmm1, qword [esp + 0x28]
jmp 0x4459e2
cmp al, 3
jne 0x4459c6
mov ecx, dword [esi + 0x328]
mov dword [esi + 0x34c], 0xffffd8f0
jmp 0x4459d0
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], 0xffffd8f0
test ecx, ecx
je 0x4459df
mov eax, dword [ecx]
push 0xffffd8f0
push ecx
call dword [eax + 0x3c]
xorps xmm1, xmm1
movsd qword [esi + 0x368], xmm1
cmp byte [ebx + 0xd0], 3
jne 0x445a00
push ecx
push 2
lea ecx, [esi + 0x50]
call fcn.004491e0
jmp 0x445a6f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x445a6f
mov word [esi + 0x42], 1
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x34]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x447e60
push 0
push 0
mov dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x445a54
mov ecx, str.Csp9:_Thread_Create_Failed
call fcn.0044cef0
jmp 0x445a6f
mov eax, dword [esi + 4]
push dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi + 4]
push 1
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
movsd xmm0, qword [esi + 0x368]
sub esp, 0x10
movzx eax, di
mov dword [esi + 0x364], 2
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
push eax
movzx eax, word [esi + 0x360]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x154]
push str.CS9SS::Play__d__Track:__d__d__volume:__f__f__n
push eax
call fcn.00446060
add esp, 0x24
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret 0xc