Function at 0x140017480
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400174c8
lea r8, str.c:userschunyung_source_repos_rtkngui_rtkngui_audiodevice.cpp
mov edx, 0x397
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor eax, eax
jmp 0x140017bb4
mov qword [rcx + 0x90], rbp
call fcn.140017e40
mov dword [rbx + 0x428], eax
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x140017bc9
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rsi, [0x140328530]
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140014ab0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14001753b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140017520
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140010390
nop
mov rax, qword [rbx]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x78]
test eax, eax
jne 0x140017567
lea r8, str.c:userschunyung_source_repos_rtkngui_rtkngui_audiodevice.cpp
mov edx, 0x6dc
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x1400175d5
movups xmm0, xmmword [0x140329280]
movaps xmmword [rsp + 0x40], xmm0
lea rsi, [rbx + 0x290]
mov dword [rsp + 0x28], 0x74
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.14005c200
test eax, eax
jne 0x1400175ba
lea r8, str.c:userschunyung_source_repos_rtkngui_rtkngui_audiodevice.cpp
mov edx, 0x6e6
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x1400175d5
cmp dword [rbx + 0x298], 0x10ec
je 0x1400175d5
xor edx, edx
lea r8d, [rdx + 0x74]
mov rcx, rsi
call fcn.1402841a0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400175f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call fcn.140016170
test eax, eax
jne 0x14001761c
lea r8, str.c:userschunyung_source_repos_rtkngui_rtkngui_audiodevice.cpp
mov edx, 0x3d7
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor eax, eax
jmp 0x140017bb4
mov eax, dword [rbx + 0x1d8]
dec eax
test eax, 0xfffffffd
jne 0x1400176c0
cmp qword [rbx + 0x380], 0
je 0x1400176c0
cmp qword [rbx + 0x288], 0
je 0x1400176c0
cmp qword [rbx + 0x388], 0
je 0x1400176c0
mov edx, dword [rbx + 0x3a0]
test edx, edx
je 0x1400176c0
test dword [reloc.DSOUND.dll_DirectSoundCreate], edx
mov eax, 0
setne al
test dword [reloc.OLEAUT32.dll_SysReAllocString], edx
lea ecx, [rax + 1]
cmove ecx, eax
test dword [reloc.OLEAUT32.dll_SysReAllocStringLen], edx
lea eax, [rcx + 1]
cmove eax, ecx
test dword [0x1403be638], edx
lea ecx, [rax + 1]
cmove ecx, eax
test dword [0x1403be650], edx
lea eax, [rcx + 1]
cmove eax, ecx
test dword [0x1403be668], edx
lea ecx, [rax + 1]
cmove ecx, eax
test dword [0x1403be680], edx
lea eax, [rcx + 1]
cmove eax, ecx
cmp eax, 1
jb 0x1400176c0
xor edx, edx
mov rcx, rbx
call fcn.1400bd220
cmp dword [rbx + 0x168], 0
je 0x1400179b4
cmp dword [rbx + 0x428], 0
je 0x1400179b4
mov eax, dword [rbx + 0x314]
bt eax, 0x18
jae 0x14001775a
test dword [rbx + 0x31c], 0x40000
je 0x1400176f9
mov edx, 0x1e
jmp 0x140017742
bt eax, 0x1a
jae 0x140017706
mov edx, SafeArrayDestroy
jmp 0x140017742
mov eax, dword [rbx + 0x318]
test al, 4
je 0x140017717
mov edx, 0x12
jmp 0x140017742
bt eax, 0x1c
jae 0x140017726
cmp dword [rbx + 0x1d8], 1
je 0x140017736
mov rax, qword [rbx + 0x90]
cmp byte [rax + 0x1d0], 1
jne 0x14001773d
mov edx, 0x1c
jmp 0x140017742
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rbx
call fcn.1400bd220
test byte [rbx + 0x318], 2
je 0x1400177a7
mov edx, 0x11
jmp 0x14001779f
test dword [rbx + 0x320], 0x800000
jne 0x14001779a
test dword [rbx + 0x324], 0x20080
jne 0x14001779a
test dword [rbx + 0x310], 0x600
jne 0x14001779a
mov rax, qword [rbx + 0x90]
test byte [rax + 0x1c0], 0x20
jne 0x14001779a
test dword [rbx + 0x328], 0x3000000
je 0x1400177a7
mov edx, 0x1c
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x308]
test al, 0xf
jne 0x1400177ba
test byte [rbx + 0x310], 8
je 0x1400177cd
mov edx, 1
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x308]
test al, 0x40
je 0x1400177e7
test byte [rbx + 0x3a0], 0x70
je 0x1400177e7
mov edx, 4
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x314]
mov ecx, eax
bt eax, 0x1b
jb 0x14001781a
test al, 0xe0
jne 0x140017805
test dword [rbx + 0x318], 0x40000
je 0x14001781a
mov edx, 3
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x314]
mov ecx, eax
mov edx, dword [rbx + 0x318]
test dl, 0x20
je 0x140017840
mov edx, 9
mov rcx, rbx
call fcn.1400bd220
mov edx, dword [rbx + 0x318]
mov eax, dword [rbx + 0x314]
mov ecx, eax
bt edx, 0x1d
jb 0x14001788a
mov r8d, dword [rbx + 0x31c]
test r8b, 1
je 0x14001785b
mov ecx, eax
bt eax, 0xb
jb 0x14001788a
test r8b, 0x10
jne 0x14001788a
test dl, 0x40
jne 0x14001788a
bt ecx, 0xc
jae 0x140017897
mov eax, dword [rbx + 0x1d8]
sub eax, 8
cmp eax, 1
jbe 0x140017883
cmp dword [rbx + 0x3a0], 2
je 0x140017897
mov edx, 8
jmp 0x14001788f
mov edx, 0x19
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x314], 0xc30000
je 0x1400178b0
mov edx, 0xa
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x318], 0x1700
jne 0x1400178c8
test dword [rbx + 0x324], 0x200
je 0x1400178d5
mov edx, 0x13
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x314], 0x40000
je 0x1400178fc
mov rcx, rbx
test byte [rbx + 0x31c], 0x80
mov edx, 0x1d
jne 0x1400178f7
mov edx, 0x14
call fcn.1400bd220
test byte [rbx + 0x32c], 4
je 0x14001790c
mov edx, 0x29
jmp 0x14001791d
test dword [rbx + 0x310], 0x1000
je 0x140017925
mov edx, 0x25
mov rcx, rbx
call fcn.1400bd220
test byte [rbx + 0x318], 1
je 0x140017944
test dword [rbp + 0x30], 0x400000
jne 0x140017944
mov edx, 0x10
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x320], 0x800
je 0x14001795d
mov edx, 0x20
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x328], 0x84000
jne 0x140017975
test dword [rbx + 0x32c], 0x2000000
je 0x140017982
mov edx, 0x24
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x324], 0x800
jne 0x14001799a
test dword [rbx + 0x328], 0x8000000
je 0x1400179b4
lea rcx, str.add_DTS_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x28
mov rcx, rbx
call fcn.1400bd220
cmp dword [rbx + 0x1d8], 4
jne 0x140017b07
mov eax, dword [rbx + 0x30c]
test al, 7
jne 0x140017a01
bt eax, 0x1a
jb 0x140017a01
bt eax, 0x1b
jb 0x140017a01
bt eax, 0x1c
jb 0x140017a01
mov rcx, rbx
call fcn.14009b7c0
test eax, eax
jne 0x140017a01
mov rcx, rbx
call fcn.14009b9f0
test eax, eax
jne 0x140017a01
test dword [rbx + 0x30c], 0x40000
je 0x140017a1c
mov rcx, rbx
test byte [rbx + 0x32c], 0x40
mov edx, 0x2a
jne 0x140017a17
mov edx, 2
call fcn.1400bd220
test dword [rbx + 0x30c], 0x800000
je 0x140017a35
mov edx, 0x1b
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x320], 0x800
je 0x140017a4e
mov edx, 0x20
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x324]
bt eax, 0x11
jb 0x140017a72
test dword [rbx + 0x310], 0x600
jne 0x140017a72
test dword [rbx + 0x328], 0x3000000
je 0x140017a85
mov edx, 0x1c
mov rcx, rbx
call fcn.1400bd220
mov eax, dword [rbx + 0x324]
bt eax, 0x1b
jb 0x140017aa3
test dword [rbx + 0x328], 0x84000
jne 0x140017aa3
test dword [rbx + 0x32c], 0x2000000
je 0x140017ab0
mov edx, 0x24
mov rcx, rbx
call fcn.1400bd220
test dword [rbp + 0x194], 0x8000
je 0x140017ac9
mov edx, 0x26
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x310], 0x20000000
jne 0x140017ae1
test dword [rbx + 0x334], 0x400
je 0x140017aee
mov edx, 0x27
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x32c], 0x100
je 0x140017b07
mov edx, 0x2b
mov rcx, rbx
call fcn.1400bd220
cmp dword [rbx + 0x1d8], 8
jne 0x140017b26
cmp dword [rbx + 0x168], 0
jne 0x140017b26
mov edx, 6
mov rcx, rbx
call fcn.1400bd220
mov edx, 5
mov rcx, rbx
call fcn.1400bd220
mov rcx, rbx
call fcn.140016590
test eax, eax
je 0x140017b4c
mov edx, 7
mov rcx, rbx
call fcn.1400bd220
cmp dword [rbx + 0x1d8], 1
jne 0x140017b77
test dword [rbp + 0x30], 0x20000
je 0x140017b77
test dword [rbp + 0xa8], 0x8000
je 0x140017b77
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, rbx
call fcn.1400bd220
test dword [rbx + 0x308], 0x32500000
je 0x140017b90
mov edx, 0x18
mov rcx, rbx
call fcn.1400bd220
test byte [rbx + 0x318], 1
je 0x140017baf
test dword [rbp + 0x30], 0x400000
je 0x140017baf
mov edx, 0x10
mov rcx, rbx
call fcn.1400bd220
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000dc70
int3