Function at 0x140096e70
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 [0x1400ea3e8]
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 0x140096ed0
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 0x14009739a
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 0x1400970ea
cmp qword [rbx + 0x10], rcx
jne 0x1400970ea
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 0x140096fde
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.140012ba4
nop
xor eax, eax
test r14d, r14d
jne 0x1400970d0
mov r14, qword [rbp - 0x40]
test r14, r14
je 0x1400970d0
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140097027
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140027e48
nop
mov r8d, 1
lea rdx, [0x1400be744]
lea rcx, [rbp - 0x70]
call fcn.14002a670
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov r8, r14
mov rcx, rax
call fcn.14002a670
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 0x140097081
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.140027e48
nop
lea rcx, [rbp - 0x70]
call fcn.140009ca4
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.0x14006f533.0]
nop
lea rcx, [rbp]
call fcn.140009ca4
nop
lea rcx, [rbp - 0x50]
call fcn.140009ca4
inc esi
cmp esi, dword [rsp + 0x7c]
mov ecx, 0
jb 0x140096f85
lea r14, [rbx + 0x10]
mov qword [rsp + 0x68], r14
cmp qword [r14], rcx
jne 0x14009739a
cmp dword [rbp - 0x80], ecx
jbe 0x14009739a
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.140045e20
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.140096dbc
nop
xor r9d, r9d
mov edi, r9d
cmp dword [rbp - 0x80], r9d
jbe 0x1400972fd
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 0x1400972e7
cmp dword [rsp + 0x78], r14d
jne 0x1400972e7
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 0x1400971d4
lea rcx, [rbp - 0x70]
call fcn.140012ba4
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 0x1400971fe
lea rcx, [rbp - 0x50]
call fcn.140012ba4
nop
mov rax, qword [r13 + 0x10]
mov r9, r13
cmp qword [r13 + 0x18], 8
jb 0x140097224
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.1400460d8
cmp rax, 0xffffffffffffffff
je 0x14009725c
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.140016d18
jmp 0x1400972d1
mov rax, qword [r12 + 0x10]
mov r9, r12
cmp qword [r12 + 0x18], 8
jb 0x140097270
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.1400460d8
cmp rax, 0xffffffffffffffff
je 0x1400972d1
mov rax, qword [r15 + 0x10]
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x1400972a6
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.1400460d8
movzx esi, sil
cmp rax, 0xffffffffffffffff
cmovne esi, r14d
lea rcx, [rbp - 0x50]
call fcn.140009ca4
nop
lea rcx, [rbp - 0x70]
call fcn.140009ca4
xor r9d, r9d
add edi, r14d
cmp edi, dword [rbp - 0x80]
jb 0x140097157
test sil, sil
mov r14, qword [rsp + 0x68]
jne 0x14009730e
cmp qword [rbx + 0x18], 8
jb 0x140097307
mov rbx, qword [rbx]
mov qword [r14], r9
mov word [rbx], r9w
mov ebx, 0x1000
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14009735b
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x140097347
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140097347
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009c6b8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor r9d, r9d
mov qword [rbp - 0x20], r9
mov rcx, qword [rbp]
test rcx, rcx
je 0x14009739a
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, rbx
jb 0x140097395
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140097395
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009c6b8
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14009bdf0
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret