Function at 0x40abb5
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 0x40ac18
cmp dword [ebp - 0xc], esi
je 0x40ac18
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 0x40addc
lea eax, [ebp - 4]
push eax
push 0x4210f0
push 0x15
push esi
push 0x421130
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40addc
cmp dword [ebp - 4], esi
je 0x40addc
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 0x40ad8a
mov esi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040ab8d
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40acd7
test byte [ebx + 0x10], 0xa4
jne 0x40acdd
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 0x40ad7b
test byte [ebx + 0x10], 0xa4
je 0x40ad42
cmp dword [ebp - 8], 0
jne 0x40ad42
mov esi, 0x2f8
push esi
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.0040f990
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 0x40ad0f
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 0x40ad7b
lea edi, [ebx + 0x34]
lea esi, [ebp - 0x190]
jmp 0x40ad76
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0040f990
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 0x40ad70
lea esi, [ebp - 0x28]
jmp 0x40ad73
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 0x40ac55
test byte [ebx + 0x10], 0xa4
je 0x40adce
xor edx, edx
inc edx
lea eax, [ebx + 0x7a]
jmp 0x40ad9a
xor esi, esi
cmp dword [eax - 0x1e], esi
je 0x40adce
lea edi, [eax - 2]
mov cx, word [edi]
lea esi, [ebx + 0x34]
cmp cx, word [esi]
jne 0x40adc0
mov cx, word [eax]
cmp cx, word [ebx + 0x36]
jne 0x40adc0
mov cx, word [eax + 4]
cmp cx, word [ebx + 0x3a]
je 0x40adc5
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc edx
add eax, 0x44
cmp edx, 4
jl 0x40ad98
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