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

Disassembly:
push 0xa8
mov eax, 0x501a12
call fcn.004dead8
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xac], ebx
lea eax, [ebp - 0xac]
push eax
push 0x5250b8
xor edi, edi
inc edi
push edi
push ebx
push 0x525188
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40dd27
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40e06b
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40dd64
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40e058
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0xb4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x40dd53
mov dword [ebp - 0xb0], ebx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
lea edx, [ebp - 0xb0]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
push 0x50cc5c
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x40ddbd
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40e044
push 0xf
pop eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0xb0], ebx
je 0x40df1d
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push edi
push 0xffffffffffffffff
push dword [ebp - 0xb0]
mov dword [ebp - 0xa8], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 6
call dword [eax + 0x10]
cmp eax, ebx
jl 0x40df01
cmp dword [ebp - 0xa8], ebx
je 0x40df01
push str.SerialNumber
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cd4e
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.004026ae
push ebx
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.0040172d
cmp dword [ebp - 0x3c], ebx
jne 0x40de92
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40de81
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xb0], ebx
jne 0x40ddea
jmp 0x40df15
push str.Model
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cd4e
add esp, 0xc
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.004026ae
push ebx
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.0040172d
push 0x50cc10
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cd4e
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.004026ae
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0040172d
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40df15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x3c], ebx
jne 0x40df40
push 0xf
pop eax
push ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
push edi
lea ecx, [ebp - 0x4c]
mov byte [esi], bl
call fcn.0040172d
push ebx
push edi
lea ecx, [ebp - 0x68]
call fcn.0040172d
push ebx
push edi
jmp 0x40e039
push 0x1e
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.004de430
mov eax, dword [ebp - 0x74]
add esp, 0xc
push 4
pop edi
cmp eax, ebx
je 0x40df97
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x40df76
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x70], 0x10
mov ecx, dword [ebp - 0x84]
jae 0x40df88
lea ecx, [ebp - 0x84]
push dword [eax]
lea eax, [ebp - 0x30]
push ecx
push eax
call fcn.004ddd50
add esp, 0xc
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x40dfd5
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x40dfba
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
jae 0x40dfc6
lea ecx, [ebp - 0x68]
push dword [eax]
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.004ddd50
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push 0x14
pop ecx
mov dword [ebp - 0xa8], eax
cmp eax, ecx
mov dword [ebp - 0xa4], ecx
lea eax, [ebp - 0xa8]
jl 0x40dff7
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x38], 0x10
mov ecx, dword [ebp - 0x4c]
jae 0x40e003
lea ecx, [ebp - 0x4c]
push dword [eax]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.004ddd50
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov byte [ebp - 0x14], bl
call fcn.00402650
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040172d
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040172d
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040172d
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40e058
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40e06b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xac]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40e07f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.004deb5b
ret