Function at 0x100203f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064248
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 1
cmp dword [esi + 0x5c], ebx
je 0x100205cf
mov eax, dword [0x100da014]
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CxHDAudioDeviceControl::DeviceIoControl__
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CxHDAudioDeviceControl::DeviceIoControl__
push eax
lea ecx, [ebp - 0x10]
call fcn.100013d0
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
jne 0x100204a0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100da010]
je 0x10020487
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10020487
push esi
call fcn.1004b641
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x100205aa
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea ecx, [ebp + 0x1c]
push ecx
push 0x400
push eax
push edi
push 0x1300
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [0x100da014]
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp + 0x20]
push str.DeviceIoControl_failed_with_error__d:__s
push edx
mov byte [ebp - 4], 2
call fcn.10001a40
mov ebx, dword [ebp + 0x20]
add esp, 0x10
push ebx
lea ecx, [esi + 0x28]
call fcn.10017d40
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 4]
test esi, esi
jle 0x1002054b
and esi, 0xffff
or esi, 0x80070000
lea edx, [ebx - 0xc]
mov dword [ebp + 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp edx, dword [0x100da010]
je 0x10020572
lea edi, [ebx - 0xc]
push edi
call esi
test eax, eax
jg 0x10020572
push edi
call fcn.1004b641
add esp, 4
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100da010]
je 0x10020593
lea edi, [eax - 0xc]
push edi
call esi
test eax, eax
jg 0x10020593
push edi
call fcn.1004b641
add esp, 4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0xc]
cmp edx, dword [0x100da010]
je 0x100205cf
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100205cf
push esi
call fcn.1004b641
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c