Function at 0x14004a478
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe68]
sub rsp, 0xf30
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0xe20], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x7c], 0x104
xor r15d, r15d
mov dword [rbp - 0x80], r15d
mov dword [rsp + 0x7c], r15d
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x6c], r15d
mov edi, r15d
mov dword [rsp + 0x68], 0x400
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x7c]
lea rdx, [rbp + 0x20]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [rsp + 0x64]
test eax, eax
cmovne ecx, r15d
mov dword [rsp + 0x64], ecx
test ecx, ecx
je 0x14004a7d3
mov dword [rsp + 0x60], 4
lea r12d, [r15 + 7]
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
mov ebx, r15d
lea edi, [r15 + 1]
or r13, 0xffffffffffffffff
mov dword [rsp + 0x68], 0x400
mov word [rbp + 0x620], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x620]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14004a6ff
lea rax, [rbp + 0x620]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x14004a5f5
lea rdx, [rbp + 0x620]
lea rcx, [rbp - 0x58]
call fcn.14000e404
mov dword [rsp + 0x60], 4
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0x10
lea rdx, [0x140063788]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14004a671
lea rcx, [rsi + 0x78]
lea rdx, [rbp - 0x58]
call fcn.14004b828
mov rcx, rax
mov eax, dword [rbp - 0x78]
mov dword [rcx], eax
jmp 0x14004a6ff
mov dword [rsp + 0x60], 0x3e8
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0xffff
lea rdx, [0x140063788]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14004a6ff
lea rax, [rbp + 0x230]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x14004a6c6
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 8]
call fcn.14000e404
lea rcx, [rsi + 0x60]
lea rdx, [rbp - 0x58]
call fcn.14004b9c8
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.14000e4e8
add ebx, edi
cmp ebx, dword [rsp + 0x64]
jb 0x14004a5a8
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
mov r8d, 0xe
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x30]
call fcn.14000e404
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.14004b828
mov ecx, dword [rax]
mov dword [rbp - 0x70], ecx
cmp qword [rbp - 0x10], 8
jb 0x14004a751
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
mov r8d, 0xf
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x30]
call fcn.14000e404
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.14004b828
mov ecx, dword [rax]
mov dword [rbp - 0x6c], ecx
cmp qword [rbp - 0x10], 8
jb 0x14004a797
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
lea rdx, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
nop
cmp qword [rbp - 0x38], 8
jb 0x14004a7b6
mov rcx, qword [rbp - 0x50]
call sub.msvcrt.dll_free
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
cmp qword [rbp + 0x18], 8
jb 0x14004a7d3
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rbp + 0xe20]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0xf80]
add rsp, 0xf30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret