Function at 0x140045d1c
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 [0x1402ee230]
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.14002ac6c
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.1401be2f4
mov r8, rax
lea rdx, str.DefaultLogLevel
lea rcx, [rbp - 8]
call fcn.1401f2254
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 0x140045df2
cmp dword [rsp + 0x3c], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419c4
mov r11d, dword [rsp + 0x40]
mov dword [r13 + 0x20], r11d
cmp qword [rbp + 0x10], 8
jb 0x140045e19
mov rcx, qword [rbp - 8]
call fcn.14005a61c
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
lea rcx, str.OriginRules
call fcn.1401be2f4
mov r8, rax
lea rdx, str.OriginRules
lea rcx, [rbp - 8]
call fcn.1401f2254
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.14004438c
nop
cmp qword [rbp + 0x10], 8
jb 0x140045e67
mov rcx, qword [rbp - 8]
call fcn.14005a61c
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.1400443e0
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140044870
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003e554
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
nop
mov rdi, qword [rbp - 0x58]
mov rbx, qword [rdi]
cmp rbx, rdi
setne sil
bt r12d, 0x19
jae 0x140045ef0
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.14003e554
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
nop
bt r12d, 0x18
jae 0x140045f25
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.14003e554
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a61c
test sil, sil
je 0x1400460ea
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.1401f213c
nop
bt r12d, 0x1b
jae 0x140045f8a
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.14003e554
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a61c
nop
bt r12d, 0x1a
jae 0x140045fbf
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.14003e554
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
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 0x14004600c
cmp dword [rsp + 0x3c], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419c4
mov esi, dword [rsp + 0x38]
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.1400409f0
mov dword [rax], esi
cmp qword [rbp + 0x10], 8
jb 0x14004603c
mov rcx, qword [rbp - 8]
call fcn.14005a61c
cmp byte [rbx + 0x41], r14b
jne 0x140046076
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], r14b
jne 0x14004605a
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], r14b
je 0x14004604c
jmp 0x140046076
mov rax, qword [rbx + 8]
jmp 0x14004606d
cmp rbx, qword [rax + 0x10]
jne 0x140046073
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], r14b
je 0x140046060
mov rbx, rax
bt r12d, 0x17
jae 0x1400460ac
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.14003e554
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a61c
nop
bt r12d, 0x16
jae 0x140045eb3
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.14003e554
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a61c
jmp 0x140045eb3
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.14003e554
nop
mov rcx, qword [rbp - 0x58]
call fcn.14005a61c
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.1401be9b0
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