Function at 0x14001f090
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 [0x14027bbd0]
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.140017fc0
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.140017c80
movaps xmm0, xmmword [str.SystemCurrentControlSetControlPrintMonitors_]
movaps xmmword [rbp - 0x59], xmm0
movaps xmm1, xmmword [0x1401ce170]
movaps xmmword [rbp - 0x49], xmm1
movaps xmm0, xmmword [0x1401ce180]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm1, xmmword [0x1401ce190]
movaps xmmword [rbp - 0x29], xmm1
movaps xmm0, xmmword [0x1401ce1a0]
movaps xmmword [rbp - 0x19], xmm0
movaps xmm1, xmmword [0x1401ce1b0]
movaps xmmword [rbp - 9], xmm1
movzx eax, word [0x1401ce1c0]
mov word [rbp + 7], ax
mov dword [rsp + 0x38], 0x104
call fcn.140051e58
mov rdx, rax
xor r13d, r13d
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14001f17f
mov ecx, 0x80004005
call fcn.140001010
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 0x14001f1cd
movzx edi, cx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x14001f2ca
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001b00
jmp 0x14001f2ca
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 0x14001f245
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001f2ca
cmp dword [rdx + 0x10], eax
jge 0x14001f218
cmp dword [rbx - 0xc], eax
jge 0x14001f20b
mov ecx, 0x80070057
call fcn.140001010
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14001f2ca
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001f22e
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 0x14001f2ca
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x59]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14001f262
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001f282
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400018f0
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 0x14001f2a6
lea r8, [rbx + r12*2]
call fcn.140192c44
jmp 0x14001f2af
lea r8, [rbp - 0x59]
call fcn.140192bbc
cmp edi, dword [rbx - 0xc]
jg 0x14001f44e
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 0x14001f2d4
mov ecx, r13d
jmp 0x14001f2e5
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.140006c60
mov rdi, qword [rsp + 0x30]
mov edx, dword [rdi - 0x10]
test edx, edx
jns 0x14001f30c
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, r14d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x14001f32a
lea rcx, [rsp + 0x30]
call fcn.1400018f0
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.14019442c
test eax, eax
js 0x14001f443
cmp eax, dword [rdi - 0xc]
jg 0x14001f443
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
test ebx, ebx
je 0x14001f3c2
mov word [r12], r13w
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001f3b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
xor eax, eax
jmp 0x14001f459
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 0x14001f3f6
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.140017c80
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001f434
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, r14d
jmp 0x14001f459
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80070057
call fcn.140001010
nop
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret