Function at 0x14004a13c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x520
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x78], 0x104
xor r12d, r12d
mov dword [rsp + 0x64], r12d
mov dword [rbp - 0x7c], r12d
mov dword [rbp - 0x80], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x74], r12d
mov dword [rsp + 0x70], r12d
mov ecx, 0x90
call fcn.14005acc0
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14004a1de
lea rdx, [rbx + 0x28]
mov rcx, rax
call fcn.140049fe8
mov rbx, rax
jmp 0x14004a1e1
mov rbx, r12
mov edi, r12d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x200]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14004a42b
lea edi, [rax + 1]
cmp dword [rsp + 0x64], r12d
je 0x14004a42b
call fcn.14004cd5c
mov qword [rbp - 0x60], rax
mov byte [rax + 0x49], dil
mov rax, qword [rbp - 0x60]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x60]
mov qword [rax], rax
mov rax, qword [rbp - 0x60]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x58], r12
mov esi, r12d
mov r14d, r12d
cmp dword [rsp + 0x64], r12d
jbe 0x14004a3ed
or r13, 0xffffffffffffffff
mov dword [rbp - 0x74], 0xff
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x74]
lea r8, [rbp]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004a3df
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
lea rax, [rbp]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14004a2ee
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.14000e404
nop
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.14004a808
nop
cmp qword [rbp - 0x20], 8
jb 0x14004a323
mov rcx, qword [rbp - 0x38]
call sub.msvcrt.dll_free
mov rcx, rbx
call fcn.14004ae80
test eax, eax
jne 0x14004a356
mov dword [rsp + 0x60], esi
add esi, edi
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.14004b5b4
lea rcx, [rbp]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x14004a34a
jmp 0x14004a3d3
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rcx, [rbx + 0x50]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rax, qword [rsp + 0x68]
movabs rcx, 0x10c388d000
sub rax, rcx
mov dword [rsp + 0x68], eax
shr rax, 0x20
mov dword [rsp + 0x6c], eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x14004a3df
mov dword [rsp + 0x60], esi
add esi, edi
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.14004b5b4
lea rcx, [rbp]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x14004a3c9
lea rdx, [rbp]
mov rcx, rax
call fcn.14000e404
add r14d, edi
cmp r14d, dword [rsp + 0x64]
jb 0x14004a29b
mov r14d, r12d
test esi, esi
je 0x14004a422
mov dword [rsp + 0x60], r14d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.14004b5b4
mov rdx, rax
mov rcx, rbx
call fcn.14004a808
mov rcx, rbx
call fcn.14004b344
add r14d, edi
cmp r14d, esi
jb 0x14004a3f4
lea rcx, [rbp - 0x68]
call fcn.14004b4f4
test rbx, rbx
je 0x14004a438
mov rcx, rbx
call fcn.140048e70
mov eax, edi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x570]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret