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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f4fe
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x44], edi
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push eax
push eax
push eax
push 3
push eax
push eax
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x40], 1
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x49e4f6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x516bf0
push 1
push 0
push 0x516c00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x49e4f6
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push str.ROOTCIMV2
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
call fcn.0049da10
mov dword [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x49e227
mov eax, dword [eax]
jmp 0x49e229
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x24]
call esi
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x49e294
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x49e294
test esi, esi
je 0x49e294
mov eax, dword [esi]
test eax, eax
je 0x49e26f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49e286
push eax
call fcn.004d54bc
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004d54f1
mov eax, dword [ebp - 0x20]
add esp, 8
test eax, eax
js 0x49e4ed
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x49e4e4
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push str.SELECT_SerialNumber_FROM_Win32_DiskDrive_WHERE_Index__0
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
call fcn.0049d970
mov dword [ebp - 4], 2
mov esi, dword [eax]
test esi, esi
je 0x49e2eb
mov esi, dword [esi]
jmp 0x49e2ed
xor esi, esi
push 0x55a9c8
lea ecx, [ebp - 0x18]
call fcn.0049d970
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x49e308
mov eax, dword [eax]
jmp 0x49e30a
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x30
push esi
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x49e36f
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x49e368
test esi, esi
je 0x49e368
mov eax, dword [esi]
test eax, eax
je 0x49e346
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49e35d
push eax
call fcn.004d54bc
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004d54f1
add esp, 8
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x49e3be
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x49e3be
test esi, esi
je 0x49e3be
mov eax, dword [esi]
test eax, eax
je 0x49e39c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49e3b3
push eax
call fcn.004d54bc
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004d54f1
add esp, 8
cmp dword [ebp - 0x14], 0
jl 0x49e4e4
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push edx
push 1
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x49e4db
cmp dword [ebp - 0x14], 1
jne 0x49e4db
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
push 0x55a96c
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
call fcn.0049da10
mov dword [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x49e42d
mov eax, dword [eax]
jmp 0x49e42f
xor eax, eax
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push dword [ebp - 0x18]
call esi
mov byte [ebp - 4], 0
mov ecx, eax
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x49e496
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x49e496
test esi, esi
je 0x49e496
mov eax, dword [esi]
test eax, eax
je 0x49e471
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x49e488
push eax
call fcn.004d54bc
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004d54f1
mov ecx, dword [ebp - 0x38]
add esp, 8
test ecx, ecx
js 0x49e4d2
cmp word [ebp - 0x34], 8
jne 0x49e4c8
mov edx, dword [ebp - 0x2c]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49e4b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040cd60
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret