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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476b95
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x49a1c0]
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 0x412ce9
push 0x411e10
mov eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_COM_library._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
push 0x47b919
mov ecx, dword [ebp + 8]
call fcn.00402680
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x41318f
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 0x412d57
push 0x411e10
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_initialize_security._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x47b91a
mov ecx, dword [ebp + 8]
call fcn.00402680
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x41318f
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x483c58
push 1
push 0
push 0x483c68
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x412dcc
push 0x411e10
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_create_IWbemLocator_object._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x47b91b
mov ecx, dword [ebp + 8]
call fcn.00402680
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x41318f
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.00412520
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.00412b10
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.004126c0
cmp dword [ebp - 0x2c], 0
jge 0x412e8a
push 0x411e10
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Failed_to_connect_to_WMI._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
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 0x47b932
mov ecx, dword [ebp + 8]
call fcn.00402680
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jmp 0x41318f
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 0x412f14
push 0x411e10
mov edx, dword [ebp - 0x2c]
push edx
push str.Failed_to_set_proxy_blanket._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
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 0x47b933
mov ecx, dword [ebp + 8]
call fcn.00402680
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x41318f
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.00412480
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.00412b10
push eax
push 0x47bac4
lea ecx, [ebp - 0x6c]
call fcn.00412480
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.00412b10
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.004126c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004126c0
cmp dword [ebp - 0x2c], 0
jge 0x413007
push 0x411e10
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Query_for_Win32_DiskDrive_failed._Error_code:
push 0x49e550
call fcn.00410f50
add esp, 8
mov ecx, eax
call fcn.00412940
mov ecx, eax
call fcn.00412ac0
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 0x47b934
mov ecx, dword [ebp + 8]
call fcn.00402680
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x41318f
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x413146
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 0x413047
jmp 0x413146
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 0x413129
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.004121c0
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.00402300
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.00414f10
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004144f0
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.00410da0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407110
mov eax, dword [ebp + 8]
jmp 0x41318f
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 0x413015
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 0x47b935
mov ecx, dword [ebp + 8]
call fcn.00402680
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.00448b53
mov esp, ebp
pop ebp
ret