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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
test ebx, ebx
js 0x57a672
cmp ebx, 7
jae 0x57a672
push esi
mov esi, dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
call esi
test eax, eax
jns 0x57a42a
push 2
push edi
call esi
test eax, eax
js 0x57a4c0
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x5cc528
push 1
push 0
push 0x5cc5f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x57a4ba
push str.ROOTCIMV2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00579dc0
mov eax, dword [eax]
test eax, eax
je 0x57a463
mov edx, dword [eax]
jmp 0x57a465
xor edx, edx
mov eax, dword [ebp - 8]
lea esi, [ebp - 4]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00579e60
test esi, esi
js 0x57a4b1
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x57a4cc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop edi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx*8 + 0x5c01e8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
call fcn.00579d30
mov eax, dword [eax]
test eax, eax
je 0x57a4e8
mov esi, dword [eax]
jmp 0x57a4ea
xor esi, esi
push 0x5c04ac
lea ecx, [ebp - 0x14]
call fcn.00579d30
mov eax, dword [eax]
test eax, eax
je 0x57a501
mov edx, dword [eax]
jmp 0x57a503
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]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00579e60
lea ecx, [ebp - 0x10]
call fcn.00579e60
test esi, esi
jns 0x57a550
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop edi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x57a64b
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x57a57b
cmp edi, dword [ebp + 0x10]
jge 0x57a64b
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x57a648
test ebx, ebx
je 0x57a62e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push dword [edx*8 + 0x5c01ec]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00579dc0
mov ecx, eax
call fcn.00579ec0
mov ebx, eax
mov edx, 0x80
mov eax, esi
sub ebx, esi
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x57a5fc
mov cl, byte [ebx + eax]
test cl, cl
je 0x57a5fc
mov byte [eax], cl
inc eax
dec edx
jne 0x57a5e3
jmp 0x57a600
test edx, edx
jne 0x57a601
dec eax
lea ecx, [ebp - 0x18]
mov byte [eax], 0
call fcn.00579e60
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x80
push esi
push dword [ebp + 8]
call fcn.0057a350
mov ebx, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x57a632
inc edi
sub esi, 0xffffff80
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x57a560
jmp 0x57a64b
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]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret