Function at 0x40b0fa
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 0x40b15d
cmp dword [ebp - 0xc], esi
je 0x40b15d
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 0x40b323
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 0x40b323
cmp dword [ebp - 4], esi
je 0x40b323
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 0x40b2d1
mov esi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040b0d2
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40b273
test byte [ebx + 0x10], 0xa4
je 0x40b238
cmp dword [ebp - 8], 0
jne 0x40b238
mov esi, 0x2f0
push esi
lea eax, [ebp - 0x344]
push 0
push eax
call fcn.0040fc00
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 0x40b1fe
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 0x40b2c2
push 5
lea edi, [ebx + 0x34]
pop ecx
lea esi, [ebp - 0x18c]
jmp 0x40b26f
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0040fc00
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]
push 5
pop ecx
test eax, eax
jl 0x40b269
lea esi, [ebp - 0x28]
jmp 0x40b26c
add esi, 0x34
add edi, 0x34
rep movsd dword es:[edi], dword [esi]
jmp 0x40b2c2
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
inc dword [ebp - 8]
xor esi, esi
cmp dword [ebp - 8], 4
jl 0x40b19a
test byte [ebx + 0x10], 0xa4
je 0x40b315
xor edx, edx
inc edx
lea eax, [ebx + 0x7a]
jmp 0x40b2e1
xor esi, esi
cmp dword [eax - 0x1e], esi
je 0x40b315
lea edi, [eax - 2]
mov cx, word [edi]
lea esi, [ebx + 0x34]
cmp cx, word [esi]
jne 0x40b307
mov cx, word [eax]
cmp cx, word [ebx + 0x36]
jne 0x40b307
mov cx, word [eax + 4]
cmp cx, word [ebx + 0x3a]
je 0x40b30c
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc edx
add eax, 0x44
cmp edx, 4
jl 0x40b2df
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