Function at 0x4012ab
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
push ebx
mov edx, 0x1d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4012b2
mov edx, dword [esp + 0x80]
lea ecx, [esp]
call fcn.00405000
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
push dword [esp + 8]
call fcn.0040f563
mov eax, str.Procedure
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.WMIQuery
lea ecx, [ebp]
call fcn.00405008
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, 0x4142e4
lea ecx, [ebp]
call fcn.00405008
push dword [esp + 4]
call fcn.0040f563
push 0
push 0
call sub.OLE32.DLL_CoInitializeEx
push 0
push 0
push 0
push 2
push 2
push 0
push 0
push 0xffffffff
push 0
call sub.OLE32.DLL_CoInitializeSecurity
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x4013a9
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_CoInitializeSecurity
lea ecx, [ebp]
call fcn.00405008
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
lea eax, [esp + 0x14]
push eax
mov ebp, 0x414428
push ebp
push 1
push 0
mov ebp, 0x414418
push ebp
call sub.OLE32.DLL_CoCreateInstance
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x401409
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_CoCreateInstance
lea ecx, [ebp]
call fcn.00405008
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, str.rootcimv2
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [esp + 0x10], eax
jmp 0x40147f
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x4014bb
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_IWbemLocator::ConnectServer
lea ecx, [ebp]
call fcn.00405008
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x414438
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov dword [esp + 0x10], eax
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esp + 0x34]
call sub.OLE32.DLL_CoSetProxyBlanket
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x401549
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_CoSetProxyBlanket
lea ecx, [ebp]
call fcn.00405008
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esp + 0x38]
call sub.OLE32.DLL_CoSetProxyBlanket
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x4015bf
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_CoSetProxyBlanket
lea ecx, [ebp]
call fcn.00405008
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
lea eax, [esp + 0x20]
push eax
push 0
push 0x30
mov eax, dword [esp + 0xc]
push eax
mov eax, 0x413750
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [esp + 0x10], eax
jmp 0x401626
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x401676
mov eax, str.ErrorMsg
push eax
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
mov edx, str.Unable_to_call_IWbemServices::ExecQuery
lea ecx, [ebp]
call fcn.00405008
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
xor eax, eax
jmp 0x40192f
push 0x3e8
call fcn.0040d950
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push 1
push 0xffffffff
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x28]
and ebx, ebx
jne 0x4016c1
jmp 0x4018f2
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
push 1
push dword [esp + 0x34]
call sub.OLEAUT32.DLL_SafeArrayGetLBound
lea eax, [esp + 0x34]
push eax
push 1
push dword [esp + 0x34]
call sub.OLEAUT32.DLL_SafeArrayGetUBound
lea edx, [esp + 0x6c]
push edx
push 0
push 0x15
push 2
push 4
call fcn.00410246
push dword [esp + 0x30]
pop eax
mov dword [esp + 0x38], eax
jmp 0x401732
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jl 0x4018e6
push dword [esp + 0x38]
mov ebp, dword [esp + 0x70]
pop eax
mov dword [ebp], eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x70]
push dword [esp + 0x34]
call sub.OLEAUT32.DLL_SafeArrayGetElement
cmp dword [esp + 0x3c], 0
je 0x4018dc
push dword [0x415ecc]
push dword [0x415ecc]
push 0x19
push 0xffffffff
push dword [esp + 0x4c]
call fcn.0040d970
lea eax, [esp + 0x58]
push eax
call fcn.00410550
push 0
push 0
push dword [esp + 0x14]
push 0
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [esp + 0x10], eax
jmp 0x4017e5
push dword [esp + 0xc]
pop eax
call fcn.00405070
mov dword [esp + 0x50], eax
push dword [esp + 0x50]
mov ebx, 8
cmp ebx, dword [esp]
jne 0x401833
push dword [0x415ecc]
push dword [0x415ecc]
mov ebx, dword [esp + 0x18]
add ebx, 8
push ebx
pop eax
call fcn.00405080
push eax
call fcn.00401b41
push eax
call fcn.0040da90
lea eax, [esp + 0x60]
push eax
call fcn.00410550
jmp 0x401879
mov ebx, 3
cmp ebx, dword [esp]
jne 0x40186b
push dword [0x415ecc]
push dword [0x415ecc]
mov ebx, dword [esp + 0x18]
add ebx, 8
push ebx
pop eax
call fcn.00405080
cdq
push edx
push eax
call fcn.0040c840
lea eax, [esp + 0x60]
push eax
call fcn.00410550
jmp 0x401879
mov edx, 0x413020
lea ecx, [esp + 0x5c]
call fcn.00405008
pop eax
push dword [0x415ecc]
push dword [0x415ecc]
push 1
push dword [esp + 0x60]
call fcn.0040c9a0
add dword [0x415ecc], 2
mov edx, 0x413210
pop ecx
mov dword [0x415ecc], ecx
add ecx, dword [0x414468]
call fcn.004050b0
jne 0x4018dc
mov edx, dword [esp + 0x58]
push dword [0x415ecc]
push edx
call fcn.004104f0
push dword [esp + 0x58]
push dword [esp + 0xc]
call fcn.0040f541
mov ebp, eax
lea eax, [ebp]
push eax
call fcn.00410550
inc dword [esp + 0x38]
jno 0x401732
mov ebx, dword [esp + 0x28]
and ebx, ebx
jne 0x401692
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [esp + 0x28], 0
je 0x401921
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, 1
jmp 0x40192f
push dword [esp + 0x58]
call fcn.004105d0
push dword [esp]
call fcn.004105d0
push dword [esp + 0x54]
call fcn.004105d0
push eax
push dword [esp + 0x70]
call fcn.00410362
pop eax
add esp, 0x74
pop ebx
pop ebp
ret 0xc