Function at 0x40fd60
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4c21d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x64], eax
cmp edi, ebx
je 0x40ff68
cmp word [edi], bx
je 0x40ff68
xor ecx, ecx
push 0x2a
mov eax, str.ASSOCIATORS_OF_Win32_DiskDrive.DeviceID
lea esi, [ebp - 0x30]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
call fcn.0040e410
mov eax, edi
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fde0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.004109f0
push 0x34
mov eax, str._WHERE_AssocClass__Win32_DiskDriveToDiskPartition
lea ecx, [ebp - 0x30]
call fcn.004109f0
lea edx, [ebp - 0x5c]
push edx
push 0x4a134c
push 1
push ebx
push 0x4a141c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, 8
test eax, eax
js 0x40ff0c
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x40ff0c
mov ecx, dword [ebp - 0x54]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40ff0c
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x40fe76
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
lea edi, [ebp - 0x50]
push edi
push ebx
push 0x30
push ecx
push 0x4a3b58
push eax
mov eax, dword [edx + 0x50]
call eax
test eax, eax
js 0x40ff0c
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x40ff0f
lea esp, [esp]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x58]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x40ff0c
cmp dword [ebp - 0x60], ebx
je 0x40ff0c
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x74]
push edx
push ebx
push str.DeviceID
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x40ff03
cmp word [ebp - 0x74], si
jne 0x40ff03
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x4c]
call fcn.0040e500
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004106e0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040e5d0
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x40fea0
jmp 0x40ff0f
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x40ff24
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], ebx
cmp eax, ebx
je 0x40ff33
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x40ff45
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x40ff57
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x5c], ebx
cmp dword [ebp - 0x1c], esi
jb 0x40ff68
mov eax, dword [ebp - 0x30]
push eax
call fcn.0046c44a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c455
mov esp, ebp
pop ebp
ret