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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
js 0x5594c4
cmp ebx, 7
jae 0x5594c4
mov esi, dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
call esi
test eax, eax
jns 0x5592a7
push 2
push edi
call esi
test eax, eax
jns 0x5592a7
push 0xfffffffffffffffe
pop eax
jmp 0x5594c7
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x5b1fe0
push 1
push esi
push 0x5b1fd0
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x5592cf
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x55929f
push str.ROOTCIMV2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00558d93
mov eax, dword [eax]
test eax, eax
je 0x5592e9
mov edx, dword [eax]
jmp 0x5592eb
mov edx, esi
mov eax, dword [ebp - 8]
lea esi, [ebp - 4]
push esi
xor esi, esi
push esi
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x14]
mov esi, eax
test ecx, ecx
je 0x55930f
call fcn.00558df5
test esi, esi
jns 0x55931e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x5592c7
xor esi, esi
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x55933b
push 0xfffffffffffffffe
jmp 0x5593a7
push dword [ebx*8 + 0x5a5cd0]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00558d49
mov eax, dword [eax]
test eax, eax
je 0x559355
mov esi, dword [eax]
push 0x5a5f94
lea ecx, [ebp - 0x10]
call fcn.00558d49
mov eax, dword [eax]
test eax, eax
je 0x55936c
mov edx, dword [eax]
jmp 0x55936e
xor edx, edx
mov eax, dword [ebp - 4]
lea ebx, [ebp - 0xc]
push ebx
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x559395
call fcn.00558df5
and dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5593a1
call fcn.00558df5
test esi, esi
jns 0x5593c7
push 0xfffffffffffffffd
mov ecx, dword [ebp - 4]
pop esi
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x5594c7
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5594a2
mov esi, dword [ebp + 0xc]
and dword [ebp + 8], 0
and dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x5593ec
cmp edi, dword [ebp + 0x10]
jge 0x5594a2
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x10], 0
je 0x55949f
cmp dword [ebp + 0xc], 0
je 0x559485
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [ebx*8 + 0x5a5cd4]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00558d93
mov ecx, dword [eax]
test ecx, ecx
je 0x55944a
call fcn.00558ddd
jmp 0x55944c
xor eax, eax
push eax
push 0x80
push esi
call fcn.00558e5b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x559468
call fcn.00558df5
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x80
push esi
push ebx
call fcn.005591c5
add esp, 0xc
test eax, eax
je 0x559489
inc edi
sub esi, 0xffffff80
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x5593d5
jmp 0x5594a2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x5594c7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret