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

Disassembly:
push 0xffffffffffffffff
push 0x4eb5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
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 [esp + 0x28], 0
mov dword [esp + 0x4c], 1
lea eax, [esp + 0x28]
push eax
push 0x4f3bcc
push 1
push 0
push 0x4f3c9c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4a4f6e
cmp dword [esp + 0x28], eax
je 0x4a4f6e
mov dword [esp + 0x2c], eax
mov byte [esp + 0x4c], 4
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push str.ROOTcimv2
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4a4f18
cmp dword [esp + 0x2c], eax
je 0x4a4f18
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 8
lea edx, [esp + 0x34]
mov eax, dword [esp + 0x2c]
push edx
push 0
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_DiskDrive_WHERE__Model_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
push 0x500218
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x4a4efd
cmp dword [esp + 0x34], eax
je 0x4a4efd
mov dword [esp + 0x38], eax
mov byte [esp + 0x4c], 0xd
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0x18], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x4c], 0xe
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0
call fcn.004a53d0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x3c]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jne 0x4a4ec1
cmp dword [esp + 0x30], 0
je 0x4a4ec1
cmp dword [esp + 0x38], 0
je 0x4a4ec1
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x5002e4
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4a4e93
cmp word [esp + 0x14], 8
jne 0x4a4e93
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a4ee8
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0
call fcn.004a53d0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x3c]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x4a4e50
xor al, al
mov byte [esp + 0x13], al
mov byte [esp + 0x4c], 0xd
lea eax, [esp + 0x14]
push eax
call esi
mov byte [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a4f03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a4f03
push eax
mov ecx, edi
call fcn.00402ac0
push edi
call fcn.004a4f80
mov byte [esp + 0x13], 1
jmp 0x4a4ec7
xor al, al
mov byte [esp + 0x13], al
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a4f1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a4f1e
xor al, al
mov byte [esp + 0x13], al
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a4f31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [esp + 0x13]
mov dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a4f4f
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004c515f
add esp, 0x44
ret 4
xor al, al
mov byte [esp + 0x13], al
jmp 0x4a4f35