Function at 0x140021cb0
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 - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x14026fdb0]
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.140001190
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.140001370
movaps xmm0, xmmword [str.SystemCurrentControlSetControlPrintMonitors_]
movaps xmmword [rbp - 0x59], xmm0
movaps xmm1, xmmword [0x140220540]
movaps xmmword [rbp - 0x49], xmm1
movaps xmm0, xmmword [0x140220550]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm1, xmmword [0x140220560]
movaps xmmword [rbp - 0x29], xmm1
movaps xmm0, xmmword [0x140220570]
movaps xmmword [rbp - 0x19], xmm0
movaps xmm1, xmmword [0x140220580]
movaps xmmword [rbp - 9], xmm1
movzx eax, word [0x140220590]
mov word [rbp + 7], ax
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
call fcn.140056384
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140021da9
mov ecx, 0x80004005
call fcn.140004550
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 0x140021df7
movzx edi, cx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x140021ef4
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005730
jmp 0x140021ef4
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 0x140021e6f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140021ef4
cmp dword [rdx + 0x10], eax
jge 0x140021e42
cmp dword [rbx - 0xc], eax
jge 0x140021e35
mov ecx, 0x80070057
call fcn.140004550
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140021ef4
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140021e58
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 0x140021ef4
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x59]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140021e8c
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140021eac
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ae0
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 0x140021ed0
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x140021ed9
lea r8, [rbp - 0x59]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x140022079
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 0x140021efe
mov ecx, r13d
jmp 0x140021f0f
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.14000bed0
mov rdi, qword [rsp + 0x30]
mov edx, dword [rdi - 0x10]
test edx, edx
jns 0x140021f36
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, r14d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x140021f54
lea rcx, [rsp + 0x30]
call fcn.140005ae0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
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.140199d34
test eax, eax
js 0x14002206e
cmp eax, dword [rdi - 0xc]
jg 0x14002206e
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
test ebx, ebx
je 0x140021fec
mov word [r12], r13w
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.140001370
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140021fdb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140001320
xor eax, eax
jmp 0x140022084
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140022021
mov word [r12], r13w
mov r14d, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, r14d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140001370
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14002205f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140001320
mov eax, r14d
jmp 0x140022084
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80070057
call fcn.140004550
nop
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret