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

Disassembly:
push 0xffffffffffffffff
push 0x4ebb38
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 0x4a9a3f
cmp eax, 8
jae 0x4a9a3f
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4a97c8
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 0x4a97c2
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.004a8fb0
mov dword [esp + 0x5c], ebx
mov eax, dword [eax]
test eax, eax
je 0x4a970f
mov edx, dword [eax]
jmp 0x4a9711
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 0x4a978e
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4a9786
test esi, esi
je 0x4a9786
mov eax, dword [esi]
test eax, eax
je 0x4a9766
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a977d
push eax
call fcn.004c4eaa
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c4eaa
add esp, 4
mov dword [esp + 0x24], 0
test edi, edi
js 0x4a97b8
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 0x4a97d2
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 0x4a9a42
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0
push dword [eax*8 + 0x4f7f10]
call fcn.004a8f10
mov esi, eax
mov dword [esp + 0x5c], 1
lea ecx, [esp + 0x24]
push 0x500980
call fcn.004a8f10
mov byte [esp + 0x5c], 2
mov esi, dword [esi]
test esi, esi
je 0x4a9815
mov esi, dword [esi]
jmp 0x4a9817
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4a9821
mov edx, dword [eax]
jmp 0x4a9823
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 0x4a9894
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x4a988c
test esi, esi
je 0x4a988c
mov eax, dword [esi]
test eax, eax
je 0x4a986c
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a9883
push eax
call fcn.004c4eaa
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c4eaa
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x5c], 0xffffffff
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4a98e9
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x4a98e1
test esi, esi
je 0x4a98e1
mov eax, dword [esi]
test eax, eax
je 0x4a98c1
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a98d8
push eax
call fcn.004c4eaa
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004c4eaa
add esp, 4
mov dword [esp + 0x48], 0
cmp dword [esp + 0x20], 0
jge 0x4a9914
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 0x4a9a42
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4a9a1b
mov ebp, dword [esp + 0x1c]
mov esi, ebp
jmp 0x4a9930
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], 0
test ebp, ebp
je 0x4a994d
cmp ebx, 0xc
jge 0x4a9a1b
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 0x4a9a17
test ebp, ebp
je 0x4a99f8
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 + 0x4f7f14]
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 0x4a99ce
movzx eax, word [edi + ecx]
test ax, ax
je 0x4a99ce
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4a99b0
jmp 0x4a99d2
test edx, edx
jne 0x4a99d5
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.004a9590
add esp, 4
test eax, eax
je 0x4a99ff
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 0x4a9930
jmp 0x4a9a1b
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 0x4a9a42
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.004c4eaf
add esp, 0x4c
ret