Function at 0x59eeb0
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 0x59eec9
cmp dword [ebp + 8], 0xb
jb 0x59eed1
or eax, 0xffffffff
jmp 0x59f187
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 0x651f34
push 1
push 0
push 0x652004
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x59ef1e
mov eax, 0xfffffffe
jmp 0x59f187
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6567f4
lea ecx, [ebp - 0x20]
call fcn.0059e2b0
mov ecx, eax
call fcn.0059e370
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.0059e350
cmp dword [ebp - 0xc], 0
jge 0x59ef81
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 0x59f187
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 0x59efc8
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 0x59f187
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*8 + 0x656810]
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.0059e210
mov ecx, eax
call fcn.0059e370
push eax
push 0x6567cc
lea ecx, [ebp - 0x28]
call fcn.0059e210
mov ecx, eax
call fcn.0059e370
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.0059e350
lea ecx, [ebp - 0x2c]
call fcn.0059e350
cmp dword [ebp - 0xc], 0
jge 0x59f05a
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 0x59f187
cmp dword [ebp - 0x14], 0
je 0x59f15a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x59f085
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jl 0x59f085
jmp 0x59f15a
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 0x59f0aa
jmp 0x59f15a
cmp dword [ebp + 0xc], 0
je 0x59f13e
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 + 0x656814]
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.00415bf0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041ae70
add esp, 4
push eax
push 0x80
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp + 0xc]
push eax
call fcn.0059e580
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.0059ed60
add esp, 0xc
test eax, eax
je 0x59f13c
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x59f147
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 0x59f05a
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