Function at 0x14004659c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ef1f8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x10], rcx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x34], r14d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x30]
call fcn.140002308
nop
lea edi, [r14 + 7]
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
lea rcx, str.DefaultLogLevel
call fcn.1401bf020
mov r8, rax
lea rdx, str.DefaultLogLevel
lea rcx, [rbp - 8]
call fcn.1400028c4
nop
mov dword [rsp + 0x38], 4
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
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 0x140046672
cmp dword [rsp + 0x3c], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004223c
mov r11d, dword [rsp + 0x40]
mov dword [r13 + 0x20], r11d
cmp qword [rbp + 0x10], 8
jb 0x140046699
mov rcx, qword [rbp - 8]
call fcn.14005b2ec
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
lea rcx, str.OriginRules
call fcn.1401bf020
mov r8, rax
lea rdx, str.OriginRules
lea rcx, [rbp - 8]
call fcn.1400028c4
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140044a70
nop
cmp qword [rbp + 0x10], 8
jb 0x1400466e7
mov rcx, qword [rbp - 8]
call fcn.14005b2ec
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140044ac4
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140044f54
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005b2ec
nop
mov rdi, qword [rbp - 0x58]
mov rbx, qword [rdi]
cmp rbx, rdi
setne sil
bt r12d, 0x19
jae 0x140046770
btr r12d, 0x19
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005b2ec
nop
bt r12d, 0x18
jae 0x1400467a5
btr r12d, 0x18
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005b2ec
test sil, sil
je 0x14004696a
lea rdx, [rbx + 0x18]
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 8]
call fcn.1401f2bd0
nop
bt r12d, 0x1b
jae 0x14004680a
btr r12d, 0x1b
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x68]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005b2ec
nop
bt r12d, 0x1a
jae 0x14004683f
btr r12d, 0x1a
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x48]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005b2ec
mov dword [rsp + 0x40], 4
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004688c
cmp dword [rsp + 0x3c], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004223c
mov esi, dword [rsp + 0x38]
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.140041270
mov dword [rax], esi
cmp qword [rbp + 0x10], 8
jb 0x1400468bc
mov rcx, qword [rbp - 8]
call fcn.14005b2ec
cmp byte [rbx + 0x41], r14b
jne 0x1400468f6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], r14b
jne 0x1400468da
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], r14b
je 0x1400468cc
jmp 0x1400468f6
mov rax, qword [rbx + 8]
jmp 0x1400468ed
cmp rbx, qword [rax + 0x10]
jne 0x1400468f3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], r14b
je 0x1400468e0
mov rbx, rax
bt r12d, 0x17
jae 0x14004692c
btr r12d, 0x17
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005b2ec
nop
bt r12d, 0x16
jae 0x140046733
btr r12d, 0x16
mov dword [rsp + 0x34], r12d
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x48]
call fcn.14003ed8c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005b2ec
jmp 0x140046733
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.14003ed8c
nop
mov rcx, qword [rbp - 0x58]
call fcn.14005b2ec
nop
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, r13
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401be840
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret