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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ebea4]
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
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x45d3d6
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x45d3d0
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x2c]
push eax
push 0x5cd98c
push 1
push 0
push 0x5cd9ac
mov dword [ebp - 0x2c], 0
call esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x5cd99c
push 1
push 0
push 0x5cd9bc
call esi
test eax, eax
js 0x45d3d0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp byte [0x5f30a1], 0
mov eax, 3
mov word [ebp - 0x24], ax
mov ecx, 0x40
mov eax, 0x20
cmovne eax, ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push str.__ProviderArchitecture
mov eax, dword [eax]
mov esi, dword [eax + 0x20]
call fcn.0045cfd0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x45d281
mov eax, dword [eax]
jmp 0x45d283
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push dword [ebp - 0x30]
call esi
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x45d2e6
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x45d2e6
test esi, esi
je 0x45d2e6
mov eax, dword [esi]
test eax, eax
je 0x45d2c4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45d2db
push eax
call fcn.0052f3a6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0052f5d6
add esp, 8
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
call ebx
cmp dword [ebp - 0x4c], 0
jl 0x45d3d0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], 0
push str.ROOTCIMV2
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
call fcn.0045cfd0
mov dword [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x45d32f
mov eax, dword [eax]
jmp 0x45d331
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x4c]
push 0
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x45d39f
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x45d39f
test esi, esi
je 0x45d39f
mov eax, dword [esi]
test eax, eax
je 0x45d37a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45d391
push eax
call fcn.0052f3a6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0052f5d6
mov eax, dword [ebp - 0x4c]
add esp, 8
test eax, eax
js 0x45d3c7
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x28]
jns 0x45d3dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x45d5b3
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x54]
mov eax, dword [eax]
push str.SELECT__FROM_Win32_ShadowCopy
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x4c], eax
call fcn.0045cfd0
mov dword [ebp - 4], 2
mov esi, dword [eax]
test esi, esi
je 0x45d40a
mov esi, dword [esi]
jmp 0x45d40c
xor esi, esi
push 0x5d98b0
lea ecx, [ebp - 0x50]
call fcn.0045cfd0
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x45d427
mov eax, dword [eax]
jmp 0x45d429
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x30
push esi
push eax
push dword [ebp - 0x28]
call dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x45d48d
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x45d486
test esi, esi
je 0x45d486
mov eax, dword [esi]
test eax, eax
je 0x45d464
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45d47b
push eax
call fcn.0052f3a6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0052f5d6
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x45d4dc
lock xadd dword [esi + 8], edi
dec edi
jne 0x45d4dc
test esi, esi
je 0x45d4dc
mov eax, dword [esi]
test eax, eax
je 0x45d4ba
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45d4d1
push eax
call fcn.0052f3a6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0052f5d6
add esp, 8
cmp dword [ebp - 0x4c], 0
jge 0x45d4f3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
jmp 0x45d5a2
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x45d580
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x38]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x45d580
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x48]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.__PATH
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x45d56a
mov ecx, dword [ebp - 0x28]
push 0
push 0
push 0
push dword [ebp - 0x40]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x40]
test eax, eax
js 0x45d55c
push dword [ebp - 0x40]
push str.___Shadow_copy_is_deleted:__s
jmp 0x45d562
push eax
push str.____Failed_to_delete_Shadow_copy._HRESULT___i
call fcn.00463ab0
add esp, 8
lea eax, [ebp - 0x48]
push eax
call ebx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x45d508
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x45d58d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
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.0052f395
mov esp, ebp
pop ebp
ret