Function at 0x428110
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fe78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x468738]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x468738]
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 0x4699dc
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.0042c820
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, esi
je 0x4281a8
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 0x428342
lea ecx, [esp + 0x28]
push ecx
mov eax, str.DPPE
lea ebx, [esp + 0x18]
call fcn.0042cda0
test eax, eax
je 0x428315
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 0x428309
cmp eax, esi
jbe 0x4282f7
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 0x428233
mov eax, dword [esi]
jmp 0x428235
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 0x42824d
mov eax, dword [ebx]
jmp 0x42824f
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 0x428272
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
push ecx
call eax
mov edi, eax
push str.__Removing_power_profile:
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
cmp dword [ebx - 8], 8
jb 0x428290
mov eax, dword [esi]
jmp 0x428292
mov eax, esi
push eax
push str.____Setting:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4282b1
mov eax, dword [ebx]
jmp 0x4282b3
mov eax, ebx
push eax
push str.____Subgroup:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
test edi, edi
je 0x4282e4
push edi
push str.__Error:_0x_X
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0xc
add ebx, 0x38
dec dword [esp + 0x1c]
jne 0x428226
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 0x428329
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x42831c
push str.__No_power_profiles_found
xor eax, eax
push 0x4699dc
call fcn.0042c820
add esp, 8
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x428338
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
jmp 0x428375
cmp eax, 2
jne 0x42835d
push str.__No_power_profiles_found
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x428375
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 0xc
cmp edi, esi
je 0x428380
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, esi
je 0x428398
mov edi, dword [esp + 0x2c]
mov eax, ebx
call fcn.0040d660
push ebx
call fcn.00438b4b
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4283a7
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.004377c1
mov esp, ebp
pop ebp
ret