Function at 0x140029be0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r13, rdx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, str.SystemCurrentControlSetControlPrintMonitors_
mov r8d, 0x62
call fcn.1400846a0
mov dword [rsp + 0x38], 0x104
call fcn.1400696cc
mov rcx, rax
xor edx, edx
test rax, rax
setne dl
test edx, edx
jne 0x140029c5c
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x60]
mov r15d, 1
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140029cb4
movzx edi, cx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x140029dae
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003a40
mov rbx, qword [rsp + 0x30]
jmp 0x140029dae
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x140029d2c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140029dae
cmp dword [rdx + 0x10], eax
jge 0x140029cfe
cmp dword [rbx - 0xc], eax
jge 0x140029cf3
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140029dae
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140029d15
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]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140029dae
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x60]
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140029d5a
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140003180
mov rbx, qword [rsp + 0x30]
cmp r12, rbp
ja 0x140029d7a
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140081c40
jmp 0x140029d94
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x140029f5d
cmp edi, dword [rbx - 0xc]
jg 0x140029f5d
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
test r13, r13
jne 0x140029db7
xor ebp, ebp
jmp 0x140029dc9
xor eax, eax
mov rcx, rsi
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
mov r12, r13
sub r12, rbx
sar r12, 1
mov r14d, dword [rbx - 0x10]
lea edi, [r14 + rbp]
mov edx, r15d
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x140029dfa
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140003180
mov rbx, qword [rsp + 0x30]
cmp r12, r14
ja 0x140029e03
lea r13, [rbx + r12*2]
movsxd rdx, ebp
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r13
call fcn.140080540
test edi, edi
js 0x140029f52
cmp edi, dword [rbx - 0xc]
jg 0x140029f52
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov edx, dword [rbx - 0x10]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or ecx, eax
jge 0x140029e56
lea rcx, [rsp + 0x30]
call fcn.140003180
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r11d, eax
test rbx, rbx
jne 0x140029e85
xor ecx, ecx
jmp 0x140029e9f
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140029f47
cmp ecx, dword [rbx - 0xc]
jg 0x140029f47
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
test r11d, r11d
je 0x140029ee3
mov rdi, qword [rsp + 0x40]
mov word [rdi], 0
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140029edc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140029f68
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x1400a4128]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140029f1d
mov word [rdi], 0
xor r15d, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140029f42
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
jmp 0x140029f68
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret