Function at 0x140045ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x14012e190]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x19], rcx
mov rcx, rdx
call fcn.1400456b0
mov r15, rax
test rax, rax
jne 0x140045b21
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
jmp 0x140045d08
mov r9, rbx
mov r10, qword [rbx + 0x18]
cmp r10, 8
jb 0x140045b31
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rdx, 0xffffffffffffffff
test r8, r8
je 0x140045b57
mov rcx, r8
mov rax, r9
cmp word [rax], 0x5c
je 0x140045bb4
add rax, 2
sub rcx, 1
jne 0x140045b47
mov rax, rdx
inc rax
movdqa xmm0, xmmword [0x14010ecb0]
movdqu xmmword [rbp - 1], xmm0
xor esi, esi
mov word [rbp - 0x11], si
cmp r8, rax
jb 0x140045d34
sub r8, rax
cmp r8, rdx
cmovb rdx, r8
cmp r10, 8
jb 0x140045b8c
mov rbx, qword [rbx]
lea r9, [rbx + rax*2]
lea rcx, [rbp - 0x11]
cmp rdx, 7
ja 0x140045bc1
mov qword [rbp - 1], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14009df80
mov word [rbp + rbx - 0x11], si
jmp 0x140045bc7
test rax, rax
je 0x140045b57
sub rax, r9
sar rax, 1
jmp 0x140045b5a
call fcn.14002fcb0
nop
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140045c43
mov dword [rbp - 0x21], esi
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140045c17
mov rdx, qword [r14]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140045c53
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
jmp 0x140045cff
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov edx, dword [rbp - 0x21]
lea rcx, [rbp + 0xf]
call fcn.140045d40
cmp qword [r14 + 0x18], 8
jb 0x140045c77
mov r14, qword [r14]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp + 0xf]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140045cec
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
test rbx, rbx
je 0x140045cff
mov rdx, qword [rbp + 0x1f]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140045ce2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045d2e
mov rcx, rbx
call fcn.14007a2fc
jmp 0x140045cff
mov qword [rdi], rbx
mov rax, qword [rbp + 0x17]
mov qword [rdi + 8], rax
mov rax, qword [rbp + 0x1f]
mov qword [rdi + 0x10], rax
lea rcx, [rbp - 0x11]
call fcn.14002d500
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140079ca0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a74a4
nop
call fcn.14002ee60
int3