Function at 0x1400db6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r14
sub rsp, 0x88
test rdx, rdx
mov r14, r9
mov r12, r8
jne 0x1400db6f3
mov rdx, qword [r8]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400db6e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x88
pop r14
pop r12
ret
test r9, r9
je 0x1400db6c6
xor eax, eax
mov qword [rsp + 0xb0], rbp
xor ebp, ebp
mov qword [r9], rax
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], rax
lea rax, [rsp + 0x58]
lea r9d, [rbp + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x34], ebp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dba4d
mov rdx, qword [r12]
mov qword [rsp + 0xa0], rbx
mov rbx, qword [rsp + 0x58]
lea r9, [rsp + 0x34]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400db7a0
test rbx, rbx
je 0x1400db77c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r12]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400db79c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400db7ed
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x78], r13
sub eax, 1
je 0x1400db90a
sub eax, 2
je 0x1400db85f
cmp eax, 1
je 0x1400db809
test rbx, rbx
je 0x1400db7d6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call fcn.140086340
xor eax, eax
mov rsi, qword [rsp + 0xb8]
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x88
pop r14
pop r12
ret
lea rcx, [rsp + 0x48]
mov word [r14], 0x13
mov rdx, qword [r12]
mov qword [rsp + 0x28], rcx
lea rax, [r14 + 8]
lea r9, [rsp + 0x44]
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, eax
jne 0x1400dba11
cmp dword [rsp + 0x44], 4
mov esi, ebp
mov r13d, SafeArrayDestroy
cmovne esi, r13d
jmp 0x1400dba11
mov rdx, qword [r12]
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0xa8], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, eax
jne 0x1400db8a4
cmp dword [rsp + 0x3c], 3
mov esi, ebp
mov r13d, SafeArrayDestroy
cmovne esi, r13d
mov eax, dword [rsp + 0xa8]
lea r8, [rsp + 0x50]
mov edx, 1
mov cx, 0x11
mov dword [rsp + 0x54], ebp
mov word [r14], 0x2011
mov dword [rsp + 0x50], eax
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
test rax, rax
mov qword [r14 + 8], rax
je 0x1400dba11
mov rax, qword [rax + 0x10]
mov rdx, qword [r12]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1400dba11
mov word [r14], 0x1f
mov rdx, qword [r12]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x80], rdi
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x30], ebp
mov r15d, ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, SafeArrayDestroy
test eax, eax
mov esi, eax
jne 0x1400db971
mov eax, dword [rsp + 0x4c]
cmp eax, 1
je 0x1400db967
cmp eax, 2
je 0x1400db967
mov esi, r13d
jmp 0x1400db971
mov r15d, dword [rsp + 0x30]
mov esi, ebp
shr r15d, 1
mov edi, r15d
add rdi, rdi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [r14 + 8], rax
call fcn.140148fe0
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x1400dba04
mov rdx, qword [r12]
lea eax, [r15 + r15]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, eax
jne 0x1400dba04
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1400db9df
cmp eax, 2
je 0x1400db9df
mov esi, r13d
jmp 0x1400dba04
test rdi, rdi
je 0x1400dba02
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400db9ff
test al, 1
jne 0x1400db9fa
shr rax, 1
cmp word [rdi + rax*2 - 2], bp
je 0x1400dba02
mov esi, r13d
jmp 0x1400dba04
mov word [rdi], bp
mov esi, ebp
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
test esi, esi
sete bpl
test rbx, rbx
je 0x1400dba25
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r12]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400dba46
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebp
jmp 0x1400db7e0
mov rdx, qword [r12]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400dba6d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbp, qword [rsp + 0xb0]
add rsp, 0x88
pop r14
pop r12
ret