Function at 0x429740
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451918
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4663d8]
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 0x4676b8
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.0042dae0
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x4297d6
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 0x429a41
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, str.DPPE
call fcn.0042e080
test eax, eax
je 0x429a18
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov ecx, dword [esp + 0x1c]
jne 0x42982d
xor eax, eax
jmp 0x429848
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 0x429a0c
xor edi, edi
test esi, esi
je 0x4299f4
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 0x4299f4
cmp dword [edi + esi + 0x18], 8
jb 0x429884
mov esi, dword [edi + esi + 4]
jmp 0x429888
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 0x4298bc
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 0x4298c5
call fcn.00439412
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x4298d2
mov esi, dword [edi + esi + 0x20]
jmp 0x4298d6
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 0x429902
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 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
je 0x42993b
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 0x429944
call fcn.00439412
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 8
jb 0x429951
mov esi, dword [edi + esi + 4]
jmp 0x429955
lea esi, [edi + esi + 4]
push esi
push str.____Setting:__s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x429992
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 0x42999b
call fcn.00439412
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x4299a8
mov esi, dword [edi + esi + 0x20]
jmp 0x4299ac
lea esi, [edi + esi + 0x20]
push esi
push str.____Subgroup:__s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4299e1
push eax
push str.__Error:_0x_X
push 0x4676b8
mov eax, 1
call fcn.0042dae0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add ebx, 2
add edi, 0x38
jmp 0x429852
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 0x429a2c
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x429a1f
push str.__No_power_profiles_found
xor eax, eax
push 0x4676b8
call fcn.0042dae0
add esp, 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x429a3b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
jmp 0x429a74
cmp eax, 2
jne 0x429a5c
push str.__No_power_profiles_found
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 8
jmp 0x429a74
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x4676b8
mov eax, 2
call fcn.0042dae0
add esp, 0xc
cmp edi, ebx
je 0x429a7f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x429aa5
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.004115d0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.00439935
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 0x429ac0
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.00437ffa
mov esp, ebp
pop ebp
ret