Function at 0x417120
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x218
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
mov ebp, dword [esp + 0x224]
mov eax, dword [ebp + 0xa8]
push esi
push edi
lea ebx, [ebp + 0xdc]
xor esi, esi
xor edi, edi
cmp eax, 0x20
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
jle 0x41716c
mov dword [ebp + 0xd4], 0x20
jmp 0x417172
mov dword [ebp + 0xd4], eax
mov eax, dword [ebp + 0xd4]
push eax
call fcn.00412e30
add esp, 4
cmp dword [ebp + 0xd4], esi
mov dword [esp + 0x18], eax
mov dword [ebp + 0x17a4], edi
mov dword [esp + 0x1c], 0xffffffff
jle 0x4172f1
lea esi, [ebp + 0x4e8]
jmp 0x4171b0
lea ebx, [esi - 0xc]
mov dword [ebx], edi
mov dword [esi - 8], 1
mov ecx, dword [0x446ff4]
test ecx, ecx
jne 0x4171e3
mov dword [esi + 4], ecx
push str.None
lea ecx, [esi + 8]
push ecx
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4172d7
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
push ebx
call eax
test eax, eax
jne 0x4172d7
cmp dword [esp + 0x18], eax
je 0x417237
mov eax, dword [esi]
test eax, eax
jns 0x417237
and eax, 0x7fffffff
jne 0x417237
cmp dword [esp + 0x1c], 0xffffffff
jne 0x417237
mov dword [esi], eax
test byte [ebp + 0x1688], 2
je 0x417237
push edi
lea ecx, [esp + 0x28]
push str.Channel__d_MSB_set__but_is_not_a_valid_WUH_input_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [esi], 0x80000000
je 0x4172af
test byte [ebp + 0x1688], 2
je 0x417267
push edi
lea eax, [esp + 0x28]
push str.Channel__d_MSB_set_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esi]
and edx, 0x7fffffff
cmp edx, 1
jne 0x41727a
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], 0
jne 0x41728c
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.00412dc0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
add eax, 0x10
add dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
jmp 0x4172d7
test byte [ebp + 0x1688], 2
je 0x4172d7
push edi
lea ecx, [esp + 0x28]
push str.Channel__d_MSB_not_set_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add edi, 1
add esi, 0x34
cmp edi, dword [ebp + 0xd4]
jl 0x4171b0
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
test byte [ebp + 0x1688], 2
je 0x417319
push esi
lea eax, [esp + 0x28]
push str.dwNumOfASIOWUHInputChannels_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0xb8]
xor edx, edx
mov dword [ebp + 0xd4], esi
mov dword [ebp + 0xd8], edx
mov ecx, dword [0x446ff4]
cmp ecx, edx
jne 0x417357
cmp esi, edx
jle 0x41734d
lea eax, [ebx + 8]
mov ecx, esi
mov dword [eax + 4], edx
mov dword [eax], edx
add eax, 0x10
sub ecx, 1
jne 0x417340
mov eax, 0xfffffc18
jmp 0x417493
mov edx, dword [ecx]
push 0x446fd0
push eax
mov eax, dword [edx + 0x4c]
push esi
push ebx
call eax
test eax, eax
jne 0x417493
cmp dword [ebp + 0xd4], eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], eax
jle 0x417469
lea esi, [ebp + 0x4e8]
lea esp, [esp]
mov ecx, dword [ebx + 4]
lea edi, [esi - 0xc]
mov dword [edi], ecx
mov edx, dword [ebx]
mov dword [esi - 8], edx
mov ecx, dword [0x446ff4]
test ecx, ecx
jne 0x4173c6
lea eax, [esi + 8]
push str.None
push eax
mov dword [esi], 0xffffffff
mov dword [eax - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0xfffffc18
jmp 0x4173ce
mov eax, dword [ecx]
mov edx, dword [eax + 0x48]
push edi
call edx
cmp dword [esp + 0x18], 0
jne 0x417448
mov ecx, dword [esi]
and ecx, 0x7fffffff
cmp ecx, 1
jne 0x4173ea
mov edx, dword [edi]
mov dword [esp + 0x14], edx
jmp 0x4173ee
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
je 0x417448
mov ecx, dword [edi]
cmp ecx, edx
jne 0x4173fe
or dword [esi], 1
jmp 0x417448
lea edi, [edx + 1]
cmp ecx, edi
jne 0x41740a
or dword [esi], 2
jmp 0x417448
lea edi, [edx + 2]
cmp ecx, edi
jne 0x417416
or dword [esi], 0x10
jmp 0x417448
lea edi, [edx + 3]
cmp ecx, edi
jne 0x417422
or dword [esi], 0x20
jmp 0x417448
lea edi, [edx + 4]
cmp ecx, edi
jne 0x41742e
or dword [esi], 4
jmp 0x417448
add edx, 5
cmp ecx, edx
jne 0x41743a
or dword [esi], 8
jmp 0x417448
mov ecx, dword [esi]
test ecx, ecx
jns 0x417448
and ecx, 0x80000000
mov dword [esi], ecx
test eax, eax
jne 0x417493
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 0x10
add esi, 0x34
cmp eax, dword [ebp + 0xd4]
mov dword [esp + 0x10], eax
jl 0x417390
mov ecx, dword [0x446ff4]
test ecx, ecx
lea eax, [ebp + 0xd0]
lea edx, [ebp + 0xcc]
jne 0x41748a
mov dword [eax], ecx
mov dword [edx], ecx
mov eax, 0xfffffc18
jmp 0x417493
mov esi, dword [ecx]
push eax
push edx
mov edx, dword [esi + 0x28]
call edx
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x218
ret