Function at 0x140060700
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 0x1400609da
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x140060a0d
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 0x140060763
mov edx, 0x1e6
jmp 0x1400609a4
cmp dword [rdi + 0x44], 0
je 0x1400607cb
call fcn.140104be4
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x140060791
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0x426
lea rcx, str._VCpl__RETURN_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x1400607cb
mov rcx, qword [rdi + 0x20]
cmp dword [rcx + 0x1d8], 3
je 0x1400607ae
call fcn.140018b20
test eax, eax
lea r8, str.HPX_SPK_Mode
je 0x1400607b5
lea r8, str.HPX_HP_Mode
mov rax, qword [rbx]
mov r9d, esi
lea rdx, [0x140328e58]
mov rcx, rbx
call qword [rax + 0x100]
mov ebp, 1
cmp dword [rdi + 0x44], 0
je 0x1400607f1
mov eax, esi
sub eax, 4
je 0x1400607ef
sub eax, 3
je 0x1400607eb
cmp eax, ebp
jne 0x1400607f1
lea esi, [rbp + 1]
jmp 0x1400607f1
xor esi, esi
jmp 0x1400607f1
mov esi, ebp
mov rcx, qword [rdi + 0x20]
call fcn.140018b20
test eax, eax
jne 0x140060846
mov rcx, qword [rdi + 0x20]
cmp dword [rcx + 0x1d8], 3
je 0x140060846
call fcn.140018dc0
test eax, eax
je 0x140060819
mov r9d, esi
jmp 0x14006086c
xor r9d, r9d
lea r8, str.ASUSDTSAPO3SpkMode
lea rdx, [0x140328e58]
lea rcx, [0x1403dd120]
call fcn.140102880
lea ecx, [rax + rax*2]
lea r9d, [rcx*2 + 3]
add r9d, esi
jmp 0x14006086c
xor r9d, r9d
lea r8, str.ASUSDTSAPO3HpMode
lea rdx, [0x140328e58]
lea rcx, [0x1403dd120]
call fcn.140102880
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.14000dd70
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movsxd rcx, dword [r14 + 0x60]
test ecx, ecx
js 0x14006099f
mov rax, qword [rdi + 0x118]
cmp ecx, eax
jge 0x14006099f
test ecx, ecx
js 0x140060a07
cmp rcx, rax
jge 0x140060a07
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.14000dd70
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 0x140060a18
cmp rcx, qword [rdi + 0x118]
jge 0x140060a18
mov rax, qword [rdi + 0x110]
lea rdx, [rax + rcx*8]
lea rcx, [rdi + 0x100]
call fcn.140062550
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 0x140060957
lea rcx, str._RTK__pSRSEpInfo__put_OpMode_FAIL_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rdi + 0x38], 0
je 0x1400609b9
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 0x140060990
lea rcx, str._RTK__controller__WriteControls_pSRSOperatingModeCurr_OK_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400609b9
lea rcx, str._RTK__controller__WriteControls_pSRSOperatingModeCurr_FAIL_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400609b9
mov edx, 0x20e
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor ebp, ebp
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400609d6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebp
jmp 0x1400609f4
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0x1dd
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call fcn.1400f5890
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
call fcn.1400f5890
int3