Function at 0x14001c870
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x558]
sub rsp, 0x650
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
je 0x14001cb89
mov dword [rdx], 0x20
lea rcx, [rbp + 0x350]
xor edx, edx
mov qword [rax + 0x10], rsi
mov r8d, 0x200
call fcn.14002e170
xor esi, esi
lea r8, [rbp + 0x350]
mov r9d, 0x200
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x14001cb4d
xor edx, edx
lea rcx, [rsp + 0x51]
mov r8d, 0x1ff
call fcn.14002e170
mov eax, dword [0x140083a38]
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetEnum]
dec rcx
mov dword [rsp + 0x68], eax
movsd xmm1, qword [0x140083a30]
movzx eax, word [0x140083a3c]
movaps xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x6c], ax
movsd qword [rsp + 0x60], xmm1
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x14001c933
movzx eax, word [0x14007d45c]
mov word [rcx], ax
lea rcx, [rsp + 0x50]
dec rcx
nop
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x14001c950
lea r8, [rbp + 0x350]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001c970
lea rax, [rbp + 0x560]
mov qword [rbp + 0x560], rsi
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x14001ca30
mov rcx, qword [rbp + 0x560]
lea rax, str.AMDKMDAP
mov dword [rsp + 0x28], 8
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Service
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
je 0x14001ca15
mov rcx, qword [0x1400a1fb0]
test rcx, rcx
je 0x14001ca21
lea r8, str.GPUInstallation___SetIntelService_failed_to_set_Intel_adapter_service.
mov edx, 0x80000
call fcn.1400260c0
mov rcx, qword [rbp + 0x560]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001ca4d
lea rcx, [rbp + 0x350]
call fcn.14001bff0
mov rcx, qword [rbp + 0x560]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001ca4d
mov rcx, qword [0x1400a1fb0]
test rcx, rcx
je 0x14001ca4d
lea r8, str.GPUInstallation___SetIntelService_failed_to_get_Intel_adapter_service_name.
mov edx, 0x80000
call fcn.1400260c0
call fcn.1400269a0
cmp eax, 2
jne 0x14001cb4b
xor edx, edx
lea rcx, [rbp + 0x151]
mov r8d, 0x1ff
call fcn.14002e170
movzx eax, word [0x140083b10]
lea rcx, [rbp + 0x150]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetEnumRoot]
mov word [rbp + 0x170], ax
dec rcx
movups xmm1, xmmword [0x140083b00]
movzx eax, byte [0x140083b12]
mov byte [rbp + 0x172], al
movaps xmmword [rbp + 0x150], xmm0
movaps xmmword [rbp + 0x160], xmm1
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x14001cab0
movsd xmm0, qword [0x140083b18]
lea rdx, [rbp + 0x150]
movzx eax, byte [0x140083b20]
dec rdx
movsd qword [rcx], xmm0
mov byte [rcx + 8], al
nop word [rax + rax]
cmp byte [rdx + 1], sil
lea rdx, [rdx + 1]
jne 0x14001cae0
mov eax, dword [str.IGFX]
xor r9d, r9d
mov dword [rdx], eax
xor r8d, r8d
movzx eax, byte [0x140083b28]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], rsi
mov byte [rdx + 4], al
lea rax, [rbp + 0x560]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x14001cb6a
mov rcx, qword [rbp + 0x560]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rsi, qword [rsp + 0x668]
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [0x1400a1fb0]
test rcx, rcx
je 0x14001cb4b
lea r8, str.GPUInstallation___SetIntelService_failed_to_add_LEGACY_IGFX_for_Intel.
mov edx, 0x80000
call fcn.1400260c0
jmp 0x14001cb4b
mov eax, 0x57
jmp 0x14001cb55