Function at 0x42bd90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456c48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x46e3d8]
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 0x46fa40
xor eax, eax
mov byte [esp + 0x70], 2
call fcn.00431730
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x42be26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push ebx
push str.SoftwareIntelGFX
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42c091
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, str.DPPE
call fcn.00431d00
test eax, eax
je 0x42c068
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov ecx, dword [esp + 0x1c]
jne 0x42be7d
xor eax, eax
jmp 0x42be98
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 0x42c05c
xor edi, edi
test esi, esi
je 0x42c044
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 0x42c044
cmp dword [edi + esi + 0x18], 8
jb 0x42bed4
mov esi, dword [edi + esi + 4]
jmp 0x42bed8
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 0x42bf0c
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 0x42bf15
call fcn.0043e955
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x42bf22
mov esi, dword [edi + esi + 0x20]
jmp 0x42bf26
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 0x42bf52
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 0x46fa40
xor eax, eax
call fcn.00431730
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
je 0x42bf8b
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 0x42bf94
call fcn.0043e955
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 8
jb 0x42bfa1
mov esi, dword [edi + esi + 4]
jmp 0x42bfa5
lea esi, [edi + esi + 4]
push esi
push str.____Setting:__s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x42bfe2
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 0x42bfeb
call fcn.0043e955
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x34], 8
jb 0x42bff8
mov esi, dword [edi + esi + 0x20]
jmp 0x42bffc
lea esi, [edi + esi + 0x20]
push esi
push str.____Subgroup:__s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x42c031
push eax
push str.__Error:_0x_X
push 0x46fa40
mov eax, 1
call fcn.00431730
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add ebx, 2
add edi, 0x38
jmp 0x42bea2
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 0x42c07c
push str.__Saved_DPPE_settings_not_configured_correctly
mov eax, 1
jmp 0x42c06f
push str.__No_power_profiles_found
xor eax, eax
push 0x46fa40
call fcn.00431730
add esp, 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42c08b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
jmp 0x42c0c4
cmp eax, 2
jne 0x42c0ac
push str.__No_power_profiles_found
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
jmp 0x42c0c4
push eax
push str.__Error_retrieving_GFX_install_info._Error:_0x_X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
cmp edi, ebx
je 0x42c0cf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42c0f5
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.00411dd0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0043e965
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 0x42c110
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.0043d02a
mov esp, ebp
pop ebp
ret