Function at 0x140050040
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
cmp byte [rax + 0xa95], 0
je 0x140050079
cmp byte [rax + 0xa94], 0
jne 0x1400500a2
call fcn.1400a7c10
test eax, eax
jne 0x1400500a2
lea r8, str.RebootRequired
lea rdx, str.SoftwareAMDCN_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
jmp 0x140050373
xor r8d, r8d
mov edx, 0x3ff
lea rcx, [rsp + 0x110]
call fcn.140023b20
nop
lea rcx, [rsp + 0x110]
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x110]
lea r9, str.Install_has_completed._Reboot_is_required.
mov r8, 0xffffffffffffffff
call fcn.14009d740
lea rbx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rbx, qword [rsp + 0x110]
xor esi, esi
mov dword [rsp + 0x108], esi
lea rax, [rsp + 0x108]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10c]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
lea r8d, [rsi + 0x34]
lea rdx, str.InstallMan::performInstall::_lambda_17_::operator___
lea rcx, [rsp + 0x60]
call fcn.140018360
nop
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 7
lea r8d, [rsi + 0x6b]
lea rdx, str.c:constructicon_buildsgfx_six23.19installNeomaInstallNeomaIN_Apps_srcCoreInstallManInstallMan.cpp
lea rcx, [rsp + 0x80]
call fcn.140018360
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x50]
mov r8d, 0xc82
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.1400b0fe0
nop
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x14005020d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050208
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050398
call fcn.1401a9460
xor ecx, ecx
call fcn.1401e2cec
mov rdi, rax
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x108]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareAMDCN_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14005039e
mov rbx, qword [rsp + 0x108]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x128], 7
mov word [rsp + 0x110], si
mov r8d, 0xe
lea rdx, str.RebootRequired
lea rcx, [rsp + 0x110]
call fcn.140018360
nop
mov qword [rsp + 0x108], rdi
lea rdx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rdx, qword [rsp + 0x110]
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1400503d1
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x140050348
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005042a
call fcn.1401a9460
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x128], 7
mov word [rsp + 0x110], si
test rbx, rbx
je 0x140050373
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1401e37cc
nop
call fcn.140015e70
mov r8, rax
lea r9, str.Unable_to_get_create_registry_key
mov edx, ebx
lea rcx, [rsp + 0xb8]
call fcn.140045e00
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0xb8]
call fcn.1401cf69c
nop
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.1400420b0
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140051de0
mov rbx, rax
call fcn.140015e70
mov r9, rbx
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0xe0]
call fcn.140045dc0
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0xe0]
call fcn.1401cf69c
nop
call fcn.1401e37cc
int3
add rcx, 8
jmp 0x140050040