Function at 0x140059398
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 0x1400596d5
mov rcx, qword [r14 + 8]
mov edx, r13d
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
call fcn.14007c6fc
mov rbx, rax
test rax, rax
je 0x140059710
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov r12d, eax
cmp r13d, 4
jne 0x140059493
call fcn.14005930c
test al, al
je 0x140059416
cmp byte [0x1402f16c8], sil
jne 0x140059428
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xa806
call qword [sym.imp.USER32.dll_RemoveMenu]
test r12d, r12d
je 0x1400596c7
mov edi, 0xfffffffe
mov rcx, qword [rbx + 8]
lea edx, [rdi + 2]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x140059484
inc esi
cmp esi, 3
jne 0x140059484
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 0x140059436
jmp 0x1400596c7
test r13d, r13d
jne 0x1400594ec
call fcn.14005bf80
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x220], esi
je 0x1400594df
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.140056a54
jmp 0x1400596c9
cmp r13d, 2
jne 0x1400596c9
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 0x1400594fd
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x8040
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140056088
test eax, eax
jne 0x140059541
call fcn.140056028
test eax, eax
je 0x140059541
call fcn.140057338
test al, al
jne 0x140059554
mov rcx, qword [rbx + 8]
mov r8d, 0x400
mov edx, r12d
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.140055f70
test eax, eax
jne 0x1400595d3
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 0x1400595d3
cmp dword [rbp + 0x40], r12d
jne 0x1400595d3
cmp dword [rbp + 0x48], r12d
jne 0x1400595d3
test byte [rbp + 0x50], 0x10
je 0x1400595d3
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 0x140059650
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 0x140059653
mov ecx, dword [rbp + 0x40]
cmp ecx, 2
je 0x14005966a
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 0x1400596bf
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x1400596b6
mov rcx, qword [rbx + 8]
lea edx, [rdi + 1]
call qword [sym.imp.USER32.dll_GetMenuItemID]
test eax, eax
jne 0x1400596b6
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 0x140059681
mov rcx, rbx
call fcn.140056a54
xor esi, esi
inc r13d
cmp r13d, r15d
jl 0x1400593cc
mov rcx, qword [r14 + 8]
mov edx, 3
mov r8d, 0x400
call qword [sym.imp.USER32.dll_RemoveMenu]
call fcn.14005bf80
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x224], esi
je 0x140059710
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