Function at 0x404eb0
Capabilities:
Print debug messages
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x41fc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 1
call dword [0x422778]
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
xor ebp, ebp
call fcn.004159b0
test al, al
je 0x40505c
push str.SELECT__FROM_Win32_SystemEnclosure
lea ecx, [esp + 0x3c]
call fcn.00415b90
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x40505c
mov dword [esp + 0x18], ebx
nop
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push edi
call eax
cmp dword [esp + 0x18], ebx
je 0x405050
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x48]
push edx
push ebx
push str.ChassisTypes
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x40]
test eax, 0x2000
je 0x405034
test eax, 0x4000
je 0x404f87
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx]
jmp 0x404f8b
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x405034
lea edx, [esp + 0x34]
push edx
push 1
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [esp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov ecx, 1
sub ecx, dword [esp + 0x34]
add dword [esp + 0x30], ecx
je 0x405034
xor edi, edi
cmp dword [esp + 0x30], ebx
jbe 0x405030
mov edi, edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
cmp eax, ebx
jl 0x405029
mov eax, dword [esp + 0x2c]
lea ecx, [eax - 8]
cmp ecx, 6
ja 0x404fff
mov ebp, str.Laptop
cmp eax, 0xd
jne 0x405004
mov ebp, str.Desktop
push ebp
lea edx, [esp + 0x18]
push 0x422c20
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc edi
cmp edi, dword [esp + 0x30]
jb 0x404fd0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x404f30
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp ebp, ebx
jne 0x40506f
mov esi, dword [esp + 0x60]
push str.Desktop
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
jmp 0x40507c
mov esi, dword [esp + 0x60]
push ebp
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], bl
call fcn.004157d0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4