Function at 0x40adc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push esi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareIntelDisplayigfxcuiigfxsrvc_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ae24
cmp dword [ebp - 0xc], esi
je 0x40ae24
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ModeSelectionPolicy
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], 1
jne 0x40afe8
lea eax, [ebp - 4]
push eax
push 0x421598
push 0x15
push esi
push 0x4215d8
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40afe8
cmp dword [ebp - 4], esi
je 0x40afe8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
imul eax, eax, 0x44
lea edi, [eax + ebx]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x40af96
mov esi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040ad99
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40aee3
test byte [ebx + 0x10], 0xa4
jne 0x40aee9
mov edx, dword [ebp + 0xc]
mov ecx, eax
imul ecx, ecx, 0x44
lea esi, [ecx + esi + 0x34]
push 5
add edi, 0x34
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + eax*4 + 0x134]
mov ecx, dword [ebp - 8]
mov dword [ebx + ecx*4 + 0x134], esi
mov esi, dword [edx + eax*4 + 0x144]
mov dword [ebx + ecx*4 + 0x144], esi
mov esi, dword [edx + eax*4 + 0x154]
mov dword [ebx + ecx*4 + 0x154], esi
mov eax, dword [edx + eax*4 + 0x124]
mov dword [ebx + ecx*4 + 0x124], eax
jmp 0x40af87
test byte [ebx + 0x10], 0xa4
je 0x40af4e
cmp dword [ebp - 8], 0
jne 0x40af4e
mov esi, 0x2f8
push esi
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.0040f8b0
mov eax, dword [ebx + 0x10]
add esp, 0xc
push 4
mov dword [ebp - 0x324], eax
lea ecx, [ebp - 0x31c]
lea eax, [ebx + 0x18]
pop edx
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 0x44
add ecx, 0x44
dec edx
jne 0x40af1b
mov eax, dword [ebp - 4]
mov byte [ebp - 0x33c], dl
mov ecx, dword [eax]
lea edx, [ebp - 0x34c]
push edx
push esi
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40af87
lea edi, [ebx + 0x34]
lea esi, [ebp - 0x190]
jmp 0x40af82
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0040f8b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x40
push eax
call dword [ecx + 0x38]
test eax, eax
jl 0x40af7c
lea esi, [ebp - 0x28]
jmp 0x40af7f
add esi, 0x34
add edi, 0x34
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 8]
xor esi, esi
cmp dword [ebp - 8], 4
jl 0x40ae61
test byte [ebx + 0x10], 0xa4
je 0x40afda
xor edx, edx
inc edx
lea eax, [ebx + 0x7a]
jmp 0x40afa6
xor esi, esi
cmp dword [eax - 0x1e], esi
je 0x40afda
lea edi, [eax - 2]
mov cx, word [edi]
lea esi, [ebx + 0x34]
cmp cx, word [esi]
jne 0x40afcc
mov cx, word [eax]
cmp cx, word [ebx + 0x36]
jne 0x40afcc
mov cx, word [eax + 4]
cmp cx, word [ebx + 0x3a]
je 0x40afd1
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc edx
add eax, 0x44
cmp edx, 4
jl 0x40afa4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
xor esi, esi
push eax
inc esi
call dword [ecx + 8]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret