Function at 0x404810
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x411458
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41dda0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp + 0x5c], ebx
lea eax, [ebp + 0x5c]
push eax
push 0x412bf8
push 0x17
push ebx
push 0x4137e4
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x404fa4
or edi, 0xffffffff
push edi
push str.._rootHPInstrumentedBIOS
call fcn.00403660
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp + 0x34], esi
jne 0x40488b
push 0x8007000e
call fcn.00403420
mov dword [ebp + 0x68], ebx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
lea edx, [ebp + 0x68]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 2
call eax
cmp eax, ebx
mov eax, dword [ebp + 0x68]
jge 0x4048ce
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4048bf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], edi
jmp 0x404fab
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push edi
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x4048e7
mov eax, dword [ebp + 0x68]
jmp 0x4048af
mov dword [ebp + 0x4c], ebx
push 0x412c50
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 3
call fcn.00403730
push str.SELECT__FROM_HPBIOS_ButtonInterface
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 4
call fcn.00403730
mov eax, dword [ebp + 0x68]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
mov ecx, dword [eax]
lea edx, [ebp + 0x4c]
push edx
push ebx
push 0x20
push esi
push edi
push eax
mov eax, dword [ecx + 0x50]
mov byte [ebp - 4], 5
call eax
cmp eax, ebx
jl 0x404f6c
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
je 0x404f6c
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x3c], ebx
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 0x3c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 6
call eax
cmp eax, ebx
mov eax, dword [ebp + 0x3c]
jl 0x404f5c
cmp eax, ebx
je 0x404f5c
mov dword [ebp + 0x40], ebx
mov esi, dword [ebp + 0x68]
push str.HPBIOS_Button
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 7
call fcn.00403730
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp + 0x40]
push edx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x48]
push esi
mov byte [ebp - 4], 8
call eax
mov ecx, dword [ebp + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
mov edi, eax
call esi
cmp edi, ebx
jge 0x4049fa
mov eax, dword [ebp + 0x40]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x4049bf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 0x3c]
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x4049d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x28]
push eax
call esi
mov ecx, dword [ebp + 0x20]
push ecx
call esi
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x404f8b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x404f8b
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax]
lea edx, [ebp + 0x24]
push edx
lea edx, [ebp + 0x64]
push edx
push 1
push 0x3e8
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 9
call eax
cmp eax, ebx
jne 0x404f02
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp + 0x64]
push str.Name
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00403730
mov eax, dword [eax]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [ebp + 0x10]
push ecx
push ebx
push eax
push edi
mov byte [ebp - 4], 0xb
call edx
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp + 0x10]
push ecx
call fcn.00404710
add esp, 4
test eax, eax
je 0x404eb7
add dword [ebp + 0x30], 1
mov dword [ebp + 0x2c], ebx
lea edx, [ebp + 0x2c]
push edx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xc
call fcn.00403470
call dword [0x41eea0]
mov edi, dword [ebp + 0x2c]
cmp edi, ebx
mov dword [ebp], eax
jne 0x404aa6
xor ebx, ebx
jmp 0x404ad5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404abb
xor ebx, ebx
jmp 0x404ad5
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00406680
mov ecx, dword [ebp]
mov eax, esp
push ecx
push ebx
push edi
push eax
call fcn.004033e0
mov ebx, eax
push edi
mov byte [ebp - 4], 0xa
call esi
mov edx, dword [ebp + 0x30]
push 0xffffffffffffffff
push 0
push edx
push ebx
call fcn.004034d0
add esp, 0x10
push str.HPBIOS_ButtonInterface
lea ecx, [ebp + 0x48]
call fcn.00403730
mov dword [ebp + 0x50], 0
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push 0
lea edx, [ebp + 0x50]
push edx
mov edx, dword [ebp + 0x48]
push 0
push 0
push edx
push eax
mov eax, dword [ecx + 0x18]
mov byte [ebp - 4], 0xe
call eax
test eax, eax
jl 0x404e9c
push str.SetBIOSToHandleDefaultAction
lea ecx, [ebp + 0x58]
call fcn.00403730
push str.HPBIOS_ButtonInterface.Version_1.00_
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xf
call fcn.00403730
xor edi, edi
mov dword [ebp + 0x54], edi
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
push edi
lea edx, [ebp + 0x54]
push edx
mov edx, dword [ebp + 0x58]
push edi
push edx
push eax
mov eax, dword [ecx + 0x4c]
mov byte [ebp - 4], 0x11
call eax
cmp eax, edi
jl 0x404e7d
mov dword [ebp + 0x60], edi
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
lea edx, [ebp + 0x60]
push edx
push edi
push eax
mov eax, dword [ecx + 0x3c]
mov byte [ebp - 4], 0x12
call eax
cmp eax, edi
jl 0x404e6a
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
push edi
lea edx, [ebp + 0x10]
push edx
push edi
push 0x412d3c
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, edi
jge 0x404c02
mov eax, dword [ebp + 0x60]
cmp eax, edi
mov byte [ebp - 4], 0x11
je 0x404bb6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x54]
cmp eax, edi
mov byte [ebp - 4], 0x10
je 0x404bc9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x44]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
mov eax, dword [ebp + 0x50]
cmp eax, edi
mov byte [ebp - 4], 0xd
je 0x404be8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x48]
push ecx
call esi
lea edx, [ebp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 0x64]
cmp eax, edi
jmp 0x404ec6
mov word [ebp - 0x1c], 3
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x1c]
push edx
push edi
push str.Value
push eax
mov eax, dword [ecx + 0x14]
mov byte [ebp - 4], 0x13
call eax
cmp eax, edi
jge 0x404c90
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x1c]
push ecx
call ebx
mov eax, dword [ebp + 0x60]
cmp eax, edi
mov byte [ebp - 4], 0x11
je 0x404c48
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 0x54]
cmp eax, edi
mov byte [ebp - 4], 0x10
je 0x404c5b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x44]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
mov eax, dword [ebp + 0x50]
cmp eax, edi
mov byte [ebp - 4], 0xd
je 0x404c7a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x48]
push ecx
call esi
lea edx, [ebp + 0x10]
push edx
call ebx
mov eax, dword [ebp + 0x64]
cmp eax, edi
jmp 0x404ec6
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.__PATH
lea ecx, [ebp + 4]
call fcn.00403700
mov eax, dword [ebp + 0x3c]
mov edi, dword [ebp + 4]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
push 0
push edi
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 0x14
call eax
test eax, eax
jge 0x404d32
push edi
call esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x1c]
push ecx
call edi
mov eax, dword [ebp + 0x60]
test eax, eax
mov byte [ebp - 4], 0x11
je 0x404cea
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 0x54]
test eax, eax
mov byte [ebp - 4], 0x10
je 0x404cfd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x44]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
mov eax, dword [ebp + 0x50]
test eax, eax
mov byte [ebp - 4], 0xd
je 0x404d1c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x48]
push ecx
call esi
lea edx, [ebp + 0x10]
push edx
call edi
mov eax, dword [ebp + 0x64]
test eax, eax
jmp 0x404ec6
mov dword [ebp + 0x38], 0
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push 0
lea edx, [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x60]
push edx
mov edx, dword [ebp + 0x58]
push 0
push 0
push edx
mov edx, dword [ebp - 0x34]
push edx
push eax
mov eax, dword [ecx + 0x60]
mov byte [ebp - 4], 0x15
call eax
test eax, eax
jl 0x404e48
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push str.Return
push eax
mov byte [ebp - 4], 0x16
call edx
test eax, eax
jl 0x404e3e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
push str._ls_returned__d_n
call fcn.004052f0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x30]
push edx
push 1
push eax
push ebx
call fcn.004034d0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 0x1c
lea ecx, [ebp - 0x2c]
push ecx
call ebx
mov eax, dword [ebp + 0x38]
test eax, eax
mov byte [ebp - 4], 0x14
je 0x404dda
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call esi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
mov eax, dword [ebp + 0x60]
test eax, eax
mov byte [ebp - 4], 0x11
je 0x404df6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 0x54]
test eax, eax
mov byte [ebp - 4], 0x10
je 0x404e09
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x44]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
mov eax, dword [ebp + 0x50]
test eax, eax
mov byte [ebp - 4], 0xd
je 0x404e28
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x48]
push ecx
call esi
lea edx, [ebp + 0x10]
push edx
call ebx
mov eax, dword [ebp + 0x64]
test eax, eax
jmp 0x404ec6
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 0x38]
test eax, eax
mov byte [ebp - 4], 0x14
je 0x404e5b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
mov eax, dword [ebp + 0x60]
cmp eax, edi
mov byte [ebp - 4], 0x11
je 0x404e7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x54]
cmp eax, edi
mov byte [ebp - 4], 0x10
je 0x404e90
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x44]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
mov eax, dword [ebp + 0x50]
test eax, eax
mov byte [ebp - 4], 0xd
je 0x404eaf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x48]
push ecx
call esi
xor ebx, ebx
lea edx, [ebp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 0x64]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x404ed4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax]
lea edx, [ebp + 0x24]
push edx
lea edx, [ebp + 0x64]
push edx
push 1
push 0x3e8
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 9
call eax
cmp eax, ebx
je 0x404a29
mov eax, dword [ebp + 0x64]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x404f15
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x40]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x404f28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x3c]
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x404f3b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x28]
push eax
call esi
mov ecx, dword [ebp + 0x20]
push ecx
call esi
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x404f8b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x404f8b
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x404f6c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x404f8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x68]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x404f9e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x34]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
je 0x404fba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.0040592b
add ebp, 0x70
mov esp, ebp
pop ebp
ret