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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb25
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x516180]
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 0x46c1e9
push 0x46b860
mov eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_COM_library._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
push 0x4e5181
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x46c68f
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 0x46c257
push 0x46b860
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_initialize_security._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4e5182
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x46c68f
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4ef1d0
push 1
push 0
push 0x4ef1e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x46c2cc
push 0x46b860
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_create_IWbemLocator_object._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4e5183
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x46c68f
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.00450e50
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.004510f0
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.00451040
cmp dword [ebp - 0x2c], 0
jge 0x46c38a
push 0x46b860
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Failed_to_connect_to_WMI._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
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 0x4e519a
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x46c68f
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 0x46c414
push 0x46b860
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_set_proxy_blanket._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
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 0x4e519b
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x46c68f
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.00450db0
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.004510f0
push eax
push 0x4e532c
lea ecx, [ebp - 0x6c]
call fcn.00450db0
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.004510f0
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.00451040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00451040
cmp dword [ebp - 0x2c], 0
jge 0x46c507
push 0x46b860
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Query_for_Win32_DiskDrive_failed._Error_code:
push 0x51e008
call fcn.0046a8c0
add esp, 8
mov ecx, eax
call fcn.0046bed0
mov ecx, eax
call fcn.0046c050
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 0x4e519c
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x46c68f
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x46c646
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 0x46c547
jmp 0x46c646
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 0x46c629
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.00405cc0
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.00402de0
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402af0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00435660
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0046a740
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004029e0
mov eax, dword [ebp + 8]
jmp 0x46c68f
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 0x46c515
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 0x4e519d
mov ecx, dword [ebp + 8]
call fcn.004035a0
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.004a248b
mov esp, ebp
pop ebp
ret