Function at 0x140062a00
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov esi, edx
mov rdi, rcx
cmp edx, 0xb
jae 0x140062cd8
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x140062d05
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov dword [rdi + 0xc0], esi
cmp dword [rdi + 0xc4], 0
jne 0x140062a63
mov edx, 0x1e6
jmp 0x140062ca4
cmp dword [rdi + 0x44], 0
je 0x140062acb
call fcn.1401098dc
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x140062a91
lea r8, str.DtsHPSetting.cpp
mov edx, 0x426
lea rcx, str._VCpl__RETURN_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x140062acb
mov rcx, qword [rdi + 0x20]
cmp dword [rcx + 0x1d8], 3
je 0x140062aae
call fcn.140019b20
test eax, eax
lea r8, str.HPX_SPK_Mode
je 0x140062ab5
lea r8, str.HPX_HP_Mode
mov rax, qword [rbx]
mov r9d, esi
lea rdx, [0x140346438]
mov rcx, rbx
call qword [rax + 0x100]
mov ebp, 1
cmp dword [rdi + 0x44], 0
je 0x140062af1
mov eax, esi
sub eax, 4
je 0x140062aef
sub eax, 3
je 0x140062aeb
cmp eax, ebp
jne 0x140062af1
lea esi, [rbp + 1]
jmp 0x140062af1
xor esi, esi
jmp 0x140062af1
mov esi, ebp
mov rcx, qword [rdi + 0x20]
call fcn.140019b20
test eax, eax
jne 0x140062b46
mov rcx, qword [rdi + 0x20]
cmp dword [rcx + 0x1d8], 3
je 0x140062b46
call fcn.140019dc0
test eax, eax
je 0x140062b19
mov r9d, esi
jmp 0x140062b6c
xor r9d, r9d
lea r8, str.ASUSDTSAPO3SpkMode
lea rdx, [0x140346438]
lea rcx, [0x140400ce0]
call fcn.1401076a0
lea ecx, [rax + rax*2]
lea r9d, [rcx*2 + 3]
add r9d, esi
jmp 0x140062b6c
xor r9d, r9d
lea r8, str.ASUSDTSAPO3HpMode
lea rdx, [0x140346438]
lea rcx, [0x140400ce0]
call fcn.1401076a0
inc eax
lea eax, [rax + rax*2]
lea r9d, [rsi + rax*2]
movsxd rax, r9d
lea r14, [rdi + rax*4]
mov eax, dword [r14 + 0x60]
mov dword [rsp + 0x20], eax
mov r8d, esi
lea rdx, str._RTK__DTS_set_Mode___d_index_d_modeindex_d_r_n
lea rcx, [rsp + 0x70]
call fcn.14000dfa0
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movsxd rcx, dword [r14 + 0x60]
test ecx, ecx
js 0x140062c9f
mov rax, qword [rdi + 0x118]
cmp ecx, eax
jge 0x140062c9f
test ecx, ecx
js 0x140062d16
cmp rcx, rax
jge 0x140062d16
mov rax, qword [rdi + 0x110]
mov r8, qword [rax + rcx*8]
lea rdx, str._RTK__DTS_set_Mode_pSRSOperatingMode_x_r_n
lea rcx, [rsp + 0x70]
call fcn.14000dfa0
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str._RTK__DTS_put_OpMode_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movsxd rcx, dword [r14 + 0x60]
test rcx, rcx
js 0x140062d10
cmp rcx, qword [rdi + 0x118]
jge 0x140062d10
mov rax, qword [rdi + 0x110]
lea rdx, [rax + rcx*8]
lea rcx, [rdi + 0x100]
call fcn.140064820
mov rcx, qword [rdi + 0xe0]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x100]
call qword [rax + 0x40]
test eax, eax
lea rcx, str._RTK__pSRSEpInfo__put_OpMode_OK_r_n
je 0x140062c57
lea rcx, str._RTK__pSRSEpInfo__put_OpMode_FAIL_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rdi + 0x38], 0
je 0x140062cb9
mov rcx, qword [rdi + 0xc8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 0x100]
call qword [rax + 0x30]
test eax, eax
jne 0x140062c90
lea rcx, str._RTK__controller__WriteControls_pSRSOperatingModeCurr_OK_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140062cb9
lea rcx, str._RTK__controller__WriteControls_pSRSOperatingModeCurr_FAIL_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140062cb9
mov edx, 0x20e
lea r8, str.DtsHPSetting.cpp
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor ebp, ebp
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140062cd4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebp
jmp 0x140062cf2
lea r8, str.DtsHPSetting.cpp
mov edx, 0x1dd
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.14000de90
nop
call fcn.1400f91a0
nop
call fcn.1400f91a0
int3