Function at 0x100383e0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x10145bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp eax, ebx
je 0x10038458
mov byte [eax], bl
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x10038421
mov byte [eax], bl
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x1003846e
cmp eax, 0x8007000e
je 0x1003846e
cmp eax, 0x8000ffff
je 0x1003846e
cmp eax, 0x80010106
je 0x1003846e
cmp eax, ebx
jge 0x1003846e
push eax
push str._PCI__Failed_to_initialize_COM_library._Error_code__0x_x
push ebp
call fcn.10127dc0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x100384b5
cmp eax, 0x80010119
je 0x100384b5
push eax
push str._PCI__Failed_to_initialize_security._Error_code__0x_x
push ebp
call fcn.10127dc0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x20]
push eax
push 0x1014d1a4
push 1
push ebx
push 0x1014d274
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x100384dd
push eax
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x10038490
lea ecx, [esp + 0x2c]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x20], ebx
call fcn.1000ad90
mov dword [esp + 0x64], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x100384fe
mov ecx, dword [eax]
jmp 0x10038500
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea esi, [esp + 0x1c]
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 + 0x2c]
mov esi, eax
mov dword [esp + 0x64], 0xffffffff
call fcn.1000ae30
cmp esi, ebx
jge 0x10038557
push esi
push str._PCI__Could_not_ConnectServer._Error_code__0x_x
push ebp
call fcn.10127dc0
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10038499
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x10038499
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x10038591
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push ebp
call fcn.10127dc0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x1003853e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1003853e
mov dword [esp + 0x18], ebx
push str.SELECT__FROM_OfficeSoftwareProtectionProduct_WHERE__PartialProductKey___NULL_
lea ebx, [esp + 0x34]
call fcn.1000ad00
mov esi, eax
push 0x10156da8
lea ebx, [esp + 0x30]
mov dword [esp + 0x68], 1
call fcn.1000ad00
mov byte [esp + 0x64], 2
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x100385cc
mov ecx, dword [ecx]
jmp 0x100385ce
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x100385d8
mov edx, dword [eax]
jmp 0x100385da
xor edx, edx
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
lea edi, [esp + 0x18]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea edi, [esp + 0x2c]
mov esi, eax
call fcn.1000ae30
lea edi, [esp + 0x30]
mov dword [esp + 0x64], 0xffffffff
call fcn.1000ae30
cmp esi, ebx
jge 0x10038638
push esi
push str._PCI__Query_for_Software_License_failed._Error_code__0x_x
push ebp
call fcn.10127dc0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x1003853e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1003853e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x1003878f
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x28]
push edx
push 1
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x28], ebx
je 0x1003878b
cmp dword [esp + 0x24], ebx
je 0x1003878b
mov edi, dword [esp + 0x74]
cmp edi, ebx
je 0x100386f9
lea ecx, [esp + 0x44]
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
push ebx
push str.Name
push eax
call edx
cmp word [esp + 0x44], 8
jne 0x100386ec
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x100386ec
mov dword [esp + 0x2c], ebx
push eax
lea ebx, [esp + 0x30]
call fcn.10073be0
mov esi, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x100386ec
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100386d3
push edi
call fcn.10061df0
push esi
call fcn.10128243
add esp, 8
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
lea ecx, [esp + 0x34]
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push str.PartialProductKey
push eax
call edx
cmp word [esp + 0x34], 8
jne 0x10038742
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x10038742
mov dword [esp + 0x2c], ebx
push eax
lea ebx, [esp + 0x30]
call fcn.10073be0
mov esi, dword [esp + 0x30]
add esp, 4
test esi, esi
jne 0x1003875d
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, ebx
jne 0x1003864e
jmp 0x1003878f
mov edi, dword [esp + 0x6c]
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10038767
push edi
call fcn.10061df0
push esi
call fcn.10128243
add esp, 8
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100387a3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100387b7
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100387c3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100387d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret