Function at 0x401330
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4244ac
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x42e43c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x42e43c]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4013f7
cmp dword [esi + 0x430], 8
jb 0x401399
mov esi, dword [esi + 0x41c]
jmp 0x40139f
add esi, 0x41c
push esi
lea eax, [esp + 0x48]
push 0x64
push eax
call fcn.0040d6ac
add esp, 0xc
push str._Module:_
lea ecx, [esp + 0x48]
push 0x64
push ecx
call fcn.0040d5de
add esp, 0xc
push str.Not_Initialized_BIOS_COM_n
lea edx, [esp + 0x48]
push 0x64
push edx
call fcn.0040d5de
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
mov eax, dword [ecx + 0x434]
mov esi, 0x64
call fcn.00402c20
xor eax, eax
jmp 0x4017bc
lea edx, [esp + 0x14]
push edx
push 0x42550c
push 1
push ebx
push 0x4255dc
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x401439
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.Not_ABle_to_create_Instance_BIOS_COM_n
mov eax, 0x64
lea edi, [esp + 0x48]
mov ebx, esi
call fcn.00401040
xor eax, eax
jmp 0x4017bc
lea eax, [esp + 0x1c]
push eax
mov edi, str.ROOTWMI
mov dword [esp + 0x1c], ebx
call fcn.00401130
mov dword [esp + 0x2b0], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x40145d
mov ecx, dword [eax]
jmp 0x40145f
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea esi, [esp + 0x18]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x2b0], 0xffffffff
call fcn.004011d0
cmp esi, ebx
jge 0x4014c1
mov ebx, dword [esp + 0x10]
push str.Not_ABle_to_connect_to_WMI_n
mov eax, 0x64
lea edi, [esp + 0x48]
call fcn.00401040
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4017bc
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x4014ff
mov ebx, dword [esp + 0x10]
push str.Not_able_to_connect_to_WMI_n
mov eax, 0x64
lea edi, [esp + 0x48]
call fcn.00401040
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4014a8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push str.MSSMBios_RawSMBiosTables
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jl 0x4014f1
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x430], 8
jb 0x401534
mov eax, dword [eax + 0x41c]
jmp 0x401539
add eax, 0x41c
push eax
lea eax, [esp + 0x110]
push 0x64
push eax
call fcn.0040d6ac
add esp, 0xc
push str._Module:_
lea ecx, [esp + 0x110]
push 0x64
push ecx
call fcn.0040d5de
add esp, 0xc
push str.Successfully_connected_to_WMI_n
lea edx, [esp + 0x110]
push 0x64
push edx
call fcn.0040d5de
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x10c]
push eax
mov eax, dword [edi + 0x434]
mov esi, 0x64
call fcn.00402c20
mov eax, dword [edi + 0x434]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebx
call fcn.00402c90
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x40179a
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.SmbiosMajorVersion
lea ebx, [esp + 0x20]
call fcn.004010a0
mov dword [esp + 0x2b0], 1
mov eax, dword [eax]
test eax, eax
je 0x4015f9
mov eax, dword [eax]
jmp 0x4015fb
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0
lea esi, [esp + 0x40]
push esi
lea esi, [esp + 0x2c]
push esi
push 0
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
lea edi, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x2b0], 0xffffffff
call fcn.004011d0
test esi, esi
jge 0x401651
mov ebx, dword [esp + 0x10]
push str.Not_able_to_get_BIOS_data_n
mov eax, 0x64
lea edi, [esp + 0x48]
call fcn.00401040
lea ecx, [esp + 0x24]
push ecx
jmp 0x401794
mov dl, byte [esp + 0x2c]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
mov byte [esi + 0x480], dl
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.SmbiosMinorVersion
lea ebx, [esp + 0x20]
call fcn.004010a0
mov dword [esp + 0x2b0], 2
mov eax, dword [eax]
test eax, eax
je 0x40168d
mov eax, dword [eax]
jmp 0x40168f
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x2c]
push edi
push 0
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
lea edi, [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x2b0], 0xffffffff
call fcn.004011d0
test ebx, ebx
jl 0x401647
mov dl, byte [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
mov byte [esi + 0x481], dl
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.BIOS_Data_Minor_Version_successfully_obtained_n
mov eax, 0x64
lea edi, [esp + 0x1d8]
mov ebx, esi
call fcn.00401040
push str.SMBiosData
lea ebx, [esp + 0x14]
call fcn.004010a0
mov dword [esp + 0x2b0], 3
mov eax, dword [eax]
test eax, eax
je 0x401714
mov eax, dword [eax]
jmp 0x401716
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x2c]
push edi
push 0
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
lea edi, [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x2b0], 0xffffffff
call fcn.004011d0
test ebx, ebx
jl 0x40178f
mov ecx, 0x2011
cmp cx, word [esp + 0x24]
jne 0x40178f
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov dword [esi + 0x496], eax
call fcn.0040c03e
mov edx, dword [esi + 0x496]
add esp, 4
push edx
push edi
push eax
mov dword [esi + 0x492], eax
call fcn.004122c0
add esp, 0xc
mov dword [esp + 0x34], 1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0040cf24
mov esp, ebp
pop ebp
ret