Function at 0x14000692c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x68], 0xfffffffffffffffe
mov r14, r9
mov rbx, r8
mov r15, rcx
xor edi, edi
test r9, r9
jne 0x14000696e
mov eax, 0x80070057
jmp 0x140006ccb
call fcn.1400062ec
mov rsi, rdi
mov qword [rsp + 0x50], rdi
mov r13, qword [rsp + 0x118]
test r13, r13
je 0x140006c8d
mov r12, qword [rsp + 0x120]
test r12, r12
je 0x140006c8d
movsxd rdx, dword [rsp + 0xf8]
mov rcx, r15
call fcn.140005e14
test al, al
je 0x1400069ca
mov dword [rsp + 0x70], SafeArrayDestroy
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll__CxxThrowException
mov dword [rsp + 0x30], edi
mov r8b, 1
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140002e6c
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140006a01
cmp qword [rbx + 8], rdi
jne 0x1400069fb
mov rcx, qword [rbx]
call fcn.140012690
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x140006a04
mov rdx, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0x110]
xor r8d, r8d
movsxd rcx, dword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [r14], eax
test eax, eax
je 0x140006a48
mov dword [rsp + 0x64], eax
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x64]
call sub.MSVCR110.dll__CxxThrowException
cmp dword [rsp + 0x30], edi
jne 0x140006a57
mov dword [r12], edi
jmp 0x140006c46
mov ecx, dword [rsp + 0x30]
call sub.MSVCR110.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140006a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
test eax, eax
jne 0x140006a80
lea eax, [rsi + 8]
mov dword [r14], eax
mov eax, dword [r14]
mov dword [rsp + 0x68], eax
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x68]
call sub.MSVCR110.dll__CxxThrowException
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call sub.MSVCR110.dll_memset
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140006ac9
cmp qword [rbx + 8], rdi
jne 0x140006ac3
mov rcx, qword [rbx]
call fcn.140012690
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x140006acc
mov rdx, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rbx, qword [rsp + 0x110]
mov r9, rbx
xor r8d, r8d
movsxd rcx, dword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [r14], eax
test eax, eax
je 0x140006b13
mov dword [rsp + 0x60], eax
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x60]
call sub.MSVCR110.dll__CxxThrowException
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
cmp dword [rbx], edi
jbe 0x140006c26
cmp dword [rbx], 2
jbe 0x140006bde
mov ecx, 3
cmp dword [rbx], ecx
je 0x140006bc2
cmp dword [rbx], 4
je 0x140006b50
cmp dword [rbx], 7
je 0x140006bde
jmp 0x140006c26
mov ebx, dword [rsi]
movzx eax, word [rsp + 0x38]
cmp ax, cx
je 0x140006b94
cmp ax, 0xa
je 0x140006b94
cmp ax, 0xb
jne 0x140006b74
neg ebx
sbb ax, ax
mov word [rsp + 0x40], ax
jmp 0x140006b98
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x140006b8a
mov ecx, eax
call fcn.140012550
mov eax, 3
mov word [rsp + 0x38], ax
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [r13], rax
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rdx
mov word [rsp + 0x38], di
mov eax, dword [rsp + 0x30]
mov dword [r12], eax
jmp 0x140006c3a
mov r9, r13
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, r15
call fcn.140007384
mov dword [r14], eax
test eax, eax
jne 0x140006c3a
jmp 0x140006bb8
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x140006bf4
mov ecx, eax
call fcn.140012550
mov eax, 8
mov word [rsp + 0x38], ax
mov rcx, rsi
call fcn.1400127b0
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [r13], rcx
mov qword [r13 + 8], rdx
mov qword [r13 + 0x10], rax
jmp 0x140006bb3
mov dword [r14], SafeArrayDestroy
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [r12], edi
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140006c8b
lock dec dword [rbx + 0x10]
jne 0x140006c86
test rbx, rbx
je 0x140006c86
cmp qword [rbx], rdi
je 0x140006c6c
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006c7e
call sub.MSVCR110.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rbx + 8], rdi
mov rcx, rbx
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x58], rdi
jmp 0x140006cb4
mov dword [rsp + 0x6c], 0x57
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x6c]
call sub.MSVCR110.dll__CxxThrowException
nop
mov r15, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140006cc1
mov rcx, rsi
call sub.MSVCR110.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, r15
call fcn.140007b18
xor eax, eax
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret