Function at 0x14000d820
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2d0], rbx
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r15, r9
mov r13, r8
mov r14, rdx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
call fcn.1400280cc
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x14000d88c
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x14007e0d8]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14000d8d5
movzx edi, dx
mov ecx, edi
call fcn.1400280b8
test rax, rax
je 0x14000d8f6
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003060
mov rbx, qword [rsp + 0x30]
jmp 0x14000d8f6
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.1400036f0
mov rbx, qword [rsp + 0x30]
call fcn.1400280cc
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x14000d916
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x60], rsi
call fcn.14000de80
mov r9d, r12d
mov ecx, 0x100
cmp eax, 1
cmove r9d, ecx
or r9d, 0x20019
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000dad0
test eax, eax
jne 0x14000dad0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000da85
cmp dword [rsp + 0x38], eax
je 0x14000da85
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdx, rcx
mov qword [rsp + 0x50], rcx
lea r14, [rsp + 0x70]
lea r13, [rsp + 0x70]
sub r13, rbx
sar r13, 1
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x48], eax
lea edi, [rax + rcx]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000da28
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140003380
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x48]
cmp r13, rax
ja 0x14000da35
lea r14, [rbx + r13*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rbx + rax*2]
mov r9, rdx
mov r8, r14
call fcn.1400525a0
test edi, edi
js 0x14000da7a
cmp edi, dword [rbx - 0xc]
jg 0x14000da7a
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
cmp dword [rbx - 0x10], 0
je 0x14000da85
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140003600
mov r12d, 1
jmp 0x14000da85
mov ecx, 0x80070057
call fcn.140003280
int3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000daad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14000dacb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x14000db32
xor eax, eax
mov rcx, rbp
lea rdi, [0x14007e0d8]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14007e0d8]
mov rcx, r15
call fcn.1400036f0
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000db12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14000db30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140052690
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret