Function at 0x427350
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e468
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push str.PowrProf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.PowerRemovePowerSetting
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
push str.Checking_for_existing_power_profiles
push 0x463650
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.0042a920
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x4273e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push ebx
push str.SoftwareIntelGFX
push 0x80000002
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x427651
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, str.DPPE
call fcn.0042ae60
test eax, eax
je 0x427628
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov ecx, dword [esp + 0x1c]
jne 0x42743d
xor eax, eax
jmp 0x427458
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
mov edi, dword [esp + 0x30]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test al, 1
jne 0x42761c
xor edi, edi
test esi, esi
je 0x427604
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x427604
cmp dword [edi + esi + 0x18], 8
jb 0x427494
mov esi, dword [edi + esi + 4]
jmp 0x427498
lea esi, [edi + esi + 4]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4274cc
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x4274d5
call fcn.0043641d
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x4274e2
mov esi, dword [edi + esi + 0x20]
jmp 0x4274e6
lea esi, [edi + esi + 0x20]
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x2c], 0x32
je 0x427512
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call eax
mov dword [esp + 0x2c], eax
push str.__Removing_power_profile:
push 0x463650
xor eax, eax
call fcn.0042a920
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
je 0x42754b
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x427554
call fcn.0043641d
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 8
jb 0x427561
mov esi, dword [edi + esi + 4]
jmp 0x427565
lea esi, [edi + esi + 4]
push esi
push str.____Setting:__s
push 0x463650
xor eax, eax
call fcn.0042a920
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x4275a2
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x4275ab
call fcn.0043641d
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x4275b8
mov esi, dword [edi + esi + 0x20]
jmp 0x4275bc
lea esi, [edi + esi + 0x20]
push esi
push str.____Subgroup:__s
push 0x463650
xor eax, eax
call fcn.0042a920
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4275f1
push eax
push str.__Error:_0x_X
push 0x463650
mov eax, 1
call fcn.0042a920
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add ebx, 2
add edi, 0x38
jmp 0x427462
mov edx, dword [esp + 0x24]
push str.DPPE
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [esp + 0x30]
xor ebx, ebx
jmp 0x42763c
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x42762f
push str.__No_power_profiles_found
xor eax, eax
push 0x463650
call fcn.0042a920
add esp, 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42764b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
jmp 0x427684
cmp eax, 2
jne 0x42766c
push str.__No_power_profiles_found
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 8
jmp 0x427684
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x463650
mov eax, 2
call fcn.0042a920
add esp, 0xc
cmp edi, ebx
je 0x42768f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4276b5
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.00410430
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0043642d
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x4276d0
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.00434b37
mov esp, ebp
pop ebp
ret