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

Disassembly:
push 0xffffffffffffffff
push 0x4ebe08
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov eax, ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
test eax, eax
js 0x4a9cdf
cmp eax, 8
jae 0x4a9cdf
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4a9a68
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebx
push eax
push 0x4f3bcc
push 1
push ebx
push 0x4f3c9c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4a9a62
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.004a9250
mov dword [esp + 0x5c], ebx
mov eax, dword [eax]
test eax, eax
je 0x4a99af
mov edx, dword [eax]
jmp 0x4a99b1
xor edx, edx
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x2c]
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]
mov edi, eax
mov dword [esp + 0x5c], 0xffffffff
mov esi, dword [esp + 0x24]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x4a9a2e
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a9a26
test esi, esi
je 0x4a9a26
mov eax, dword [esi]
test eax, eax
je 0x4a9a06
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a9a1d
push eax
call fcn.004c515a
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c515a
add esp, 4
mov dword [esp + 0x24], 0
test edi, edi
js 0x4a9a58
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esp + 0x48]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4a9a72
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4a9ce2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0
push dword [eax*8 + 0x4f8100]
call fcn.004a91b0
mov esi, eax
mov dword [esp + 0x5c], 1
lea ecx, [esp + 0x24]
push 0x5009f0
call fcn.004a91b0
mov byte [esp + 0x5c], 2
mov esi, dword [esi]
test esi, esi
je 0x4a9ab5
mov esi, dword [esi]
jmp 0x4a9ab7
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4a9ac1
mov edx, dword [eax]
jmp 0x4a9ac3
xor edx, edx
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x30]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov dword [esp + 0x20], eax
mov byte [esp + 0x5c], 1
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x4a9b34
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x4a9b2c
test esi, esi
je 0x4a9b2c
mov eax, dword [esi]
test eax, eax
je 0x4a9b0c
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a9b23
push eax
call fcn.004c515a
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c515a
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x5c], 0xffffffff
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4a9b89
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x4a9b81
test esi, esi
je 0x4a9b81
mov eax, dword [esi]
test eax, eax
je 0x4a9b61
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a9b78
push eax
call fcn.004c515a
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c515a
add esp, 4
mov dword [esp + 0x48], 0
cmp dword [esp + 0x20], 0
jge 0x4a9bb4
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
jmp 0x4a9ce2
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4a9cbb
mov ebp, dword [esp + 0x1c]
mov esi, ebp
jmp 0x4a9bd0
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], 0
test ebp, ebp
je 0x4a9bed
cmp ebx, 0xc
jge 0x4a9cbb
mov eax, dword [ecx]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x28]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x48], 0
je 0x4a9cb7
test ebp, ebp
je 0x4a9c98
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push 0
push dword [edx*8 + 0x4f8104]
push eax
call dword [ecx + 0x10]
mov edi, dword [esp + 0x3c]
mov edx, 0x80
mov ecx, esi
sub edi, esi
lea esp, [esp]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4a9c6e
movzx eax, word [edi + ecx]
test ax, ax
je 0x4a9c6e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4a9c50
jmp 0x4a9c72
test edx, edx
jne 0x4a9c75
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.004a9830
add esp, 4
test eax, eax
je 0x4a9c9f
inc ebx
add esi, 0x100
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x4a9bd0
jmp 0x4a9cbb
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x4a9ce2
or eax, 0xffffffff
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c515f
add esp, 0x4c
ret