Function at 0x140017eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov r12, rcx
mov qword [rbp - 0x71], rcx
xor r8d, r8d
lea rdx, str.WIToolQueryMonitorFile
lea rcx, [rsp + 0x48]
call fcn.14000b870
nop
mov qword [rsp + 0x20], r15
mov r9, r12
lea r8, str.lpFile___s__lpMonName___s
mov r14d, 1
mov edx, r14d
lea rcx, [rsp + 0x48]
call fcn.14000ba50
movaps xmm0, xmmword [str.SystemCurrentControlSetControlPrintMonitors_]
movaps xmmword [rbp - 0x59], xmm0
movaps xmm1, xmmword [0x140214180]
movaps xmmword [rbp - 0x49], xmm1
movaps xmm0, xmmword [0x140214190]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm1, xmmword [0x1402141a0]
movaps xmmword [rbp - 0x29], xmm1
movaps xmm0, xmmword [0x1402141b0]
movaps xmmword [rbp - 0x19], xmm0
movaps xmm1, xmmword [0x1402141c0]
movaps xmmword [rbp - 9], xmm1
movzx eax, word [0x1402141d0]
mov word [rbp + 7], ax
mov dword [rsp + 0x38], 0x104
call fcn.14004cde4
mov rdx, rax
xor r13d, r13d
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140017f9f
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x59]
lea rax, [rbp - 0x59]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140017fed
movzx edi, cx
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x1400180ea
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400012a0
jmp 0x1400180ea
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x59]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140018065
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400180ea
cmp dword [rdx + 0x10], eax
jge 0x140018038
cmp dword [rbx - 0xc], eax
jge 0x14001802b
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x1400180ea
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001804e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x1400180ea
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x59]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140018082
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400180a2
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400015c0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x1400180c6
lea r8, [rbx + r12*2]
call fcn.14018e5f0
jmp 0x1400180cf
lea r8, [rbp - 0x59]
call fcn.14018e7d0
cmp edi, dword [rbx - 0xc]
jg 0x14001826e
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
mov r12, qword [rbp - 0x71]
xor r13d, r13d
test r15, r15
jne 0x1400180f4
mov ecx, r13d
jmp 0x140018105
xor eax, eax
mov rcx, rsi
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140006350
mov rdi, qword [rsp + 0x30]
mov edx, dword [rdi - 0x10]
test edx, edx
jns 0x14001812c
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r14d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x14001814a
lea rcx, [rsp + 0x30]
call fcn.1400015c0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14018f24c
test eax, eax
js 0x140018263
cmp eax, dword [rdi - 0xc]
jg 0x140018263
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
test ebx, ebx
je 0x1400181e2
mov word [r12], r13w
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.14000ba50
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400181d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.14000ba00
xor eax, eax
jmp 0x140018279
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140018216
mov word [r12], r13w
mov r14d, r13d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, r14d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.14000ba50
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140018254
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.14000ba00
mov eax, r14d
jmp 0x140018279
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret