Function at 0x1400cf364
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
xor r15d, r15d
mov qword [rbp - 0x50], r15
mov qword [rbp + 0x58], r15
mov esi, r15d
mov dword [rbp + 0x48], r15d
mov dword [rbp + 0x50], 4
mov dword [rbp + 0x40], 4
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
test rcx, rcx
jne 0x1400cf4a1
mov ebx, r15d
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400cf5f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400cf3fb
mov edi, r15d
mov rbx, qword [rbp - 0x48]
mov qword [rbp - 0x20], rbx
lea r12, [0x140148ea8]
mov eax, 5
lea r14d, [rax - 3]
mov rcx, qword [0x140148ea8]
cmp rcx, r12
je 0x1400cf444
test byte [rcx + 0x1c], r14b
je 0x1400cf444
mov edx, r14d
test edi, edi
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x1400cf444
lea edx, [r14 + 0x27]
mov r9d, edi
lea r8, [0x140009158]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
test edi, edi
jne 0x1400cf491
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400d2210
mov r9d, eax
mov rcx, qword [0x140148ea8]
cmp rcx, r12
je 0x1400cf491
test byte [rcx + 0x1c], r14b
je 0x1400cf491
movzx eax, byte [rcx + 0x19]
test r9d, r9d
lea edx, [rdi + 5]
cmove r14d, edx
cmp eax, r14d
jl 0x1400cf491
lea edx, [rdi + 0x2a]
lea r8, [0x140009158]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
test rbx, rbx
je 0x1400cf4e5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400cf4e5
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.140011450
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140026e40
nop
mov r14, qword [rbp - 0x40]
lock add dword [r14 - 8], 0xffffffff
jg 0x1400cf4e5
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r12d, 0x20019
mov r9d, r12d
xor r8d, r8d
lea rdx, [0x1400cf5f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400cf5ce
mov edi, r15d
mov rbx, r15
lea r14d, [rax + 1]
cmp edi, dword [rbp - 0x28]
jge 0x1400cf5c0
test rbx, rbx
js 0x1400cf5b2
mov rax, qword [rbp - 0x30]
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rax + rbx*8]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400cf5a2
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rdx, [0x1400cf650]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400cf594
cmp dword [rbp + 0x48], r15d
cmovne esi, r14d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x58], r15
add edi, r14d
add rbx, r14
test esi, esi
je 0x1400cf520
jmp 0x1400cf5c0
mov edx, r14d
mov ecx, 0xc000008c
call fcn.1400119d8
int3
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x30]
call fcn.140026ee0
mov eax, esi
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret