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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5956d5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5f88c0]
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 0x470269
push 0x46f8e0
mov eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_COM_library._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
push 0x5a44b9
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x47070f
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 0x4702d7
push 0x46f8e0
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_initialize_security._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x5a44ba
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x47070f
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x5c5b90
push 1
push 0
push 0x5c5ba0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x47034c
push 0x46f8e0
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_create_IWbemLocator_object._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x5a44bb
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x47070f
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.00453400
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.004536e0
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.00453610
cmp dword [ebp - 0x2c], 0
jge 0x47040a
push 0x46f8e0
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Failed_to_connect_to_WMI._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
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 0x5a44d2
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x47070f
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 0x470494
push 0x46f8e0
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_set_proxy_blanket._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
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 0x5a44d3
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x47070f
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.00453360
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.004536e0
push eax
push 0x5a4664
lea ecx, [ebp - 0x6c]
call fcn.00453360
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.004536e0
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.00453610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00453610
cmp dword [ebp - 0x2c], 0
jge 0x470587
push 0x46f8e0
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Query_for_Win32_DiskDrive_failed._Error_code:
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.0046ff50
mov ecx, eax
call fcn.004700d0
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 0x5a44d4
mov ecx, dword [ebp + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x47070f
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x4706c6
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 0x4705c7
jmp 0x4706c6
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 0x4706a9
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.00409950
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.00403530
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.00403240
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043f790
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0046e780
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403120
mov eax, dword [ebp + 8]
jmp 0x47070f
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 0x470595
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 0x5a44d5
mov ecx, dword [ebp + 8]
call fcn.00403fb0
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.0054b289
mov esp, ebp
pop ebp
ret