Function at 0x40e180
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527400
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x57254c]
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 dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0
call fcn.0040ffa0
test eax, eax
je 0x40e311
cmp dword [ebp - 0x34], 0
je 0x40e311
cmp dword [ebp - 0x30], 0
je 0x40e311
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x38], 0
call fcn.0040d1d0
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x555f94
call fcn.0040d1d0
mov byte [ebp - 4], 1
mov ecx, dword [esi]
test ecx, ecx
je 0x40e21b
mov esi, dword [ecx]
jmp 0x40e21d
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40e227
mov edx, dword [eax]
jmp 0x40e229
xor edx, edx
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x38]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov edi, eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x58]
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x40e2a1
lea ecx, [esi + 8]
push ecx
call edx
test eax, eax
jne 0x40e294
test esi, esi
je 0x40e294
mov eax, dword [esi]
test eax, eax
je 0x40e272
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40e289
push eax
call fcn.004f8ef5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004f8ec4
add esp, 8
mov edx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x40e2f5
lea eax, [esi + 8]
push eax
call edx
test eax, eax
jne 0x40e2ee
test esi, esi
je 0x40e2ee
mov eax, dword [esi]
test eax, eax
je 0x40e2cc
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40e2e3
push eax
call fcn.004f8ef5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x54], 0
test edi, edi
jns 0x40e32f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
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.004f8955
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x40e4c8
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x3c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x40e4c8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Model
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x54]
call fcn.0040d270
mov dword [ebp - 4], 2
mov esi, dword [eax]
test esi, esi
je 0x40e3b1
mov edx, dword [esi + 4]
test edx, edx
jne 0x40e3b3
push dword [esi]
call fcn.004fa2b0
mov dword [esi + 4], eax
mov edx, eax
jmp 0x40e3b3
xor edx, edx
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e3d8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407ce0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x40e440
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40e439
test esi, esi
je 0x40e439
mov eax, dword [esi]
test eax, eax
je 0x40e417
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40e42e
push eax
call fcn.004f8ef5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x54], 0
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push ecx
mov eax, dword [esi + 8]
cmp dword [esi + 0xc], eax
je 0x40e45c
mov ecx, eax
call fcn.004064d0
add dword [esi + 8], 0x18
jmp 0x40e465
push eax
lea ecx, [esi + 4]
call fcn.0040d8e0
lea eax, [ebp - 0x50]
push eax
call edi
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40e4ab
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e4a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4f3
push edx
push ecx
call fcn.004f8ec4
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test ecx, ecx
jne 0x40e350
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x40e313
call fcn.00500017
int3