Function at 0x14005ae00
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push r15
sub rsp, 0x68
mov rax, qword [0x1400d6010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, qword [rcx + 0x4e8]
mov rsi, rcx
test r15, r15
je 0x14005b089
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r14
test r15, r15
je 0x14005b0a9
mov r14, qword [r15 + 0x10]
mov r15, qword [r15]
test r14, r14
je 0x14005b061
mov ebx, dword [r14]
test ebx, ebx
jne 0x14005ae8b
mov rcx, qword [rsi + 0x4c8]
lea rdx, [r14 + 4]
mov qword [rsp + 0x28], r12
mov r9, r14
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005ae8b
mov ebx, dword [r14]
sub ebx, 1
je 0x14005af71
sub ebx, 3
je 0x14005af04
cmp ebx, 7
jne 0x14005b061
mov rcx, qword [rsi + 0x4c8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [r14 + 4]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b061
cmp dword [rsp + 0x40], 0xb
jne 0x14005b061
mov rax, qword [rsp + 0x38]
cmp rax, qword [r14 + 0x108]
mov qword [r14 + 0x108], rax
jmp 0x14005af63
mov rcx, qword [rsi + 0x4c8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [r14 + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b061
cmp dword [rsp + 0x44], 4
jne 0x14005b061
mov eax, dword [rsp + 0x30]
cmp eax, dword [r14 + 0x108]
mov dword [r14 + 0x108], eax
mov ecx, r12d
setne cl
test ecx, ecx
je 0x14005b061
inc dword [rsi + 0xac]
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x14005afef
cmp dword [rsi + 0xa8], r12d
jne 0x14005afef
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rdi, rdi
je 0x14005b09e
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
cmp qword [rsi + 0x88], r12
jbe 0x14005afc8
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x14005afc8
cmp qword [rax + 0x10], rbx
je 0x14005afc5
mov rax, qword [rax]
test rax, rax
jne 0x14005afb5
jmp 0x14005afc8
mov rbx, r12
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14005afea
mov rax, qword [rbx]
lea r8, [r14 + 4]
lea rdx, [rsi + 0xb0]
mov rcx, rbx
call qword [rax]
test rdi, rdi
jne 0x14005af80
dec dword [rsi + 0xac]
cmp dword [rsi + 0xac], r12d
jne 0x14005b061
cmp qword [rsi + 0x88], r12
jbe 0x14005b061
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x78]
test rbx, rbx
je 0x14005b04e
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14005b049
mov rdx, qword [rsi + 0x48]
test rdx, rdx
je 0x14005b049
nop
cmp qword [rdx + 0x10], rcx
je 0x14005b040
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14005b030
jmp 0x14005b049
lea rcx, [rsi + 0x48]
call fcn.14000a580
test rbx, rbx
jne 0x14005b01a
lea rcx, [rsi + 0x78]
call fcn.14000a5e0
lea rcx, [rsi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r15, r15
jne 0x14005ae4c
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140078ef0
add rsp, 0x68
pop r15
pop rsi
ret
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov ecx, 0x80004005
call fcn.140003fc0
int3