Function at 0x428290
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450b38
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x468744]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x468744]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x68], esi
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
push str.PowrProf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.PowerRemovePowerSetting
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x24], eax
push str.Checking_for_existing_power_profiles
push 0x4699d4
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.0042d020
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, esi
je 0x428328
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push esi
push str.SoftwareIntelGFX
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4284c2
lea ecx, [esp + 0x28]
push ecx
mov eax, str.DPPE
lea ebx, [esp + 0x18]
call fcn.0042d5a0
test eax, eax
je 0x428495
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test al, 1
jne 0x428489
cmp eax, esi
jbe 0x428477
dec eax
shr eax, 1
add ebx, 0x1c
inc eax
mov dword [esp + 0x1c], eax
cmp dword [ebx - 8], 8
lea esi, [ebx - 0x1c]
jb 0x4283b3
mov eax, dword [esi]
jmp 0x4283b5
mov eax, esi
mov edi, dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x38]
push edx
push eax
call edi
cmp dword [ebx + 0x14], 8
jb 0x4283cd
mov eax, dword [ebx]
jmp 0x4283cf
mov eax, ebx
lea ecx, [esp + 0x48]
push ecx
push eax
call edi
mov eax, dword [esp + 0x24]
mov edi, 0x32
test eax, eax
je 0x4283f2
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
push ecx
call eax
mov edi, eax
push str.__Removing_power_profile:
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
cmp dword [ebx - 8], 8
jb 0x428410
mov eax, dword [esi]
jmp 0x428412
mov eax, esi
push eax
push str.____Setting:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x428431
mov eax, dword [ebx]
jmp 0x428433
mov eax, ebx
push eax
push str.____Subgroup:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
test edi, edi
je 0x428464
push edi
push str.__Error:_0x_X
push 0x4699d4
mov eax, 1
call fcn.0042d020
add esp, 0xc
add ebx, 0x38
dec dword [esp + 0x1c]
jne 0x4283a6
mov edi, dword [esp + 0x20]
xor esi, esi
mov edx, dword [esp + 0x14]
push str.DPPE
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4284a9
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x42849c
push str.__No_power_profiles_found
xor eax, eax
push 0x4699d4
call fcn.0042d020
add esp, 8
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4284b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
jmp 0x4284f5
cmp eax, 2
jne 0x4284dd
push str.__No_power_profiles_found
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
jmp 0x4284f5
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x4699d4
mov eax, 2
call fcn.0042d020
add esp, 0xc
cmp edi, esi
je 0x428500
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, esi
je 0x428518
mov edi, dword [esp + 0x2c]
mov eax, ebx
call fcn.0040d800
push ebx
call fcn.00439b10
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x428527
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00438786
mov esp, ebp
pop ebp
ret