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

Disassembly:
push 0xffffffffffffffff
push 0x10147a21
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x280]
mov eax, dword [esp + 0x27c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x284]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
cmp ebp, ebx
je 0x10037fc5
mov byte [ebp], bl
cmp eax, ebx
je 0x10038008
mov byte [eax], bl
cmp ecx, ebx
je 0x10037fd1
mov byte [ecx], bl
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x1003800f
cmp eax, 0x8007000e
je 0x1003800f
cmp eax, 0x8000ffff
je 0x1003800f
cmp eax, 0x80010106
je 0x1003800f
cmp eax, ebx
jge 0x1003800f
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
jmp 0x100383aa
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 0x10038047
cmp eax, 0x80010119
je 0x10038047
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
jmp 0x100383aa
lea edx, [esp + 0x20]
push edx
push 0x1014d1a4
push 1
push ebx
push 0x1014d274
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x1003806f
push eax
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x10038031
lea eax, [esp + 0x18]
push eax
mov edi, str.ROOTCIMV2
mov dword [esp + 0x28], ebx
call fcn.1000ad90
mov dword [esp + 0x274], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x10038093
mov ecx, dword [eax]
jmp 0x10038095
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea esi, [esp + 0x24]
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 + 0x18]
mov esi, eax
mov dword [esp + 0x274], 0xffffffff
call fcn.1000ae30
cmp esi, ebx
jge 0x100380f7
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 0x1003803a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x100383aa
mov eax, dword [esp + 0x24]
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 0x10038131
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push ebp
call fcn.10127dc0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
je 0x100380d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100380d6
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x60]
push str.SELECT__FROM_SoftwareLicensingProduct_WHERE__PartialProductKey___NULL_AND_Name_like__s___
push ecx
mov dword [esp + 0x28], ebx
call fcn.10127dc0
add esp, 0xc
lea edx, [esp + 0x5c]
push edx
lea ebx, [esp + 0x34]
call fcn.1000ad00
mov esi, eax
push 0x10156da8
lea ebx, [esp + 0x1c]
mov dword [esp + 0x278], 1
call fcn.1000ad00
mov byte [esp + 0x274], 2
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x10038189
mov ecx, dword [ecx]
jmp 0x1003818b
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x10038195
mov edx, dword [eax]
jmp 0x10038197
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea edi, [esp + 0x18]
mov esi, eax
call fcn.1000ae30
lea edi, [esp + 0x30]
mov dword [esp + 0x274], 0xffffffff
call fcn.1000ae30
cmp esi, ebx
jge 0x100381f8
push esi
push str._PCI__Query_for_Software_License_failed._Error_code__0x_x
push ebp
call fcn.10127dc0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
je 0x100380d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100380d6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x1003835b
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x2c]
push edx
push 1
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x2c], ebx
je 0x10038357
cmp dword [esp + 0x28], ebx
je 0x10038357
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x100382bc
lea ecx, [esp + 0x4c]
push ecx
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x54]
push ecx
push ebx
push str.Name
push eax
call edx
cmp word [esp + 0x4c], 8
jne 0x100382af
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x100382af
mov dword [esp + 0x18], ebx
push eax
lea ebx, [esp + 0x1c]
call fcn.10073be0
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
je 0x100382af
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10038293
push edi
call fcn.10061df0
add esp, 4
push esi
call fcn.10128243
add esp, 4
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
lea ecx, [esp + 0x3c]
push ecx
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
push ebx
push str.PartialProductKey
push eax
call edx
cmp word [esp + 0x3c], 8
jne 0x10038305
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x10038305
mov dword [esp + 0x18], ebx
push eax
lea ebx, [esp + 0x1c]
call fcn.10073be0
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
jne 0x10038320
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
jne 0x1003820e
jmp 0x1003835b
mov edi, dword [esp + 0x38]
mov edx, edi
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10038330
push edi
call fcn.10061df0
add esp, 4
push esi
call fcn.10128243
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1003836f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10038383
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003838f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1003839f
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 + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.10127db1
add esp, 0x264
ret