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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
test eax, eax
js 0x401d80
mov ebx, dword [0x843034]
test ebx, ebx
je 0x401c80
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
mov dword [esp + 0xc], 0x761f10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov dword [esp], 0x75d0c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x401cd5
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x60], 0
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov dword [esp], 0xc
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov ebx, eax
mov eax, dword [sym.imp.OLEAUT32.dll_SysAllocString]
mov dword [esp], str.ROOTCIMV2
mov dword [ebp - 0x6c], eax
call eax
sub esp, 4
test eax, eax
mov dword [ebx], eax
je 0x401d00
lea edx, [ebp - 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 0x24
mov esi, eax
lock sub dword [ebx + 8], 1
je 0x401dc0
test esi, esi
js 0x401da4
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
sub esp, 0x20
test eax, eax
js 0x401d40
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x5c], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x50]
mov dword [esp], 0xc
mov dword [ebp - 0x74], eax
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov ebx, eax
mov dword [esp], str.SELECT__FROM_Win32_BaseBoard
mov eax, dword [ebp - 0x6c]
call eax
sub esp, 4
test eax, eax
mov esi, eax
mov dword [ebx], eax
je 0x401df0
mov dword [esp], 0xc
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [ebp - 0x70], eax
mov dword [esp], 0x72e174
mov eax, dword [ebp - 0x6c]
call eax
mov ecx, dword [ebp - 0x70]
sub esp, 4
test eax, eax
mov dword [ecx], eax
je 0x401ef4
lea ecx, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 0x14], ecx
mov dword [esp], edi
mov eax, dword [ebp - 0x74]
call eax
mov edi, dword [ebp - 0x70]
sub esp, 0x18
mov esi, eax
lock sub dword [edi + 8], 1
je 0x401e71
lock sub dword [ebx + 8], 1
je 0x401e43
test esi, esi
js 0x401f50
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
lea esi, [ebp - 0x4c]
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0x48]
test eax, eax
jne 0x401917
jmp 0x401945
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Manufacturer
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x40]
sub esp, 0x18
test eax, eax
je 0x40186e
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403ee0
sub esp, 4
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Model
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
je 0x4018bf
mov ecx, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00403ee0
sub esp, 4
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x72e1dc
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x401910
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00403ee0
sub esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x401945
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x4c]
sub esp, 0x14
test ecx, ecx
jne 0x401820
mov edi, dword [ebp - 0x60]
mov eax, dword [edi]
mov eax, dword [eax + 0x50]
mov dword [esp], 0xc
mov dword [ebp - 0x74], eax
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov ebx, eax
mov dword [esp], str.SELECT__FROM_Win32_ComputerSystem
mov eax, dword [ebp - 0x6c]
call eax
sub esp, 4
test eax, eax
mov esi, eax
mov dword [ebx], eax
je 0x401eb0
mov dword [esp], 0xc
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [ebp - 0x70], eax
mov dword [esp], 0x72e174
mov eax, dword [ebp - 0x6c]
call eax
mov ecx, dword [ebp - 0x70]
sub esp, 4
test eax, eax
mov dword [ecx], eax
je 0x401f61
lea ecx, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 0x14], ecx
mov dword [esp], edi
mov eax, dword [ebp - 0x74]
call eax
mov edi, dword [ebp - 0x70]
sub esp, 0x18
mov esi, eax
lock sub dword [edi + 8], 1
je 0x402020
lock sub dword [ebx + 8], 1
je 0x402057
test esi, esi
js 0x402085
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
lea esi, [ebp - 0x4c]
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x28]
test eax, eax
jne 0x401ad6
jmp 0x401b04
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Manufacturer
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
je 0x401a81
mov ecx, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.00403ee0
sub esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.Model
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x401acf
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.00403ee0
sub esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x401b04
mov edx, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x48]
sub esp, 0x14
test edx, edx
jne 0x401a30
mov edi, dword [ebp - 0x60]
mov eax, dword [edi]
mov eax, dword [eax + 0x50]
mov dword [esp], 0xc
mov dword [ebp - 0x74], eax
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov ebx, eax
mov dword [esp], str.SELECT__FROM_Win32_SystemEnclosure
mov eax, dword [ebp - 0x6c]
call eax
sub esp, 4
test eax, eax
mov esi, eax
mov dword [ebx], eax
je 0x401fd2
mov dword [esp], 0xc
call fcn.006fec40
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [ebp - 0x70], eax
mov dword [esp], 0x72e174
mov eax, dword [ebp - 0x6c]
call eax
mov ecx, dword [ebp - 0x70]
sub esp, 4
test eax, eax
mov dword [ecx], eax
je 0x402096
lea ecx, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 0x14], ecx
mov dword [esp], edi
mov eax, dword [ebp - 0x74]
call eax
mov ecx, dword [ebp - 0x70]
sub esp, 0x18
mov edi, eax
lock sub dword [ecx + 8], 1
je 0x4021b1
lock sub dword [ebx + 8], 1
je 0x402183
test edi, edi
js 0x4021e8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
lea edi, [ebp - 0x58]
lea esi, [ebp - 0x28]
test eax, eax
jne 0x401bf9
jmp 0x401fa2
test ah, 0x20
jne 0x4020f1
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x401fa2
mov edx, dword [eax]
lea ecx, [ebp - 0x54]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x54]
sub esp, 0x14
test eax, eax
je 0x401fa2
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ChassisTypes
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x18
test eax, eax
js 0x401bee
movzx eax, word [ebp - 0x28]
cmp ax, 1
ja 0x401be5
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
jmp 0x401bee
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
sub esp, 0x24
jmp 0x401603
mov dword [esp + 8], eax
mov dword [esp + 4], str.FAILED_to_create_IWbemLocator_object._Error_code__0x_lX_n
mov dword [esp], 0x849160
call fcn.0041f010
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
nop
mov dword [esp + 8], eax
mov dword [esp + 4], str.FAILED_to_set_proxy_blanket._Error_code__0x_lX_n
mov dword [esp], 0x849160
call fcn.0041f010
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], str.FAILED_to_initialize_COM_library._Error_code__0x_lX_n
mov dword [esp], 0x849160
call fcn.0041f010
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp + 8], esi
mov dword [esp + 4], str.FAILED_to_connect_to_rootcimv2._Error_code__0x_lX_n
mov dword [esp], 0x849160
call fcn.0041f010
jmp 0x401d66
mov eax, dword [ebx]
test eax, eax
je 0x401dd2
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x401de1
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
call fcn.006febf0
jmp 0x4016da
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
mov esi, eax
mov dword [esp], ebx
call fcn.006febf0
mov dword [esp], esi
call fcn.005e6130
jmp 0x401e2f
mov eax, dword [ebx]
test eax, eax
je 0x401e55
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x401e64
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
call fcn.006febf0
jmp 0x4017f8
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x401e86
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
test eax, eax
je 0x401e98
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.006febf0
jmp 0x4017ed
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
jmp 0x401e2f
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
mov esi, eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.006febf0
mov ecx, ebx
call fcn.00636d20
mov dword [esp], esi
call fcn.005e6130
nop
mov dword [esp + 8], esi
mov dword [esp + 4], str.FAILED_to_query_for_Win32_BaseBoard._Error_code__0x_lX_n
jmp 0x401d4c
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
jmp 0x401f33
mov eax, dword [ebp - 0x60]
mov dword [0x843034], 1
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x64]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, 1
sub esp, 4
jmp 0x401cef
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
jmp 0x401e2f
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x402035
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
test eax, eax
je 0x402047
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.006febf0
jmp 0x4019fa
mov eax, dword [ebx]
test eax, eax
je 0x402069
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x402078
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
call fcn.006febf0
jmp 0x401a05
mov dword [esp + 8], esi
mov dword [esp + 4], str.FAILED_to_query_for_Win32_ComputerSystem._Error_code__0x_lX_n
jmp 0x401d4c
mov dword [esp], 0x10
call fcn.006fed60
mov dword [eax], vtable.undle.0
mov dword [eax + 4], 0x8007000e
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 8], method.undle.virtual_0
mov dword [esp + 4], 0x763578
mov dword [esp], eax
call fcn.006ff3c0
mov edi, eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.006febf0
mov ecx, ebx
call fcn.00636d20
mov dword [esp], edi
call fcn.005e6130
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], 0
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0x4c]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetUBound]
mov eax, dword [ebp - 0x50]
sub esp, 0xc
cmp eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
jg 0x402172
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x1c]
sub esp, 0xc
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
add eax, 1
cmp dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], eax
jge 0x402142
mov dword [esp], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
sub esp, 4
jmp 0x401bee
mov eax, dword [ebx]
test eax, eax
je 0x402195
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4021a4
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
call fcn.006febf0
jmp 0x401bc4
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x4021c6
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
test eax, eax
je 0x4021d8
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.006febf0
jmp 0x401bb9
mov dword [esp + 8], edi
mov dword [esp + 4], str.FAILED_to_query_for_Win32_SystemEnclosure._Error_code__0x_lX_n
jmp 0x401d4c