Function at 0x417ff0
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 0x418214
cmp dword [ebp + 8], 8
jae 0x418214
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x418024
push 0xfffffffffffffffe
pop eax
jmp 0x418217
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 0x439850
push 1
push esi
push 0x439920
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41805b
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x41801c
lea edi, [ebp - 0x18]
mov dword [ebp - 8], esi
call fcn.00417b33
mov eax, dword [eax]
cmp eax, esi
je 0x418070
mov eax, dword [eax]
jmp 0x418072
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.00417b97
cmp ebx, esi
jge 0x41809f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x418053
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 0x4180d8
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 0x418217
mov eax, dword [ebp + 8]
push dword [eax*8 + 0x43b4d0]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call fcn.00417adb
mov eax, dword [eax]
cmp eax, esi
je 0x4180f7
mov ebx, dword [eax]
jmp 0x4180f9
xor ebx, ebx
push 0x43b588
lea edi, [ebp - 0x18]
call fcn.00417adb
mov eax, dword [eax]
cmp eax, esi
je 0x418110
mov ecx, dword [eax]
jmp 0x418112
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.00417b97
lea edi, [ebp - 0x14]
call fcn.00417b97
cmp ebx, esi
jge 0x418141
push 0xfffffffffffffffd
jmp 0x4180b8
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4181f1
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
je 0x418164
cmp dword [ebp - 4], 0xc
jge 0x4181f1
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 0x4181ee
cmp dword [ebp + 0xc], esi
je 0x4181cf
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 + 0x43b4d4]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x20]
push SysReAllocString
mov edx, 0x80
mov ecx, ebx
call fcn.00417c94
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
mov ecx, edi
call fcn.00417f79
test eax, eax
je 0x4181d8
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 0x41814f
jmp 0x4181f1
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 0x418217
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret