Function at 0x140011fd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
movaps xmm0, xmmword [str.4d36e968_e325_11ce_bfc1_08002be10318]
lea rcx, [rbp - 0x40]
movaps xmm1, xmmword [0x1400662f0]
xor edi, edi
mov eax, dword [0x140066328]
xor edx, edx
movaps xmmword [rsp + 0x70], xmm0
mov r8d, 0x208
movaps xmm0, xmmword [0x140066300]
mov r14d, edi
movaps xmmword [rbp - 0x70], xmm0
movsd xmm0, qword [0x140066320]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm1, xmmword [0x140066310]
mov dword [rbp - 0x48], eax
movzx eax, word [0x14006632c]
movsd qword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm1
mov word [rbp - 0x44], ax
call fcn.1400423d0
mov r8d, 0x200
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_List_SizeW]
test eax, eax
jne 0x14001239b
mov ebx, dword [rsp + 0x40]
add rbx, rbx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14001239b
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x70]
mov r9d, 0x200
mov rdx, rax
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_ListW]
test eax, eax
jne 0x1400121cf
mov qword [rsp + 0x720], rsi
mov rsi, r15
cmp word [r15], di
je 0x1400121c7
test r14d, r14d
jne 0x1400121c7
lea r8d, [r14 + 1]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x1400121a9
mov ecx, dword [rsp + 0x58]
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [0x140064910]
mov dword [rsp + 0x5c], edi
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_PropertyW]
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x1400121a9
mov ecx, eax
call fcn.140040704
mov rbx, rax
test rax, rax
je 0x1400121a9
mov ecx, dword [rsp + 0x58]
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x60]
mov r9, rbx
mov qword [rsp + 0x20], rax
lea rdx, [0x140064910]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_PropertyW]
test eax, eax
jne 0x1400121a1
lea r8d, [r14 + 0xd]
mov rcx, rbx
lea rdx, str.PCIVEN_10DE
call fcn.14004d9bc
test eax, eax
jne 0x1400121a1
mov r8, rbx
lea rcx, [rbp - 0x40]
mov edx, 0x104
call fcn.140044288
mov r14d, 1
mov rcx, rbx
call fcn.14004070c
mov edx, 0xc8
mov rcx, rsi
call fcn.14004d7f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], di
jne 0x1400120e3
mov rsi, qword [rsp + 0x720]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test r14d, r14d
je 0x14001239b
xor edx, edx
mov qword [rsp + 0x50], rdi
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.1400423d0
lea r9, [rbp - 0x40]
mov edx, 0x104
lea r8, str.SYSTEMCurrentControlSetEnum_s
lea rcx, [rbp + 0x1d0]
call fcn.14000a160
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012397
xor edx, edx
lea rcx, [rbp + 0x3e0]
mov r8d, 0x208
call fcn.1400423d0
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001238c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x48], rdi
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001238c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Capabilities
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140012381
cmp dword [rsp + 0x5c], edi
je 0x140012381
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Capabilities
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
sete dil
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x140012381
test byte [rcx + 0x1c], 4
je 0x140012381
mov rcx, qword [rcx + 0x10]
lea rax, str.SetNVDisplayAdapterCapabilitiesInRegistry_result
mov edx, 0xf
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.14003f100
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
jmp 0x14001239d
xor eax, eax
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret