Function at 0x14004a940
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r15d, r15d
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ad17
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14008e5d0
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [0x1400da1d0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ad0c
movdqa xmm0, xmmword [0x1400dbe30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.1400056b0
nop
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x68]
mov r10, qword [rbp - 0x80]
cmp r10, 8
cmovae r9, r8
lea r12, [r15 - 1]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14004aa85
mov rcx, rax
mov rdx, r9
mov ebx, r15d
cmp word [r9], 0x2e
je 0x14004aa75
cmp rcx, 1
je 0x14004aa78
dec rcx
add rdx, 2
cmp word [rdx], 0x2e
jne 0x14004aa62
mov rbx, rdx
test rbx, rbx
je 0x14004aa85
sub rbx, r9
sar rbx, 1
jmp 0x14004aa88
mov rbx, r12
lea r14, [rbx + 1]
lea rdx, [rsp + 0x68]
cmp r10, 8
cmovae rdx, r8
cmp r14, rax
jae 0x14004aad3
sub rax, r14
lea rcx, [rdx + r14*2]
mov rdi, r15
je 0x14004aac6
cmp word [rcx], 0x2e
je 0x14004aac3
cmp rax, 1
je 0x14004aac6
dec rax
add rcx, 2
cmp word [rcx], 0x2e
jne 0x14004aab0
mov rdi, rcx
test rdi, rdi
je 0x14004aad3
sub rdi, rdx
sar rdi, 1
jmp 0x14004aad6
mov rdi, r12
cmp rbx, r12
je 0x14004acd5
cmp rdi, rbx
jbe 0x14004acd5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
mov rax, qword [rsp + 0x78]
cmp rax, r14
jb 0x14004ad4f
sub rdi, rbx
lea rsi, [rdi - 1]
sub rax, r14
cmp rax, rsi
cmovb rsi, rax
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
lea r14, [rax + r14*2]
mov r13d, 0xa
cmp rsi, 7
ja 0x14004ab6f
mov qword [rsp + 0x40], rsi
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14008e170
mov word [rsp + rbx + 0x30], r15w
mov rdi, qword [rsp + 0x30]
jmp 0x14004ac1f
movabs rbx, 0x7ffffffffffffffe
cmp rsi, rbx
ja 0x14004ad55
mov rax, rsi
or rax, 7
cmp rax, rbx
ja 0x14004ab98
mov rbx, rax
cmp rax, r13
cmovb rbx, r13
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x14004abb4
mov rdx, r12
jmp 0x14004abbd
cmp rdx, 0x1000
jb 0x14004abe4
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r12
call fcn.14006fa7c
test rax, rax
je 0x14004ad5b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14004abf9
test rdx, rdx
je 0x14004abf6
mov rcx, rdx
call fcn.14006fa7c
mov rdi, rax
jmp 0x14004abf9
mov rdi, r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14008e170
mov word [rbx + rdi], r15w
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, rdi
mov r8d, r13d
xor edx, edx
call fcn.140099fbc
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14004ac7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ac77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ad5b
call fcn.14006fa74
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14004acd1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004accc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ad5b
call fcn.14006fa74
mov eax, ebx
jmp 0x14004ad19
cmp r10, 8
jb 0x14004ad0c
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14004ad04
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ad49
mov rcx, r8
call fcn.14006fa74
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14006fa50
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140097f2c
nop
call fcn.1400088cc
nop
call fcn.14000a138
int3
call fcn.140097f2c
int3