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

Disassembly:
push 0xffffffffffffffff
push 0x10077e07
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe8]
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
cmp dword [ebp + 4], edi
je 0x10013481
push str.SELECT__FROM_Win32_QuickFixEngineering
lea ebx, [esp + 0x18]
call fcn.10012620
mov esi, eax
push 0x1007ed70
lea ebx, [esp + 0x20]
mov dword [esp + 0xe4], edi
call fcn.10012620
mov byte [esp + 0xe0], 1
mov ecx, dword [esi]
cmp ecx, edi
je 0x10012fc2
mov edx, dword [ecx]
jmp 0x10012fc4
xor edx, edx
mov eax, dword [eax]
cmp eax, edi
je 0x10012fce
mov ecx, dword [eax]
jmp 0x10012fd0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ebx, [esp + 0x18]
push ebx
push edi
push 0x30
push edx
push ecx
push eax
mov eax, dword [esi + 0x50]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x1001302f
mov esi, eax
add eax, 8
push eax
call ebx
cmp eax, edi
jne 0x1001302b
cmp esi, edi
je 0x1001302b
mov eax, dword [esi]
cmp eax, edi
je 0x10013012
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x10013022
push eax
call fcn.10056100
add esp, 4
push esi
call fcn.10056169
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0xe0], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10013078
mov esi, eax
add eax, 8
push eax
call ebx
cmp eax, edi
jne 0x10013078
cmp esi, edi
je 0x10013078
mov eax, dword [esi]
cmp eax, edi
je 0x1001305f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1001306f
push eax
call fcn.10056100
add esp, 4
push esi
call fcn.10056169
add esp, 4
cmp ebp, edi
mov eax, dword [esp + 0x18]
jl 0x1001345b
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x10013454
mov ebx, 7
lea esp, [esp]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x2c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], edi
je 0x1001344c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push edi
push 0x70
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x1001344c
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x1001344c
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
jg 0x1001340c
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x1001315c
xor ebp, ebp
mov dword [esp + 0x30], ebp
jmp 0x10013171
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebp, eax
mov dword [esp + 0x30], ebp
cmp ebp, edi
je 0x10013442
lea edx, [esp + 0x44]
mov dword [esp + 0xe0], 2
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push edx
call esi
push edi
push edi
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0xec], 3
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push edi
push ebp
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x18], eax
call esi
push 8
push edi
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0xf0], 4
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jne 0x100132c5
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov word [esp + 0xc0], cx
mov ecx, eax
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], edi
lea esi, [ecx + 2]
jmp 0x10013200
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10013200
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc0]
call fcn.1000a960
mov byte [esp + 0xe0], 5
mov eax, dword [esp + 0x24]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], dx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10013240
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x5c]
call fcn.1000a960
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x2c]
mov eax, esi
push eax
push ecx
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 6
call fcn.10012c00
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x10013294
mov edx, dword [esp + 0x5c]
push edx
call fcn.10056169
add esp, 4
xor eax, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], ax
cmp dword [esp + 0xd4], esi
jb 0x100133ae
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.10056169
add esp, 4
jmp 0x100133ae
xor edx, edx
push edi
mov eax, 0x1007f0d8
lea esi, [esp + 0x78]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], dx
call fcn.1000a960
mov byte [esp + 0xe0], bl
xor eax, eax
mov word [esp + 0x94], ax
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10013311
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x94]
call fcn.1000a960
mov edx, dword [esp + 0xec]
mov ecx, esi
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe8], 8
call fcn.10012c00
mov esi, 8
cmp dword [esp + 0xa8], esi
jb 0x1001336b
mov eax, dword [esp + 0x94]
push eax
call fcn.10056169
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], cx
cmp dword [esp + 0x8c], esi
jb 0x10013399
mov edx, dword [esp + 0x78]
push edx
call fcn.10056169
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov word [esp + 0x78], ax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x44]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call esi
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebp
mov dword [esp + 0xe4], 0xffffffff
call esi
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
jle 0x1001312b
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x2c]
cmp eax, edi
jne 0x100130a0
mov ebp, dword [esp + 0x14]
mov esi, 1
jmp 0x1001345f
push 0x8007000e
call fcn.100125e0
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, 1
jmp 0x1001345f
mov esi, dword [esp + 0x30]
cmp eax, edi
je 0x1001346f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
push ebp
push 0x1007ed74
call fcn.10052058
add esp, 8
mov eax, esi
jmp 0x10013490
push str.QueryInfo_Not_Init
call fcn.10052058
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 8