Function at 0x140014170
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xc40]
sub rsp, 0xd40
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0xc20], rax
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014422
mov qword [rsp + 0xd60], rdi
lea rcx, [rbp + 0x30]
xor edx, edx
mov qword [rsp + 0xd38], r14
mov r8d, 0x208
call fcn.14002d0c0
xor edx, edx
lea rcx, [rbp + 0x450]
mov r8d, 0x7d0
call fcn.14002d0c0
mov rcx, qword [rsp + 0x48]
lea r8, [rbp + 0x30]
xor r14d, r14d
mov r9d, 0x104
xor edx, edx
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x140014407
mov qword [rsp + 0xd50], rbx
mov qword [rsp + 0xd58], rsi
lea rsi, str.GpuPreference1_its_
mov qword [rsp + 0xd30], r15
lea r15, str.SOFTWAREMicrosoftDirectXUserGpuPreferences
test eax, eax
jne 0x1400143ef
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r15
lea r8, str._ls_ls
mov edx, 0x3e8
lea rcx, [rbp + 0x450]
call fcn.1400126d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x450]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400143bb
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400143bb
lea rax, [rsp + 0x50]
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], 0xc8
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x240]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x14001439e
nop
lea rdx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rsi + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x14001434a
add rax, 2
cmp rax, 0x15
je 0x140014332
movzx ecx, word [rsi + rax*2]
cmp cx, word [rdx + rax*2]
je 0x140014310
jmp 0x14001434a
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14001434a
dec ebx
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x240]
inc ebx
mov qword [rsp + 0x28], r14
mov edx, ebx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x50], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140014300
lea rdx, [rbp + 0x30]
lea rcx, str.deleteITSGPUsetting__:_Complete:__s_n
call fcn.14000fcd0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400143cb
lea rdx, [rbp + 0x30]
lea rcx, str.deleteITSGPUsetting__:_Failed_to_open:__s_n
call fcn.14000fcd0
mov rcx, qword [rsp + 0x48]
lea r8, [rbp + 0x30]
inc edi
mov r9d, 0x104
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x140014244
mov rsi, qword [rsp + 0xd58]
mov rbx, qword [rsp + 0xd50]
mov r15, qword [rsp + 0xd30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0xd38]
mov rdi, qword [rsp + 0xd60]
mov rcx, qword [rbp + 0xc20]
xor rcx, rsp
call fcn.14002a740
add rsp, 0xd40
pop rbp
ret