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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ef58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x460adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x455a54
push 1
push esi
push 0x455b24
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x417e04
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x10], esi
call fcn.004172c0
mov dword [ebp - 4], esi
mov eax, dword [eax]
cmp eax, esi
je 0x417d70
mov ecx, dword [eax]
jmp 0x417d72
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x417dd2
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
jne 0x417dd2
cmp edi, esi
je 0x417dd2
mov eax, dword [edi]
cmp eax, esi
je 0x417db9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x417dc9
push eax
call fcn.00420b1b
add esp, 4
push edi
call fcn.004204e8
add esp, 4
cmp ebx, esi
jl 0x417df9
mov eax, dword [ebp - 0x10]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x417e23
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.SELECT__FROM_Win32_DiskDrive_WHERE__SerialNumber_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
call fcn.00417230
mov edi, eax
push 0x457018
lea ebx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00417230
mov byte [ebp - 4], 2
mov ecx, dword [edi]
cmp ecx, esi
je 0x417e57
mov ecx, dword [ecx]
jmp 0x417e59
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x417e63
mov edx, dword [eax]
jmp 0x417e65
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
lea ebx, [ebp - 0x1c]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [ebp - 0x28]
mov ebx, eax
call fcn.00417360
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00417360
cmp ebx, esi
jge 0x417ecb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x417f88
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], ecx
je 0x417eff
cmp dword [ebp - 0x18], 0xfe
jge 0x417f88
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x24], 0
je 0x417f85
cmp dword [ebp + 8], 0
je 0x417f64
lea ecx, [ebp - 0x40]
push ecx
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0x45701c
push eax
call edx
mov eax, dword [ebp - 0x38]
push 0x80
push eax
push edi
call fcn.00423391
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
call esi
mov edx, dword [ebp + 0xc]
push edx
call fcn.00417990
test eax, eax
je 0x417f6d
inc dword [ebp - 0x18]
add edi, 0x100
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x417ee5
jmp 0x417f88
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8