Function at 0x14005f030
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov r13, rdx
mov rsi, rcx
lea rcx, str.CDtsHPSetting::InitSetting_start_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r13, r13
jne 0x14005f092
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
lea edx, [r13 + 0x71]
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor eax, eax
jmp 0x14005fad0
mov qword [rsi + 0x20], r13
mov rdx, r13
mov rcx, rsi
call fcn.14000f020
mov rcx, qword [rsi + 0x20]
mov rax, qword [rcx]
lea rdx, [rsi + 0x30]
call qword [rax + 0x78]
mov rax, qword [0x1403db8c8]
inc dword [rax + 0x1d60]
test dword [rax + 0x1b0], 0x200
je 0x14005f0d1
mov dword [rsi + 0x40], 1
jmp 0x14005f0e5
test dword [r13 + 0x330], 0x8000
je 0x14005f0e5
mov dword [rsi + 0x44], 1
test dword [rax + 0x80], 0x400
je 0x14005f0f8
mov dword [rsi + 0x48], 1
cmp dword [rsi + 0x40], 0
je 0x14005f115
lea rax, [0x1403dcb80]
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x58], 0x15
mov eax, dword [rsi + 0x44]
jmp 0x14005f12e
mov eax, dword [rsi + 0x44]
mov dword [rsi + 0x58], 9
test eax, eax
je 0x14005f1a2
lea rcx, [0x1403dcda0]
mov qword [rsi + 0x50], rcx
test eax, eax
je 0x14005f1ad
call fcn.140104be4
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x14005f15a
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0x441
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x14005f1ad
mov rax, qword [rbx]
xor r9d, r9d
lea r8, str.HPX_SPK_Inited
lea rdx, [0x140328e58]
mov rcx, rbx
call qword [rax + 0xf8]
test eax, eax
jne 0x14005f1ad
call fcn.140062170
mov rax, qword [rbx]
mov r9d, 1
lea r8, str.HPX_SPK_Inited
lea rdx, [0x140328e58]
mov rcx, rbx
call qword [rax + 0x100]
jmp 0x14005f1ad
lea rax, [0x1403dcaa0]
mov qword [rsi + 0x50], rax
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x14005fafc
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
xor r12d, r12d
mov dword [rbp + 0x7f], r12d
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x14005fb07
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
lea rbx, [0x140328530]
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140014ab0
lea r15, [r12 - 1]
test al, al
jne 0x14005f22b
mov rax, r15
inc rax
cmp word [rbx + rax*2], 0
jne 0x14005f211
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140010390
nop
mov r14d, r12d
mov ecx, dword [r13 + 0x328]
shr ecx, 0x1b
and ecx, 1
mov dword [rsi + 0x38], ecx
mov eax, dword [r13 + 0x32c]
shr eax, 0x17
and eax, 1
mov dword [rsi + 0x3c], eax
test ecx, ecx
je 0x14005f2a9
lea rax, [rsi + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [0x140332680]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140332720]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14005f29c
mov r9d, eax
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0xa8
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
jmp 0x14005fa90
lea rcx, str.controller.CoCreateInstance___uuidof_DTSAPOIntelDSP__:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rbx, [rsi + 0xd0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140332690]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140332710]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14005f2f3
mov r9d, eax
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0xad
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
jmp 0x14005fa90
lea rcx, str.pSRSApoSystem.CoCreateInstance___uuidof_SRSAPOSystem__:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbx]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jns 0x14005f32f
mov r9d, eax
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0xb1
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
jmp 0x14005fa90
lea rcx, str.pSRSApoSystem__InitializeSystem_:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea rdx, [rsi + 0xd8]
call qword [rax + 0x18]
test eax, eax
jns 0x14005f377
mov edx, VariantTimeToSystemTime
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov r9d, eax
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
mov r15, 0xffffffffffffffff
jmp 0x14005fa90
mov rbx, qword [rsi + 0x20]
mov r8, qword [rbx + 0x118]
cmp dword [r8 - 8], 1
jle 0x14005f3a0
mov edx, dword [r8 - 0x10]
lea rcx, [rbx + 0x118]
call fcn.14000da70
mov r8, qword [rbx + 0x118]
lea rdx, str.m_sEndPointId__s_r_n
lea rcx, [rbp - 0x21]
call fcn.14000dd70
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsi + 0xd8]
mov rax, qword [rcx]
lea r8, [rsi + 0xe0]
lea rdx, [0x140332700]
call qword [rax]
mov r8d, eax
lea rdx, str.pSRSEpEnum__QueryInterface___uuidof_ISRSEndpointInfo___x_r_n
lea rcx, [rbp - 0x21]
call fcn.14000dd70
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r15, qword [rsi + 0xd8]
mov rbx, qword [rsi + 0x20]
mov rdx, qword [rbx + 0x118]
cmp dword [rdx - 8], 1
jle 0x14005f41f
mov edx, dword [rdx - 0x10]
lea rcx, [rbx + 0x118]
call fcn.14000da70
mov rdx, qword [rbx + 0x118]
mov rax, qword [r15]
lea r8, [rsi + 0xe0]
mov rcx, r15
call qword [rax + 0x28]
test eax, eax
jns 0x14005f43d
mov edx, 0xc0
jmp 0x14005f355
mov rcx, qword [rsi + 0xe0]
mov rax, qword [rcx]
mov edx, r12d
cmp dword [rsi + 0x38], edx
setne dl
call qword [rax + 0x58]
lea rcx, str.pSRSEpInfo__SetConfig_:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsi + 0xe0]
mov rax, qword [rcx]
lea r8, [rsi + 0xe8]
lea rdx, [0x1403326f0]
call qword [rax]
test eax, eax
jne 0x14005f958
lea rcx, str.pSRSEpInfo__QueryInterface___uuidof_ISRSEndpointInfo5__:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
lea rdx, [rsi + 0xf0]
call qword [rax + 0x88]
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
lea rdx, [rsi + 0x100]
call qword [rax + 0x48]
test eax, eax
jne 0x14005f563
mov rcx, qword [rsi + 0x100]
mov rax, qword [rcx]
lea rdx, [rbp + 0x7f]
call qword [rax + 0x30]
mov r15, 0xffffffffffffffff
mov rax, r15
lea rcx, [0x140328530]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14005f4e4
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x39]
call fcn.140010390
mov rcx, qword [rsi + 0x100]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
jne 0x14005f51c
mov eax, r12d
jmp 0x14005f52a
mov rax, r15
nop
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14005f520
mov r8d, eax
lea rcx, [rbp - 0x39]
call fcn.140010390
mov rcx, qword [rbp - 0x39]
add rcx, 0xffffffffffffffe8
call fcn.140014810
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.140060340
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14005f56a
mov r15, 0xffffffffffffffff
mov rcx, qword [rsi + 0xe8]
lea r13, [rsi + 0xf8]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x30]
mov r14d, r12d
mov dword [rbp + 0x77], r12d
lea rdi, [rsi + 0x108]
mov edx, 0x20
lea r8d, [rdx + 0x60]
mov rcx, rdi
call fcn.1400625c0
mov rbx, r12
mov qword [rbp + 7], rbx
nop word [rax + rax]
mov qword [rbp - 0x11], r12
mov rcx, qword [r13]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
call qword [rax + 0x18]
mov r13d, eax
mov dword [rbp - 0x31], eax
test eax, eax
jne 0x14005f914
mov rcx, qword [rbp - 0x11]
mov qword [rbp - 0x19], rcx
test rcx, rcx
je 0x14005f5e3
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x19]
mov qword [rbp + 0xf], rax
movsxd r13, r14d
test r14d, r14d
js 0x14005faeb
cmp r13, qword [rdi + 0x10]
jl 0x14005f60c
lea rdx, [r13 + 1]
mov r8, r15
mov rcx, rdi
call fcn.1400625c0
mov rax, qword [rdi + 8]
lea rcx, [rax + r13*8]
lea rdx, [rbp - 0x19]
call fcn.140062550
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14005f62d
mov rax, qword [rcx]
call qword [rax + 0x10]
test rbx, rbx
js 0x14005fb29
cmp rbx, qword [rsi + 0x118]
jge 0x14005fb29
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + rbx*8]
mov rax, qword [rcx]
lea rdx, [rbp + 0x7f]
call qword [rax + 0x30]
xor r8d, r8d
lea rdx, [0x140328530]
lea rcx, [rbp - 0x39]
call fcn.140010390
cmp rbx, qword [rsi + 0x118]
jge 0x14005fb23
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + rbx*8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
jne 0x14005f69b
mov eax, r12d
jmp 0x14005f6aa
mov rax, r15
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005f6a0
mov r8d, eax
lea rcx, [rbp - 0x39]
call fcn.140010390
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r12, qword [rbp - 0x39]
lea rcx, [r12 - 0x18]
call fcn.140014810
lea rbx, [rax + 0x18]
mov r15d, dword [rsi + 0x58]
sub r15d, 1
js 0x14005f75c
movsxd r14, r15d
lea rdi, [r14 + r14*2]
shl rdi, 3
nop dword [rax + rax]
mov rax, qword [rsi + 0x50]
mov rdx, qword [rdi + rax]
test rdx, rdx
je 0x14005f74b
cmp dword [rbx - 0x10], 0
jl 0x14005f74b
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f74b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14005f74b
mov rax, qword [rsi + 0x50]
mov rdx, qword [rax + rdi + 8]
test rdx, rdx
je 0x14005f74b
cmp dword [rbx - 0x10], 0
jl 0x14005f74b
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f74b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14005f840
dec r15d
sub rdi, 0x18
sub r14, 1
jns 0x14005f6f0
mov r14d, dword [rbp + 0x77]
lea rdx, [rbx - 0x18]
mov r15, 0xffffffffffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005f77d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x14005fb18
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 1], rax
test r13, r13
js 0x14005fb12
cmp r13, qword [rsi + 0x118]
jge 0x14005fb12
mov rax, qword [rsi + 0x110]
lea rbx, [rax + r13*8]
cmp dword [r12 - 8], 1
jle 0x14005f7d3
mov edx, dword [r12 - 0x10]
lea rcx, [rbp - 0x39]
call fcn.14000da70
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp - 0x39]
mov r9, rbx
mov r8d, r14d
lea rdx, str._RTK__DTS_get_mode___d___s_point_x_r_n
lea rcx, [rbp - 1]
call fcn.14000dd70
mov rdi, qword [rbp - 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsi + 0x44], 0
je 0x14005f8da
cmp dword [rbx - 0x10], 0
jl 0x14005f8da
lea rdx, str.HPX_Off
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f85e
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14005f85e
mov dword [rsi + 0xb4], r14d
jmp 0x14005f8da
movsxd rax, r15d
lea rdx, [rsi + rax*4]
mov r14d, dword [rbp + 0x77]
mov eax, r14d
cmp dword [rdx + 0x60], 0xffffffff
cmovne eax, dword [rdx + 0x60]
mov dword [rdx + 0x60], eax
jmp 0x14005f75c
cmp dword [rbx - 0x10], 0
jl 0x14005f8da
lea rdx, [0x1403281b0]
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f8da
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14005f8da
cmp dword [rbx - 0x10], 0
jl 0x14005f8da
lea rdx, str.Internal
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f8af
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14005f8af
mov dword [rsi + 0xbc], r14d
jmp 0x14005f8da
cmp dword [rbx - 0x10], 0
jl 0x14005f8da
lea rdx, str.External
mov rcx, rbx
call fcn.140283820
test rax, rax
je 0x14005f8da
sub rax, rbx
sar rax, 1
test eax, eax
js 0x14005f8da
mov dword [rsi + 0xb8], r14d
inc r14d
mov dword [rbp + 0x77], r14d
mov rbx, qword [rbp + 7]
inc rbx
mov qword [rbp + 7], rbx
lea rdx, [rdi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005f906
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, dword [rbp - 0x31]
lea rdi, [rsi + 0x108]
xor r12d, r12d
mov r14d, 1
mov dword [rsi + 0xc4], r14d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14005f930
mov rax, qword [rcx]
call qword [rax + 0x10]
test r13d, r13d
jne 0x14005f945
mov r14d, dword [rbp + 0x77]
lea r13, [rsi + 0xf8]
jmp 0x14005f5b0
lea rcx, str.pSRSAPOOpModeEnumerator__Next_:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r13, qword [rbp + 0x6f]
jmp 0x14005f95f
mov r15, 0xffffffffffffffff
cmp dword [rsi + 0x38], 0
je 0x14005fa6b
lea rbx, [rsi + 0x130]
mov qword [rsp + 0x20], rbx
lea r9, [0x1403326a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140332720]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14005f9b3
mov r9d, eax
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0x10d
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
jmp 0x14005fa90
lea rcx, str.pDTSAPOIntelDSP3.CoCreateInstance____uuidof_DTSAPOIntelDSP__:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rbx]
mov rbx, qword [rsi + 0x20]
mov rdx, qword [rbx + 0x118]
cmp dword [rdx - 8], 1
jle 0x14005f9ea
mov edx, dword [rdx - 0x10]
lea rcx, [rbx + 0x118]
call fcn.14000da70
mov rdx, qword [rbx + 0x118]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
mov edi, eax
mov rbx, qword [rsi + 0x20]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
jne 0x14005fa0a
mov eax, r12d
jmp 0x14005fa1b
movsxd rdx, dword [rcx - 0xc]
call fcn.140289b40
test eax, eax
js 0x14005faf1
mov rcx, qword [rbx + 0x118]
cmp eax, dword [rcx - 0xc]
jg 0x14005faf1
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx + 0x118]
mov word [rax + rcx*2], r12w
test edi, edi
jns 0x14005fa5e
mov r9d, edi
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidtshpsetting.cpp
mov edx, 0x112
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140052e90
jmp 0x14005fa90
lea rcx, str.pDTSAPOIntelDSP3__put_dspDeviceId_:_Success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [r13 + 0x314]
shr eax, 0xc
and eax, 1
mov dword [rsi + 0x5c], eax
je 0x14005fa85
mov rcx, rsi
call fcn.14005fb30
mov rcx, rsi
call fcn.140061bd0
mov r12d, r14d
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005faaf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x14005facd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r12d
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400f5890
nop
mov ecx, 0x80070057
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
call fcn.1400f5890
nop
mov ecx, 0x80004005
call fcn.14000dc70
int3
call fcn.1400f5890
int3
call fcn.1400f5890
int3