Function at 0x1400066e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400ce148]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, rdx
mov r13, rcx
mov qword [rsp + 0x78], rcx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rcx + 0x10], r14
lea ecx, [r14 + 0x50]
call fcn.14004dd0c
test rax, rax
je 0x140006a4a
mov qword [r13 + 8], rax
mov qword [rax], rax
mov rax, qword [r13 + 8]
mov qword [rax + 8], rax
mov rax, qword [r13 + 8]
mov qword [rax + 0x10], rax
mov rax, qword [r13 + 8]
mov byte [rax + 0x48], 1
mov rax, qword [r13 + 8]
mov byte [rax + 0x49], 1
lea edi, [r14 + 7]
mov qword [rbp], rdi
mov qword [rbp - 8], r14
mov word [rbp - 0x18], r14w
lea rcx, str.DefaultLogLevel
call fcn.14004a2f8
mov r8, rax
lea rdx, str.DefaultLogLevel
lea rcx, [rbp - 0x18]
call fcn.140073170
nop
mov dword [rsp + 0x38], 4
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x3bc6
test eax, eax
jne 0x1400067e8
cmp dword [rsp + 0x3c], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140005f74
mov r11d, dword [rsp + 0x34]
mov dword [r13 + 0x20], r11d
cmp qword [rbp], 8
jb 0x14000680f
mov rcx, qword [rbp - 0x18]
call fcn.14004aab0
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], r14
mov word [rbp + 0x10], r14w
lea rcx, str.OriginRules
call fcn.14004a2f8
mov r8, rax
lea rdx, str.OriginRules
lea rcx, [rbp + 0x10]
call fcn.140073170
nop
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400061bc
nop
cmp qword [rbp + 0x28], 8
jb 0x14000685e
mov rcx, qword [rbp + 0x10]
call fcn.14004aab0
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], r14
mov word [rbp + 0x10], r14w
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call fcn.140006680
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400164d4
nop
lea rcx, [rbp - 0x38]
call fcn.14000eaac
nop
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rdi]
cmp rbx, rdi
setne sil
bt r12d, 0x19
jae 0x1400068bb
btr r12d, 0x19
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x78]
call fcn.14000eaac
bt r12d, 0x18
jae 0x1400068d5
btr r12d, 0x18
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x58]
call fcn.14000eaac
test sil, sil
je 0x140006a2e
lea rdx, [rbx + 0x18]
mov qword [rbp], 7
mov qword [rbp - 8], r14
mov word [rbp - 0x18], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.1400116d4
nop
bt r12d, 0x1b
jae 0x14000691f
btr r12d, 0x1b
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x58]
call fcn.14000eaac
nop
bt r12d, 0x1a
jae 0x140006939
btr r12d, 0x1a
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x78]
call fcn.14000eaac
mov dword [rsp + 0x34], 4
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006987
cmp dword [rsp + 0x3c], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140005f74
mov esi, dword [rsp + 0x38]
lea rdx, [rbp - 0x18]
mov rcx, r13
call fcn.14000eba0
mov dword [rax], esi
cmp qword [rbp], 8
jb 0x1400069b7
mov rcx, qword [rbp - 0x18]
call fcn.14004aab0
cmp byte [rbx + 0x41], r14b
jne 0x1400069f1
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], r14b
jne 0x1400069d5
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], r14b
je 0x1400069c7
jmp 0x1400069f1
mov rax, qword [rbx + 8]
jmp 0x1400069e8
cmp rbx, qword [rax + 0x10]
jne 0x1400069ee
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], r14b
je 0x1400069db
mov rbx, rax
bt r12d, 0x17
jae 0x140006a0b
btr r12d, 0x17
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x58]
call fcn.14000eaac
bt r12d, 0x16
jae 0x14000689a
btr r12d, 0x16
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x78]
call fcn.14000eaac
jmp 0x14000689a
lea rcx, [rsp + 0x58]
call fcn.14000eaac
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, r13
jmp 0x140006a7c
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14004ad64
lea r11, vtable.std::bad_alloc.0
mov qword [rsp + 0x58], r11
lea rdx, [0x1400cacf8]
lea rcx, [rsp + 0x58]
call fcn.14004e544
int3
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140049cd0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret