Function at 0x140013b80
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rsi, rdx
mov dword [rsp + 0x40], 0x208
mov r14, rcx
xor r13d, r13d
xor edx, edx
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x70]
mov r8d, 0x410
mov r12d, r13d
call fcn.140027ea0
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryPackages
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013fa7
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r13
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], r13
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x4d0], rbx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x4d8], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rbx, [r13 - 1]
test eax, eax
jne 0x140013ed5
nop word [rax + rax]
lea rax, [rsp + 0x70]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r13w
jne 0x140013c60
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140006e00
lea rax, [rsp + 0x70]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x140013c80
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140006e00
cmp qword [r14 + 0x18], 8
mov rcx, r14
mov rdi, qword [r14 + 0x10]
jb 0x140013ca8
mov rcx, qword [r14]
lea r9, str.AdvancedMicroDevicesInc
mov qword [rsp + 0x20], 0x17
xor r8d, r8d
mov rdx, rdi
call fcn.14001d950
cmp rax, rbx
jne 0x140013d0c
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r13
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], r13
inc r12d
mov qword [rsp + 0x28], r13
mov edx, r12d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140013c50
jmp 0x140013ed5
cmp qword [r14 + 0x18], 8
mov rdx, r14
jb 0x140013d19
mov rdx, qword [r14]
test rdi, rdi
je 0x140013d53
cmp word [rdx], 0x5f
mov rax, rdx
mov rcx, r13
je 0x140013d43
nop word [rax + rax]
cmp rdi, 1
je 0x140013d46
add rax, 2
dec rdi
cmp word [rax], 0x5f
jne 0x140013d30
mov rcx, rax
test rcx, rcx
je 0x140013d53
sub rcx, rdx
sar rcx, 1
jmp 0x140013d56
mov rcx, rbx
test ecx, ecx
jle 0x140013de6
lea eax, [rcx + 1]
mov qword [rsp + 0x50], r13
movsxd r8, eax
mov rdx, r14
cmp qword [r14 + 0x10], r8
mov qword [rsp + 0x60], r13
cmovb r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
mov qword [rsp + 0x68], 7
jb 0x140013d8d
mov rdx, qword [r14]
lea rcx, [rsp + 0x50]
call fcn.140006e00
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140006a00
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140013de6
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013de1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013fbf
call fcn.140025900
mov r9, qword [rsi + 0x18]
mov rdx, rsi
mov r8, qword [rsi + 0x10]
cmp r9, 8
jb 0x140013dfa
mov rdx, qword [rsi]
test r8, r8
je 0x140013e2f
lea rcx, [r8 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
cmp word [rdx + rax*2], 0x5f
lea rcx, [rdx + rax*2]
je 0x140013e27
cmp rcx, rdx
je 0x140013e2f
sub rcx, 2
cmp word [rcx], 0x5f
jne 0x140013e18
sub rcx, rdx
sar rcx, 1
jmp 0x140013e32
mov rcx, rbx
test ecx, ecx
jle 0x140013ed5
lea eax, [rcx + 1]
mov qword [rsp + 0x50], r13
movsxd rcx, eax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 7
cmp r8, rcx
jb 0x140013fc5
sub r8, rcx
mov rax, rbx
cmp r8, rbx
mov rdx, rsi
cmovb rax, r8
cmp r9, 8
jb 0x140013e75
mov rdx, qword [rsi]
lea rdx, [rdx + rcx*2]
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.140006e00
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140006a00
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140013ed5
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ed0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013fbf
call fcn.140025900
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013ee5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x140013ef0
cmp qword [rsi + 0x18], 8
mov r9, qword [rsi + 0x10]
jb 0x140013f08
mov rsi, qword [rsi]
cmp rbx, r9
lea rax, [rsp + 0x70]
mov rcx, r9
cmovb rcx, rbx
test rcx, rcx
je 0x140013f57
movzx edx, word [rsi]
movzx r8d, word [rsp + 0x70]
cmp dx, r8w
jb 0x140013f5e
lea r10, [rsp + 0x70]
sub rsi, r10
cmp dx, r8w
ja 0x140013f5e
cmp rcx, 1
je 0x140013f57
movzx edx, word [rax + rsi + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140013f37
jmp 0x140013f5e
cmp r9, rbx
jb 0x140013f5e
jbe 0x140013f97
test r9, r9
je 0x140013f97
mov eax, 1
mov rbx, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4d8]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400258e0
add rsp, 0x490
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
lea rcx, str.AMDRadeonSettingsLite_not_found_in_the_registry
call fcn.14000f680
xor eax, eax
jmp 0x140013f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.RegOpenKeyEx_failed._Error:__d
call fcn.14000f680
xor eax, eax
jmp 0x140013f78
call fcn.14002e1d4
int3
call fcn.14001d660
int3