Function at 0x4072b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x258
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
push eax
mov esi, ecx
call ebx
push 0x43bdac
call ebx
movzx eax, word [esi]
cmp ax, 1
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jne 0x407309
push str.WAVE_FORMAT_PCM
push 1
push 1
lea eax, [esp + 0x1c]
push str.__Format.wFormatTag_lu__0x_.4lX____s__r_n
push eax
call edi
add esp, 0x14
jmp 0x407369
cmp ax, 0x92
jne 0x40732f
push str.WAVE_FORMAT_DOLBY_AC3_SPDIF
push 0x92
push 0x92
lea ecx, [esp + 0x1c]
push str.__Format.wFormatTag_lu__0x_.4lX____s__r_n
push ecx
call edi
add esp, 0x14
jmp 0x407369
cmp ax, 0xfffe
jne 0x407355
push str.WAVE_FORMAT_EXTENSIBLE
push 0xfffe
push 0xfffe
lea edx, [esp + 0x1c]
push str.__Format.wFormatTag_lu__0x_.4lX____s__r_n
push edx
call edi
add esp, 0x14
jmp 0x407369
movzx eax, ax
push eax
push eax
lea eax, [esp + 0x18]
push str.__Format.wFormatTag_lu__0x_.4lX__r_n
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 2]
push edx
lea eax, [esp + 0x14]
push str.__Format.nChannels_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
lea eax, [esp + 0x14]
push str.__Format.nSamplesPerSec_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esi + 8]
push edx
lea eax, [esp + 0x14]
push str.__Format.nAvgBytesPerSec_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 0xc]
push edx
lea eax, [esp + 0x14]
push str.__Format.nBlockAlign_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 0xe]
push edx
lea eax, [esp + 0x14]
push str.__Format.wBitsPerSample_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 0x10]
push edx
lea eax, [esp + 0x14]
push str.__Format.cbSize_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
cmp word [esi + 0x10], 2
jb 0x407468
movzx edx, word [esi + 0x12]
push edx
lea eax, [esp + 0x14]
push str.__Samples.wValidBitsPerSample_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 0x12]
push edx
lea eax, [esp + 0x14]
push str.__Samples.wSamplesPerBlock_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
movzx edx, word [esi + 0x12]
push edx
lea eax, [esp + 0x14]
push str.__Samples.wReserved_lu_r_n
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
cmp word [esi + 0x10], 6
jb 0x40748a
mov eax, dword [esi + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push str.__dwChannelMask_lu__0x_.8lX__r_n
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebx
cmp word [esi + 0x10], 0x16
jb 0x407561
lea ecx, [esp + 0xc]
push ecx
add esi, 0x18
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x40755a
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x43cd64
push esi
call section..text
add esp, 8
test eax, eax
je 0x407507
push str.KSDATAFORMAT_SUBTYPE_PCM
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x18]
push str.__SubFormat_s___s__r_n
push eax
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
jmp 0x40755f
push 0x43cd74
push esi
call section..text
add esp, 8
test eax, eax
je 0x40753c
push str.KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x18]
push str.__SubFormat_s___s__r_n
push edx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
jmp 0x40755f
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x14]
push str.__SubFormat_s_r_n
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x10]
push edx
jmp 0x40755f
push str.__SubFormatERROR_r_n
call ebx
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x258
ret