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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d59e5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x510200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x45e9d9
push 0x45dc30
mov eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_COM_library._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
push 0x4dd7e9
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x45ee7f
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]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x45ea47
push 0x45dc30
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_initialize_security._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd7ea
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x45ee7f
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4e925c
push 1
push 0
push 0x4e926c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x45eabc
push 0x45dc30
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_create_IWbemLocator_object._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd7eb
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x45ee7f
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMv2
lea ecx, [ebp - 0x58]
call fcn.0045e220
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.0045e830
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0045e3c0
cmp dword [ebp - 0x2c], 0
jge 0x45eb7a
push 0x45dc30
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Failed_to_connect_to_WMI._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd802
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x45ee7f
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x45ec04
push 0x45dc30
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_set_proxy_blanket._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd803
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x45ee7f
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [ebp - 0x70]
call fcn.0045e180
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.0045e830
push eax
push 0x4dd994
lea ecx, [ebp - 0x6c]
call fcn.0045e180
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.0045e830
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ecx + 0x50]
call eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.0045e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0045e3c0
cmp dword [ebp - 0x2c], 0
jge 0x45ecf7
push 0x45dc30
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Query_for_Win32_DiskDrive_failed._Error_code:
push 0x517450
call fcn.0045c7a0
add esp, 8
mov ecx, eax
call fcn.0045e660
mov ecx, eax
call fcn.0045e7e0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd804
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x45ee7f
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x45ee36
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x48], 0
jne 0x45ed37
jmp 0x45ee36
push 0
push 0
lea edx, [ebp - 0x80]
push edx
push 0
push str.SerialNumber
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x45ee19
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x28]
call fcn.00408c20
mov dword [ebp - 4], 3
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x41]
call fcn.004022c0
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.00401fd0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042a440
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045c620
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401ec0
mov eax, dword [ebp + 8]
jmp 0x45ee7f
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [eax + 8]
call edx
jmp 0x45ed05
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4dd805
mov ecx, dword [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049da3c
mov esp, ebp
pop ebp
ret