Function at 0x401060
Capabilities:
Reference wmi statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, esp
mov dword [esi + 0x24], ebp
mov eax, esp
mov dword [esi + 0x84], eax
mov dword [esi + 0x90], 0xffffffff
lea eax, [esi + 0x88]
mov dword [esi + 0x8c], 0x401c10
mov ecx, dword fs:[0]
mov dword [esi + 0x88], ecx
mov dword fs:[0], eax
mov dword [esi + 0x7c], 0xffffffff
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0
jge 0x4010e2
jmp 0x401523
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
sub esp, 0x24
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0
jge 0x401152
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401523
mov dword [esi + 0x78], 0
lea eax, [esi + 0x78]
lea edx, [0x4913e0]
xor ecx, ecx
lea ecx, [0x491310]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0
jge 0x4011ac
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401523
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x78]
mov dword [esi + 0x3c], eax
mov eax, esp
mov dword [eax], str.ROOTWMI
lea ecx, [esi + 0x70]
mov dword [esi + 0x38], ecx
call fcn.00401c50
sub esp, 4
mov ecx, dword [esi + 0x38]
call fcn.00401d20
mov edx, dword [esi + 0x3c]
mov edi, eax
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x90], 0
mov ecx, esp
mov dword [esi + 0x40], ecx
lea ebx, [esi + 0x74]
mov dword [ecx + 0x20], ebx
mov dword [ecx + 4], edi
mov dword [ecx], edx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
call eax
sub esp, 0x24
mov dword [esi + 0x44], eax
jmp 0x401232
mov eax, dword [esi + 0x44]
mov dword [esi + 0x80], eax
lea ecx, [esi + 0x70]
call fcn.00401d60
cmp dword [esi + 0x80], 0
jge 0x401277
mov eax, dword [esi + 0x78]
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esi + 0x90], 0xffffffff
mov dword [esp], ecx
call eax
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401523
mov eax, dword [esi + 0x74]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0xa
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
sub esp, 0x20
mov dword [esi + 0x80], eax
cmp dword [esi + 0x80], 0
jge 0x40130a
mov eax, dword [esi + 0x74]
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esi + 0x90], 0xffffffff
mov dword [esp], ecx
call eax
sub esp, 4
mov eax, dword [esi + 0x78]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401523
mov dword [esi + 0x6c], 0
mov eax, dword [esi + 0x74]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x90], 0xffffffff
mov eax, esp
mov dword [eax], str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
lea ecx, [esi + 0x68]
mov dword [esi + 0x30], ecx
call fcn.00401d80
sub esp, 4
mov ecx, dword [esi + 0x30]
call fcn.00401d20
mov dword [esi + 0x34], eax
mov dword [esi + 0x90], 1
mov eax, esp
mov dword [eax], 0x4909cc
lea ecx, [esi + 0x64]
call fcn.00401d80
sub esp, 4
jmp 0x401364
mov ebx, dword [esi + 0x34]
lea ecx, [esi + 0x64]
call fcn.00401d20
mov edi, eax
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [esi + 0x90], 2
mov ecx, esp
lea edx, [esi + 0x6c]
mov dword [ecx + 0x14], edx
mov edx, dword [esi + 0x2c]
mov dword [ecx + 8], ebx
mov dword [ecx + 4], edi
mov dword [ecx], edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0x30
call eax
sub esp, 0x18
mov dword [esi + 0x28], eax
jmp 0x4013b1
mov eax, dword [esi + 0x28]
mov dword [esi + 0x80], eax
lea ecx, [esi + 0x64]
call fcn.00401d60
lea ecx, [esi + 0x68]
call fcn.00401d60
cmp dword [esi + 0x80], 0
jge 0x40140e
mov eax, dword [esi + 0x74]
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esi + 0x90], 0xffffffff
mov dword [esp], ecx
call eax
sub esp, 4
mov eax, dword [esi + 0x78]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401523
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x90], 0xffffffff
cmp eax, 0
je 0x4014ed
mov edi, dword [esi + 0x6c]
mov eax, dword [edi]
lea edx, [esi + 0x60]
lea ecx, [esi + 0x5c]
mov dword [esp], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call dword [eax + 0x10]
sub esp, 0x14
mov dword [esi + 0x58], eax
xor eax, eax
cmp eax, dword [esi + 0x5c]
jne 0x401486
mov eax, 0xffffffff
cmp eax, dword [esi + 0x7c]
jne 0x401481
mov dword [esi + 0x7c], 1
jmp 0x4014ed
mov edi, dword [esi + 0x60]
mov eax, dword [edi]
lea edx, [0x4909d0]
xor ecx, ecx
lea ecx, [esi + 0x48]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [eax + 0x10]
sub esp, 0x18
mov dword [esi + 0x58], eax
mov dword [esi + 0x7c], 0
lea eax, [esi + 0x48]
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
sub esp, 4
mov eax, dword [esi + 0x60]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
jmp 0x40141c
mov eax, dword [esi + 0x74]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
mov eax, dword [esi + 0x78]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
mov eax, dword [esi + 0x6c]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x88]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret