Function at 0x412cd8
Capabilities:
Connect to wmi namespace via wbemlocator
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
mov dword [rsp + 0x28], 0x100
mov r9, rcx
mov dword [rsp + 0x20], 0x3fe
xor r15d, r15d
lea r8, str.VideoAdapters
mov word [rcx], r15w
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call fcn.00404704
test al, al
je 0x412d30
cmp word [rdi], r15w
jne 0x412f62
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, 0x80000000
or rsi, 0xffffffffffffffff
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x412d55
cmp eax, 0x80010106
jne 0x412eb1
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov dword [rsp + 0x38], r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, esi
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x412d93
cmp eax, 0x80010119
jne 0x412eab
xor edx, edx
mov qword [rbp + 0x48], r15
lea rax, [rbp + 0x48]
lea r9, [0x0047b080]
mov qword [rsp + 0x20], rax
lea rcx, [0x0047b090]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x412eab
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x412eab
mov qword [rbp + 0x40], r15
mov ecx, 0x18
mov rax, qword [rax]
mov r14, qword [rax + 0x18]
call fcn.004228d4
mov rbx, rax
test rax, rax
je 0x412f76
lea rcx, str.ROOTCIMV2
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x412f76
mov rdx, qword [rbx]
lea rax, [rbp + 0x40]
mov rcx, qword [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov qword [rbp - 0x10], rbx
call r14
lea rcx, [rbp - 0x10]
mov ebx, eax
call fcn.00412910
test ebx, ebx
js 0x412ea1
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x412ea1
mov dword [rsp + 0x38], r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
lea edx, [r9 + 0xa]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x412e97
mov rdx, qword [rbp + 0x40]
mov rcx, rdi
call fcn.00412a20
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + select]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r15w
jne 0x412eb4
test rax, rax
je 0x412ee0
cmp word [rdi + rax*2 - 2], 0x7c
jne 0x412ee0
sub rax, 1
mov word [rdi + rax*2], r15w
jne 0x412ec3
jmp 0x412ee0
mov ecx, 0x2c
mov word [rax], cx
lea rdx, [0x00492fa8]
mov rcx, rdi
call fcn.00423b70
test rax, rax
jne 0x412ed8
inc rsi
cmp word [rdi + rsi*2], r15w
jne 0x412ef4
lea ebx, [rsi*2 + 2]
test ebx, ebx
je 0x412f62
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r15
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412f62
mov rcx, qword [rbp + 0x40]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], ebx
lea rdx, str.VideoAdapters
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.004224d0
int3