Function at 0x14005a9ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r14, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov r15d, eax
mov r13d, esi
test eax, eax
jle 0x14005ace9
mov rcx, qword [r14 + 8]
mov edx, r13d
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
call fcn.14007e1a4
mov rbx, rax
test rax, rax
je 0x14005ad24
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r12d, eax
cmp r13d, 4
jne 0x14005aaa7
call fcn.14005a90c
test al, al
je 0x14005aa2a
cmp byte [0x1402f2708], sil
jne 0x14005aa3c
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xa806
call qword [sym.imp.USER32.dll_RemoveMenu]
test r12d, r12d
je 0x14005acdb
mov edi, 0xfffffffe
mov rcx, qword [rbx + 8]
lea edx, [rdi + 2]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005aa98
inc esi
cmp esi, 3
jne 0x14005aa98
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, edi
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, edi
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, edi
call qword [sym.imp.USER32.dll_RemoveMenu]
inc edi
lea eax, [rdi + 2]
cmp eax, r12d
jb 0x14005aa4a
jmp 0x14005acdb
test r13d, r13d
jne 0x14005ab00
call fcn.1400678dc
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x220], esi
je 0x14005aaf3
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xe106
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xe109
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xe107
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, rbx
call fcn.140057424
jmp 0x14005acdd
cmp r13d, 2
jne 0x14005acdd
lea r12d, [r13 + 2]
mov edi, r12d
mov rcx, qword [rbx + 8]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
dec rdi
jne 0x14005ab11
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x8040
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140056a58
test eax, eax
jne 0x14005ab55
call fcn.1400569f8
test eax, eax
je 0x14005ab55
call fcn.140057d6c
test al, al
jne 0x14005ab68
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, r12d
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140056940
test eax, eax
jne 0x14005abe7
lea rax, [rbp + 0x48]
lea r9, [rbp + 0x40]
lea r8, str.NoPages
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x50], esi
mov dword [rbp + 0x40], r12d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x48], r12d
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14005abe7
cmp dword [rbp + 0x40], r12d
jne 0x14005abe7
cmp dword [rbp + 0x48], r12d
jne 0x14005abe7
test byte [rbp + 0x50], 0x10
je 0x14005abe7
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x8039
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x801f
call qword [sym.imp.USER32.dll_RemoveMenu]
lea rax, [rbp + 0x48]
lea r9, [rbp + 0x50]
lea r8, str.SedonaDisable
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNvCplApiPolicies
mov rcx, 0xffffffff80000001
mov dword [rbp + 0x48], r12d
mov dword [rbp + 0x40], esi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x50], esi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x14005ac64
lea rax, [rbp + 0x48]
lea r9, [rbp + 0x50]
lea r8, str.SedonaDisable
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNvCplApiPolicies
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [rbp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rbp + 0x40], ecx
jmp 0x14005ac67
mov ecx, dword [rbp + 0x40]
cmp ecx, 2
je 0x14005ac7e
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x803f
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
xor r12d, r12d
mov esi, eax
mov edi, r12d
cmp eax, 1
jbe 0x14005acd3
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005acca
mov rcx, qword [rbx + 8]
lea edx, [rdi + 1]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005acca
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, edi
call qword [sym.imp.USER32.dll_RemoveMenu]
dec esi
inc edi
lea eax, [rdi + 1]
cmp eax, esi
jb 0x14005ac95
mov rcx, rbx
call fcn.140057424
xor esi, esi
inc r13d
cmp r13d, r15d
jl 0x14005a9e0
mov rcx, qword [r14 + 8]
mov edx, 3
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.1400678dc
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x224], esi
je 0x14005ad24
mov rcx, qword [r14 + 8]
mov edx, 1
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret