Function at 0x140045d44
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.14002ac94
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.1401be384
mov r8, rax
lea rdx, str.DefaultLogLevel
lea rcx, [rbp - 8]
call fcn.1401f2230
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 0x140045e1a
cmp dword [rsp + 0x3c], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419ec
mov r11d, dword [rsp + 0x40]
mov dword [r13 + 0x20], r11d
cmp qword [rbp + 0x10], 8
jb 0x140045e41
mov rcx, qword [rbp - 8]
call fcn.14005a6ac
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
lea rcx, str.OriginRules
call fcn.1401be384
mov r8, rax
lea rdx, str.OriginRules
lea rcx, [rbp - 8]
call fcn.1401f2230
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.1400443b4
nop
cmp qword [rbp + 0x10], 8
jb 0x140045e8f
mov rcx, qword [rbp - 8]
call fcn.14005a6ac
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140044408
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140044898
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003e57c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a6ac
nop
mov rdi, qword [rbp - 0x58]
mov rbx, qword [rdi]
cmp rbx, rdi
setne sil
bt r12d, 0x19
jae 0x140045f18
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.14003e57c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a6ac
nop
bt r12d, 0x18
jae 0x140045f4d
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.14003e57c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a6ac
test sil, sil
je 0x140046112
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.1401f2118
nop
bt r12d, 0x1b
jae 0x140045fb2
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.14003e57c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a6ac
nop
bt r12d, 0x1a
jae 0x140045fe7
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.14003e57c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a6ac
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 0x140046034
cmp dword [rsp + 0x3c], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419ec
mov esi, dword [rsp + 0x38]
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.140040a18
mov dword [rax], esi
cmp qword [rbp + 0x10], 8
jb 0x140046064
mov rcx, qword [rbp - 8]
call fcn.14005a6ac
cmp byte [rbx + 0x41], r14b
jne 0x14004609e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], r14b
jne 0x140046082
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], r14b
je 0x140046074
jmp 0x14004609e
mov rax, qword [rbx + 8]
jmp 0x140046095
cmp rbx, qword [rax + 0x10]
jne 0x14004609b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], r14b
je 0x140046088
mov rbx, rax
bt r12d, 0x17
jae 0x1400460d4
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.14003e57c
nop
mov rcx, qword [rsp + 0x70]
call fcn.14005a6ac
nop
bt r12d, 0x16
jae 0x140045edb
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.14003e57c
nop
mov rcx, qword [rsp + 0x50]
call fcn.14005a6ac
jmp 0x140045edb
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.14003e57c
nop
mov rcx, qword [rbp - 0x58]
call fcn.14005a6ac
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.1401bea40
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