Function at 0x140091680
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xc0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov ebp, edx
mov rsi, rcx
lea rcx, str._RTK__DTS_set_Treble_value_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsi + 0xc0], 0
jne 0x1400916bc
xor eax, eax
jmp 0x140091b5c
lea rcx, [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x48]
lea r12, str.Definition_Level
test eax, eax
js 0x1400918d9
mov qword [rsp + 0x100], rbx
mov rcx, qword [rsp + 0x50]
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 0x140091740
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 0x1400918b8
mov qword [rsp + 0x48], rbx
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140005060
mov r8, rax
lea rdx, [rsp + 0xf0]
mov rcx, rsi
call fcn.14008eb10
nop
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xf0]
cmp dword [rdx - 8], 1
jle 0x14009179a
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0xf0]
call fcn.140001cf0
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rdi]
lea r8, [rsp + 0x48]
mov rcx, rdi
call qword [rax + 0x20]
mov r11d, eax
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
jne 0x1400917bc
mov ecx, ebx
jmp 0x1400917d7
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x1400918ad
cmp ecx, dword [rdx - 0xc]
jg 0x1400918ad
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0xf0]
mov word [rax + rcx*2], 0
test r11d, r11d
jne 0x14009185a
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + 0x40]
test eax, eax
je 0x140091831
mov rdx, r12
lea rcx, [rsp + 0x98]
call fcn.140005060
mov dword [rsp + 0x20], ebx
mov r9d, ebp
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.14008ee50
jmp 0x14009185a
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.140005060
mov dword [rsp + 0x20], ebx
mov r9d, ebp
mov r8d, 1
mov rdx, rax
mov rcx, rsi
call fcn.14008ee50
nop
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14009187f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009189e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x30]
jmp 0x1400918b8
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x30]
jmp 0x1400918b8
mov ecx, 0x80070057
call fcn.140001c70
nop
test rdx, rdx
je 0x1400918ce
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x1400918d9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov word [rsp + 0x58], 3
mov dword [rsp + 0x60], ebp
cmp dword [rsi + 0x38], 0
je 0x140091a95
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
call fcn.14013e120
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140091917
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test r12, 0xffffffffffff0000
jne 0x140091954
movzx edi, r12w
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x140091975
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005140
jmp 0x140091975
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.1400038f0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x108]
mov rcx, rsi
call fcn.14008eb10
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x58]
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 [rsi + 0xc8]
mov rdx, qword [rsp + 0x108]
cmp dword [rdx - 8], 1
jle 0x1400919db
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
jne 0x140091a03
mov ecx, ebx
jmp 0x140091a1a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140091a8a
cmp ecx, dword [rdx - 0xc]
jg 0x140091a8a
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0x108]
mov word [rax + rcx*2], 0
test r11d, r11d
jne 0x140091a64
mov rdx, r12
lea rcx, [rsp + 0x80]
call fcn.140005060
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.14008ee50
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140091a95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140091a95
mov ecx, 0x80070057
call fcn.140001c70
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0xf0], rax
call fcn.14013e120
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x140091abf
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
test r12, 0xffffffffffff0000
jne 0x140091af9
movzx edi, r12w
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x140091b1a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005140
jmp 0x140091b1a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.1400038f0
nop
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x60]
mov r8d, 1
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14008ee50
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140091b4c
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
add rsp, 0xc0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret