Function at 0x140046540
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 [0x1402f2208]
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.14002b48c
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.1401c0bf0
mov r8, rax
lea rdx, str.DefaultLogLevel
lea rcx, [rbp - 8]
call fcn.140002850
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 0x140046616
cmp dword [rsp + 0x3c], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004204c
mov r11d, dword [rsp + 0x40]
mov dword [r13 + 0x20], r11d
cmp qword [rbp + 0x10], 8
jb 0x14004663d
mov rcx, qword [rbp - 8]
call fcn.14005ce7c
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
lea rcx, str.OriginRules
call fcn.1401c0bf0
mov r8, rax
lea rdx, str.OriginRules
lea rcx, [rbp - 8]
call fcn.140002850
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140044a14
nop
cmp qword [rbp + 0x10], 8
jb 0x14004668b
mov rcx, qword [rbp - 8]
call fcn.14005ce7c
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140044a68
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140044ef8
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003ec34
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005ce7c
nop
mov rdi, qword [rbp - 0x58]
mov rbx, qword [rdi]
cmp rbx, rdi
setne sil
bt r12d, 0x19
jae 0x140046714
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.14003ec34
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005ce7c
nop
bt r12d, 0x18
jae 0x140046749
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.14003ec34
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005ce7c
test sil, sil
je 0x14004690e
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.1401f4bb4
nop
bt r12d, 0x1b
jae 0x1400467ae
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.14003ec34
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005ce7c
nop
bt r12d, 0x1a
jae 0x1400467e3
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.14003ec34
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005ce7c
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 0x140046830
cmp dword [rsp + 0x3c], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004204c
mov esi, dword [rsp + 0x38]
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.140041080
mov dword [rax], esi
cmp qword [rbp + 0x10], 8
jb 0x140046860
mov rcx, qword [rbp - 8]
call fcn.14005ce7c
cmp byte [rbx + 0x41], r14b
jne 0x14004689a
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], r14b
jne 0x14004687e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], r14b
je 0x140046870
jmp 0x14004689a
mov rax, qword [rbx + 8]
jmp 0x140046891
cmp rbx, qword [rax + 0x10]
jne 0x140046897
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], r14b
je 0x140046884
mov rbx, rax
bt r12d, 0x17
jae 0x1400468d0
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.14003ec34
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005ce7c
nop
bt r12d, 0x16
jae 0x1400466d7
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.14003ec34
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005ce7c
jmp 0x1400466d7
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.14003ec34
nop
mov rcx, qword [rbp - 0x58]
call fcn.14005ce7c
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.1401c0410
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