Function at 0x100021af
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x6a4
push ebx
push 0x344
lea eax, [ebp - 0x2e8]
push 0
push eax
mov dword [ebp + 0x70], ecx
call fcn.10016e50
mov ebx, dword [ebp + 0x7c]
mov eax, dword [ebx + 0x10]
add esp, 0xc
test al, 0xf0
je 0x100025ea
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, dword [ebp + 0x70]
push 1
push eax
call fcn.100123b8
test eax, eax
je 0x100025ea
mov eax, dword [ebx + 0x14]
push esi
push edi
mov dword [ebp - 0x2e8], 0xd
mov esi, 0x1002a248
lea edi, [ebp - 0x2e0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
pop ecx
xor edi, edi
xor esi, esi
test al, 1
mov dword [ebp - 0x2cc], ecx
je 0x1000223b
mov edx, dword [ebx + 0x18]
or dword [ebp - 0x2c8], 1
mov dword [ebp - 0x2c4], edx
test al, 2
je 0x1000231d
mov al, byte [ebx + 0x62]
or dword [ebp - 0x2c8], ecx
mov byte [ebp - 0x27a], al
mov al, byte [ebx + 0x61]
mov byte [ebp - 0x27b], al
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp + 0x7c]
push eax
push str.SoftwareIntelDisplayigfxcuiigfxsrvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10002313
cmp dword [ebp + 0x7c], edi
je 0x10002313
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x64]
push eax
push edi
push str.IntelDefaultPers
push dword [ebp + 0x7c]
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x5c], 4
mov dword [ebp + 0x68], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1000230e
cmp dword [ebp + 0x64], 4
jne 0x1000230e
test byte [ebp + 0x68], 1
je 0x1000230e
lea eax, [ebp + 0x6c]
push eax
push 0x20006
push edi
push str.SoftwareIntelDisplayigfxcuiConfigurations
push SysReAllocString
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x60], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000230e
push 4
lea eax, [ebp + 0x60]
push eax
push 4
push edi
push str.TMMOffForTVStdChangeWA
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
call esi
xor esi, esi
inc esi
mov byte [ebp - 0x279], 1
mov ecx, dword [ebx + 0x14]
test cl, 4
je 0x10002335
mov eax, dword [ebx + 0x28]
or dword [ebp - 0x2c8], 4
mov dword [ebp - 0x2b4], eax
test cl, 8
je 0x10002353
mov eax, dword [ebx + 0x2c]
or dword [ebp - 0x2c8], 8
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x2ac], eax
test cl, 0x20
je 0x10002371
mov eax, dword [ebx + 0x3c]
or dword [ebp - 0x2c8], 0x20
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x29c], eax
test cl, 0x40
je 0x10002386
mov eax, dword [ebx + 0x44]
or dword [ebp - 0x2c8], 0x40
mov dword [ebp - 0x298], eax
test cl, cl
jns 0x1000239d
mov eax, dword [ebx + 0x48]
or dword [ebp - 0x2c8], 0x80
mov dword [ebp - 0x294], eax
test ecx, 0x18000
je 0x100023ec
mov eax, 0x8000
test eax, ecx
je 0x100023b4
or dword [ebp - 0x2c8], eax
mov eax, 0x10000
test eax, ecx
je 0x100023c3
or dword [ebp - 0x2c8], eax
cmp byte [ebx + 0x62], 0xf9
jne 0x100023d4
mov al, byte [ebx + 0x60]
mov byte [ebp - 0x27c], al
jmp 0x100023ec
push pe_nt_image_headers32
lea eax, [ebx + 0x60]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.10016ee0
add esp, 0xc
cmp esi, edi
je 0x10002537
mov esi, 0x344
push esi
lea eax, [ebp - 0x62c]
push edi
push eax
mov dword [ebp - 0x630], edi
call fcn.10016e50
push esi
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.10016ee0
mov ecx, dword [ebp + 0x70]
add esp, 0x18
push 0x37
pop edi
push ebx
lea eax, [ebp - 0x630]
push eax
add esi, 4
push esi
push edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x2ec], 1
call fcn.100044e7
test eax, eax
jl 0x10002552
cmp dword [ebp - 0x2ec], 3
jne 0x100024c6
mov ecx, dword [ebp + 0x70]
push ebx
lea eax, [ebp - 0x630]
push eax
push esi
push edi
mov dword [ebp - 0x2ec], 2
call fcn.100044e7
test eax, eax
jge 0x10002489
mov byte [ebx], 1
mov dword [ebx + 8], 5
jmp 0x100024c6
xor edi, edi
mov dword [ebp + 0x7c], edi
mov esi, str.DISPLAY1_TVStandardSetSuccess
mov ecx, dword [ebp + 0x70]
lea eax, [ebp + 0x7c]
push eax
push esi
push 5
call fcn.10016055
cmp dword [ebp + 0x7c], 1
je 0x100024b9
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xc8
jl 0x10002493
mov ecx, dword [ebp + 0x70]
push 0
push esi
push 5
call fcn.10015e0f
test byte [ebx + 0x14], 2
mov byte [ebx], 0
je 0x100025dc
push dword [ebx + 0x1c]
mov esi, dword [ebp + 0x70]
push str.TVStandard
push 3
mov ecx, esi
call fcn.10015e0f
cmp byte [ebx + 0x62], 0xf9
jne 0x100024f5
cmp byte [ebx + 0x61], 1
jne 0x1000250f
jmp 0x100024fe
test dword [ebx + 0x1c], 0xfff00000
je 0x1000250f
and dword [ebp + 0x7c], 0
lea eax, [ebp + 0x7c]
push eax
push 3
mov ecx, esi
call fcn.10011e28
mov ecx, dword [0x10030d08]
test ecx, ecx
je 0x10002520
call fcn.10001054
jmp 0x10002522
xor eax, eax
push eax
mov ecx, esi
call fcn.1000b40d
mov ecx, dword [0x10030d0c]
test ecx, ecx
jmp 0x100025c5
mov ecx, dword [ebp + 0x70]
push ebx
lea eax, [ebp - 0x2e8]
push eax
push 0x344
push 0xd
call fcn.100044e7
test eax, eax
jge 0x1000255e
mov byte [ebx], 1
mov dword [ebx + 8], 5
jmp 0x100025d8
test byte [ebx + 0x14], 2
mov byte [ebx], 0
je 0x100025dc
push dword [ebx + 0x1c]
mov esi, dword [ebp + 0x70]
push str.TVStandard
push 3
mov ecx, esi
call fcn.10015e0f
cmp byte [ebx + 0x62], 0xf9
jne 0x10002589
cmp byte [ebx + 0x61], 1
jne 0x100025a2
jmp 0x10002592
test dword [ebx + 0x1c], 0xfff00000
je 0x100025a2
lea eax, [ebp + 0x7c]
push eax
push 3
mov ecx, esi
mov dword [ebp + 0x7c], edi
call fcn.10011e28
mov ecx, dword [0x10030d08]
cmp ecx, edi
je 0x100025b3
call fcn.10001054
jmp 0x100025b5
xor eax, eax
push eax
mov ecx, esi
call fcn.1000b40d
mov ecx, dword [0x10030d0c]
cmp ecx, edi
je 0x100025ce
call fcn.10001054
jmp 0x100025d0
xor eax, eax
push eax
mov ecx, esi
call fcn.1000b40d
test byte [ebx + 0x14], 2
pop edi
pop esi
je 0x100025f4
mov ecx, dword [ebp + 0x70]
call fcn.1000d7a2
jmp 0x100025f4
mov byte [ebx], 1
mov dword [ebx + 8], 0xb
xor eax, eax
pop ebx
add ebp, 0x74
leave
ret 4