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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jl 0x57fe09
cmp dword [ebp + 8], 0xb
jb 0x57fe11
or eax, 0xffffffff
jmp 0x5800c7
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x62fef4
push 1
push 0
push 0x62ffc4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x57fe5e
mov eax, 0xfffffffe
jmp 0x5800c7
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6344c0
lea ecx, [ebp - 0x20]
call fcn.0057f1e0
mov ecx, eax
call fcn.0057f2a0
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x20]
call fcn.0057f280
cmp dword [ebp - 0xc], 0
jge 0x57fec1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, 0xfffffffe
jmp 0x5800c7
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x57ff08
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, 0xfffffffe
jmp 0x5800c7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*8 + 0x634558]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0057f140
mov ecx, eax
call fcn.0057f2a0
push eax
push 0x6344d8
lea ecx, [ebp - 0x28]
call fcn.0057f140
mov ecx, eax
call fcn.0057f2a0
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x28]
call fcn.0057f280
lea ecx, [ebp - 0x2c]
call fcn.0057f280
cmp dword [ebp - 0xc], 0
jge 0x57ff9a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, 0xfffffffd
jmp 0x5800c7
cmp dword [ebp - 0x14], 0
je 0x58009a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x57ffc5
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jl 0x57ffc5
jmp 0x58009a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x10]
call edx
cmp dword [ebp - 0x1c], 0
jne 0x57ffea
jmp 0x58009a
cmp dword [ebp + 0xc], 0
je 0x58007e
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx*8 + 0x63455c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x10]
call ecx
call fcn.00413130
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00417f70
add esp, 4
push eax
push 0x80
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp + 0xc]
push eax
call fcn.0057f4b0
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x80
mov edx, dword [ebp - 0x10]
shl edx, 8
add edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0057fc90
add esp, 0xc
test eax, eax
je 0x58007c
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x580087
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
jmp 0x57ff9a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret