Function at 0x428060
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450a68
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x469738]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x469738]
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 0x46a9d4
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.0042d150
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, esi
je 0x4280f8
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 0x428292
lea ecx, [esp + 0x28]
push ecx
mov eax, str.DPPE
lea ebx, [esp + 0x18]
call fcn.0042d6d0
test eax, eax
je 0x428265
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 0x428259
cmp eax, esi
jbe 0x428247
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 0x428183
mov eax, dword [esi]
jmp 0x428185
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 0x42819d
mov eax, dword [ebx]
jmp 0x42819f
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 0x4281c2
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
push ecx
call eax
mov edi, eax
push str.__Removing_power_profile:
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
cmp dword [ebx - 8], 8
jb 0x4281e0
mov eax, dword [esi]
jmp 0x4281e2
mov eax, esi
push eax
push str.____Setting:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x428201
mov eax, dword [ebx]
jmp 0x428203
mov eax, ebx
push eax
push str.____Subgroup:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
test edi, edi
je 0x428234
push edi
push str.__Error:_0x_X
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
add ebx, 0x38
dec dword [esp + 0x1c]
jne 0x428176
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 0x428279
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x42826c
push str.__No_power_profiles_found
xor eax, eax
push 0x46a9d4
call fcn.0042d150
add esp, 8
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x428288
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
jmp 0x4282c5
cmp eax, 2
jne 0x4282ad
push str.__No_power_profiles_found
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
jmp 0x4282c5
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
cmp edi, esi
je 0x4282d0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, esi
je 0x4282e8
mov edi, dword [esp + 0x2c]
mov eax, ebx
call fcn.0040d7d0
push ebx
call fcn.004396db
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4282f7
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.00438351
mov esp, ebp
pop ebp
ret