Function at 0x14005af98
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 0x14005b2d5
mov rcx, qword [r14 + 8]
mov edx, r13d
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
call fcn.14007fec4
mov rbx, rax
test rax, rax
je 0x14005b310
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r12d, eax
cmp r13d, 4
jne 0x14005b093
call fcn.14005aef8
test al, al
je 0x14005b016
cmp byte [0x1402f5708], sil
jne 0x14005b028
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xa806
call qword [sym.imp.USER32.dll_RemoveMenu]
test r12d, r12d
je 0x14005b2c7
mov edi, 0xfffffffe
mov rcx, qword [rbx + 8]
lea edx, [rdi + 2]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005b084
inc esi
cmp esi, 3
jne 0x14005b084
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 0x14005b036
jmp 0x14005b2c7
test r13d, r13d
jne 0x14005b0ec
call fcn.1400693b4
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x220], esi
je 0x14005b0df
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.140057504
jmp 0x14005b2c9
cmp r13d, 2
jne 0x14005b2c9
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 0x14005b0fd
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x8040
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140056944
test eax, eax
jne 0x14005b141
call fcn.1400568e4
test eax, eax
je 0x14005b141
call fcn.140057f10
test al, al
jne 0x14005b154
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, r12d
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.14005682c
test eax, eax
jne 0x14005b1d3
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 0x14005b1d3
cmp dword [rbp + 0x40], r12d
jne 0x14005b1d3
cmp dword [rbp + 0x48], r12d
jne 0x14005b1d3
test byte [rbp + 0x50], 0x10
je 0x14005b1d3
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 0x14005b250
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 0x14005b253
mov ecx, dword [rbp + 0x40]
cmp ecx, 2
je 0x14005b26a
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 0x14005b2bf
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005b2b6
mov rcx, qword [rbx + 8]
lea edx, [rdi + 1]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x14005b2b6
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 0x14005b281
mov rcx, rbx
call fcn.140057504
xor esi, esi
inc r13d
cmp r13d, r15d
jl 0x14005afcc
mov rcx, qword [r14 + 8]
mov edx, 3
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.1400693b4
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x224], esi
je 0x14005b310
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