Function at 0x442380
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a16b
push eax
mov eax, dword [0x7dedfc]
mov dword fs:[0], esp
sub esp, 0x1fc
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x442799
mov eax, dword [0x7e0de4]
mov ecx, dword [esp + 0x21c]
cmp eax, 1
jne 0x4423d7
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
test byte [eax*8 + 0x7c90f8], 8
jne 0x442799
lea eax, [ecx*8]
mov esi, 0x4befa4
sub eax, ecx
lea ebp, [eax + eax*4]
shl ebp, 3
lea edi, [ebp + 0x7c8fe8]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x44241e
test cl, cl
je 0x442417
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x44241e
add eax, 2
add esi, 2
test cl, cl
jne 0x4423f3
xor eax, eax
or esi, 0xffffffff
jmp 0x442427
sbb eax, eax
mov esi, 0xffffffff
sbb eax, esi
test eax, eax
je 0x442799
push 0x4a3008
push edi
call fcn.00465928
add esp, 8
test eax, eax
jne 0x44246a
push edi
lea eax, [esp + 0xe4]
push str.cl_Sound:_Cant_open__s_n
push eax
call fcn.00465066
add esp, 0xc
lea ecx, [esp + 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x442799
push eax
call fcn.00465740
add esp, 4
lea ecx, [esp + 0x34]
call fcn.0042fc70
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x218], 0
call fcn.0042fca0
test eax, eax
jne 0x442789
mov eax, dword [ebp + 0x7c90fc]
lea ebx, [ebp + 0x7c90fc]
test eax, eax
je 0x4424b9
mov edx, dword [esp + 0x21c]
push edx
call fcn.00442840
add esp, 4
mov eax, dword [esp + 0x54]
push eax
call fcn.00466574
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x442789
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
lea ecx, [esp + 0x40]
call fcn.0042fd00
test eax, eax
jl 0x442789
mov edx, dword [esp + 0x34]
cmp word [edx], 1
je 0x4426b8
push 0x10000
lea eax, [esp + 0x24]
push 0x12
push eax
push edx
push 0
mov word [esp + 0x44], 0x12
mov word [esp + 0x34], 1
call sub.MSACM32.dll_acmFormatSuggest
mov edx, dword [esp + 0x34]
push 4
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
lea eax, [esp + 0x28]
push 0
push eax
call sub.MSACM32.dll_acmStreamOpen
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push eax
call sub.MSACM32.dll_acmStreamSize
mov ecx, dword [esp + 0x18]
mov esi, ebp
push ecx
call fcn.00466574
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x442575
mov dword [esp + 0x214], 0xffffffff
jmp 0x442790
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x8c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
mov dword [esp + 0x98], 0x54
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edi
call sub.MSACM32.dll_acmStreamPrepareHeader
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x8c]
push 0x14
push ecx
push edx
call sub.MSACM32.dll_acmStreamConvert
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push edi
push eax
push ecx
call sub.MSACM32.dll_acmStreamConvert
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x8c]
push 0x20
push edx
push eax
call sub.MSACM32.dll_acmStreamConvert
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x8c]
push edi
push ecx
push edx
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov eax, dword [esp + 0x10]
push edi
push eax
call sub.MSACM32.dll_acmStreamClose
mov ecx, dword [esp + 0x34]
mov dx, word [esp + 0x30]
mov word [ecx + 0x10], dx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x34]
mov ax, word [esp + 0x2c]
mov word [edx + 0xc], ax
mov ecx, dword [esp + 0x34]
mov dx, word [esp + 0x22]
mov word [ecx + 2], dx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
mov ax, word [esp + 0x2e]
mov word [edx + 0xe], ax
mov ecx, dword [esp + 0x34]
mov dx, word [esp + 0x20]
mov word [ecx], dx
mov eax, dword [esp + 0x18]
cmp eax, 0x1000
mov dword [esp + 0x14], eax
jbe 0x4426ab
add eax, 0xfffff000
mov dword [esp + 0x14], eax
push esi
call fcn.0046650b
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x68]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
mov eax, dword [0x7dee04]
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x24
mov dword [esp + 0x70], 0x400e2
mov ecx, dword [eax]
push ebx
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x442708
mov dword [esp + 0x214], 0xffffffff
jmp 0x442790
mov eax, dword [ebx]
push 2
push 0
lea edx, [esp + 0x6c]
mov ecx, dword [eax]
push 0
push edx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push edx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x44276a
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x6c]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x44276a
mov dword [esp + 0x214], 0xffffffff
jmp 0x442790
push ebp
call fcn.0046650b
add esp, 4
lea ecx, [esp + 0x34]
call fcn.0042fd30
mov dword [esp + 0x214], 0xffffffff
jmp 0x442790
mov dword [esp + 0x214], esi
lea ecx, [esp + 0x34]
call fcn.0042fc80
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x208
ret