Function at 0x4ba3f0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
je 0x4ba4d5
lea eax, [ebp - 0x10c]
push eax
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ba4cf
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x110], ebx
mov ecx, dword [eax]
push 0x52619c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4ba4c1
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x110]
js 0x4ba4b9
lea edx, [ebp - 0x114]
push edx
push ebx
push 0x30
push 0x526c58
mov dword [ebp - 0x114], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4ba4e7
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], ebx
cmp eax, ebx
je 0x4ba5fd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [ebp - 0x118]
push edx
lea edx, [ebp - 0x11c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x118], ebx
je 0x4ba5f7
push 0xfe
lea edx, [ebp - 0x106]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x108], cx
call fcn.004e7d90
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
push ebx
push str.LastBootUpTime
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ba5ae
cmp word [ebp - 0x130], 1
je 0x4ba5ae
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x108]
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4ba580
lea ecx, [ebp - 0x130]
push ecx
call esi
lea edx, [ebp - 0x108]
push 0x2e
push edx
call fcn.004e4991
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x108]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ba5b7
sub eax, edx
sar eax, 1
cmp eax, 0x20
jae 0x4ba5e7
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [ebp + eax - 0x108]
mov word [eax + 0x53d4b0], cx
add eax, 2
cmp cx, bx
jne 0x4ba5d0
mov eax, dword [ebp - 0x114]
cmp eax, ebx
jne 0x4ba501
jmp 0x4ba5fd
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x53d4b0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ba630
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret