Function at 0x1400c4e90
Capabilities:
Print debug messages

Disassembly:
push rbp
push r15
mov eax, 0x10d8
call fcn.14011c260
sub rsp, rax
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov qword [rsp + 0x1108], rdi
mov rdi, qword [rcx + 0x110]
xor r15d, r15d
cmp dword [rdi + 0x1944c], r15d
mov qword [rsp + 0x10d0], r12
mov qword [rsp + 0x10c8], r13
mov qword [rsp + 0x10c0], r14
mov rbp, rcx
mov r13d, r15d
mov r14d, r15d
jne 0x1400c4f34
mov dword [rdi + 0x11594], 1
mov rcx, qword [rcx + 0x110]
xor r9d, r9d
mov rcx, qword [rcx + 0x11b70]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rbp + 0x110]
mov r13, rax
mov eax, 0x64
sub eax, r13d
cdq
idiv dword [rdi + 0xac0]
mov r14d, eax
mov r12d, r15d
cmp qword [rdi + 0xac0], r12
jle 0x1400c5575
mov qword [rsp + 0x10f8], rbx
mov qword [rsp + 0x1100], rsi
mov rbx, r15
nop
nop
nop
lea rcx, [rsp + 0x880]
xor edx, edx
mov r8d, 0x828
call fcn.1400fce30
test r12d, r12d
js 0x1400c4fe3
cmp rbx, qword [rdi + 0xac0]
jge 0x1400c4fe3
cmp rbx, qword [rdi + 0xac0]
mov rax, rbx
jge 0x1400c4fab
test rbx, rbx
js 0x1400c4fab
test rbx, rbx
mov rcx, qword [rdi + 0xab0]
je 0x1400c4fae
sub rax, 1
mov rcx, qword [rcx]
jne 0x1400c4fa0
jmp 0x1400c4fae
mov rcx, r15
mov rdx, qword [rcx + 0x10]
test rdx, rdx
jne 0x1400c4fd1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x880]
mov r8d, 0x828
call fcn.1400fd180
jmp 0x1400c4ffb
lea rcx, [rsp + 0x50]
mov r8d, 0x828
call fcn.1400fd180
jmp 0x1400c4ffb
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x880]
mov r8d, 0x828
call fcn.1400fd180
cmp dword [rdi + 0x1944c], r15d
movsxd rsi, dword [rsp + 0x464]
jne 0x1400c5027
mov rcx, qword [rdi + 0x11b70]
add r13d, r14d
xor r9d, r9d
movsxd r8, r13d
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0x10
je 0x1400c554a
test r12d, r12d
mov rax, qword [rbp + 0x110]
mov dword [rsp + 0x40], 4
js 0x1400c554a
cmp rbx, qword [rax + 0xac0]
jge 0x1400c554a
cmp rbx, qword [rax + 0xac0]
jge 0x1400c507b
test rbx, rbx
js 0x1400c507b
test rbx, rbx
mov rax, qword [rax + 0xab0]
je 0x1400c507e
nop
sub rbx, 1
mov rax, qword [rax]
jne 0x1400c5070
jmp 0x1400c507e
mov rax, r15
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400c554a
cmp qword [rcx + 0x828], r15
je 0x1400c554a
mov rcx, qword [rcx + 0x828]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x30]
cmp dword [rsp + 0x40], 1
jne 0x1400c554a
mov rdx, qword [rbp + 0x110]
mov r8d, dword [rdx + 0x8b4]
test r8d, r8d
je 0x1400c5132
cmp dword [rdx + 0x874], r15d
je 0x1400c5132
cmp r8d, r15d
je 0x1400c5132
mov ecx, esi
sub ecx, 8
je 0x1400c511c
sub ecx, 1
je 0x1400c5132
sub ecx, 1
je 0x1400c5104
cmp ecx, 2
jne 0x1400c5132
cmp dword [rdx + 0xa98], r15d
je 0x1400c5132
cmp dword [rdx + 0x214b4], r15d
je 0x1400c554a
jmp 0x1400c5132
cmp dword [rdx + 0xa94], r15d
je 0x1400c5132
cmp dword [rdx + 0x21500], r15d
je 0x1400c554a
jmp 0x1400c5132
cmp dword [rdx + 0xa90], r15d
je 0x1400c5132
cmp dword [rdx + 0x2154c], r15d
je 0x1400c554a
mov ebx, r15d
lea rax, [rbp + 0xa48]
nop
cmp dword [rax + 0x414], r15d
je 0x1400c514e
cmp dword [rax], r12d
je 0x1400c5161
add ebx, 1
add rax, 0xd60
cmp ebx, 0x10
jb 0x1400c5140
jmp 0x1400c5200
test r8d, r8d
je 0x1400c5200
cmp r8d, r15d
je 0x1400c5200
mov ecx, ebx
sub ecx, 8
je 0x1400c51dc
sub ecx, 1
je 0x1400c51c8
sub ecx, 1
je 0x1400c51b4
sub ecx, 2
je 0x1400c51a0
cmp ecx, 1
jne 0x1400c5200
cmp dword [rdx + 0xa9c], r15d
je 0x1400c554a
mov eax, r15d
jmp 0x1400c51ee
cmp dword [rdx + 0xa98], r15d
je 0x1400c554a
mov eax, 3
jmp 0x1400c51ee
cmp dword [rdx + 0xa94], r15d
je 0x1400c554a
mov eax, 2
jmp 0x1400c51ee
cmp dword [rdx + 0xaa0], r15d
je 0x1400c554a
mov eax, 4
jmp 0x1400c51ee
cmp dword [rdx + 0xa90], r15d
je 0x1400c554a
mov eax, 1
cmp eax, dword [rdx + 0x212e0]
je 0x1400c5200
mov edx, ebx
mov rcx, rbp
call fcn.1400c64b0
cmp ebx, 0x10
jne 0x1400c554a
mov rdi, rsi
lea r8, [rsp + 0x670]
mov edx, 0x104
imul rdi, rdi, 0xd60
lea rcx, [rdi + rbp + 0xa4c]
mov dword [rdi + rbp + 0xa48], r12d
mov dword [rdi + rbp + 0xe5c], 1
call fcn.1400f9e00
lea rcx, [rdi + rbp + 0xc54]
lea r8, [rsp + 0x54]
mov edx, 0x104
call fcn.1400f9e00
cmp esi, 2
jne 0x1400c5276
lea rcx, [rbp + 0x2714]
lea r8, str._Out_
mov edx, 0x104
call fcn.1400fb090
jmp 0x1400c5293
cmp esi, 0xb
jne 0x1400c5293
lea rcx, [rbp + 0x9f74]
lea r8, str._In_
mov edx, 0x104
call fcn.1400fb090
mov rcx, rbp
call fcn.1400c0960
mov rcx, rbp
call fcn.1400beba0
mov edx, esi
mov rcx, rbp
call fcn.1400c5ab0
cmp esi, 8
je 0x1400c52c5
cmp esi, 0xa
je 0x1400c52c5
cmp esi, 0xc
je 0x1400c52c5
cmp esi, 4
jne 0x1400c554a
mov rax, qword [rbp + 0x110]
cmp dword [rax + 0x21544], r15d
je 0x1400c52eb
cmp dword [rax + 0x2154c], r15d
je 0x1400c52eb
cmp dword [rax + 0x2153c], 7
jne 0x1400c53b6
cmp dword [rax + 0x214f8], r15d
je 0x1400c530a
cmp dword [rax + 0x21500], r15d
je 0x1400c530a
cmp dword [rax + 0x214f0], 6
jne 0x1400c53b6
lea rbx, [rax + 0xf8]
mov rcx, rbx
lea r8, [rbx + 0x8dc]
lea rdx, [rbx + 0x24]
call fcn.140097c60
cmp dword [rbx + 0x8ec], 1
jne 0x1400c534f
mov rax, qword [rbp + 0x110]
cmp dword [rax + 0x214ac], r15d
je 0x1400c534f
cmp dword [rax + 0x214b4], r15d
je 0x1400c534f
cmp dword [rax + 0x214a4], 5
jne 0x1400c53b6
mov rbx, qword [rbp + 0x110]
lea r8, [rbx + 0x9d4]
lea rdx, [rbx + 0x11c]
lea rcx, [rbx + 0xf8]
call fcn.140097c60
cmp dword [rbx + 0x9e4], 1
je 0x1400c5497
mov rax, qword [rbp + 0x110]
cmp dword [rax + 0x214ac], r15d
je 0x1400c5497
cmp dword [rax + 0x214b4], r15d
je 0x1400c5497
mov ecx, dword [rax + 0x214a4]
cmp ecx, 5
je 0x1400c5497
cmp ecx, 4
je 0x1400c5497
mov rcx, qword [rax + 0x110]
mov dword [rsp + 0x40], 1
test rcx, rcx
je 0x1400c5465
xor r9d, r9d
mov qword [rsp + 0x30], r15
add rcx, 4
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1400c540e
lea rcx, str.ActiveSpeaker:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400c5465
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x4c]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov edx, 0x1d6068
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400c545c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ActiveSpeaker:_DeviceIoControl:_IOCTL_HDAUD_SET_VIA_SPKRS_ALWAYS_ACTIVE_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400c5465
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + rbp + 0x578]
xor edx, edx
call fcn.1400dca24
lea rcx, [rdi + rbp + 0x7e0]
xor edx, edx
call fcn.1400dca24
lea rcx, [rdi + rbp + 0x380]
xor edx, edx
call fcn.1400dca24
jmp 0x1400c554a
mov rax, qword [rbp + 0x110]
mov dword [rsp + 0x40], r15d
mov rcx, qword [rax + 0x110]
test rcx, rcx
je 0x1400c554a
xor r9d, r9d
mov qword [rsp + 0x30], r15
add rcx, 4
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1400c54f3
lea rcx, str.ActiveSpeaker:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400c554a
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov edx, 0x1d6068
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400c5541
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ActiveSpeaker:_DeviceIoControl:_IOCTL_HDAUD_SET_VIA_SPKRS_ALWAYS_ACTIVE_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400c554a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp + 0x110]
add r12d, 1
movsxd rbx, r12d
cmp rbx, qword [rdi + 0xac0]
jl 0x1400c4f60
mov rsi, qword [rsp + 0x1100]
mov rbx, qword [rsp + 0x10f8]
mov rcx, qword [rbp + 0x110]
call fcn.14001e080
mov rcx, qword [rbp + 0x110]
mov r14, qword [rsp + 0x10c0]
cmp dword [rcx + 0x1944c], r15d
mov r13, qword [rsp + 0x10c8]
mov r12, qword [rsp + 0x10d0]
mov rdi, qword [rsp + 0x1108]
jne 0x1400c55d8
mov rcx, qword [rcx + 0x11b70]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11, qword [rbp + 0x110]
mov dword [r11 + 0x11594], r15d
xor eax, eax
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.1400f9790
add rsp, 0x10d8
pop r15
pop rbp
ret