Function at 0x140090a30
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xc0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov r12d, edx
mov rbp, rcx
lea rcx, str._RTK__DTS_Set_Bass_value_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rbp + 0xc0], 0
jne 0x140090a76
xor eax, eax
jmp 0x140090e6a
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x48]
lea r13, str.TBHD_Level
or rsi, 0xffffffffffffffff
test eax, eax
js 0x140090c96
mov qword [rsp + 0x100], rbx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x100]
xor edx, edx
call qword [rax + 0x18]
mov rdx, rbx
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140090afe
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1401afe88]
call qword [rax]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140090c75
mov qword [rsp + 0x40], rbx
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140005060
mov r8, rax
lea rdx, [rsp + 0xf0]
mov rcx, rbp
call fcn.14008eb10
nop
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xf0]
cmp dword [rdx - 8], 1
jle 0x140090b58
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0xf0]
call fcn.140001cf0
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rdi]
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [rax + 0x20]
mov r11d, eax
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
jne 0x140090b7a
mov ecx, ebx
jmp 0x140090b94
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140090c6a
cmp ecx, dword [rdx - 0xc]
jg 0x140090c6a
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0xf0]
mov word [rax + rcx*2], 0
test r11d, r11d
jne 0x140090c18
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov edx, r12d
call qword [rax + 0x40]
test eax, eax
je 0x140090bef
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.140005060
mov dword [rsp + 0x20], ebx
mov r9d, r12d
xor r8d, r8d
mov rdx, rax
mov rcx, rbp
call fcn.14008ee50
jmp 0x140090c18
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.140005060
mov dword [rsp + 0x20], ebx
mov r9d, r12d
mov r8d, 1
mov rdx, rax
mov rcx, rbp
call fcn.14008ee50
nop
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140090c3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140090c5b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x30]
jmp 0x140090c75
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x30]
jmp 0x140090c75
mov ecx, 0x80070057
call fcn.140001c70
nop
test rdx, rdx
je 0x140090c8b
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140090c96
mov rax, qword [rcx]
call qword [rax + 0x10]
mov word [rsp + 0x50], 3
mov dword [rsp + 0x58], r12d
cmp dword [rbp + 0x38], 0
je 0x140090e49
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
call fcn.14013e120
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140090cd5
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
test r13, 0xffffffffffff0000
jne 0x140090d12
movzx edi, r13w
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x140090d32
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005140
jmp 0x140090d32
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.1400038f0
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x108]
mov rcx, rbp
call fcn.14008eb10
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rdi, qword [rbp + 0xc8]
mov rdx, qword [rsp + 0x108]
cmp dword [rdx - 8], 1
jle 0x140090d98
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x108]
call fcn.140001cf0
mov rdx, qword [rsp + 0x108]
mov rax, qword [rdi]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x48]
mov r11d, eax
mov rdx, qword [rsp + 0x108]
test rdx, rdx
je 0x140090dd4
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov ebx, ecx
test ecx, ecx
js 0x140090e3e
cmp ebx, dword [rdx - 0xc]
jg 0x140090e3e
mov dword [rdx - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsp + 0x108]
mov word [rax + rcx*2], 0
test r11d, r11d
je 0x140090e1b
mov rdx, r13
lea rcx, [rsp + 0x78]
call fcn.140005060
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rcx, rbp
call fcn.14008ee50
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140090e49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140090e49
mov ecx, 0x80070057
call fcn.140001c70
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140090e5a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret