Function at 0x140016b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
lea r13, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x49], r13
lea r15, vtable.CVolObject.0
mov qword [rbp - 0x49], r15
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
lea rax, vtable.CWString.0
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], r14
lea r12, vtable.CVolMem.0
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp - 9], r14
mov qword [rbp + 7], 0x40
mov qword [rbp - 0x31], r14
mov qword [rbp + 7], 0xfe
mov rdi, qword [rdx + 0x18]
lea rbx, [0x1400d1058]
test rdi, rdi
jne 0x140016c0e
cmp qword [rdx + 0x48], rdi
mov rdi, rbx
je 0x140016c0e
mov rdi, qword [rdx + 0x38]
mov edx, 0x5c
mov rcx, rdi
call fcn.14008fc80
mov rsi, rax
test rax, rax
je 0x140016c3c
mov r8, rax
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.140026fe0
lea rdi, [rsi + 2]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rcx, vtable.CWString.0
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x67], rax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r14
mov qword [rbp - 0x79], r14
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], 0x40
mov qword [rsp + 0x48], r14
mov qword [rbp - 0x59], 0xfe
mov qword [rsp + 0x30], rcx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140026ec0
nop
mov edi, r14d
mov rax, qword [rbp - 0x31]
test rax, rax
jne 0x140016cc9
mov rax, rbx
cmp qword [rbp - 1], rdi
cmovne rax, qword [rbp - 0x11]
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016d8c
mov dword [rbp + 0x77], r14d
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140016d0d
mov rax, rbx
cmp qword [rbp - 0x61], rdi
cmovne rax, qword [rbp - 0x71]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016d81
cmp dword [rbp + 0x6f], 4
jne 0x140016d81
cmp dword [rbp + 0x77], 4
jne 0x140016d81
mov dword [rbp + 0x67], r14d
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x140016d59
cmp qword [rbp - 0x61], rdi
cmovne rbx, qword [rbp - 0x71]
mov rdx, rbx
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove edi, dword [rbp + 0x67]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x67], rax
mov qword [rsp + 0x50], r12
mov rdx, qword [rbp - 0x71]
test rdx, rdx
je 0x140016db0
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + Ordinal_26]
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x29]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x29], r12
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x140016de7
lea rcx, [rbp - 0x29]
mov r8, qword [rbp - 0x29]
call qword [r8 + Ordinal_26]
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp - 9], r14
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x49], r15
mov eax, edi
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret