Function at 0x14003f980
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1400ea180]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x11], rcx
xor r12d, r12d
mov rcx, rdx
call fcn.14003f4b0
mov rsi, rax
test rax, rax
jne 0x14003f9d5
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
jmp 0x14003fb23
mov r8, rdi
mov r10, qword [rdi + 0x18]
cmp r10, 8
jb 0x14003f9e5
mov r8, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov r9, 0xffffffffffffffff
test rdx, rdx
je 0x14003fa14
mov rcx, rdx
mov rax, r8
nop dword [rax + rax]
cmp word [rax], 0x5c
je 0x14003fb44
add rax, 2
sub rcx, 1
jne 0x14003fa00
mov rax, r9
inc rax
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
cmp rdx, rax
jb 0x14003fc91
sub rdx, rax
cmp rdx, r9
cmovb r9, rdx
cmp r10, 8
jb 0x14003fa45
mov rdi, qword [rdi]
lea rdx, [rdi + rax*2]
mov r8, r9
lea rcx, [rbp - 9]
call fcn.140028760
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003fad8
mov dword [rbp - 0x15], r12d
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14003faa8
mov rdx, qword [r15]
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003fb58
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14003fb23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fb1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003fc8b
call fcn.1400652cc
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140065270
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test rax, rax
je 0x14003fa14
sub rax, r8
sar rax, 1
jmp 0x14003fa17
mov r14d, dword [rbp - 0x15]
mov rdi, r12
mov rsi, r12
test r14, r14
je 0x14003fbb5
cmp r14, 0x1000
jb 0x14003fb99
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14003fc97
call fcn.140065290
test rax, rax
je 0x14003fc85
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003fba4
mov rcx, r14
call fcn.140065290
mov rdi, rax
lea rsi, [rdi + r14]
mov r8, r14
xor edx, edx
mov rcx, rdi
call fcn.14008d430
cmp qword [r15 + 0x18], 8
jb 0x14003fbbf
mov r15, qword [r15]
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003fc36
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
test rdi, rdi
je 0x14003fae3
sub rsi, rdi
cmp rsi, 0x1000
jb 0x14003fc26
add rsi, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14003fc85
mov rdi, rcx
mov rdx, rsi
mov rcx, rdi
call fcn.1400652cc
jmp 0x14003fae3
mov qword [rbx], rdi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14003fb23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fb1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003fc8b
jmp 0x14003fb1e
call fcn.140099524
nop
call fcn.140099524
int3
call fcn.140028440
nop
call fcn.140021700
int3