Function at 0x140005d60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
mov qword [rsp + 0x88], r14
xor r14d, r14d
movzx esi, dl
mov dword [rbp + 0x30], r14d
lea ecx, [r14 + 1]
call fcn.14002bb50
test eax, eax
je 0x140005db6
lea rax, str.CAccessProtectionHandler::SetupAccessProtection_Starting
mov r9d, 0xbc
lea r8, str.CAccessProtectionHandler::SetupAccessProtection
mov qword [rsp + 0x20], rax
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeAccessProtectionHandler.cpp
lea ecx, [r14 + 1]
call fcn.14000da30
mov r9d, 1
mov qword [rsp + 0x80], rbx
lea r8, str.SYSTEMCurrentControlSet_servicesMcAPExe
mov qword [rbp - 0x20], r14
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x10], r14
call fcn.14000dab0
test eax, eax
je 0x140005dfc
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140005e4a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1400a0fdc], r14d
jmp 0x140005e61
mov rbx, qword [rbp - 0x20]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Debug
lea rax, [0x1400a0fdc]
mov dword [rbp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005e53
cmp dword [rbp + 0x38], r14d
jne 0x140005e53
test rbx, rbx
je 0x140005e4a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1400a0fdc], r14d
jmp 0x140005e61
test rbx, rbx
je 0x140005e61
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 1
mov qword [rbp - 0x20], r14
lea r8, str.SOFTWAREMcAfeeAPMcVSCIns
mov dword [rbp - 0x18], r14d
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], r14
call fcn.14000dab0
mov r14, qword [rsp + 0x88]
test eax, eax
je 0x140005eb0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140005efb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rbp - 0x20]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.APEnabled
lea rax, [rbp + 0x30]
mov dword [rbp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005f0d
cmp dword [rbp + 0x38], 0
jne 0x140005f0d
test rbx, rbx
je 0x140005efb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x140005f1b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x30], 0
movzx edx, sil
mov rcx, rdi
je 0x140005f2f
call fcn.140007250
jmp 0x140005f34
call fcn.140007680
cmp dword [rbp + 0x30], 0
mov ebx, eax
mov dword [rbp + 0x38], eax
setne al
mov byte [rdi + 0x60], al
test ebx, ebx
jns 0x140005f8a
mov ecx, 5
call fcn.14002bb50
test eax, eax
je 0x140005faf
lea rax, [rbp + 0x38]
mov r9d, 0xd4
mov qword [rsp + 0x28], rax
lea r8, str.CAccessProtectionHandler::SetupAccessProtection
lea rax, str.CAccessProtectionHandler::SetupAccessProtection:_errorcode___d
mov ecx, 5
lea rdx, str.E:BTc1fd866d_3751_4c72_a231_f6b223727ef9_vscore_srcMcAPExeAccessProtectionHandler.cpp
mov qword [rsp + 0x20], rax
call fcn.140001f30
jmp 0x140005faf
mov ecx, 1
call fcn.14002bb50
test eax, eax
je 0x140005faf
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
call fcn.1400082b0
test ebx, ebx
mov rbx, qword [rsp + 0x80]
sete al
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret