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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e00db
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x51a500]
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 0x47116a
push str.Failed_to_initialize_COM_library._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00470df0
mov dword [ebp - 0x50], eax
push 0x470720
mov ecx, dword [ebp - 0x50]
call fcn.00470fc0
push 0x4e8316
mov ecx, dword [ebp + 8]
call fcn.00403260
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4716f9
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 0x4711e0
push str.Failed_to_initialize_security._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00470df0
mov dword [ebp - 0x58], eax
push 0x470720
mov ecx, dword [ebp - 0x58]
call fcn.00470fc0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4e8317
mov ecx, dword [ebp + 8]
call fcn.00403260
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x4716f9
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4f1d0c
push 1
push 0
push 0x4f1d1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x47125d
push str.Failed_to_create_IWbemLocator_object._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00470df0
mov dword [ebp - 0x60], eax
push 0x470720
mov ecx, dword [ebp - 0x60]
call fcn.00470fc0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4e8372
mov ecx, dword [ebp + 8]
call fcn.00403260
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x4716f9
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x70], eax
push str.ROOTCIMv2
lea ecx, [ebp - 0x74]
call fcn.004521e0
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
call fcn.00452580
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x38]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004524b0
cmp dword [ebp - 0x2c], 0
jge 0x47132d
push str.Failed_to_connect_to_WMI._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x78]
call fcn.00470df0
mov dword [ebp - 0x7c], eax
push 0x470720
mov ecx, dword [ebp - 0x7c]
call fcn.00470fc0
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 0x4e8373
mov ecx, dword [ebp + 8]
call fcn.00403260
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4716f9
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x4713c5
push str.Failed_to_set_proxy_blanket._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.00470df0
mov dword [ebp - 0x84], eax
push 0x470720
mov ecx, dword [ebp - 0x84]
call fcn.00470fc0
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 0x4e8386
mov ecx, dword [ebp + 8]
call fcn.00403260
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x4716f9
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0xa0], eax
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [ebp - 0xa8]
call fcn.00452140
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
call fcn.00452580
mov dword [ebp - 0x98], eax
push 0x4e84a4
lea ecx, [ebp - 0xa4]
call fcn.00452140
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.00452580
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x30
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [ebp - 0xa0]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.004524b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.004524b0
cmp dword [ebp - 0x2c], 0
jge 0x471512
push str.Query_for_Win32_DiskDrive_failed._Error_code:
push 0x522010
call fcn.0046f9c0
add esp, 8
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.00470df0
mov dword [ebp - 0xb0], eax
push 0x470720
mov ecx, dword [ebp - 0xb0]
call fcn.00470fc0
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 0x4e8387
mov ecx, dword [ebp + 8]
call fcn.00403260
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4716f9
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x4716b0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc8], ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0xc8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x48], 0
jne 0x47155c
jmp 0x4716b0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xb8], ecx
push 0
push 0
lea edx, [ebp - 0xe0]
push edx
push 0
push str.SerialNumber
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0xb8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x471690
mov ecx, dword [ebp - 0xd8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov edx, dword [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00408e90
mov dword [ebp - 4], 3
lea eax, [ebp - 0xe0]
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.00402a60
mov dword [ebp - 0xc4], eax
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402770
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xd0], ecx
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x28]
call fcn.00434620
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046f850
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402650
mov eax, dword [ebp + 8]
jmp 0x4716f9
lea eax, [ebp - 0xe0]
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
jmp 0x471520
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]
push 0x4e83b7
mov ecx, dword [ebp + 8]
call fcn.00403260
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
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.004a6675
mov esp, ebp
pop ebp
ret