Function at 0x10001a80
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100186be
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x10021008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.1001712d
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x10001af1
push str.SELECT__FROM_Win32_OperatingSystem
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10017ea0
mov dword [esi], eax
jmp 0x10001af3
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10001ce1
push 0xc
mov byte [ebp - 4], 2
call fcn.1001712d
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x10001b39
push 0x1001a5ac
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.10017ea0
mov dword [edi], eax
jmp 0x10001b3b
xor edi, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10001ceb
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 4
mov eax, dword [ebx + 4]
push edx
push 0
push 0x30
push dword [esi]
mov ecx, dword [eax]
push dword [edi]
push eax
call dword [ecx + 0x50]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x10001ba8
mov eax, dword [edi]
test eax, eax
je 0x10001b86
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x10001b9d
push eax
call fcn.100174d4
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.100174a3
add esp, 8
mov byte [ebp - 4], 0
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10001be9
mov eax, dword [esi]
test eax, eax
je 0x10001bc7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10001bde
push eax
call fcn.100174d4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100174a3
add esp, 8
cmp dword [ebp - 0x1c], 0
jl 0x10001cf5
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, dword [ebp - 0x18]
nop dword [eax]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10001c95
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x10001c92
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10001c87
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
push 0
push str.Caption
push ecx
call dword [eax + 0x10]
push dword [ebp - 0x38]
lea ecx, [ebx + 8]
call fcn.10008480
lea eax, [ebp - 0x40]
push eax
call edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10001c87
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
push 0
push str.OSArchitecture
push ecx
call dword [eax + 0x10]
push dword [ebp - 0x48]
lea ecx, [ebx + 8]
call fcn.10008480
lea eax, [ebp - 0x50]
push eax
call edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x10001c00
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10001ca6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.10017e80
push 0x8007000e
call fcn.10017e80
push str.ExecQuery___error.
lea ecx, [ebp - 0x2c]
call fcn.10001830
push 0x1001df7c
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3