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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145c71
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x10189710]
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 0x1000aeea
mov byte [eax], 0
cmp ecx, esi
je 0x1000aef0
mov dword [ecx], esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x1000af2e
cmp eax, 0x8007000e
je 0x1000af2e
cmp eax, 0x8000ffff
je 0x1000af2e
cmp eax, 0x80010106
je 0x1000af2e
cmp eax, esi
jge 0x1000af2e
push eax
push str._ENC__Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.10127dc0
add esp, 0xc
xor eax, eax
jmp 0x1000b2fc
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 0x1000af66
cmp eax, 0x80010119
je 0x1000af66
push eax
push str._ENC__Failed_to_initialize_security._Error_code__0x_x
push edi
call fcn.10127dc0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1000b2fc
lea eax, [esp + 0x10]
push eax
push 0x1014d1a4
push 1
push esi
push 0x1014d274
mov dword [esp + 0x24], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x1000af8e
push eax
push str._ENC__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x1000af50
lea ecx, [esp + 0x24]
push ecx
mov edi, str.ROOTCIMV2SecurityMicrosoftVolumeEncryption
mov dword [esp + 0x1c], esi
call fcn.1000ad90
mov dword [esp + 0x160], esi
mov eax, dword [eax]
cmp eax, esi
je 0x1000afb2
mov ecx, dword [eax]
jmp 0x1000afb4
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.1000ae30
cmp ebx, esi
jge 0x1000b01a
mov ecx, dword [esp + 0x1c]
push ebx
push str._ENC__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.10127dc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
je 0x1000af59
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1000b2fc
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 0x1000b077
mov edx, dword [esp + 0x1c]
push eax
push str._ENC__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.10127dc0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, esi
je 0x1000b056
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x1000af59
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1000b2fc
mov al, byte [ebp + 8]
mov cl, al
sub cl, 0x61
mov dword [esp + 0x20], esi
movsx eax, al
cmp cl, 0x19
ja 0x1000b08e
sub eax, 0x20
push eax
lea edx, [esp + 0x48]
push str.SELECT__FROM_Win32_EncryptableVolume_Where_DriveLetter_c:
push edx
call fcn.10127dc0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x40]
call fcn.1000ad00
mov edi, eax
push 0x10156da8
lea ebx, [esp + 0x28]
mov dword [esp + 0x164], 1
call fcn.1000ad00
mov byte [esp + 0x160], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x1000b0dc
mov ecx, dword [ecx]
jmp 0x1000b0de
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x1000b0e8
mov edx, dword [eax]
jmp 0x1000b0ea
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.1000ae30
lea edi, [esp + 0x3c]
mov dword [esp + 0x160], 0xffffffff
call fcn.1000ae30
xor edi, edi
cmp ebx, edi
jge 0x1000b16a
mov edx, dword [esp + 0x1c]
push ebx
push str._ENC__Query_for_Identification_Number_failed._Error_code__0x_x
push edx
call fcn.10127dc0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
je 0x1000b149
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x1000af59
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1000b2fc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x1000b2b4
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 0x1000b2b4
cmp dword [esp + 0x14], edi
je 0x1000b2b4
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 0x1000b227
mov ax, word [esp + 0x2c]
cmp ax, 1
jne 0x1000b1f3
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x1000b227
push str.NULL
push eax
call fcn.10127dc0
add esp, 8
jmp 0x1000b227
cmp ax, di
mov eax, dword [esp + 0x28]
jne 0x1000b210
cmp eax, edi
je 0x1000b227
push str.EMPTY
push eax
call fcn.10127dc0
add esp, 8
jmp 0x1000b227
cmp eax, edi
je 0x1000b227
mov ecx, dword [esp + 0x34]
push ecx
push 0x10153fb0
push eax
call fcn.10127dc0
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 0x1000b268
mov ax, word [esp + 0x2c]
cmp ax, 1
je 0x1000b268
test ax, ax
je 0x1000b268
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 0x1000b2ad
mov ax, word [esp + 0x2c]
cmp ax, 1
je 0x1000b2ad
test ax, ax
je 0x1000b2ad
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000b2ad
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 0x1000b2c4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000b2d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000b2e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000b2f4
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.10127db1
mov esp, ebp
pop ebp
ret