Function at 0x428f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b16b7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x503074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2ac], ecx
push 0x4c965c
push str.hpqRegisterBIOSEvent
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x428fdd
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x294], esi
push str.hpqRegisterBIOSEvent
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov dword [ebp - 0x2a0], esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048b3f0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x23c], eax
add esp, 0xc
lea eax, [ebp - 0x240]
mov dword [ebp - fcn.0042e1c0], vtable.std::_Func_impl_class__lambda_38a025925967366efb6492f8f909b6f3___class_std::allocator_int___void___.0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x294], eax
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.0042e1c0
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x429075
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 7
test ecx, ecx
je 0x429091
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
mov dword [ebp - fcn.0042e190], vtable.std::_Func_impl_class__lambda_d118645c2c0a33a9b5be24d2e25679ef___class_std::allocator_int___void___.0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x294], eax
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 9
call fcn.0042e190
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x429113
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x429139
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0xc
test ebx, ebx
jne 0x42914b
mov edi, 0x80070057
jmp 0x429255
push ecx
push str.SoftwareHP_
push ecx
mov ebx, 0x104
lea ecx, [ebp - 0x218]
mov edx, ebx
call fcn.004304d0
mov edi, eax
test edi, edi
js 0x429255
lea eax, [ebp - 0x294]
mov edx, ebx
push eax
lea ecx, [ebp - 0x218]
call fcn.00430480
mov edi, eax
test edi, edi
js 0x429255
mov eax, dword [ebp - 0x294]
sub ebx, eax
push ecx
push str.20ED5D44_3C74_4E20_B62A_4FB59ED919B0
push ecx
lea ecx, [ebp - 0x218]
mov edx, ebx
lea ecx, [ecx + eax*2]
call fcn.004304d0
mov edi, eax
test edi, edi
js 0x429255
lea eax, [ebp - 0x218]
push eax
push str.szKey:__s
push str.hpqRegisterBIOSEvent
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x298]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, eax
test edi, edi
jne 0x429255
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x29c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push dword [ebp - 0x2a8]
push dword [ebp - 0x298]
call ebx
mov edi, eax
test edi, edi
jne 0x429255
push 4
lea eax, [ebp - 0x2ac]
push eax
push 4
push edi
push str.hpqBEvntID
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
push str.lRet:__ld
push str.hpqRegisterBIOSEvent
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
lea ecx, [ebp - 0x268]
call fcn.00402190
lea ecx, [ebp - 0x290]
call fcn.00402190
test esi, esi
je 0x42929c
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004756da
mov esp, ebp
pop ebp
ret