Function at 0x140010678
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x3a0
xor edi, edi
mov r13, rdx
mov rsi, rcx
mov dword [rax + 0x18], edi
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxsrvc_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x140010721
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x140010721
lea rax, [rsp + 0x3e8]
lea r9, [rsp + 0x38]
lea rdx, str.ModeSelectionPolicy
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3e0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3e8], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], rdi
cmp dword [rsp + 0x3e0], 1
jne 0x14001093e
xor edx, edx
lea rax, [rsp + 0x3e8]
lea r9, [0x140049908]
lea rcx, [0x140049948]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x3e8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x14001093e
cmp qword [rsp + 0x3e8], rdi
je 0x14001093e
mov rbp, rdi
mov r15d, 0x14
mov r12, rbp
imul r12, r12, 0x44
mov ebx, dword [r12 + rsi + 0x20]
cmp ebx, edi
je 0x1400108dc
mov rdx, r13
mov ecx, ebx
call fcn.140010648
cmp eax, 0xffffffff
je 0x140010804
test byte [rsi + 0x18], 0xa4
jne 0x14001080a
movsxd rbx, eax
lea rcx, [r12 + rsi + 0x3c]
mov r8, r15
mov rax, rbx
imul rax, rax, 0x44
lea rdx, [rax + r13 + 0x3c]
call fcn.14001b4f0
mov r11d, dword [r13 + rbx*4 + 0x13c]
mov dword [rsi + rbp*4 + 0x13c], r11d
mov eax, dword [r13 + rbx*4 + 0x14c]
mov dword [rsi + rbp*4 + 0x14c], eax
mov eax, dword [r13 + rbx*4 + 0x15c]
mov dword [rsi + rbp*4 + 0x15c], eax
mov eax, dword [r13 + rbx*4 + 0x12c]
mov dword [rsi + rbp*4 + 0x12c], eax
jmp 0x1400108cf
test byte [rsi + 0x18], 0xa4
je 0x140010889
cmp rbp, rdi
jne 0x140010889
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x310
call fcn.140019180
mov r11d, dword [rsi + 0x18]
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0xc8], r11d
lea rdx, [rsi + 0x20]
mov r8d, 4
mov eax, dword [rdx]
add rdx, 0x44
mov dword [rcx], eax
add rcx, 0x44
sub r8, 1
jne 0x140010842
mov rcx, qword [rsp + 0x3e8]
mov byte [rsp + 0xa8], dil
lea r8, [rsp + 0x90]
mov rax, qword [rcx]
mov edx, 0x310
call qword [rax + 0x58]
cmp eax, edi
jl 0x1400108cf
lea rcx, [rsi + 0x3c]
lea rdx, [rsp + 0x264]
jmp 0x1400108c7
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x48]
call fcn.140019180
mov rcx, qword [rsp + 0x3e8]
mov dword [rsp + 0x58], ebx
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 0x48
call qword [rax + 0x70]
lea rcx, [r12 + rsi + 0x3c]
lea rdx, [rsp + 0x74]
cmp eax, edi
jge 0x1400108c7
lea rdx, [r13 + 0x3c]
mov r8, r15
call fcn.14001b4f0
inc rbp
cmp rbp, 4
jl 0x14001077d
test byte [rsi + 0x18], 0xa4
je 0x14001092b
mov ebp, 1
lea rbx, [rsi + 0x82]
cmp dword [rbx - 0x1e], edi
je 0x14001092b
lea rdx, [rsi + 0x3c]
lea rcx, [rbx - 2]
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x140010916
movzx eax, word [rsi + 0x3e]
cmp word [rbx], ax
jne 0x140010916
movzx eax, word [rsi + 0x42]
cmp word [rbx + 4], ax
je 0x14001091e
mov r8, r15
call fcn.14001b4f0
inc rbp
add rbx, 0x44
cmp rbp, 4
jl 0x1400108ee
mov rcx, qword [rsp + 0x3e8]
mov edi, 1
mov rdx, qword [rcx]
call qword [rdx + 0x10]
lea r11, [rsp + 0x3a0]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret