Function at 0x40a2a0
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Get disk information via ioctl
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aee6d
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x204
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x328]
push 0
push eax
call fcn.004864f0
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40a7f3
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0048c8de
add esp, 0x24
test eax, eax
jne 0x40a7f3
lea eax, [ebp - 0x18]
push eax
push 0x4c7fc0
lea eax, [ebp - 0x530]
push 0x104
push eax
call fcn.0040c730
add esp, 0x10
mov dword [ebp - 0x54c], 0
lea eax, [ebp - 0x530]
mov dword [ebp - 0x548], 0
xorps xmm0, xmm0
movq qword [ebp - 0x554], xmm0
push 0
push 0
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a7f3
push 0
lea eax, [ebp - 0x548]
push eax
push 0xc
lea eax, [ebp - 0x554]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40a3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a7f9
push dword [ebp - 0x550]
lea eax, [ebp - 0x120]
push str.SELECT_Signature_FROM_Win32_DiskDrive_WHERE_Index_u
push 0x104
push eax
call fcn.0040be30
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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]
test eax, eax
jns 0x40a415
cmp eax, 0x80010119
jne 0x40a7f9
mov dword [ebp - 0x544], 0
lea eax, [ebp - 0x544]
mov dword [ebp - 4], 0
push eax
push 0x4bbd8c
push 1
push 0
push 0x4bbd7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a44c
xor esi, esi
jmp 0x40a7d8
mov dword [ebp - 0x540], 0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x538]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
call fcn.00407ac0
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40a47f
mov eax, dword [eax]
jmp 0x40a481
xor eax, eax
lea ecx, [ebp - 0x540]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call edi
mov esi, dword [ebp - 0x538]
or edi, 0xffffffff
mov ebx, eax
test esi, esi
je 0x40a4ea
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a4ea
test esi, esi
je 0x40a4ea
mov eax, dword [esi]
test eax, eax
je 0x40a4c8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a4df
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
test ebx, ebx
js 0x40a7c2
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x540]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40a7c2
mov dword [ebp - 0x53c], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x56c]
mov esi, dword [ebp - 0x540]
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x534], eax
lea eax, [ebp - 0x120]
push eax
call fcn.00407a20
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x40a553
mov ebx, dword [ebx]
jmp 0x40a555
xor ebx, ebx
push 0x4c7f00
lea ecx, [ebp - 0x538]
call fcn.00407a20
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40a573
mov eax, dword [eax]
jmp 0x40a575
xor eax, eax
lea ecx, [ebp - 0x53c]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0x534]
mov esi, dword [ebp - 0x538]
mov dword [ebp - 0x534], eax
test esi, esi
je 0x40a5fc
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a5ea
test esi, esi
je 0x40a5ea
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x40a5bc
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a5d3
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
mov dword [ebp - 0x538], 0
jmp 0x40a602
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x538], 0
jmp 0x40a602
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x56c]
test esi, esi
je 0x40a649
lock xadd dword [esi + 8], edi
dec edi
jne 0x40a649
test esi, esi
je 0x40a649
mov eax, dword [esi]
test eax, eax
je 0x40a627
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a63e
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
cmp dword [ebp - 0x534], 0
jge 0x40a659
xor esi, esi
jmp 0x40a7ac
mov ebx, dword [ebp - 0x570]
xor eax, eax
mov dword [ebp - 0x534], eax
mov word [ebx], ax
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x538]
push edx
mov dword [ebp - 0x538], eax
lea edx, [ebp - 0x534]
mov eax, dword [ebp - 0x53c]
push edx
push 1
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40a76f
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop word [eax + eax]
cmp dword [ebp - 0x538], 0
je 0x40a76f
lea eax, [ebp - 0x568]
push eax
call edi
mov eax, dword [ebp - 0x534]
lea edx, [ebp - 0x568]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Signature
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40a714
mov eax, 3
cmp ax, word [ebp - 0x568]
jne 0x40a714
mov eax, dword [ebp - 0x560]
test eax, eax
je 0x40a714
push eax
push 0x4c801c
push 0x100
push ebx
call fcn.0040c730
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
call esi
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x40a731
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x534], 0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x538]
mov eax, dword [ebp - 0x53c]
push edx
lea edx, [ebp - 0x534]
mov dword [ebp - 0x538], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x40a6b0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x53c]
test ecx, ecx
je 0x40a793
mov dword [ebp - 0x53c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x53c]
mov esi, 1
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x40a7b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x53c]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x40a7c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40a7c4
xor esi, esi
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x540]
test eax, eax
je 0x40a7d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0x544]
test ecx, ecx
je 0x40a7ef
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40a7fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret 8