Function at 0x14008d290
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x468]
sub rsp, 0x568
mov rax, qword [0x1400dc3e8]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov r15, qword [rbp + 0x4d0]
mov r13, qword [rbp + 0x4d8]
mov rbx, qword [rbp + 0x4e0]
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14008d2f0
mov rdx, qword [r8]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20009
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x14008d7ba
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x240]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x18], 0x104
mov dword [rsp + 0x7c], esi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x240]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x7c]
xor ecx, ecx
test eax, eax
je 0x14008d50a
cmp qword [rbx + 0x10], rcx
jne 0x14008d50a
mov dword [rsp + 0x78], 0xff
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x40]
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r14d, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rcx, [rbp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x14008d3fe
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.140016628
nop
xor eax, eax
test r14d, r14d
jne 0x14008d4f0
mov r14, qword [rbp - 0x40]
test r14, r14
je 0x14008d4f0
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008d447
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.14001481c
nop
mov r8d, 1
lea rdx, [0x1400b27a0]
lea rcx, [rbp - 0x70]
call fcn.140024870
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov r8, r14
mov rcx, rax
call fcn.140024870
xor r8d, r8d
mov qword [rbp], r8
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x18], r8
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14008d4a1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.14001481c
nop
lea rcx, [rbp - 0x70]
call fcn.140007f4c
mov r14, qword [rbp - 8]
mov rax, qword [r14]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov r9, r12
lea r8, [rbp]
mov rdx, qword [rbp - 0x10]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [case.0x14006f593.0]
nop
lea rcx, [rbp]
call fcn.140007f4c
nop
lea rcx, [rbp - 0x50]
call fcn.140007f4c
inc esi
cmp esi, dword [rsp + 0x7c]
mov ecx, 0
jb 0x14008d3a5
lea r14, [rbx + 0x10]
mov qword [rsp + 0x68], r14
cmp qword [r14], rcx
jne 0x14008d7ba
cmp dword [rbp - 0x80], ecx
jbe 0x14008d7ba
mov dword [rsp + 0x78], ecx
mov sil, cl
xorps xmm0, xmm0
mov edx, dword [rbp - 0x7c]
inc edx
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rcx
lea rcx, [rbp]
call fcn.14003bd4c
nop
xorps xmm0, xmm0
mov edx, dword [rbp - 0x78]
movdqu xmmword [rbp - 0x30], xmm0
xor r8d, r8d
mov qword [rbp - 0x20], r8
lea rcx, [rbp - 0x30]
call fcn.14008d1dc
nop
xor r9d, r9d
mov edi, r9d
cmp dword [rbp - 0x80], r9d
jbe 0x14008d71d
lea r14d, [r9 + 1]
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
cmp rcx, rax
cmovne rax, rcx
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 0x7c]
inc eax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 0x78]
mov dword [rbp - 0x10], eax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
lea r9, [rbp - 8]
mov r8, qword [rbp]
mov edx, edi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor r9d, r9d
test eax, eax
jne 0x14008d707
cmp dword [rsp + 0x78], r14d
jne 0x14008d707
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x60], r9
mov qword [rbp - 0x58], r9
mov rdx, qword [rbp]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r9w
jne 0x14008d5f4
lea rcx, [rbp - 0x70]
call fcn.140016628
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], ax
jne 0x14008d61e
lea rcx, [rbp - 0x50]
call fcn.140016628
nop
mov rax, qword [r13 + 0x10]
mov r9, r13
cmp qword [r13 + 0x18], 8
jb 0x14008d644
mov r9, qword [r13]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
setae byte [rsp + 0x60]
cmovae rcx, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
call fcn.14003c004
cmp rax, 0xffffffffffffffff
je 0x14008d67c
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.140013b1c
jmp 0x14008d6f1
mov rax, qword [r12 + 0x10]
mov r9, r12
cmp qword [r12 + 0x18], 8
jb 0x14008d690
mov r9, qword [r12]
lea rcx, [rbp - 0x70]
xor r8d, r8d
cmp byte [rsp + 0x60], r8b
cmovne rcx, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp - 0x60]
call fcn.14003c004
cmp rax, 0xffffffffffffffff
je 0x14008d6f1
mov rax, qword [r15 + 0x10]
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x14008d6c6
mov r9, qword [r15]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x40]
call fcn.14003c004
movzx esi, sil
cmp rax, 0xffffffffffffffff
cmovne esi, r14d
lea rcx, [rbp - 0x50]
call fcn.140007f4c
nop
lea rcx, [rbp - 0x70]
call fcn.140007f4c
xor r9d, r9d
add edi, r14d
cmp edi, dword [rbp - 0x80]
jb 0x14008d577
test sil, sil
mov r14, qword [rsp + 0x68]
jne 0x14008d72e
cmp qword [rbx + 0x18], 8
jb 0x14008d727
mov rbx, qword [rbx]
mov qword [r14], r9
mov word [rbx], r9w
mov ebx, 0x1000
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14008d77b
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x14008d767
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008d767
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400928f8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor r9d, r9d
mov qword [rbp - 0x20], r9
mov rcx, qword [rbp]
test rcx, rcx
je 0x14008d7ba
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, rbx
jb 0x14008d7b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008d7b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400928f8
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140092030
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret