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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
jl 0x41890a
cmp dword [ebp + 8], 8
jae 0x41890a
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x41871a
push 0xfffffffffffffffe
pop eax
jmp 0x41890d
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0xc]
push eax
push 0x43a860
push 1
push esi
push 0x43a930
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x418751
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x418712
lea edi, [ebp - 0x18]
mov dword [ebp - 8], esi
call fcn.00418229
mov eax, dword [eax]
cmp eax, esi
je 0x418766
mov eax, dword [eax]
jmp 0x418768
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
lea edi, [ebp - 8]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
lea edi, [ebp - 0x18]
mov ebx, eax
call fcn.0041828d
cmp ebx, esi
jge 0x418795
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x418749
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x4187ce
push 0xfffffffffffffffe
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
pop esi
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x41890d
mov eax, dword [ebp + 8]
push dword [eax*8 + 0x43c870]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call fcn.004181d1
mov eax, dword [eax]
cmp eax, esi
je 0x4187ed
mov ebx, dword [eax]
jmp 0x4187ef
xor ebx, ebx
push 0x43c928
lea edi, [ebp - 0x18]
call fcn.004181d1
mov eax, dword [eax]
cmp eax, esi
je 0x418806
mov ecx, dword [eax]
jmp 0x418808
xor ecx, ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push esi
push 0x30
push ebx
push ecx
push eax
call dword [edx + 0x50]
lea edi, [ebp - 0x18]
mov ebx, eax
call fcn.0041828d
lea edi, [ebp - 0x14]
call fcn.0041828d
cmp ebx, esi
jge 0x418837
push 0xfffffffffffffffd
jmp 0x4187ae
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4188e7
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
je 0x41885a
cmp dword [ebp - 4], 0xc
jge 0x4188e7
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x18], esi
je 0x4188e4
cmp dword [ebp + 0xc], esi
je 0x4188c5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x28]
push edx
push esi
push dword [edi*8 + 0x43c874]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x20]
push SysReAllocString
mov edx, 0x80
mov ecx, ebx
call fcn.0041838a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
mov ecx, edi
call fcn.0041866f
test eax, eax
je 0x4188ce
inc dword [ebp - 4]
add ebx, 0x100
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x418845
jmp 0x4188e7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x41890d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret