Function at 0x14008a580
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r8
mov rsi, rdx
mov rbp, rcx
lea rcx, [rax - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov edi, r13d
call fcn.14012a060
mov rcx, rax
mov r8d, r13d
test rax, rax
setne r8b
test r8d, r8d
jne 0x14008a5e2
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x48]
test eax, eax
js 0x14008a72b
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
mov rcx, r13
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14008a650
mov r9, qword [rax]
lea r8, [rsp + 0x28]
lea rdx, [0x140193528]
mov rcx, rax
call qword [r9]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14008a704
mov qword [rsp + 0x38], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, str.PRMSND_TBHD_Level
call qword [rax + 0x20]
test eax, eax
jne 0x14008a6de
mov dword [rsp + 0xa8], r13d
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0xa8]
call qword [rax + 0x38]
test eax, eax
je 0x14008a6a5
lea rcx, str._RTK__get_Value_PRMSND_TBHD_Level_fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, r13d
jmp 0x14008a6de
mov r8d, dword [rsp + 0xa8]
lea rdx, str._RTK__get_Value_PRMSND_TBHD_Level_ok___val_d_r_n
lea rcx, [rsp + 0x40]
call fcn.140004aa0
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 1
mov eax, dword [rsp + 0xa8]
mov dword [rsi], eax
mov dword [r12], edi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14008a6fa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
jmp 0x14008a704
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14008a714
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14008a723
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x10]
test edi, edi
jne 0x14008a7b8
cmp dword [rbp + 0x38], 0
je 0x14008a79b
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.PRMSND_TBHD_Level
call qword [rax + 0x40]
test eax, eax
je 0x14008a79b
lea rcx, str._RTK__get_Property_PRMSND_TBHD_Level_fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsi], r13d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14008a77b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008a78c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
jmp 0x14008a7f6
lea rcx, str._RTK__get_Property_PRMSND_TBHD_Level_ok_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r11d, dword [rsp + 0x58]
mov dword [rsi], r11d
mov dword [r12], 2
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14008a7d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008a7e6
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret