Function at 0x402340
Capabilities:
Reference wmi statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416512
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x41c2b4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x41c2b4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x4024cd
mov dword [eax], 0
call fcn.004029f0
test eax, eax
jne 0x4024cd
push str.SELECT__FROM_Win32_EncryptableVolume
lea ebx, [esp + 0x14]
call fcn.004021c0
mov esi, eax
push 0x419aec
lea ebx, [esp + 0x1c]
mov dword [esp + 0xb4], 0
call fcn.004021c0
mov byte [esp + 0xb0], 1
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
je 0x4023e7
mov edx, dword [ecx]
jmp 0x4023e9
xor edx, edx
mov eax, dword [eax]
cmp eax, edi
je 0x4023f3
mov ecx, dword [eax]
jmp 0x4023f5
xor ecx, ecx
mov eax, dword [0x41e6c8]
mov esi, dword [eax]
lea ebx, [esp + 0x14]
push ebx
push edi
push 0x30
push edx
push ecx
push eax
mov eax, dword [esi + 0x50]
call eax
mov ebx, eax
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40245c
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x402458
cmp esi, edi
je 0x402458
mov eax, dword [esi]
cmp eax, edi
je 0x40243f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40244f
push eax
call fcn.00406d91
add esp, 4
push esi
call fcn.0040569a
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4024a9
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x4024a9
cmp esi, edi
je 0x4024a9
mov eax, dword [esi]
cmp eax, edi
je 0x402490
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4024a0
push eax
call fcn.00406d91
add esp, 4
push esi
call fcn.0040569a
add esp, 4
cmp ebx, edi
jge 0x4024d7
mov eax, dword [0x41e6c8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x41e6c4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x2257
jmp 0x4029c7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x4029b8
or ebx, 0xffffffff
lea ebx, [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
push 1
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x1c], edi
je 0x4029b4
push 0xc
call fcn.00406d9c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xb0], 2
cmp esi, edi
je 0x402553
push 0x419af0
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, edi
jne 0x402555
push 0x8007000e
call fcn.00412010
xor esi, esi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x10], esi
cmp esi, edi
je 0x402549
push edi
push edi
mov dword [esp + 0xb8], 3
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esi]
push edi
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esi + 8]
push ecx
mov dword [esp + 0xb4], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x4025c1
mov eax, dword [esi]
cmp eax, edi
je 0x4025a8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4025b8
push eax
call fcn.00406d91
add esp, 4
push esi
call fcn.0040569a
add esp, 4
mov eax, dword [esp + 0x34]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], edi
mov word [esp + 0x68], dx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4025e0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x6c]
call fcn.00402e50
mov ebx, 4
lea eax, [esp + 0x84]
lea ecx, [esp + 0x68]
mov dword [esp + 0xb0], ebx
call fcn.00402b90
mov edi, eax
lea esi, [esp + 0x68]
mov byte [esp + 0xb0], 5
call fcn.00402bc0
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x98], 8
jb 0x402649
mov eax, dword [esp + 0x84]
push eax
call fcn.0040569a
add esp, 4
xor ecx, ecx
mov word [esp + 0x4c], cx
push 0x26
mov eax, str.Win32_EncryptableVolume.DeviceID__
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.00402e50
push 0
lea edx, [esp + 0x6c]
push edx
or eax, 0xffffffff
lea edi, [esp + 0x54]
mov byte [esp + 0xb8], 6
call fcn.00402c30
mov ebx, 1
mov eax, edi
call fcn.00402ce0
push 0xc
mov dword [esp + 0x24], 0
call fcn.00406d9c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0xb0], 7
test esi, esi
je 0x4026dc
push 0x419b5c
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x402549
jmp 0x4026de
xor esi, esi
mov byte [esp + 0xb0], 6
mov dword [esp + 0x18], esi
test esi, esi
je 0x402549
mov byte [esp + 0xb0], 8
cmp dword [esp + 0x60], 8
mov ebx, dword [esp + 0x4c]
jae 0x402709
lea ebx, [esp + 0x4c]
push 0xc
call fcn.00406d9c
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov byte [esp + 0xb0], 9
test edi, edi
je 0x40274a
push ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x40274c
test ebx, ebx
jne 0x402549
jmp 0x40274c
xor edi, edi
mov byte [esp + 0xb0], 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x402549
push 0
lea edx, [esp + 0x24]
push edx
push 0
mov byte [esp + 0xbc], 0xa
mov edx, dword [esi]
mov eax, dword [0x41e6c8]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [edi]
push edx
push eax
mov eax, dword [ecx + 0x60]
call eax
lea ecx, [edi + 8]
mov byte [esp + 0xb0], 8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ecx
mov dword [esp + 0x14], eax
call ebx
test eax, eax
jne 0x4027ca
mov eax, dword [edi]
test eax, eax
je 0x4027b1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x4027c1
push eax
call fcn.00406d91
add esp, 4
push edi
call fcn.0040569a
add esp, 4
lea edx, [esi + 8]
push edx
mov byte [esp + 0xb4], 6
call ebx
test eax, eax
jne 0x402802
mov eax, dword [esi]
test eax, eax
je 0x4027e9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4027f9
push eax
call fcn.00406d91
add esp, 4
push esi
call fcn.0040569a
add esp, 4
cmp dword [esp + 0x10], 0
jl 0x402983
push 0xc
call fcn.00406d9c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0xb0], 0xb
test esi, esi
je 0x40284e
push str.ProtectionStatus
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x402549
jmp 0x402850
xor esi, esi
mov byte [esp + 0xb0], 6
mov dword [esp + 0x10], esi
test esi, esi
je 0x402549
push 0
push 0
mov byte [esp + 0xb8], 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esi]
push 0
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esi + 8]
push ecx
mov edi, eax
mov byte [esp + 0xb4], 6
call ebx
test eax, eax
jne 0x4028c0
mov eax, dword [esi]
test eax, eax
je 0x4028a7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4028b7
push eax
call fcn.00406d91
add esp, 4
push esi
call fcn.0040569a
add esp, 4
cmp edi, 0x80310000
je 0x402963
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x4028dc
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
call esi
mov edi, 8
mov byte [esp + 0xb0], 4
cmp dword [esp + 0x60], edi
jb 0x402910
mov edx, dword [esp + 0x4c]
push edx
call fcn.0040569a
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
cmp dword [esp + 0x7c], edi
jb 0x402942
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0040569a
add esp, 4
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], dx
cmp eax, ebx
je 0x4029b8
or ebx, 0xffffffff
xor edi, edi
jmp 0x4024f0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
call esi
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call fcn.00402b30
lea esi, [esp + 0x4c]
mov byte [esp + 0xb0], 4
call fcn.00402b60
lea esi, [esp + 0x68]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402b60
mov eax, 0x2257
jmp 0x4029c7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.00402b30
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00405593
mov esp, ebp
pop ebp
ret