Function at 0x140090530
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r9
mov r13, r8
mov rbp, rdx
mov r12, rcx
call fcn.14013d07c
mov rcx, rax
xor r15d, r15d
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x14009058e
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov eax, dword [r14]
mov dword [rsp + 0x28], eax
mov eax, dword [r13]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp]
lea r8, str.CDtsHPSetting::GetControlValue
lea rdx, str._HPX___s__s_val_d_mode_d_r_n
lea rcx, [rsp + 0x60]
call fcn.140001f50
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [r13], r15d
cmp dword [r12 + 0xc0], 0
jne 0x140090628
lea rdx, [rdi - 0x18]
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140090604
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140090621
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140090b5a
lea rcx, [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x58], r15
mov esi, r15d
call fcn.14013d07c
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14009065c
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, qword [r12 + 0xe8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x48]
or rbx, 0xffffffffffffffff
test eax, eax
js 0x14009087a
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [rax + 0x18]
mov rdx, r15
mov qword [rsp + 0x50], rdx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400906d1
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x1401b1198]
call qword [rax]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140090854
mov qword [rsp + 0x68], r15
mov rdx, rbp
lea rcx, [rsp + 0xc0]
call fcn.140001cd0
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.14008f730
nop
mov rdi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
cmp dword [rdx - 8], 1
jle 0x140090722
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140001e50
mov rdx, qword [rsp + 0x48]
mov rax, qword [rdi]
lea r8, [rsp + 0x68]
mov rcx, rdi
call qword [rax + 0x20]
mov r11d, eax
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x140090742
mov ecx, r15d
jmp 0x14009075c
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140090849
cmp ecx, dword [rdx - 0xc]
jg 0x140090849
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0x48]
mov word [rax + rcx*2], 0
test r11d, r11d
jne 0x140090800
mov dword [rsp + 0x30], r15d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x1400907c5
mov rdx, rbp
lea rcx, [rsp + 0x98]
call fcn.140001cd0
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14008f850
mov esi, r15d
jmp 0x140090800
mov rdx, rbp
lea rcx, [rsp + 0xb8]
call fcn.140001cd0
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0x30]
mov r8d, 1
mov rdx, rax
mov rcx, r12
call fcn.14008f850
mov esi, 1
mov eax, dword [rsp + 0x30]
mov dword [r13], eax
mov dword [r14], esi
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140090821
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009083d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
jmp 0x140090854
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
jmp 0x140090854
mov ecx, 0x80070057
call fcn.140001c00
nop
test rdx, rdx
je 0x140090867
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140090872
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
jne 0x140090ad9
cmp dword [r12 + 0x38], 0
je 0x140090a2f
mov rdx, rbp
lea rcx, [rsp + 0xa0]
call fcn.140001cd0
mov r8, rax
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.14008f730
nop
mov rdi, qword [r12 + 0xc8]
mov rdx, qword [rsp + 0x38]
cmp dword [rdx - 8], 1
jle 0x1400908cc
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001e50
mov rdx, qword [rsp + 0x38]
mov rax, qword [rdi]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x40]
mov r11d, eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
jne 0x1400908ef
mov ecx, r15d
jmp 0x140090909
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140090a24
cmp ecx, dword [rdx - 0xc]
jg 0x140090a24
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rsp + 0x38]
mov word [rax + rcx*2], 0
test r11d, r11d
je 0x140090a02
mov rdx, rbp
lea rcx, [rsp + 0xb0]
call fcn.140001cd0
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14008f850
mov dword [r13], r15d
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14009097f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400909a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400909b1
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400909de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400909fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140090b5a
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140090a2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140090a2f
mov ecx, 0x80070057
call fcn.140001c00
nop
mov rdi, qword [rbp]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140090a57
cmp rax, qword [rdi - 0x18]
jne 0x140090a57
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140090a95
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x140090a73
call fcn.1400c5210
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.14015cd30
lea rax, [rsi + 0x18]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x80]
mov r8d, 1
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.14008f850
mov edx, dword [rsp + 0x80]
mov dword [r13], edx
mov dword [r14], 2
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140090afa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140090b0b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140090b38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140090b55
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret