Function at 0x40b116
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
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 0x40b179
cmp dword [ebp - 0xc], esi
je 0x40b179
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 0x40b33d
lea eax, [ebp - 4]
push eax
push 0x4226c0
push 0x15
push esi
push 0x422700
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40b33d
cmp dword [ebp - 4], esi
je 0x40b33d
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 0x40b2eb
mov esi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040b0ee
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40b238
test byte [ebx + 0x10], 0xa4
jne 0x40b23e
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 0x40b2dc
test byte [ebx + 0x10], 0xa4
je 0x40b2a3
cmp dword [ebp - 8], 0
jne 0x40b2a3
mov esi, 0x2f0
push esi
lea eax, [ebp - 0x344]
push 0
push eax
call fcn.0040fc20
mov eax, dword [ebx + 0x10]
add esp, 0xc
push 4
mov dword [ebp - 0x31c], eax
lea ecx, [ebp - 0x314]
lea eax, [ebx + 0x18]
pop edx
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 0x44
add ecx, 0x44
dec edx
jne 0x40b270
mov eax, dword [ebp - 4]
mov byte [ebp - 0x334], dl
mov ecx, dword [eax]
lea edx, [ebp - 0x344]
push edx
push esi
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40b2dc
lea edi, [ebx + 0x34]
lea esi, [ebp - 0x18c]
jmp 0x40b2d7
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0040fc20
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 0x40b2d1
lea esi, [ebp - 0x28]
jmp 0x40b2d4
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 0x40b1b6
test byte [ebx + 0x10], 0xa4
je 0x40b32f
xor edx, edx
inc edx
lea eax, [ebx + 0x7a]
jmp 0x40b2fb
xor esi, esi
cmp dword [eax - 0x1e], esi
je 0x40b32f
lea edi, [eax - 2]
mov cx, word [edi]
lea esi, [ebx + 0x34]
cmp cx, word [esi]
jne 0x40b321
mov cx, word [eax]
cmp cx, word [ebx + 0x36]
jne 0x40b321
mov cx, word [eax + 4]
cmp cx, word [ebx + 0x3a]
je 0x40b326
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc edx
add eax, 0x44
cmp edx, 4
jl 0x40b2f9
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