Function at 0x10127be0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102ae73d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10373f78]
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.1004f0f0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.1012c4e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10127c9c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10127c92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127f06
push edx
push ecx
call fcn.1026505f
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 0x10127cd0
sub ecx, edx
push ecx
push str.SELECT__FROM_Win32_Battery
lea ecx, [ebp - 0x28]
call fcn.1004f390
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.1012c690
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10127d34
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10127d2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127f0b
push edx
push ecx
call fcn.1026505f
add esp, 8
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x10127d4f
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x10127ee0
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 0x10127df8
call fcn.10048fd0
mov edx, ebx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10088460
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
push eax
sub esp, 8
mov ecx, esi
call fcn.10128060
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10127dde
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10127dd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127f10
push edx
push ecx
call fcn.1026505f
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10127eb6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10127eb6
mov esi, dword [ebp - 0x44]
jne 0x10127ea8
test esi, esi
je 0x10127ea8
cmp dword [ebp - 0x50], 1
jne 0x10127ea8
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.1004f0f0
push esi
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov ecx, edi
call fcn.10126fd0
mov byte [ebp - 4], 0xa
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10127e91
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10127e87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10127f15
push edx
push ecx
call fcn.1026505f
add esp, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10127ea2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x11
jmp 0x10127ed3
mov byte [ebp - 4], 0xd
test esi, esi
je 0x10127eb6
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 0x10127ee0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x5c]
call fcn.1012c5e0
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.102649e4
mov esp, ebp
pop ebp
ret
call fcn.10275373
call fcn.10275373
call fcn.10275373
call fcn.10275373
int3