Function at 0x14000a460
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
mov r14d, 1
xor r13d, r13d
lea rcx, [rbp - 0x10]
mov edx, r14d
mov qword [rbp - 0x10], r13
call fcn.140027750
test eax, eax
je 0x14000a6c6
mov edi, 0x200
mov qword [rsp + 0x88], rsi
mov rsi, qword [rbp - 0x10]
mov ecx, edi
mov qword [rsp + 0x90], r15
mov ebx, edi
mov r15d, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
call fcn.14003fd84
mov qword [rbp - 0x18], rax
test rax, rax
je 0x14000a578
lea rcx, [rbp - 0x1c]
mov dword [rbp - 0x1c], ebx
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.KeyCountReservedEx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x14000a539
lea eax, [rbx + 0x1000]
cmp ebx, 0x1000
lea ecx, [rbx + rbx]
cmovae ecx, eax
mov ebx, ecx
mov edx, ecx
mov rcx, qword [rbp - 0x18]
call fcn.1400404ec
mov qword [rbp - 0x18], rax
test rax, rax
jne 0x14000a4e0
jmp 0x14000a578
test eax, eax
jne 0x14000a56f
lea rdx, str.KeyCountReservedEx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
cmp dword [rbp - 0x20], 3
jne 0x14000a56f
mov r8d, dword [rbp - 0x1c]
mov r9d, 4
mov rdx, qword [rbp - 0x18]
mov rcx, r12
call fcn.14000a090
test eax, eax
cmovne r15d, r14d
mov rcx, qword [rbp - 0x18]
call fcn.14003fd8c
mov rsi, qword [rbp - 0x10]
mov rcx, rdi
mov r14d, r13d
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x20], r13d
call fcn.14003fd84
mov qword [rbp - 0x18], rax
test rax, rax
je 0x14000a640
nop dword [rax]
lea rcx, [rbp - 0x1c]
mov dword [rbp - 0x1c], edi
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.KeyCountReserved
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x14000a5f9
lea eax, [rdi + 0x1000]
cmp edi, 0x1000
lea ecx, [rdi + rdi]
cmovae ecx, eax
mov edi, ecx
mov edx, ecx
mov rcx, qword [rbp - 0x18]
call fcn.1400404ec
mov qword [rbp - 0x18], rax
test rax, rax
jne 0x14000a5a0
jmp 0x14000a640
test eax, eax
jne 0x14000a637
lea rdx, str.KeyCountReserved
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test r15d, r15d
jne 0x14000a637
cmp dword [rbp - 0x20], 3
jne 0x14000a637
mov r8d, dword [rbp - 0x1c]
lea r9d, [r15 + 3]
mov rdx, qword [rbp - 0x18]
mov rcx, r12
call fcn.14000a090
test eax, eax
mov eax, 1
cmovne r14d, eax
mov rcx, qword [rbp - 0x18]
call fcn.14003fd8c
mov rcx, qword [rbp - 0x10]
lea rdx, str.KeyCountSendEx
mov edi, 1
mov dword [rsp + 0x28], 4
test r14d, r14d
mov qword [rsp + 0x20], r12
mov r9d, edi
cmovne r15d, edi
xor r8d, r8d
call fcn.14000a1b0
mov rcx, qword [rbp - 0x10]
lea rdx, str.KeyCountSend
test eax, eax
mov dword [rsp + 0x28], 3
mov ebx, r13d
mov qword [rsp + 0x20], r12
cmovne ebx, edi
mov r9d, edi
mov r8d, ebx
call fcn.14000a1b0
mov rcx, qword [rbp - 0x10]
test eax, eax
cmovne ebx, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x88]
test r15d, r15d
mov r15, qword [rsp + 0x90]
jne 0x14000a6c2
test ebx, ebx
je 0x14000a6c6
mov eax, edi
jmp 0x14000a6c9
mov eax, r13d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret