Function at 0x4fac90
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bf0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x78efc4]
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 edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x4c], str.SELECT__FROM_Win32_Battery
mov dword [ebp - 0x40], 0
push 0xa
xor eax, eax
mov dword [ebp - 0x30], 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0044d800
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.004fed40
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4fad4c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fad42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fafb6
push edx
push ecx
call fcn.006779b1
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x28], eax
mov ecx, str.SELECT__FROM_Win32_Battery
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 3
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fad80
sub ecx, edx
push ecx
push str.SELECT__FROM_Win32_Battery
lea ecx, [ebp - 0x28]
call fcn.0044daa0
push ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004feef0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4fade4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4fadda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fafbb
push edx
push ecx
call fcn.006779b1
add esp, 8
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fadff
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x4faf90
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x44]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jns 0x4faea8
call fcn.004486f0
mov edx, ebx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.005315a0
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
push eax
sub esp, 8
mov ecx, esi
call fcn.004fb110
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4fae8e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fae84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fafc0
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4faf66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4faf66
mov esi, dword [ebp - 0x44]
jne 0x4faf58
test esi, esi
je 0x4faf58
cmp dword [ebp - 0x50], 1
jne 0x4faf58
mov dword [ebp - 0x28], 0
push 8
xor eax, eax
mov dword [ebp - 0x18], 0
push str.DeviceID
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
call fcn.0044d800
push esi
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov ecx, edi
call fcn.004fa080
mov byte [ebp - 4], 0xa
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4faf41
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4faf37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fafc5
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4faf52
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x11
jmp 0x4faf83
mov byte [ebp - 4], 0xd
test esi, esi
je 0x4faf66
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4faf90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x5c]
call fcn.004fee40
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.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00682da2
call fcn.00682da2
call fcn.00682da2
call fcn.00682da2
int3