Function at 0x14004c650
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov edi, dword [rdx]
mov r13, rcx
movsx r12d, word [rdx + 4]
mov esi, edi
movsx r15d, word [rdx + 6]
movzx ebp, dil
sar esi, 0xc
sar edi, 8
and esi, 0xf
and edi, 0xf
dec esi
dec edi
call fcn.14002a380
mov r14, rax
test rax, rax
jne 0x14004c6be
mov r8d, 0xac
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14005f240
lea rcx, [rax + 0x10]
mov qword [rsp + 0x80], rbx
call fcn.140045400
mov ecx, dword [r14 + 0x68]
xor eax, eax
mov ebx, eax
test ecx, ecx
je 0x14004c6fc
lea rax, [r14 + 0x1b0]
cmp dword [rax - 0x10], ebp
jne 0x14004c6f0
cmp dword [rax], edi
jne 0x14004c6f0
cmp dword [rax + 8], esi
je 0x14004c701
inc ebx
add rax, 0xb0
cmp ebx, ecx
jb 0x14004c6e2
mov ebx, 0xffffffff
mov dword [rsp + 0x38], ecx
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
mov dword [rsp + 0x30], esi
lea rcx, str._s__d_nPinIndex_d_nWID_x_SecCodec_d_nUsbPin_d_dwPinCoun_d
mov dword [rsp + 0x28], edi
mov r9d, ebx
mov r8d, SystemTimeToVariantTime
mov dword [rsp + 0x20], ebp
call fcn.14005f240
test ebx, ebx
jns 0x14004c76f
cmp edi, 0xffffffff
jne 0x14004c76f
mov ecx, dword [r14 + 0x68]
test ecx, ecx
je 0x14004c76f
xor ebx, ebx
lea rax, [r14 + 0x1b0]
mov edi, dword [rax]
test ecx, ecx
je 0x14004c76a
nop dword [rax]
cmp dword [rax - 0x10], ebp
jne 0x14004c75e
cmp dword [rax], edi
jne 0x14004c75e
cmp dword [rax + 8], esi
je 0x14004c76f
inc ebx
add rax, 0xb0
cmp ebx, ecx
jb 0x14004c750
mov ebx, 0xffffffff
mov eax, dword [r14 + 0x68]
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
mov dword [rsp + 0x38], eax
lea rcx, str._s__d_nPinIndex_d_nWID_x_SecCodec_d_nUsbPin_d_dwPinCoun_d
mov dword [rsp + 0x30], esi
mov r9d, ebx
mov dword [rsp + 0x28], edi
mov r8d, 0xbe
mov dword [rsp + 0x20], ebp
call fcn.14005f240
mov eax, dword [r14 + 0x28]
sub eax, 1
mov dword [r14 + 0x28], eax
jne 0x14004c7b8
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14004c7d6
cmp eax, 0x32
jle 0x14004c7d6
mov r8d, 0x6a
lea rdx, str.CDataAccessProtector::FinishAccess
lea rcx, str._s__d_calling_FinishAccess_isnt_matched_RequestAccess_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.14005f240
test ebx, ebx
jns 0x14004c84a
mov eax, 0
lea rbx, [r13 + 0x18]
test r13, r13
cmove rbx, rax
call fcn.140014070
mov rdx, rbx
lea rcx, [rax + 0x20]
call fcn.140006ae0
mov ecx, 8
call fcn.1400c0f54
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov rcx, qword [rcx]
mov qword [rax], rcx
lea rcx, [r13 + 0x70]
call fcn.14004cd10
mov r8d, 0xce
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
lea rcx, str._s__d_Retry_retask_after_driver_path_reload
call fcn.14005f240
jmp 0x14004ca29
mov rcx, qword [rsp + 0x88]
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
mov r8d, 0xd6
mov rax, qword [rcx]
lea rcx, str._s__d_RTKAUD_WMCD_CMD_START_RETASK
mov qword [r13 + 0xc4], rax
call fcn.14005f240
mov rcx, qword [r13 + 0xb0]
lea r8, [r13 + 0xc0]
mov dword [r8], 0x1002
call fcn.1400be7b0
mov dword [r13 + 0xb8], ebx
call fcn.14000b240
test dword [rax + 0x348], 0x4000000
je 0x14004c8d4
mov r12d, 2
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
mov r15d, 0xa
lea rcx, str._s__d_NoWavesUINeedAutoDetectHeadset_nDeviceType_d_nSequence_d
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, 0xe2
call fcn.14005f240
mov eax, ebx
lea r8, [rsp + 0x88]
imul rsi, rax, 0xb0
xor r13d, r13d
mov r9d, r12d
add rsi, r14
mov dword [rsp + 0x88], r13d
mov edx, ebx
mov rcx, r14
mov eax, dword [rsi + 0x118]
shr eax, 0xc
and eax, 0xf
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
call fcn.140062140
test eax, eax
jne 0x14004c921
mov r8d, 0x3c4
jmp 0x14004c950
mov ebp, dword [rsp + 0x88]
mov rcx, r14
mov dword [rsp + 0x8c], ebp
mov dword [rsp + 0x88], ebx
mov rdx, qword [rsp + 0x88]
call fcn.1400623b0
test eax, eax
jne 0x14004c981
mov r8d, 0x3c8
lea rdx, str.CJackInfo::SetRtskDeviceWithCustomize
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
mov r8d, 0xe6
lea rdx, str.CJackRetaskCommandLineHelper::SetRtskDevice
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005f240
jmp 0x14004ca29
mov dword [rsp + 0x38], r13d
lea rdx, str.CJackInfo::SetRtskDeviceWithCustomize
mov dword [rsp + 0x30], ebp
lea rcx, str._s__d_nPin_d_nDevType_d_nSeq_x_RtskDeviceType0x_x_ForJD_d
mov edi, 1
mov dword [rsp + 0x28], r15d
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, 0x3e4
mov dword [rsi + 0x1ac], edi
mov dword [rsi + 0x1a4], r12d
mov dword [rsi + 0x1a8], r15d
call fcn.14005f240
call fcn.14000b240
test byte [rax + 0x348], 0x80
je 0x14004c9e4
call fcn.14002a380
mov rcx, rax
call fcn.140063ad0
cmp r12d, 2
jne 0x14004c9f0
cmp r15d, 0xa
jae 0x14004c9f3
mov edi, r13d
call fcn.14000b690
mov rcx, rax
mov edx, 0x3f2
call fcn.1400b6360
mov eax, 0x5dc
test edi, edi
mov ebx, 0x1f4
cmovne ebx, eax
call fcn.14000b690
mov rcx, rax
mov r8d, ebx
mov edx, 0x3f2
call fcn.1400b6130
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret