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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xa98141
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
cmp eax, esi
je 0x87b2da
mov byte [eax], 0
cmp ecx, esi
je 0x87b2e0
mov dword [ecx], esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x87b31e
cmp eax, 0x8007000e
je 0x87b31e
cmp eax, 0x8000ffff
je 0x87b31e
cmp eax, 0x80010106
je 0x87b31e
cmp eax, esi
jge 0x87b31e
push eax
push str._ENC__Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.00a78f30
add esp, 0xc
xor eax, eax
jmp 0x87b6ec
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]
cmp eax, esi
jge 0x87b356
cmp eax, 0x80010119
je 0x87b356
push eax
push str._ENC__Failed_to_initialize_security._Error_code__0x_x
push edi
call fcn.00a78f30
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x87b6ec
lea eax, [esp + 0x10]
push eax
push 0xaa13a4
push 1
push esi
push 0xaa1474
mov dword [esp + 0x24], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x87b37e
push eax
push str._ENC__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x87b340
lea ecx, [esp + 0x24]
push ecx
mov edi, str.ROOTCIMV2SecurityMicrosoftVolumeEncryption
mov dword [esp + 0x1c], esi
call fcn.0087b190
mov dword [esp + 0x160], esi
mov eax, dword [eax]
cmp eax, esi
je 0x87b3a2
mov ecx, dword [eax]
jmp 0x87b3a4
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea edi, [esp + 0x18]
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
lea edi, [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x160], 0xffffffff
call fcn.0087b230
cmp ebx, esi
jge 0x87b40a
mov ecx, dword [esp + 0x1c]
push ebx
push str._ENC__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.00a78f30
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
je 0x87b349
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x87b6ec
mov ecx, dword [esp + 0x18]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x87b467
mov edx, dword [esp + 0x1c]
push eax
push str._ENC__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.00a78f30
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, esi
je 0x87b446
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x87b349
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x87b6ec
mov al, byte [ebp + 8]
mov cl, al
sub cl, 0x61
mov dword [esp + 0x20], esi
movsx eax, al
cmp cl, 0x19
ja 0x87b47e
sub eax, 0x20
push eax
lea edx, [esp + 0x48]
push str.SELECT__FROM_Win32_EncryptableVolume_Where_DriveLetter_c:
push edx
call fcn.00a78f30
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x40]
call fcn.0087b100
mov edi, eax
push 0xab6240
lea ebx, [esp + 0x28]
mov dword [esp + 0x164], 1
call fcn.0087b100
mov byte [esp + 0x160], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x87b4cc
mov ecx, dword [ecx]
jmp 0x87b4ce
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x87b4d8
mov edx, dword [eax]
jmp 0x87b4da
xor edx, edx
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
lea ebx, [esp + 0x20]
push ebx
push 0
push 0x30
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
call ecx
lea edi, [esp + 0x24]
mov ebx, eax
call fcn.0087b230
lea edi, [esp + 0x3c]
mov dword [esp + 0x160], 0xffffffff
call fcn.0087b230
xor edi, edi
cmp ebx, edi
jge 0x87b55a
mov edx, dword [esp + 0x1c]
push ebx
push str._ENC__Query_for_Identification_Number_failed._Error_code__0x_x
push edx
call fcn.00a78f30
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
je 0x87b539
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x87b349
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x87b6ec
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x87b6a4
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x28], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x1c], edi
je 0x87b6a4
cmp dword [esp + 0x14], edi
je 0x87b6a4
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push edi
push edi
lea ecx, [esp + 0x34]
push ecx
push edi
push str.DeviceID
push eax
call edx
test eax, eax
jl 0x87b617
mov ax, word [esp + 0x2c]
cmp ax, 1
jne 0x87b5e3
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x87b617
push str.NULL
push eax
call fcn.00a78f30
add esp, 8
jmp 0x87b617
cmp ax, di
mov eax, dword [esp + 0x28]
jne 0x87b600
cmp eax, edi
je 0x87b617
push str.EMPTY
push eax
call fcn.00a78f30
add esp, 8
jmp 0x87b617
cmp eax, edi
je 0x87b617
mov ecx, dword [esp + 0x34]
push ecx
push 0xaa8700
push eax
call fcn.00a78f30
add esp, 0xc
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0
push str.ProtectionStatus
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x87b658
mov ax, word [esp + 0x2c]
cmp ax, 1
je 0x87b658
test ax, ax
je 0x87b658
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
push str.EncryptionMethod
push eax
call edx
test eax, eax
jl 0x87b69d
mov ax, word [esp + 0x2c]
cmp ax, 1
je 0x87b69d
test ax, ax
je 0x87b69d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x87b69d
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x87b6b4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x87b6c4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x87b6d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x87b6e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret