Function at 0x14005f6c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor ebx, ebx
mov r13, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
bt rcx, 9
jae 0x14005f8a9
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
lea edx, [rbx + 1]
lea rcx, [0x140136538]
call fcn.140023f00
test eax, eax
jne 0x14005f8a9
mov r12d, ebx
xor edx, edx
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x160]
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005f89e
cmp dword [rsp + 0x48], 1
mov qword [rsp + 0x50], rbx
jne 0x14005f80f
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x14005f80f
mov ebx, dword [rsi]
cmp ebx, r9d
jbe 0x14005f80d
test r9d, r9d
js 0x14005f973
mov r8, qword [r14]
lea rcx, [rsp + 0x60]
mov edx, r9d
call fcn.14002c2c0
test eax, eax
jne 0x14005f80d
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
shr edi, 1
mov r8, r13
dec edi
lea ecx, [rbx + rdi]
add rcx, rcx
call fcn.140029230
xor ebx, ebx
test eax, eax
js 0x14005f80f
mov r8d, dword [rsi]
lea rbx, [rdi + rdi]
add r8d, edi
mov r15d, reloc.OLEAUT32.dll_SafeArrayAccessData
add r8, r8
test rbx, rbx
je 0x14005f849
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x14005f81a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r15d
jmp 0x14005f843
xor ebx, ebx
inc r12d
mov edx, r12d
jmp 0x14005f733
cmp r8, rbx
jb 0x14005f830
mov r8, rbx
lea rdx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14005f849
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rax, qword [rsp + 0x50]
movsxd r8, dword [rsi]
mov rdx, qword [r14]
lea rcx, [rbx + rax]
add r8, r8
je 0x14005f882
test rcx, rcx
je 0x14005f873
test rdx, rdx
je 0x14005f86e
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14005f882
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x50]
mov qword [r14], rcx
add dword [rsi], edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14005f949
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
bt r15, 0xa
jae 0x14005f947
lea r8, [rsp + 0x48]
mov word [rsp + 0x60], bx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x48], 0x200
lea rcx, [0x1401369a0]
call fcn.1400287e0
lea rax, [rsp + 0x60]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14005f8e0
mov qword [rsp + 0x50], rbx
test edi, edi
je 0x14005f947
mov ecx, dword [rsi]
lea rdx, [rsp + 0x50]
add ecx, edi
mov r8, r13
add rcx, rcx
call fcn.140029230
test eax, eax
js 0x14005f947
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov eax, edi
lea rbx, [rax + rax]
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
movsxd r8, dword [rsi]
mov rcx, qword [rsp + 0x50]
add r8, r8
mov rdx, qword [r14]
add rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
mov qword [r14], rax
add dword [rsi], edi
jmp 0x14005f897
xor al, al
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140118d00
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov ecx, 0x1402520
call fcn.140007884
int3