Function at 0x140059424
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 0x140059761
mov rcx, qword [r14 + 8]
mov edx, r13d
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
call fcn.14007c79c
mov rbx, rax
test rax, rax
je 0x14005979c
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r12d, eax
cmp r13d, 4
jne 0x14005951f
call fcn.140059398
test al, al
je 0x1400594a2
cmp byte [0x1402f16c8], sil
jne 0x1400594b4
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xa806
call qword [sym.imp.USER32.dll_RemoveMenu]
test r12d, r12d
je 0x140059753
mov edi, 0xfffffffe
mov rcx, qword [rbx + 8]
lea edx, [rdi + 2]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x140059510
inc esi
cmp esi, 3
jne 0x140059510
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 0x1400594c2
jmp 0x140059753
test r13d, r13d
jne 0x140059578
call fcn.14005c010
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x220], esi
je 0x14005956b
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.140056a7c
jmp 0x140059755
cmp r13d, 2
jne 0x140059755
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 0x140059589
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x8040
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.1400560b0
test eax, eax
jne 0x1400595cd
call fcn.140056050
test eax, eax
je 0x1400595cd
call fcn.1400573c4
test al, al
jne 0x1400595e0
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, r12d
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140055f98
test eax, eax
jne 0x14005965f
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 0x14005965f
cmp dword [rbp + 0x40], r12d
jne 0x14005965f
cmp dword [rbp + 0x48], r12d
jne 0x14005965f
test byte [rbp + 0x50], 0x10
je 0x14005965f
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 0x1400596dc
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 0x1400596df
mov ecx, dword [rbp + 0x40]
cmp ecx, 2
je 0x1400596f6
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 0x14005974b
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x140059742
mov rcx, qword [rbx + 8]
lea edx, [rdi + 1]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x140059742
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 0x14005970d
mov rcx, rbx
call fcn.140056a7c
xor esi, esi
inc r13d
cmp r13d, r15d
jl 0x140059458
mov rcx, qword [r14 + 8]
mov edx, 3
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.14005c010
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x224], esi
je 0x14005979c
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